tag');\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: ''\n });\n }\n\n assertContent(content) {\n this.assert.strictEqual(this.nodesCount, 1, 'It should render exactly one
tag');\n this.assertElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n 'data-foo': content\n },\n content: ''\n });\n }\n\n });\n\n class TrustedContentTest extends DynamicContentTest {\n assertIsEmpty() {\n this.assert.strictEqual(this.firstChild, null);\n }\n\n assertContent(content) {\n this.assertHTML(content);\n }\n\n assertStableRerender() {\n this.takeSnapshot();\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n super.assertInvariants();\n }\n\n assertInvariants() {// If it's not stable, we will wipe out all the content and replace them,\n // so there are no invariants\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('Dynamic content tests (trusted)', class extends TrustedContentTest {\n renderPath(path, context = {}) {\n this.render(\"{{{\" + path + \"}}}\", context);\n }\n\n ['@test updating trusted curlies']() {\n this.render('{{{htmlContent}}}{{{nested.htmlContent}}}', {\n htmlContent: '
Max ',\n nested: {\n htmlContent: '
James '\n }\n });\n this.assertContent('
Max James ');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'htmlContent', '
M a x '));\n this.assertContent('
M a x James ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'nested.htmlContent', 'Jammie'));\n this.assertContent('
M a x Jammie');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'htmlContent', '
Max ');\n (0, _metal.set)(this.context, 'nested', {\n htmlContent: '
James '\n });\n });\n this.assertContent('
Max James ');\n }\n\n ['@test empty content in trusted curlies [GH#14978]']() {\n this.render('before {{{value}}} after', {\n value: 'hello'\n });\n this.assertContent('before hello after');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'value', undefined));\n this.assertContent('before after');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'value', 'hello'));\n this.assertContent('before hello after');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'value', null));\n this.assertContent('before after');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'value', 'hello'));\n this.assertContent('before hello after');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'value', ''));\n this.assertContent('before after');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'value', 'hello'));\n this.assertContent('before hello after');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'value', (0, _helpers.htmlSafe)('')));\n this.assertContent('before after');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'value', 'hello'));\n this.assertContent('before hello after');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Dynamic content tests (integration)', class extends _internalTestHelpers.RenderingTestCase {\n ['@test it can render a dynamic template']() {\n let template = \"\\n \\n
\\n
Why you should use {{framework}}? \\n
\\n It's great \\n It's awesome \\n It's {{framework}} \\n \\n
\\n \\n \";\n let ember = \"\\n \\n
\\n
Why you should use Ember.js? \\n
\\n It's great \\n It's awesome \\n It's Ember.js \\n \\n
\\n \\n \";\n let react = \"\\n \\n
\\n
Why you should use React? \\n
\\n It's great \\n It's awesome \\n It's React \\n \\n
\\n \\n \";\n this.render(template, {\n framework: 'Ember.js'\n });\n this.assertHTML(ember);\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertHTML(ember);\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'framework', 'React'));\n this.assertHTML(react);\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'framework', 'Ember.js'));\n this.assertHTML(ember);\n }\n\n ['@test it should evaluate to nothing if part of the path is `undefined`']() {\n this.render('{{foo.bar.baz.bizz}}', {\n foo: {}\n });\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: {\n baz: {\n bizz: 'Hey!'\n }\n }\n }));\n this.assertText('Hey!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {}));\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: {\n baz: {\n bizz: 'Hello!'\n }\n }\n }));\n this.assertText('Hello!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {}));\n this.assertText('');\n }\n\n ['@test it should evaluate to nothing if part of the path is a primative']() {\n this.render('{{foo.bar.baz.bizz}}', {\n foo: {\n bar: true\n }\n });\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: false\n }));\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: 'Haha'\n }));\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: null\n }));\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: undefined\n }));\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: 1\n }));\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: {\n baz: {\n bizz: 'Hello!'\n }\n }\n }));\n this.assertText('Hello!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: true\n }));\n this.assertText('');\n }\n\n ['@test can set dynamic href']() {\n this.render('
Example ', {\n model: {\n url: 'http://example.com'\n }\n });\n this.assertElement(this.firstChild, {\n tagName: 'a',\n content: 'Example',\n attrs: {\n href: 'http://example.com'\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'a',\n content: 'Example',\n attrs: {\n href: 'http://example.com'\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.url', 'http://linkedin.com'));\n this.assertElement(this.firstChild, {\n tagName: 'a',\n content: 'Example',\n attrs: {\n href: 'http://linkedin.com'\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n url: 'http://example.com'\n }));\n this.assertElement(this.firstChild, {\n tagName: 'a',\n content: 'Example',\n attrs: {\n href: 'http://example.com'\n }\n });\n }\n\n ['@test quoteless class attributes update correctly']() {\n this.render('
hello
', {\n fooBar: true\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo-bar')\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo-bar')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'fooBar', false));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello'\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'fooBar', true));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo-bar')\n }\n });\n }\n\n ['@test quoted class attributes update correctly'](assert) {\n this.render('
hello
', {\n fooBar: true\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo-bar')\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo-bar')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'fooBar', false));\n assert.equal(this.firstChild.className, '');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'fooBar', true));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo-bar')\n }\n });\n }\n\n ['@test unquoted class attribute can contain multiple classes']() {\n this.render('
hello
', {\n model: {\n classes: 'foo bar baz'\n }\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar baz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar baz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.classes', 'fizz bizz'));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('fizz bizz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n classes: 'foo bar baz'\n }));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar baz')\n }\n });\n }\n\n ['@test unquoted class attribute']() {\n this.render('
hello
', {\n model: {\n foo: 'foo'\n }\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo')\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.foo', 'fizz'));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('fizz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n foo: 'foo'\n }));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo')\n }\n });\n }\n\n ['@test quoted class attribute']() {\n this.render('
hello
', {\n model: {\n foo: 'foo'\n }\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo')\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.foo', 'fizz'));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('fizz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n foo: 'foo'\n }));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo')\n }\n });\n }\n\n ['@test quoted class attribute can contain multiple classes']() {\n this.render('
hello
', {\n model: {\n classes: 'foo bar baz'\n }\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar baz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar baz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.classes', 'fizz bizz'));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('fizz bizz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n classes: 'foo bar baz'\n }));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar baz')\n }\n });\n }\n\n ['@test class attribute concats bound values']() {\n this.render('
hello
', {\n model: {\n foo: 'foo',\n bar: 'bar',\n bizz: 'bizz'\n }\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar bizz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar bizz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.foo', 'fizz'));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('fizz bar bizz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.bar', null));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('fizz bizz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n foo: 'foo',\n bar: 'bar',\n bizz: 'bizz'\n }));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar bizz')\n }\n });\n }\n\n ['@test class attribute accepts nested helpers, and updates']() {\n this.render(\"
hello
\", {\n model: {\n size: 'large',\n hasSize: true,\n hasShape: false,\n shape: 'round'\n }\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('large')\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('large')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.hasShape', true));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('large round')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.hasSize', false));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('round')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n size: 'large',\n hasSize: true,\n hasShape: false,\n shape: 'round'\n }));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('large')\n }\n });\n }\n\n ['@test Multiple dynamic classes']() {\n this.render('
hello
', {\n model: {\n foo: 'foo',\n bar: 'bar',\n fizz: 'fizz',\n baz: 'baz'\n }\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar fizz baz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar fizz baz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'model.foo', null);\n (0, _metal.set)(this.context, 'model.fizz', null);\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('bar baz')\n }\n });\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'model', {\n foo: 'foo',\n bar: 'bar',\n fizz: 'fizz',\n baz: 'baz'\n });\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: (0, _internalTestHelpers.classes)('foo bar fizz baz')\n }\n });\n }\n\n ['@test classes are ordered: See issue #9912']() {\n this.render('
hello
', {\n model: {\n foo: 'foo',\n bar: 'bar'\n }\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: 'foo static bar'\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: 'foo static bar'\n }\n });\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'model.bar', null);\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: 'foo static '\n }\n });\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'model', {\n foo: 'foo',\n bar: 'bar'\n });\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: 'hello',\n attrs: {\n class: 'foo static bar'\n }\n });\n }\n\n });\n let warnings, originalWarn;\n\n class StyleTest extends _internalTestHelpers.RenderingTestCase {\n constructor() {\n super(...arguments);\n warnings = [];\n originalWarn = (0, _debug.getDebugFunction)('warn');\n (0, _debug.setDebugFunction)('warn', function (message, test) {\n if (!test) {\n warnings.push(message);\n }\n });\n }\n\n teardown() {\n super.teardown(...arguments);\n (0, _debug.setDebugFunction)('warn', originalWarn);\n }\n\n assertStyleWarning(style) {\n this.assert.deepEqual(warnings, [(0, _views.constructStyleDeprecationMessage)(style)]);\n }\n\n assertNoWarning() {\n this.assert.deepEqual(warnings, []);\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('Inline style tests', class extends StyleTest {\n ['@test can set dynamic style']() {\n this.render('
', {\n model: {\n style: (0, _helpers.htmlSafe)('width: 60px;')\n }\n });\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: '',\n attrs: {\n style: 'width: 60px;'\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: '',\n attrs: {\n style: 'width: 60px;'\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.style', 'height: 60px;'));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: '',\n attrs: {\n style: 'height: 60px;'\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.style', null));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: '',\n attrs: {}\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n style: 'width: 60px;'\n }));\n this.assertElement(this.firstChild, {\n tagName: 'div',\n content: '',\n attrs: {\n style: 'width: 60px;'\n }\n });\n }\n\n });\n\n if (!EmberDev.runningProdBuild) {\n (0, _internalTestHelpers.moduleFor)('Inline style tests - warnings', class extends StyleTest {\n ['@test specifying
generates a warning']() {\n let userValue = 'width: 42px';\n this.render('
', {\n userValue\n });\n this.assertStyleWarning(userValue);\n }\n\n ['@test specifying `attributeBindings: [\"style\"]` generates a warning']() {\n let FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['style']\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: 'hello'\n });\n let userValue = 'width: 42px';\n this.render('{{foo-bar style=userValue}}', {\n userValue\n });\n this.assertStyleWarning(userValue);\n }\n\n ['@test specifying `
` works properly without a warning']() {\n this.render('
', {\n userValue: 'width: 42px'\n });\n this.assertNoWarning();\n }\n\n ['@test specifying `
` works properly with a SafeString']() {\n this.render('
', {\n userValue: new _helpers.SafeString('width: 42px')\n });\n this.assertNoWarning();\n }\n\n ['@test null value do not generate htmlsafe warning']() {\n this.render('
', {\n userValue: null\n });\n this.assertNoWarning();\n }\n\n ['@test undefined value do not generate htmlsafe warning']() {\n this.render('
');\n this.assertNoWarning();\n }\n\n ['@test no warnings are triggered when a safe string is quoted']() {\n this.render('
', {\n userValue: new _helpers.SafeString('width: 42px')\n });\n this.assertNoWarning();\n }\n\n ['@test binding warning is triggered when an unsafe string is quoted']() {\n let userValue = 'width: 42px';\n this.render('
', {\n userValue\n });\n this.assertStyleWarning(userValue);\n }\n\n ['@test binding warning is triggered when a safe string for a complete property is concatenated in place']() {\n let userValue = 'width: 42px';\n this.render('
', {\n userValue: new _helpers.SafeString('width: 42px')\n });\n this.assertStyleWarning(\"color: green; \" + userValue);\n }\n\n ['@test binding warning is triggered when a safe string for a value is concatenated in place']() {\n let userValue = '42px';\n this.render('
', {\n userValue: new _helpers.SafeString(userValue)\n });\n this.assertStyleWarning(\"color: green; width: \" + userValue);\n }\n\n ['@test binding warning is triggered when a safe string for a property name is concatenated in place']() {\n let userValue = 'width';\n this.render('
', {\n userProperty: new _helpers.SafeString(userValue)\n });\n this.assertStyleWarning(\"color: green; \" + userValue + \": 42px\");\n }\n\n });\n }\n});","enifed(\"@ember/-internals/glimmer/tests/integration/custom-component-manager-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime\", \"@ember/-internals/metal\", \"@ember/-internals/glimmer\"], function (_internalTestHelpers, _runtime, _metal, _glimmer) {\n \"use strict\";\n\n const BasicComponentManager = _runtime.Object.extend({\n capabilities: (0, _glimmer.capabilities)('3.4'),\n\n createComponent(factory, args) {\n return factory.create({\n args\n });\n },\n\n updateComponent(component, args) {\n (0, _metal.set)(component, 'args', args);\n },\n\n getContext(component) {\n return component;\n }\n\n });\n /* eslint-disable */\n\n\n function createBasicManager(owner) {\n return BasicComponentManager.create({\n owner\n });\n }\n\n function createInstrumentedManager(owner) {\n return InstrumentedComponentManager.create({\n owner\n });\n }\n /* eslint-enable */\n\n\n let InstrumentedComponentManager;\n\n class ComponentManagerTest extends _internalTestHelpers.RenderingTestCase {\n constructor(assert) {\n super(...arguments);\n InstrumentedComponentManager = _runtime.Object.extend({\n capabilities: (0, _glimmer.capabilities)('3.4', {\n destructor: true,\n asyncLifecycleCallbacks: true\n }),\n\n createComponent(factory, args) {\n assert.step('createComponent');\n return factory.create({\n args\n });\n },\n\n updateComponent(component, args) {\n assert.step('updateComponent');\n (0, _metal.set)(component, 'args', args);\n },\n\n destroyComponent(component) {\n assert.step('destroyComponent');\n component.destroy();\n },\n\n getContext(component) {\n assert.step('getContext');\n return component;\n },\n\n didCreateComponent(component) {\n assert.step('didCreateComponent');\n component.didRender();\n },\n\n didUpdateComponent(component) {\n assert.step('didUpdateComponent');\n component.didUpdate();\n }\n\n });\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('Component Manager - Curly Invocation', class extends ComponentManagerTest {\n ['@test the string based version of setComponentManager is deprecated']() {\n expectDeprecation(() => {\n (0, _glimmer.setComponentManager)('basic', _runtime.Object.extend({\n greeting: 'hello'\n }));\n }, 'Passing the name of the component manager to \"setupComponentManager\" is deprecated. Please pass a function that produces an instance of the manager.');\n }\n\n ['@test it can render a basic component with custom component manager']() {\n let ComponentClass = (0, _glimmer.setComponentManager)(createBasicManager, _runtime.Object.extend({\n greeting: 'hello'\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{greeting}} world
\",\n ComponentClass\n });\n this.render('{{foo-bar}}');\n this.assertHTML(\"
hello world
\");\n }\n\n ['@test it can render a basic component with custom component manager with a factory']() {\n let ComponentClass = (0, _glimmer.setComponentManager)(() => BasicComponentManager.create(), _runtime.Object.extend({\n greeting: 'hello'\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{greeting}} world
\",\n ComponentClass\n });\n this.render('{{foo-bar}}');\n this.assertHTML(\"
hello world
\");\n }\n\n ['@test it can have no template context']() {\n let ComponentClass = (0, _glimmer.setComponentManager)(() => {\n return _runtime.Object.create({\n capabilities: (0, _glimmer.capabilities)('3.4'),\n\n createComponent() {\n return null;\n },\n\n updateComponent() {},\n\n getContext() {\n return null;\n }\n\n });\n }, {});\n this.registerComponent('foo-bar', {\n template: \"
{{@greeting}} world
\",\n ComponentClass\n });\n this.render('{{foo-bar greeting=\"hello\"}}');\n this.assertHTML(\"
hello world
\");\n }\n\n ['@test it can discover component manager through inheritance - ES Classes']() {\n class Base {}\n\n (0, _glimmer.setComponentManager)(() => {\n return _runtime.Object.create({\n capabilities: (0, _glimmer.capabilities)('3.4'),\n\n createComponent(Factory, args) {\n return new Factory(args);\n },\n\n updateComponent() {},\n\n getContext(component) {\n return component;\n }\n\n });\n }, Base);\n\n class Child extends Base {}\n\n class Grandchild extends Child {\n constructor() {\n super();\n this.name = 'grandchild';\n }\n\n }\n\n this.registerComponent('foo-bar', {\n template: \"{{this.name}}\",\n ComponentClass: Grandchild\n });\n this.render('{{foo-bar}}');\n this.assertHTML(\"grandchild\");\n }\n\n ['@test it can discover component manager through inheritance - Ember Object']() {\n let Parent = (0, _glimmer.setComponentManager)(createBasicManager, _runtime.Object.extend());\n let Child = Parent.extend();\n let Grandchild = Child.extend({\n init() {\n this._super(...arguments);\n\n this.name = 'grandchild';\n }\n\n });\n this.registerComponent('foo-bar', {\n template: \"{{this.name}}\",\n ComponentClass: Grandchild\n });\n this.render('{{foo-bar}}');\n this.assertHTML(\"grandchild\");\n }\n\n ['@test it can customize the template context']() {\n let customContext = {\n greeting: 'goodbye'\n };\n let ComponentClass = (0, _glimmer.setComponentManager)(() => {\n return _runtime.Object.create({\n capabilities: (0, _glimmer.capabilities)('3.4'),\n\n createComponent(factory) {\n return factory.create();\n },\n\n getContext() {\n return customContext;\n },\n\n updateComponent() {}\n\n });\n }, _runtime.Object.extend({\n greeting: 'hello',\n count: 1234\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{greeting}} world {{count}}
\",\n ComponentClass\n });\n this.render('{{foo-bar}}');\n this.assertHTML(\"
goodbye world
\");\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(customContext, 'greeting', 'sayonara'));\n this.assertHTML(\"
sayonara world
\");\n }\n\n ['@test it can set arguments on the component instance']() {\n let ComponentClass = (0, _glimmer.setComponentManager)(createBasicManager, _runtime.Object.extend({\n salutation: (0, _metal.computed)('args.named.firstName', 'args.named.lastName', function () {\n return this.args.named.firstName + ' ' + this.args.named.lastName;\n })\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{salutation}}
\",\n ComponentClass\n });\n this.render('{{foo-bar firstName=\"Yehuda\" lastName=\"Katz\"}}');\n this.assertHTML(\"
Yehuda Katz
\");\n }\n\n ['@test arguments are updated if they change']() {\n let ComponentClass = (0, _glimmer.setComponentManager)(createBasicManager, _runtime.Object.extend({\n salutation: (0, _metal.computed)('args.named.firstName', 'args.named.lastName', function () {\n return this.args.named.firstName + ' ' + this.args.named.lastName;\n })\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{salutation}}
\",\n ComponentClass\n });\n this.render('{{foo-bar firstName=firstName lastName=lastName}}', {\n firstName: 'Yehuda',\n lastName: 'Katz'\n });\n this.assertHTML(\"
Yehuda Katz
\");\n (0, _internalTestHelpers.runTask)(() => (0, _metal.setProperties)(this.context, {\n firstName: 'Chad',\n lastName: 'Hietala'\n }));\n this.assertHTML(\"
Chad Hietala
\");\n }\n\n ['@test it can set positional params on the component instance']() {\n let ComponentClass = (0, _glimmer.setComponentManager)(createBasicManager, _runtime.Object.extend({\n salutation: (0, _metal.computed)('args.positional', function () {\n return this.args.positional[0] + ' ' + this.args.positional[1];\n })\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{salutation}}
\",\n ComponentClass\n });\n this.render('{{foo-bar \"Yehuda\" \"Katz\"}}');\n this.assertHTML(\"
Yehuda Katz
\");\n }\n\n ['@test positional params are updated if they change']() {\n let ComponentClass = (0, _glimmer.setComponentManager)(createBasicManager, _runtime.Object.extend({\n salutation: (0, _metal.computed)('args.positional', function () {\n return this.args.positional[0] + ' ' + this.args.positional[1];\n })\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{salutation}}
\",\n ComponentClass\n });\n this.render('{{foo-bar firstName lastName}}', {\n firstName: 'Yehuda',\n lastName: 'Katz'\n });\n this.assertHTML(\"
Yehuda Katz
\");\n (0, _internalTestHelpers.runTask)(() => (0, _metal.setProperties)(this.context, {\n firstName: 'Chad',\n lastName: 'Hietala'\n }));\n this.assertHTML(\"
Chad Hietala
\");\n }\n\n ['@test it can opt-in to running destructor'](assert) {\n let ComponentClass = (0, _glimmer.setComponentManager)(() => {\n return _runtime.Object.create({\n capabilities: (0, _glimmer.capabilities)('3.4', {\n destructor: true\n }),\n\n createComponent(factory) {\n assert.step('createComponent');\n return factory.create();\n },\n\n getContext(component) {\n return component;\n },\n\n updateComponent() {},\n\n destroyComponent(component) {\n assert.step('destroyComponent');\n component.destroy();\n }\n\n });\n }, _runtime.Object.extend({\n greeting: 'hello',\n\n destroy() {\n assert.step('component.destroy()');\n\n this._super(...arguments);\n }\n\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{greeting}} world
\",\n ComponentClass\n });\n this.render('{{#if show}}{{foo-bar}}{{/if}}', {\n show: true\n });\n this.assertHTML(\"
hello world
\");\n (0, _internalTestHelpers.runTask)(() => this.context.set('show', false));\n this.assertText('');\n assert.verifySteps(['createComponent', 'destroyComponent', 'component.destroy()']);\n }\n\n ['@test it can opt-in to running async lifecycle hooks'](assert) {\n let ComponentClass = (0, _glimmer.setComponentManager)(() => {\n return _runtime.Object.create({\n capabilities: (0, _glimmer.capabilities)('3.4', {\n asyncLifecycleCallbacks: true\n }),\n\n createComponent(factory, args) {\n assert.step('createComponent');\n return factory.create({\n args\n });\n },\n\n updateComponent(component, args) {\n assert.step('updateComponent');\n (0, _metal.set)(component, 'args', args);\n },\n\n destroyComponent(component) {\n assert.step('destroyComponent');\n component.destroy();\n },\n\n getContext(component) {\n assert.step('getContext');\n return component;\n },\n\n didCreateComponent() {\n assert.step('didCreateComponent');\n },\n\n didUpdateComponent() {\n assert.step('didUpdateComponent');\n }\n\n });\n }, _runtime.Object.extend({\n greeting: 'hello'\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{greeting}} {{@name}}
\",\n ComponentClass\n });\n this.render('{{foo-bar name=name}}', {\n name: 'world'\n });\n this.assertHTML(\"
hello world
\");\n assert.verifySteps(['createComponent', 'getContext', 'didCreateComponent']);\n (0, _internalTestHelpers.runTask)(() => this.context.set('name', 'max'));\n this.assertHTML(\"
hello max
\");\n assert.verifySteps(['updateComponent', 'didUpdateComponent']);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Component Manager - Angle Invocation', class extends ComponentManagerTest {\n ['@test it can render a basic component with custom component manager']() {\n let ComponentClass = (0, _glimmer.setComponentManager)(createBasicManager, _runtime.Object.extend({\n greeting: 'hello'\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{greeting}} world
\",\n ComponentClass\n });\n this.render('
');\n this.assertHTML(\"
hello world
\");\n }\n\n ['@test it can set arguments on the component instance']() {\n let ComponentClass = (0, _glimmer.setComponentManager)(createBasicManager, _runtime.Object.extend({\n salutation: (0, _metal.computed)('args.named.firstName', 'args.named.lastName', function () {\n return this.args.named.firstName + ' ' + this.args.named.lastName;\n })\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{salutation}}
\",\n ComponentClass\n });\n this.render('
');\n this.assertHTML(\"
Yehuda Katz
\");\n }\n\n ['@test it can pass attributes']() {\n let ComponentClass = (0, _glimmer.setComponentManager)(createBasicManager, _runtime.Object.extend());\n this.registerComponent('foo-bar', {\n template: \"
Hello world!
\",\n ComponentClass\n });\n this.render('
');\n this.assertHTML(\"
Hello world!
\");\n }\n\n ['@test arguments are updated if they change']() {\n let ComponentClass = (0, _glimmer.setComponentManager)(createBasicManager, _runtime.Object.extend({\n salutation: (0, _metal.computed)('args.named.firstName', 'args.named.lastName', function () {\n return this.args.named.firstName + ' ' + this.args.named.lastName;\n })\n }));\n this.registerComponent('foo-bar', {\n template: \"
{{salutation}}
\",\n ComponentClass\n });\n this.render('
', {\n firstName: 'Yehuda',\n lastName: 'Katz'\n });\n this.assertHTML(\"
Yehuda Katz
\");\n (0, _internalTestHelpers.runTask)(() => (0, _metal.setProperties)(this.context, {\n firstName: 'Chad',\n lastName: 'Hietala'\n }));\n this.assertHTML(\"
Chad Hietala
\");\n }\n\n ['@test updating attributes triggers didUpdateComponent'](assert) {\n let TestManager = _runtime.Object.extend({\n capabilities: (0, _glimmer.capabilities)('3.4', {\n destructor: true,\n asyncLifecycleCallbacks: true\n }),\n\n createComponent(factory, args) {\n assert.step('createComponent');\n return factory.create({\n args\n });\n },\n\n updateComponent(component, args) {\n assert.step('updateComponent');\n (0, _metal.set)(component, 'args', args);\n },\n\n destroyComponent(component) {\n component.destroy();\n },\n\n getContext(component) {\n assert.step('getContext');\n return component;\n },\n\n didCreateComponent(component) {\n assert.step('didCreateComponent');\n component.didRender();\n },\n\n didUpdateComponent(component) {\n assert.step('didUpdateComponent');\n component.didUpdate();\n }\n\n });\n\n let ComponentClass = (0, _glimmer.setComponentManager)(() => {\n return TestManager.create();\n }, _runtime.Object.extend({\n didRender() {},\n\n didUpdate() {}\n\n }));\n this.registerComponent('foo-bar', {\n template: \"
Hello world!
\",\n ComponentClass\n });\n this.render('
', {\n value: 'foo'\n });\n this.assertHTML(\"
Hello world!
\");\n assert.verifySteps(['createComponent', 'getContext', 'didCreateComponent']);\n (0, _internalTestHelpers.runTask)(() => this.context.set('value', 'bar'));\n assert.verifySteps(['didUpdateComponent']);\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/custom-modifier-manager-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime\", \"@ember/-internals/glimmer\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _runtime, _glimmer, _metal) {\n \"use strict\";\n\n class ModifierManagerTest extends _internalTestHelpers.RenderingTestCase {}\n\n class CustomModifierManager {\n constructor(owner) {\n this.owner = owner;\n }\n\n createModifier(factory, args) {\n return factory.create(args);\n }\n\n installModifier(instance, element, args) {\n instance.element = element;\n let {\n positional,\n named\n } = args;\n instance.didInsertElement(positional, named);\n }\n\n updateModifier(instance, args) {\n let {\n positional,\n named\n } = args;\n instance.didUpdate(positional, named);\n }\n\n destroyModifier(instance) {\n instance.willDestroyElement();\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('Basic Custom Modifier Manager', class extends ModifierManagerTest {\n '@test can register a custom element modifier and render it'(assert) {\n let ModifierClass = (0, _glimmer.setModifierManager)(owner => {\n return new CustomModifierManager(owner);\n }, _runtime.Object.extend({\n didInsertElement() {},\n\n didUpdate() {},\n\n willDestroyElement() {}\n\n }));\n this.registerModifier('foo-bar', ModifierClass.extend({\n didInsertElement() {\n assert.ok(true, 'Called didInsertElement');\n }\n\n }));\n this.render('
hello world ');\n this.assertHTML(\"
hello world \");\n }\n\n '@test custom lifecycle hooks'(assert) {\n assert.expect(9);\n let ModifierClass = (0, _glimmer.setModifierManager)(owner => {\n return new CustomModifierManager(owner);\n }, _runtime.Object.extend({\n didInsertElement() {},\n\n didUpdate() {},\n\n willDestroyElement() {}\n\n }));\n this.registerModifier('foo-bar', ModifierClass.extend({\n didUpdate([truthy]) {\n assert.ok(true, 'Called didUpdate');\n assert.equal(truthy, 'true', 'gets updated args');\n },\n\n didInsertElement([truthy]) {\n assert.ok(true, 'Called didInsertElement');\n assert.equal(truthy, true, 'gets initial args');\n },\n\n willDestroyElement() {\n assert.ok(true, 'Called willDestroyElement');\n }\n\n }));\n this.render('{{#if truthy}}
hello world {{/if}}', {\n truthy: true\n });\n this.assertHTML(\"
hello world \");\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'truthy', 'true'));\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'truthy', false));\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'truthy', true));\n }\n\n '@test associates manager even through an inheritance structure'(assert) {\n assert.expect(5);\n let ModifierClass = (0, _glimmer.setModifierManager)(owner => {\n return new CustomModifierManager(owner);\n }, _runtime.Object.extend({\n didInsertElement() {},\n\n didUpdate() {},\n\n willDestroyElement() {}\n\n }));\n ModifierClass = ModifierClass.extend({\n didInsertElement([truthy]) {\n this._super(...arguments);\n\n assert.ok(true, 'Called didInsertElement');\n assert.equal(truthy, true, 'gets initial args');\n }\n\n });\n this.registerModifier('foo-bar', ModifierClass.extend({\n didInsertElement([truthy]) {\n this._super(...arguments);\n\n assert.ok(true, 'Called didInsertElement');\n assert.equal(truthy, true, 'gets initial args');\n }\n\n }));\n this.render('
hello world ', {\n truthy: true\n });\n this.assertHTML(\"
hello world \");\n }\n\n '@test can give consistent access to underlying DOM element'(assert) {\n assert.expect(4);\n let ModifierClass = (0, _glimmer.setModifierManager)(owner => {\n return new CustomModifierManager(owner);\n }, _runtime.Object.extend({\n didInsertElement() {},\n\n didUpdate() {},\n\n willDestroyElement() {}\n\n }));\n this.registerModifier('foo-bar', ModifierClass.extend({\n savedElement: undefined,\n\n didInsertElement() {\n assert.equal(this.element.tagName, 'H1');\n this.set('savedElement', this.element);\n },\n\n didUpdate() {\n assert.equal(this.element, this.savedElement);\n },\n\n willDestroyElement() {\n assert.equal(this.element, this.savedElement);\n }\n\n }));\n this.render('
hello world ', {\n truthy: true\n });\n this.assertHTML(\"
hello world \");\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'truthy', 'true'));\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/event-dispatcher-test\", [\"internal-test-helpers\", \"@ember/-internals/glimmer/tests/utils/helpers\", \"@ember/runloop\", \"@ember/instrumentation\", \"@ember/canary-features\", \"@ember/-internals/views\", \"@ember/-internals/utils\", \"@glimmer/env\"], function (_internalTestHelpers, _helpers, _runloop, _instrumentation, _canaryFeatures, _views, _utils, _env) {\n \"use strict\";\n\n let canDataTransfer = Boolean(document.createEvent('HTMLEvents').dataTransfer);\n\n function fireNativeWithDataTransfer(node, type, dataTransfer) {\n let event = document.createEvent('HTMLEvents');\n event.initEvent(type, true, true);\n event.dataTransfer = dataTransfer;\n node.dispatchEvent(event);\n }\n\n (0, _internalTestHelpers.moduleFor)('EventDispatcher', class extends _internalTestHelpers.RenderingTestCase {\n ['@test events bubble view hierarchy for form elements'](assert) {\n let receivedEvent;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n change(event) {\n receivedEvent = event;\n }\n\n }),\n template: \"
\"\n });\n this.render(\"{{x-foo}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#is-done').trigger('change'));\n assert.ok(receivedEvent, 'change event was triggered');\n assert.strictEqual(receivedEvent.target, this.$('#is-done')[0]);\n }\n\n ['@test case insensitive events'](assert) {\n let receivedEvent;\n this.registerComponent('x-bar', {\n ComponentClass: _helpers.Component.extend({\n clicked(event) {\n receivedEvent = event;\n }\n\n }),\n template: \"
my button \"\n });\n this.render(\"{{x-bar}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#is-done').trigger('click'));\n assert.ok(receivedEvent, 'change event was triggered');\n assert.strictEqual(receivedEvent.target, this.$('#is-done')[0]);\n }\n\n ['@test case sensitive events'](assert) {\n let receivedEvent;\n this.registerComponent('x-bar', {\n ComponentClass: _helpers.Component.extend({\n clicked(event) {\n receivedEvent = event;\n }\n\n }),\n template: \"
my button \"\n });\n this.render(\"{{x-bar}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#is-done').trigger('click'));\n assert.ok(receivedEvent, 'change event was triggered');\n assert.strictEqual(receivedEvent.target, this.$('#is-done')[0]);\n }\n\n ['@test events bubble to parent view'](assert) {\n let receivedEvent;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n change(event) {\n receivedEvent = event;\n }\n\n }),\n template: \"{{yield}}\"\n });\n this.registerComponent('x-bar', {\n ComponentClass: _helpers.Component.extend({\n change() {}\n\n }),\n template: \"
\"\n });\n this.render(\"{{#x-foo}}{{x-bar}}{{/x-foo}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#is-done').trigger('change'));\n assert.ok(receivedEvent, 'change event was triggered');\n assert.strictEqual(receivedEvent.target, this.$('#is-done')[0]);\n }\n\n ['@test events bubbling up can be prevented by returning false'](assert) {\n let hasReceivedEvent;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n change() {\n hasReceivedEvent = true;\n }\n\n }),\n template: \"{{yield}}\"\n });\n this.registerComponent('x-bar', {\n ComponentClass: _helpers.Component.extend({\n change() {\n return false;\n }\n\n }),\n template: \"
\"\n });\n this.render(\"{{#x-foo}}{{x-bar}}{{/x-foo}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#is-done').trigger('change'));\n assert.notOk(hasReceivedEvent, 'change event has not been received');\n }\n\n ['@test events bubbling up can be prevented by calling stopPropagation()'](assert) {\n let hasReceivedEvent;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n change() {\n hasReceivedEvent = true;\n }\n\n }),\n template: \"{{yield}}\"\n });\n this.registerComponent('x-bar', {\n ComponentClass: _helpers.Component.extend({\n change(e) {\n e.stopPropagation();\n }\n\n }),\n template: \"
\"\n });\n this.render(\"{{#x-foo}}{{x-bar}}{{/x-foo}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#is-done').trigger('change'));\n assert.notOk(hasReceivedEvent, 'change event has not been received');\n }\n\n ['@test event handlers are wrapped in a run loop'](assert) {\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n change() {\n assert.ok((0, _runloop.getCurrentRunLoop)(), 'a run loop should have started');\n }\n\n }),\n template: \"
\"\n });\n this.render(\"{{x-foo}}\");\n this.$('#is-done').trigger('click');\n }\n\n ['@test delegated event listeners work for mouseEnter/Leave'](assert) {\n let receivedEnterEvents = [];\n let receivedLeaveEvents = [];\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n mouseEnter(event) {\n receivedEnterEvents.push(event);\n },\n\n mouseLeave(event) {\n receivedLeaveEvents.push(event);\n }\n\n }),\n template: \"
\"\n });\n this.render(\"{{x-foo id=\\\"outer\\\"}}\");\n let parent = this.element;\n let outer = this.$('#outer')[0];\n let inner = this.$('#inner')[0]; // mouse moves over #outer\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(outer).trigger('mouseenter', {\n canBubble: false,\n relatedTarget: parent\n });\n this.$(outer).trigger('mouseover', {\n relatedTarget: parent\n });\n this.$(parent).trigger('mouseout', {\n relatedTarget: outer\n });\n });\n assert.equal(receivedEnterEvents.length, 1, 'mouseenter event was triggered');\n assert.strictEqual(receivedEnterEvents[0].target, outer); // mouse moves over #inner\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(inner).trigger('mouseover', {\n relatedTarget: outer\n });\n this.$(outer).trigger('mouseout', {\n relatedTarget: inner\n });\n });\n assert.equal(receivedEnterEvents.length, 1, 'mouseenter event was not triggered again'); // mouse moves out of #inner\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(inner).trigger('mouseout', {\n relatedTarget: outer\n });\n this.$(outer).trigger('mouseover', {\n relatedTarget: inner\n });\n });\n assert.equal(receivedLeaveEvents.length, 0, 'mouseleave event was not triggered'); // mouse moves out of #outer\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(outer).trigger('mouseleave', {\n canBubble: false,\n relatedTarget: parent\n });\n this.$(outer).trigger('mouseout', {\n relatedTarget: parent\n });\n this.$(parent).trigger('mouseover', {\n relatedTarget: outer\n });\n });\n assert.equal(receivedLeaveEvents.length, 1, 'mouseleave event was triggered');\n assert.strictEqual(receivedLeaveEvents[0].target, outer);\n }\n\n ['@test delegated event listeners work for mouseEnter on SVG elements'](assert) {\n let receivedEnterEvents = [];\n let receivedLeaveEvents = [];\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n tagName: 'svg',\n\n mouseEnter(event) {\n receivedEnterEvents.push(event);\n },\n\n mouseLeave(event) {\n receivedLeaveEvents.push(event);\n }\n\n }),\n template: \"
\"\n });\n this.render(\"{{x-foo id=\\\"outer\\\"}}\");\n let parent = this.element;\n let outer = this.$('#outer')[0];\n let inner = this.$('#inner')[0]; // mouse moves over #outer\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(outer).trigger('mouseenter', {\n canBubble: false,\n relatedTarget: parent\n });\n this.$(outer).trigger('mouseover', {\n relatedTarget: parent\n });\n this.$(parent).trigger('mouseout', {\n relatedTarget: outer\n });\n });\n assert.equal(receivedEnterEvents.length, 1, 'mouseenter event was triggered');\n assert.strictEqual(receivedEnterEvents[0].target, outer); // mouse moves over #inner\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(inner).trigger('mouseover', {\n relatedTarget: outer\n });\n this.$(outer).trigger('mouseout', {\n relatedTarget: inner\n });\n });\n assert.equal(receivedEnterEvents.length, 1, 'mouseenter event was not triggered again'); // mouse moves out of #inner\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(inner).trigger('mouseout', {\n relatedTarget: outer\n });\n this.$(outer).trigger('mouseover', {\n relatedTarget: inner\n });\n });\n assert.equal(receivedLeaveEvents.length, 0, 'mouseleave event was not triggered'); // mouse moves out of #outer\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(outer).trigger('mouseleave', {\n canBubble: false,\n relatedTarget: parent\n });\n this.$(outer).trigger('mouseout', {\n relatedTarget: parent\n });\n this.$(parent).trigger('mouseover', {\n relatedTarget: outer\n });\n });\n assert.equal(receivedLeaveEvents.length, 1, 'mouseleave event was triggered');\n assert.strictEqual(receivedLeaveEvents[0].target, outer);\n }\n\n ['@test delegated event listeners work for mouseEnter/Leave with skipped events'](assert) {\n let receivedEnterEvents = [];\n let receivedLeaveEvents = [];\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n mouseEnter(event) {\n receivedEnterEvents.push(event);\n },\n\n mouseLeave(event) {\n receivedLeaveEvents.push(event);\n }\n\n }),\n template: \"
\"\n });\n this.render(\"{{x-foo id=\\\"outer\\\"}}\");\n let parent = this.element;\n let outer = this.$('#outer')[0];\n let inner = this.$('#inner')[0]; // we replicate fast mouse movement, where mouseover is fired directly in #inner, skipping #outer\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(outer).trigger('mouseenter', {\n canBubble: false,\n relatedTarget: parent\n });\n this.$(inner).trigger('mouseover', {\n relatedTarget: parent\n });\n this.$(parent).trigger('mouseout', {\n relatedTarget: inner\n });\n });\n assert.equal(receivedEnterEvents.length, 1, 'mouseenter event was triggered');\n assert.strictEqual(receivedEnterEvents[0].target, inner); // mouse moves out of #outer\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(outer).trigger('mouseleave', {\n canBubble: false,\n relatedTarget: parent\n });\n this.$(inner).trigger('mouseout', {\n relatedTarget: parent\n });\n this.$(parent).trigger('mouseover', {\n relatedTarget: inner\n });\n });\n assert.equal(receivedLeaveEvents.length, 1, 'mouseleave event was triggered');\n assert.strictEqual(receivedLeaveEvents[0].target, inner);\n }\n\n ['@test delegated event listeners work for mouseEnter/Leave with skipped events and subcomponent'](assert) {\n let receivedEnterEvents = [];\n let receivedLeaveEvents = [];\n this.registerComponent('x-outer', {\n ComponentClass: _helpers.Component.extend({\n mouseEnter(event) {\n receivedEnterEvents.push(event);\n },\n\n mouseLeave(event) {\n receivedLeaveEvents.push(event);\n }\n\n }),\n template: \"{{yield}}\"\n });\n this.registerComponent('x-inner', {\n ComponentClass: _helpers.Component.extend(),\n template: \"\"\n });\n this.render(\"{{#x-outer id=\\\"outer\\\"}}{{x-inner id=\\\"inner\\\"}}{{/x-outer}}\");\n let parent = this.element;\n let outer = this.$('#outer')[0];\n let inner = this.$('#inner')[0]; // we replicate fast mouse movement, where mouseover is fired directly in #inner, skipping #outer\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(outer).trigger('mouseenter', {\n canBubble: false,\n relatedTarget: parent\n });\n this.$(inner).trigger('mouseover', {\n relatedTarget: parent\n });\n this.$(parent).trigger('mouseout', {\n relatedTarget: inner\n });\n });\n assert.equal(receivedEnterEvents.length, 1, 'mouseenter event was triggered');\n assert.strictEqual(receivedEnterEvents[0].target, inner); // mouse moves out of #inner\n\n (0, _internalTestHelpers.runTask)(() => {\n this.$(outer).trigger('mouseleave', {\n canBubble: false,\n relatedTarget: parent\n });\n this.$(inner).trigger('mouseout', {\n relatedTarget: parent\n });\n this.$(parent).trigger('mouseover', {\n relatedTarget: inner\n });\n });\n assert.equal(receivedLeaveEvents.length, 1, 'mouseleave event was triggered');\n assert.strictEqual(receivedLeaveEvents[0].target, inner);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('EventDispatcher#setup', class extends _internalTestHelpers.RenderingTestCase {\n constructor() {\n super(...arguments);\n let dispatcher = this.owner.lookup('event_dispatcher:main');\n (0, _runloop.run)(dispatcher, 'destroy');\n\n this.owner.__container__.reset('event_dispatcher:main');\n\n this.dispatcher = this.owner.lookup('event_dispatcher:main');\n }\n\n ['@test additional events can be specified'](assert) {\n this.dispatcher.setup({\n myevent: 'myEvent'\n });\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n myEvent() {\n assert.ok(true, 'custom event was triggered');\n }\n\n }),\n template: \"
Hello!
\"\n });\n this.render(\"{{x-foo}}\");\n this.$('div').trigger('myevent');\n }\n\n ['@test a rootElement can be specified'](assert) {\n this.element.innerHTML = '
'; // this.$().append('
');\n\n this.dispatcher.setup({\n myevent: 'myEvent'\n }, '#app');\n assert.ok(this.$('#app').hasClass('ember-application'), 'custom rootElement was used');\n assert.equal(this.dispatcher.rootElement, '#app', 'the dispatchers rootElement was updated');\n }\n\n ['@test default events can be disabled via `customEvents`'](assert) {\n this.dispatcher.setup({\n click: null\n });\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click() {\n assert.ok(false, 'click method was called');\n },\n\n null() {\n assert.ok(false, 'null method was called');\n },\n\n doubleClick() {\n assert.ok(true, 'a non-disabled event is still handled properly');\n }\n\n }),\n template: \"
Hello!
\"\n });\n this.render(\"{{x-foo}}\");\n this.$('div').trigger('click');\n this.$('div').trigger('dblclick');\n }\n\n ['@test throws if specified rootElement does not exist'](assert) {\n assert.throws(() => {\n this.dispatcher.setup({\n myevent: 'myEvent'\n }, '#app');\n });\n }\n\n });\n\n if (_canaryFeatures.EMBER_IMPROVED_INSTRUMENTATION) {\n (0, _internalTestHelpers.moduleFor)('EventDispatcher - Instrumentation', class extends _internalTestHelpers.RenderingTestCase {\n teardown() {\n super.teardown();\n (0, _instrumentation.reset)();\n }\n\n ['@test instruments triggered events'](assert) {\n let clicked = 0;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click() {\n clicked++;\n }\n\n }),\n template: \"
hello
\"\n });\n this.render(\"{{x-foo}}\");\n this.$('div').trigger('click');\n assert.equal(clicked, 1, 'precond - the click handler was invoked');\n let clickInstrumented = 0;\n (0, _instrumentation.subscribe)('interaction.click', {\n before() {\n clickInstrumented++;\n assert.equal(clicked, 1, 'invoked before event is handled');\n },\n\n after() {\n clickInstrumented++;\n assert.equal(clicked, 2, 'invoked after event is handled');\n }\n\n });\n let keypressInstrumented = 0;\n (0, _instrumentation.subscribe)('interaction.keypress', {\n before() {\n keypressInstrumented++;\n },\n\n after() {\n keypressInstrumented++;\n }\n\n });\n this.$('div').trigger('click');\n this.$('div').trigger('change');\n assert.equal(clicked, 2, 'precond - The click handler was invoked');\n assert.equal(clickInstrumented, 2, 'The click was instrumented');\n assert.strictEqual(keypressInstrumented, 0, 'The keypress was not instrumented');\n }\n\n });\n }\n\n if (canDataTransfer) {\n (0, _internalTestHelpers.moduleFor)('EventDispatcher - Event Properties', class extends _internalTestHelpers.RenderingTestCase {\n ['@test dataTransfer property is added to drop event'](assert) {\n let receivedEvent;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n drop(event) {\n receivedEvent = event;\n }\n\n })\n });\n this.render(\"{{x-foo}}\");\n fireNativeWithDataTransfer(this.$('div')[0], 'drop', 'success');\n assert.equal(receivedEvent.dataTransfer, 'success');\n }\n\n });\n }\n\n if (_views.jQueryDisabled) {\n (0, _internalTestHelpers.moduleFor)('EventDispatcher#native-events', class extends _internalTestHelpers.RenderingTestCase {\n ['@test native events are passed when jQuery is not present'](assert) {\n let receivedEvent;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click(event) {\n receivedEvent = event;\n }\n\n }),\n template: \"
bar \"\n });\n this.render(\"{{x-foo}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#foo').click());\n assert.ok(receivedEvent, 'click event was triggered');\n assert.notOk(receivedEvent.originalEvent, 'event is not a jQuery.Event');\n }\n\n });\n } else {\n (0, _internalTestHelpers.moduleFor)('EventDispatcher#jquery-events', class extends _internalTestHelpers.RenderingTestCase {\n beforeEach() {\n this.jqueryIntegration = window.ENV._JQUERY_INTEGRATION;\n }\n\n afterEach() {\n window.ENV._JQUERY_INTEGRATION = this.jqueryIntegration;\n }\n\n ['@test jQuery events are passed when jQuery is present'](assert) {\n let receivedEvent;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click(event) {\n receivedEvent = event;\n }\n\n }),\n template: \"
bar \"\n });\n this.render(\"{{x-foo}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#foo').click());\n assert.ok(receivedEvent, 'click event was triggered');\n assert.ok(receivedEvent instanceof _views.jQuery.Event, 'event is a jQuery.Event');\n }\n\n [\"@\" + (_utils.HAS_NATIVE_PROXY ? 'test' : 'skip') + \" accessing jQuery.Event#originalEvent is deprecated\"](assert) {\n let receivedEvent;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click(event) {\n receivedEvent = event;\n }\n\n }),\n template: \"
bar \"\n });\n this.render(\"{{x-foo}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#foo').click());\n expectDeprecation(() => {\n let {\n originalEvent\n } = receivedEvent;\n assert.ok(originalEvent, 'jQuery event has originalEvent property');\n assert.equal(originalEvent.type, 'click', 'properties of originalEvent are available');\n }, 'Accessing jQuery.Event specific properties is deprecated. Either use the ember-jquery-legacy addon to normalize events to native events, or explicitly opt into jQuery integration using @ember/optional-features.');\n }\n\n ['@test other jQuery.Event properties do not trigger deprecation'](assert) {\n let receivedEvent;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click(event) {\n receivedEvent = event;\n }\n\n }),\n template: \"
bar \"\n });\n this.render(\"{{x-foo}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#foo').click());\n expectNoDeprecation(() => {\n receivedEvent.stopPropagation();\n receivedEvent.stopImmediatePropagation();\n receivedEvent.preventDefault();\n assert.ok(receivedEvent.bubbles, 'properties of jQuery event are available');\n assert.equal(receivedEvent.type, 'click', 'properties of jQuery event are available');\n });\n }\n\n ['@test accessing jQuery.Event#originalEvent does not trigger deprecations when jquery integration is explicitly enabled'](assert) {\n let receivedEvent;\n window.ENV._JQUERY_INTEGRATION = true;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click(event) {\n receivedEvent = event;\n }\n\n }),\n template: \"
bar \"\n });\n this.render(\"{{x-foo}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#foo').click());\n expectNoDeprecation(() => {\n let {\n originalEvent\n } = receivedEvent;\n assert.ok(originalEvent, 'jQuery event has originalEvent property');\n assert.equal(originalEvent.type, 'click', 'properties of originalEvent are available');\n });\n }\n\n [\"@\" + (_utils.HAS_NATIVE_PROXY && _env.DEBUG ? 'test' : 'skip') + \" accessing jQuery.Event#__originalEvent does not trigger deprecations to support ember-jquery-legacy\"](assert) {\n let receivedEvent;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click(event) {\n receivedEvent = event;\n }\n\n }),\n template: \"
bar \"\n });\n this.render(\"{{x-foo}}\");\n (0, _internalTestHelpers.runTask)(() => this.$('#foo').click());\n expectNoDeprecation(() => {\n let {\n __originalEvent: originalEvent\n } = receivedEvent;\n assert.ok(originalEvent, 'jQuery event has __originalEvent property');\n assert.equal(originalEvent.type, 'click', 'properties of __originalEvent are available');\n });\n }\n\n });\n }\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/-class-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _metal) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{-class}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test casts binding to dasherized class']() {\n this.registerComponent('foo-bar', {\n template: ''\n });\n this.render(\"{{foo-bar class=(-class someTruth \\\"someTruth\\\")}}\", {\n someTruth: true\n });\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n class: (0, _internalTestHelpers.classes)('some-truth ember-view')\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n class: (0, _internalTestHelpers.classes)('some-truth ember-view')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'someTruth', false));\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n class: (0, _internalTestHelpers.classes)('ember-view')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'someTruth', true));\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n class: (0, _internalTestHelpers.classes)('some-truth ember-view')\n }\n });\n }\n\n ['@tests casts leaf path of binding to dasherized class']() {\n this.registerComponent('foo-bar', {\n template: ''\n });\n this.render(\"{{foo-bar class=(-class model.someTruth \\\"someTruth\\\")}}\", {\n model: {\n someTruth: true\n }\n });\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n class: (0, _internalTestHelpers.classes)('some-truth ember-view')\n }\n });\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n class: (0, _internalTestHelpers.classes)('some-truth ember-view')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.someTruth', false));\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n class: (0, _internalTestHelpers.classes)('ember-view')\n }\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n someTruth: true\n }));\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n class: (0, _internalTestHelpers.classes)('some-truth ember-view')\n }\n });\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/array-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_internalTestHelpers, _metal, _helpers) {\n \"use strict\";\n\n function _templateObject11() {\n const data = _taggedTemplateLiteralLoose([\"{{foo-bar people=(array \\\"Tom\\\" personTwo)}}\"]);\n\n _templateObject11 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject10() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each people as |personName|}}\\n {{personName}},\\n {{/each}}\"]);\n\n _templateObject10 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject9() {\n const data = _taggedTemplateLiteralLoose([\"{{foo-bar people=(array \\\"Tom\\\" personTwo)}}\"]);\n\n _templateObject9 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject8() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each people as |personName|}}\\n {{personName}},\\n {{/each}}\"]);\n\n _templateObject8 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject7() {\n const data = _taggedTemplateLiteralLoose([\"{{#foo-bar personTwo=model.personTwo as |values|}}\\n {{#each values.people as |personName|}}\\n {{personName}},\\n {{/each}}\\n {{/foo-bar}}\"]);\n\n _templateObject7 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject6() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#foo-bar as |values|}}\\n {{#each values.people as |personName|}}\\n {{personName}}\\n {{/each}}\\n {{/foo-bar}}\"]);\n\n _templateObject6 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject5() {\n const data = _taggedTemplateLiteralLoose([\"{{#with (array (array personOne personTwo)) as |listOfPeople|}}\\n {{#each listOfPeople as |people|}}\\n List:\\n {{#each people as |personName|}}\\n {{personName}},\\n {{/each}}\\n {{/each}}\\n {{/with}}\"]);\n\n _templateObject5 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject4() {\n const data = _taggedTemplateLiteralLoose([\"{{#with (array personOne personTwo) as |people|}}\\n {{#each people as |personName|}}\\n {{personName}},\\n {{/each}}\\n {{/with}}\"]);\n\n _templateObject4 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject3() {\n const data = _taggedTemplateLiteralLoose([\"{{#with (array personOne) as |people|}}\\n {{#each people as |personName|}}\\n {{personName}}\\n {{/each}}\\n {{/with}}\"]);\n\n _templateObject3 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#with (array \\\"Sergio\\\" \\\"Robert\\\") as |people|}}\\n {{#each people as |personName|}}\\n {{personName}},\\n {{/each}}\\n {{/with}}\"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#with (array \\\"Sergio\\\") as |people|}}\\n {{#each people as |personName|}}\\n {{personName}}\\n {{/each}}\\n {{/with}}\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{array}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test returns an array']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject()));\n this.assertText('Sergio');\n this.assertStableRerender();\n }\n\n ['@test can have more than one value']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject2()));\n this.assertText('Sergio,Robert,');\n this.assertStableRerender();\n }\n\n ['@test binds values when variables are used']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject3()), {\n personOne: 'Tom'\n });\n this.assertText('Tom');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'personOne', 'Yehuda'));\n this.assertText('Yehuda');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'personOne', 'Tom'));\n this.assertText('Tom');\n }\n\n ['@test binds multiple values when variables are used']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject4()), {\n personOne: 'Tom',\n personTwo: 'Yehuda'\n });\n this.assertText('Tom,Yehuda,');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'personOne', 'Sergio'));\n this.assertText('Sergio,Yehuda,');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'personTwo', 'Tom'));\n this.assertText('Sergio,Tom,');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'personOne', 'Tom');\n (0, _metal.set)(this.context, 'personTwo', 'Yehuda');\n });\n this.assertText('Tom,Yehuda,');\n }\n\n ['@test array helpers can be nested']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject5()), {\n personOne: 'Tom',\n personTwo: 'Yehuda'\n });\n this.assertText('List:Tom,Yehuda,');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'personOne', 'Chad'));\n this.assertText('List:Chad,Yehuda,');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'personTwo', 'Balint'));\n this.assertText('List:Chad,Balint,');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'personOne', 'Tom');\n (0, _metal.set)(this.context, 'personTwo', 'Yehuda');\n });\n this.assertText('List:Tom,Yehuda,');\n }\n\n ['@test should yield hash of an array of internal properties']() {\n let fooBarInstance;\n\n let FooBarComponent = _helpers.Component.extend({\n init() {\n this._super();\n\n fooBarInstance = this;\n this.model = {\n personOne: 'Chad'\n };\n }\n\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: \"{{yield (hash people=(array model.personOne))}}\"\n });\n this.render((0, _internalTestHelpers.strip)(_templateObject6()));\n this.assertText('Chad');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(fooBarInstance, 'model.personOne', 'Godfrey'));\n this.assertText('Godfrey');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(fooBarInstance, 'model', {\n personOne: 'Chad'\n }));\n this.assertText('Chad');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(fooBarInstance, 'model.personOne', 'Godfrey'));\n this.assertText('Godfrey');\n }\n\n ['@test should yield hash of an array of internal and external properties']() {\n let fooBarInstance;\n\n let FooBarComponent = _helpers.Component.extend({\n init() {\n this._super();\n\n fooBarInstance = this;\n this.model = {\n personOne: 'Chad'\n };\n }\n\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: \"{{yield (hash people=(array model.personOne personTwo))}}\"\n });\n this.render((0, _internalTestHelpers.strip)(_templateObject7()), {\n model: {\n personTwo: 'Tom'\n }\n });\n this.assertText('Chad,Tom,');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(fooBarInstance, 'model.personOne', 'Godfrey');\n (0, _metal.set)(this.context, 'model.personTwo', 'Yehuda');\n });\n this.assertText('Godfrey,Yehuda,');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(fooBarInstance, 'model', {\n personOne: 'Chad'\n });\n (0, _metal.set)(this.context, 'model', {\n personTwo: 'Tom'\n });\n });\n this.assertText('Chad,Tom,');\n }\n\n ['@test should render when passing as argument to a component invocation']() {\n let FooBarComponent = _helpers.Component.extend({});\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject8())\n });\n this.render((0, _internalTestHelpers.strip)(_templateObject9()), {\n personTwo: 'Chad'\n });\n this.assertText('Tom,Chad,');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'personTwo', 'Godfrey'));\n this.assertText('Tom,Godfrey,');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'personTwo', 'Chad'));\n this.assertText('Tom,Chad,');\n }\n\n ['@test should return an entirely new array when any argument change']() {\n let fooBarInstance;\n\n let FooBarComponent = _helpers.Component.extend({\n init() {\n this._super();\n\n fooBarInstance = this;\n }\n\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject10())\n });\n this.render((0, _internalTestHelpers.strip)(_templateObject11()), {\n personTwo: 'Chad'\n });\n let firstArray = fooBarInstance.people;\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'personTwo', 'Godfrey'));\n this.assert.ok(firstArray !== fooBarInstance.people, 'should have created an entirely new array');\n }\n\n ['@test capture array values in JS to assert deep equal']() {\n let captured;\n this.registerHelper('capture', function ([array]) {\n captured = array;\n return 'captured';\n });\n this.render(\"{{capture (array 'Tom' personTwo)}}\", {\n personTwo: 'Godfrey'\n });\n this.assert.deepEqual(captured, ['Tom', 'Godfrey']);\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'personTwo', 'Robert'));\n this.assert.deepEqual(captured, ['Tom', 'Robert']);\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'personTwo', 'Godfrey'));\n this.assert.deepEqual(captured, ['Tom', 'Godfrey']);\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/closure-action-test\", [\"internal-test-helpers\", \"@ember/instrumentation\", \"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/canary-features\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_internalTestHelpers, _instrumentation, _runloop, _metal, _canaryFeatures, _helpers) {\n \"use strict\";\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n
clicked: {{clicked}}; foo: {{foo}}
\\n\\n {{click-me id=\\\"string-action\\\" onClick=(action \\\"on-click\\\")}}\\n {{click-me id=\\\"function-action\\\" onClick=(action onClick)}}\\n {{click-me id=\\\"mut-action\\\" onClick=(action (mut clicked))}}\\n \"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n if (_canaryFeatures.EMBER_IMPROVED_INSTRUMENTATION) {\n (0, _internalTestHelpers.moduleFor)('Helpers test: closure {{action}} improved instrumentation', class extends _internalTestHelpers.RenderingTestCase {\n subscribe(eventName, options) {\n this.subscriber = (0, _instrumentation.subscribe)(eventName, options);\n }\n\n teardown() {\n if (this.subscriber) {\n (0, _instrumentation.unsubscribe)(this.subscriber);\n }\n\n super.teardown();\n }\n\n ['@test interaction event subscriber should be passed parameters']() {\n let actionParam = 'So krispy';\n let beforeParameters = [];\n let afterParameters = [];\n\n let InnerComponent = _helpers.Component.extend({\n actions: {\n fireAction() {\n this.attrs.submit(actionParam);\n }\n\n }\n });\n\n let OuterComponent = _helpers.Component.extend({\n outerSubmit() {}\n\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: '
What it do '\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n this.subscribe('interaction.ember-action', {\n before(name, timestamp, payload) {\n beforeParameters.push(payload.args);\n },\n\n after(name, timestamp, payload) {\n afterParameters.push(payload.args);\n }\n\n });\n this.render(\"{{outer-component}}\");\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#instrument-button').trigger('click');\n });\n this.assert.deepEqual(beforeParameters, [[], [actionParam]], 'instrumentation subscriber before function was passed closure action parameters');\n this.assert.deepEqual(afterParameters, [[actionParam], []], 'instrumentation subscriber after function was passed closure action parameters');\n }\n\n ['@test interaction event subscriber should be passed target']() {\n let beforeParameters = [];\n let afterParameters = [];\n\n let InnerComponent = _helpers.Component.extend({\n myProperty: 'inner-thing',\n actions: {\n fireAction() {\n this.attrs.submit();\n }\n\n }\n });\n\n let OuterComponent = _helpers.Component.extend({\n myProperty: 'outer-thing',\n\n outerSubmit() {}\n\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: '
What it do '\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n this.subscribe('interaction.ember-action', {\n before(name, timestamp, payload) {\n beforeParameters.push(payload.target.get('myProperty'));\n },\n\n after(name, timestamp, payload) {\n afterParameters.push(payload.target.get('myProperty'));\n }\n\n });\n this.render(\"{{outer-component}}\");\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#instrument-button').trigger('click');\n });\n this.assert.deepEqual(beforeParameters, ['inner-thing', 'outer-thing'], 'instrumentation subscriber before function was passed target');\n this.assert.deepEqual(afterParameters, ['outer-thing', 'inner-thing'], 'instrumentation subscriber after function was passed target');\n }\n\n ['@test instrumented action should return value']() {\n let returnedValue = 'Chris P is so krispy';\n let actualReturnedValue;\n\n let InnerComponent = _helpers.Component.extend({\n actions: {\n fireAction() {\n actualReturnedValue = this.attrs.submit();\n }\n\n }\n });\n\n let OuterComponent = _helpers.Component.extend({\n outerSubmit() {\n return returnedValue;\n }\n\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: '
What it do '\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n this.subscribe('interaction.ember-action', {\n before() {},\n\n after() {}\n\n });\n this.render(\"{{outer-component}}\");\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#instrument-button').trigger('click');\n });\n this.assert.equal(actualReturnedValue, returnedValue, 'action can return to caller');\n }\n\n });\n }\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: closure {{action}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test action should be called']() {\n let outerActionCalled = false;\n let component;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n fireAction() {\n this.attrs.submit();\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n outerSubmit() {\n outerActionCalled = true;\n }\n\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n component.fireAction();\n });\n this.assert.ok(outerActionCalled, 'the action was called');\n }\n\n ['@test an error is triggered when bound action function is undefined']() {\n this.registerComponent('inner-component', {\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n template: '{{inner-component submit=(action somethingThatIsUndefined)}}'\n });\n expectAssertion(() => {\n this.render('{{outer-component}}');\n }, /Action passed is null or undefined in \\(action[^)]*\\) from .*\\./);\n }\n\n ['@test an error is triggered when bound action being passed in is a non-function']() {\n this.registerComponent('inner-component', {\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: _helpers.Component.extend({\n nonFunctionThing: {}\n }),\n template: '{{inner-component submit=(action nonFunctionThing)}}'\n });\n expectAssertion(() => {\n this.render('{{outer-component}}');\n }, /An action could not be made for `.*` in .*\\. Please confirm that you are using either a quoted action name \\(i\\.e\\. `\\(action '.*'\\)`\\) or a function available in .*\\./);\n }\n\n ['@test [#12718] a nice error is shown when a bound action function is undefined and it is passed as attrs.foo']() {\n this.registerComponent('inner-component', {\n template: '
Click me '\n });\n this.registerComponent('outer-component', {\n template: '{{inner-component}}'\n });\n expectAssertion(() => {\n this.render('{{outer-component}}');\n }, /Action passed is null or undefined in \\(action[^)]*\\) from .*\\./);\n }\n\n ['@test action value is returned']() {\n let expectedValue = 'terrible tom';\n let returnedValue;\n let innerComponent;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n returnedValue = this.attrs.submit();\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n outerSubmit() {\n return expectedValue;\n }\n\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.equal(returnedValue, expectedValue, 'action can return to caller');\n }\n\n ['@test action should be called on the correct scope']() {\n let innerComponent;\n let outerComponent;\n let actualComponent;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit();\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n outerComponent = this;\n },\n\n isOuterComponent: true,\n\n outerSubmit() {\n actualComponent = this;\n }\n\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.equal(actualComponent, outerComponent, 'action has the correct context');\n this.assert.ok(actualComponent.isOuterComponent, 'action has the correct context');\n }\n\n ['@test arguments to action are passed, curry']() {\n let first = 'mitch';\n let second = 'martin';\n let third = 'matt';\n let fourth = 'wacky wycats';\n let innerComponent;\n let actualArgs;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit(fourth);\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n third,\n\n outerSubmit() {\n // eslint-disable-line no-unused-vars\n actualArgs = [...arguments];\n }\n\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action (action outerSubmit \\\"\" + first + \"\\\") \\\"\" + second + \"\\\" third)}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.deepEqual(actualArgs, [first, second, third, fourth], 'action has the correct args');\n }\n\n ['@test `this` can be passed as an argument']() {\n let value = {};\n let component;\n let innerComponent;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit();\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n actions: {\n outerAction(incomingValue) {\n value = incomingValue;\n }\n\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action \"outerAction\" this)}}'\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.strictEqual(value, component, 'the component is passed at `this`');\n }\n\n ['@test arguments to action are bound']() {\n let value = 'lazy leah';\n let innerComponent;\n let outerComponent;\n let actualArg;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit();\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n outerComponent = this;\n },\n\n value: '',\n\n outerSubmit(incomingValue) {\n actualArg = incomingValue;\n }\n\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action outerSubmit value)}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.strictEqual(actualArg, '', 'action has the correct first arg');\n (0, _internalTestHelpers.runTask)(() => {\n outerComponent.set('value', value);\n });\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.strictEqual(actualArg, value, 'action has the correct first arg');\n }\n\n ['@test array arguments are passed correctly to action']() {\n let first = 'foo';\n let second = [3, 5];\n let third = [4, 9];\n let actualFirst;\n let actualSecond;\n let actualThird;\n let innerComponent;\n let outerComponent;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit(second, third);\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n outerComponent = this;\n },\n\n outerSubmit(incomingFirst, incomingSecond, incomingThird) {\n actualFirst = incomingFirst;\n actualSecond = incomingSecond;\n actualThird = incomingThird;\n }\n\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action outerSubmit first)}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n outerComponent.set('first', first);\n outerComponent.set('second', second);\n });\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.equal(actualFirst, first, 'action has the correct first arg');\n this.assert.equal(actualSecond, second, 'action has the correct second arg');\n this.assert.equal(actualThird, third, 'action has the correct third arg');\n }\n\n ['@test mut values can be wrapped in actions, are settable']() {\n let newValue = 'trollin trek';\n let innerComponent;\n let outerComponent;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit(newValue);\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n outerComponent = this;\n },\n\n outerMut: 'patient peter'\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action (mut outerMut))}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.equal(outerComponent.get('outerMut'), newValue, 'mut value is set');\n }\n\n ['@test mut values can be wrapped in actions, are settable with a curry']() {\n let newValue = 'trollin trek';\n let innerComponent;\n let outerComponent;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit();\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n outerComponent = this;\n },\n\n outerMut: 'patient peter'\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action (mut outerMut) '\" + newValue + \"')}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.equal(outerComponent.get('outerMut'), newValue, 'mut value is set');\n }\n\n ['@test action can create closures over actions']() {\n let first = 'raging robert';\n let second = 'mild machty';\n let returnValue = 'butch brian';\n let actualFirst;\n let actualSecond;\n let actualReturnedValue;\n let innerComponent;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n actualReturnedValue = this.attrs.submit(second);\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n actions: {\n outerAction(incomingFirst, incomingSecond) {\n actualFirst = incomingFirst;\n actualSecond = incomingSecond;\n return returnValue;\n }\n\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action 'outerAction' '\" + first + \"')}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.equal(actualReturnedValue, returnValue, 'return value is present');\n this.assert.equal(actualFirst, first, 'first argument is correct');\n this.assert.equal(actualSecond, second, 'second argument is correct');\n }\n\n ['@test provides a helpful error if an action is not present']() {\n let InnerComponent = _helpers.Component.extend({});\n\n let OuterComponent = _helpers.Component.extend({\n actions: {\n something() {// this is present to ensure `actions` hash is present\n // a different error is triggered if `actions` is missing\n // completely\n }\n\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action 'doesNotExist')}}\"\n });\n expectAssertion(() => {\n this.render('{{outer-component}}');\n }, /An action named 'doesNotExist' was not found in /);\n }\n\n ['@test provides a helpful error if actions hash is not present']() {\n let InnerComponent = _helpers.Component.extend({});\n\n let OuterComponent = _helpers.Component.extend({});\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action 'doesNotExist')}}\"\n });\n expectAssertion(() => {\n this.render('{{outer-component}}');\n }, /An action named 'doesNotExist' was not found in /);\n }\n\n ['@test action can create closures over actions with target']() {\n let innerComponent;\n let actionCalled = false;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit();\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n otherComponent: (0, _metal.computed)(function () {\n return {\n actions: {\n outerAction() {\n actionCalled = true;\n }\n\n }\n };\n })\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action 'outerAction' target=otherComponent)}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.ok(actionCalled, 'action called on otherComponent');\n }\n\n ['@test value can be used with action over actions']() {\n let newValue = 'yelping yehuda';\n let innerComponent;\n let actualValue;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit({\n readProp: newValue\n });\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n outerContent: {\n readProp: newValue\n },\n actions: {\n outerAction(incomingValue) {\n actualValue = incomingValue;\n }\n\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action 'outerAction' value=\\\"readProp\\\")}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.equal(actualValue, newValue, 'value is read');\n }\n\n ['@test action will read the value of a first property']() {\n let newValue = 'irate igor';\n let innerComponent;\n let actualValue;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit({\n readProp: newValue\n });\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n outerAction(incomingValue) {\n actualValue = incomingValue;\n }\n\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action outerAction value=\\\"readProp\\\")}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.equal(actualValue, newValue, 'property is read');\n }\n\n ['@test action will read the value of a curried first argument property']() {\n let newValue = 'kissing kris';\n let innerComponent;\n let actualValue;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit();\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n objectArgument: {\n readProp: newValue\n },\n\n outerAction(incomingValue) {\n actualValue = incomingValue;\n }\n\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action outerAction objectArgument value=\\\"readProp\\\")}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.equal(actualValue, newValue, 'property is read');\n }\n\n ['@test action closure does not get auto-mut wrapped'](assert) {\n let first = 'raging robert';\n let second = 'mild machty';\n let returnValue = 'butch brian';\n let innerComponent;\n let actualFirst;\n let actualSecond;\n let actualReturnedValue;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.get('submit')(second);\n this.get('attrs-submit')(second);\n let attrsSubmitReturnValue = this.attrs['attrs-submit'](second);\n let submitReturnValue = this.attrs.submit(second);\n assert.equal(attrsSubmitReturnValue, submitReturnValue, 'both attrs.foo and foo should behave the same');\n return submitReturnValue;\n }\n\n });\n\n let MiddleComponent = _helpers.Component.extend({});\n\n let OuterComponent = _helpers.Component.extend({\n actions: {\n outerAction(incomingFirst, incomingSecond) {\n actualFirst = incomingFirst;\n actualSecond = incomingSecond;\n return returnValue;\n }\n\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('middle-component', {\n ComponentClass: MiddleComponent,\n template: \"{{inner-component attrs-submit=attrs.submit submit=submit}}\"\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{middle-component submit=(action 'outerAction' '\" + first + \"')}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n actualReturnedValue = innerComponent.fireAction();\n });\n this.assert.equal(actualFirst, first, 'first argument is correct');\n this.assert.equal(actualSecond, second, 'second argument is correct');\n this.assert.equal(actualReturnedValue, returnValue, 'return value is present');\n }\n\n ['@test action should be called within a run loop']() {\n let innerComponent;\n let capturedRunLoop;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n this.attrs.submit();\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n actions: {\n submit() {\n capturedRunLoop = (0, _runloop.getCurrentRunLoop)();\n }\n\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action 'submit')}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.ok(capturedRunLoop, 'action is called within a run loop');\n }\n\n ['@test objects that define INVOKE can be casted to actions']() {\n let innerComponent;\n let actionArgs;\n let invokableArgs;\n\n let InnerComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n innerComponent = this;\n },\n\n fireAction() {\n actionArgs = this.attrs.submit(4, 5, 6);\n }\n\n });\n\n let OuterComponent = _helpers.Component.extend({\n foo: 123,\n submitTask: (0, _metal.computed)(function () {\n return {\n [_helpers.INVOKE]: (...args) => {\n invokableArgs = args;\n return this.foo;\n }\n };\n })\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: \"{{inner-component submit=(action submitTask 1 2 3)}}\"\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n innerComponent.fireAction();\n });\n this.assert.equal(actionArgs, 123);\n this.assert.deepEqual(invokableArgs, [1, 2, 3, 4, 5, 6]);\n }\n\n ['@test closure action with `(mut undefinedThing)` works properly [GH#13959]']() {\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n label: undefined,\n\n init() {\n this._super(...arguments);\n\n component = this;\n }\n\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
{{if label label \"Click me\"}} '\n });\n this.render('{{example-component}}');\n this.assertText('Click me');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assertText('Clicked!');\n (0, _internalTestHelpers.runTask)(() => {\n component.set('label', 'Dun clicked');\n });\n this.assertText('Dun clicked');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assertText('Clicked!');\n (0, _internalTestHelpers.runTask)(() => {\n component.set('label', undefined);\n });\n this.assertText('Click me');\n }\n\n ['@test closure actions does not cause component hooks to fire unnecessarily [GH#14305] [GH#14654]'](assert) {\n let clicked = 0;\n let didReceiveAttrsFired = 0;\n\n let ClickMeComponent = _helpers.Component.extend({\n tagName: 'button',\n\n click() {\n this.get('onClick').call(undefined, ++clicked);\n },\n\n didReceiveAttrs() {\n didReceiveAttrsFired++;\n }\n\n });\n\n this.registerComponent('click-me', {\n ComponentClass: ClickMeComponent\n });\n let outer;\n\n let OuterComponent = _helpers.Component.extend({\n clicked: 0,\n actions: {\n 'on-click': function () {\n this.incrementProperty('clicked');\n }\n },\n\n init() {\n this._super();\n\n outer = this;\n this.set('onClick', () => this.incrementProperty('clicked'));\n }\n\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject())\n });\n this.render('{{outer-component foo=foo}}', {\n foo: 1\n });\n this.assertText('clicked: 0; foo: 1');\n assert.equal(didReceiveAttrsFired, 3);\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('clicked: 0; foo: 1');\n assert.equal(didReceiveAttrsFired, 3);\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', 2));\n this.assertText('clicked: 0; foo: 2');\n assert.equal(didReceiveAttrsFired, 3);\n (0, _internalTestHelpers.runTask)(() => this.$('#string-action').click());\n this.assertText('clicked: 1; foo: 2');\n assert.equal(didReceiveAttrsFired, 3);\n (0, _internalTestHelpers.runTask)(() => this.$('#function-action').click());\n this.assertText('clicked: 2; foo: 2');\n assert.equal(didReceiveAttrsFired, 3);\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(outer, 'onClick', function () {\n outer.incrementProperty('clicked');\n }));\n this.assertText('clicked: 2; foo: 2');\n assert.equal(didReceiveAttrsFired, 3);\n (0, _internalTestHelpers.runTask)(() => this.$('#function-action').click());\n this.assertText('clicked: 3; foo: 2');\n assert.equal(didReceiveAttrsFired, 3);\n (0, _internalTestHelpers.runTask)(() => this.$('#mut-action').click());\n this.assertText('clicked: 4; foo: 2');\n assert.equal(didReceiveAttrsFired, 3);\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/concat-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _metal) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{concat}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test it concats static arguments']() {\n this.render(\"{{concat \\\"foo\\\" \\\" \\\" \\\"bar\\\" \\\" \\\" \\\"baz\\\"}}\");\n this.assertText('foo bar baz');\n }\n\n ['@test it updates for bound arguments']() {\n this.render(\"{{concat model.first model.second}}\", {\n model: {\n first: 'one',\n second: 'two'\n }\n });\n this.assertText('onetwo');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('onetwo');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.first', 'three'));\n this.assertText('threetwo');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.second', 'four'));\n this.assertText('threefour');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n first: 'one',\n second: 'two'\n }));\n this.assertText('onetwo');\n }\n\n ['@test it can be used as a sub-expression']() {\n this.render(\"{{concat (concat model.first model.second) (concat model.third model.fourth)}}\", {\n model: {\n first: 'one',\n second: 'two',\n third: 'three',\n fourth: 'four'\n }\n });\n this.assertText('onetwothreefour');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('onetwothreefour');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.first', 'five'));\n this.assertText('fivetwothreefour');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'model.second', 'six');\n (0, _metal.set)(this.context, 'model.third', 'seven');\n });\n this.assertText('fivesixsevenfour');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'model', {\n first: 'one',\n second: 'two',\n third: 'three',\n fourth: 'four'\n });\n });\n this.assertText('onetwothreefour');\n }\n\n ['@test it can be used as input for other helpers']() {\n this.registerHelper('x-eq', ([actual, expected]) => actual === expected);\n this.render(\"{{#if (x-eq (concat model.first model.second) \\\"onetwo\\\")}}Truthy!{{else}}False{{/if}}\", {\n model: {\n first: 'one',\n second: 'two'\n }\n });\n this.assertText('Truthy!');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Truthy!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.first', 'three'));\n this.assertText('False');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n first: 'one',\n second: 'two'\n }));\n this.assertText('Truthy!');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/custom-helper-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _metal) {\n \"use strict\";\n\n /* globals EmberDev */\n (0, _internalTestHelpers.moduleFor)('Helpers test: custom helpers', class extends _internalTestHelpers.RenderingTestCase {\n ['@test it cannot override built-in syntax']() {\n this.registerHelper('if', () => 'Nope');\n expectAssertion(() => {\n this.render(\"{{if foo 'LOL'}}\", {\n foo: true\n });\n }, /You attempted to overwrite the built-in helper \\\"if\\\" which is not allowed. Please rename the helper./);\n }\n\n ['@test it can resolve custom simple helpers with or without dashes']() {\n this.registerHelper('hello', () => 'hello');\n this.registerHelper('hello-world', () => 'hello world');\n this.render('{{hello}} | {{hello-world}}');\n this.assertText('hello | hello world');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('hello | hello world');\n }\n\n ['@test it does not resolve helpers with a `.` (period)']() {\n this.registerHelper('hello.world', () => 'hello world');\n this.render('{{hello.world}}', {\n hello: {\n world: ''\n }\n });\n this.assertText('');\n this.assertStableRerender();\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'hello', {\n world: 'hello world!'\n }));\n this.assertText('hello world!');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'hello', {\n world: ''\n });\n });\n this.assertText('');\n }\n\n ['@test it can resolve custom class-based helpers with or without dashes']() {\n this.registerHelper('hello', {\n compute() {\n return 'hello';\n }\n\n });\n this.registerHelper('hello-world', {\n compute() {\n return 'hello world';\n }\n\n });\n this.render('{{hello}} | {{hello-world}}');\n this.assertText('hello | hello world');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('hello | hello world');\n }\n\n ['@test throws if `this._super` is not called from `init`']() {\n this.registerHelper('hello-world', {\n init() {}\n\n });\n expectAssertion(() => {\n this.render('{{hello-world}}');\n }, /You must call `this._super\\(...arguments\\);` when overriding `init` on a framework object. Please update .* to call `this._super\\(...arguments\\);` from `init`./);\n }\n\n ['@test class-based helper can recompute a new value'](assert) {\n let destroyCount = 0;\n let computeCount = 0;\n let helper;\n this.registerHelper('hello-world', {\n init() {\n this._super(...arguments);\n\n helper = this;\n },\n\n compute() {\n return ++computeCount;\n },\n\n destroy() {\n destroyCount++;\n\n this._super();\n }\n\n });\n this.render('{{hello-world}}');\n this.assertText('1');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('1');\n (0, _internalTestHelpers.runTask)(() => helper.recompute());\n this.assertText('2');\n assert.strictEqual(destroyCount, 0, 'destroy is not called on recomputation');\n }\n\n ['@test class-based helper with static arguments can recompute a new value'](assert) {\n let destroyCount = 0;\n let computeCount = 0;\n let helper;\n this.registerHelper('hello-world', {\n init() {\n this._super(...arguments);\n\n helper = this;\n },\n\n compute() {\n return ++computeCount;\n },\n\n destroy() {\n destroyCount++;\n\n this._super();\n }\n\n });\n this.render('{{hello-world \"whut\"}}');\n this.assertText('1');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('1');\n (0, _internalTestHelpers.runTask)(() => helper.recompute());\n this.assertText('2');\n assert.strictEqual(destroyCount, 0, 'destroy is not called on recomputation');\n }\n\n ['@test helper params can be returned']() {\n this.registerHelper('hello-world', values => {\n return values;\n });\n this.render('{{#each (hello-world model) as |item|}}({{item}}){{/each}}', {\n model: ['bob']\n });\n this.assertText('(bob)');\n }\n\n ['@test helper hash can be returned']() {\n this.registerHelper('hello-world', (_, hash) => {\n return hash.model;\n });\n this.render(\"{{get (hello-world model=model) 'name'}}\", {\n model: {\n name: 'bob'\n }\n });\n this.assertText('bob');\n }\n\n ['@test simple helper is called for param changes'](assert) {\n let computeCount = 0;\n this.registerHelper('hello-world', ([value]) => {\n computeCount++;\n return value + \"-value\";\n });\n this.render('{{hello-world model.name}}', {\n model: {\n name: 'bob'\n }\n });\n this.assertText('bob-value');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('bob-value');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.name', 'sal'));\n this.assertText('sal-value');\n assert.strictEqual(computeCount, 2, 'compute is called exactly 2 times');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n name: 'bob'\n }));\n this.assertText('bob-value');\n assert.strictEqual(computeCount, 3, 'compute is called exactly 3 times');\n }\n\n ['@test class-based helper compute is called for param changes'](assert) {\n let createCount = 0;\n let computeCount = 0;\n this.registerHelper('hello-world', {\n init() {\n this._super(...arguments);\n\n createCount++;\n },\n\n compute([value]) {\n computeCount++;\n return value + \"-value\";\n }\n\n });\n this.render('{{hello-world model.name}}', {\n model: {\n name: 'bob'\n }\n });\n this.assertText('bob-value');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('bob-value');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.name', 'sal'));\n this.assertText('sal-value');\n assert.strictEqual(computeCount, 2, 'compute is called exactly 2 times');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n name: 'bob'\n }));\n this.assertText('bob-value');\n assert.strictEqual(computeCount, 3, 'compute is called exactly 3 times');\n assert.strictEqual(createCount, 1, 'helper is only created once');\n }\n\n ['@test simple helper receives params, hash']() {\n this.registerHelper('hello-world', (_params, _hash) => {\n return \"params: \" + JSON.stringify(_params) + \", hash: \" + JSON.stringify(_hash);\n });\n this.render('{{hello-world model.name \"rich\" first=model.age last=\"sam\"}}', {\n model: {\n name: 'bob',\n age: 42\n }\n });\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.name', 'sal'));\n this.assertText('params: [\"sal\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.age', 28));\n this.assertText('params: [\"sal\",\"rich\"], hash: {\"first\":28,\"last\":\"sam\"}');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n name: 'bob',\n age: 42\n }));\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n }\n\n ['@test class-based helper receives params, hash']() {\n this.registerHelper('hello-world', {\n compute(_params, _hash) {\n return \"params: \" + JSON.stringify(_params) + \", hash: \" + JSON.stringify(_hash);\n }\n\n });\n this.render('{{hello-world model.name \"rich\" first=model.age last=\"sam\"}}', {\n model: {\n name: 'bob',\n age: 42\n }\n });\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.name', 'sal'));\n this.assertText('params: [\"sal\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.age', 28));\n this.assertText('params: [\"sal\",\"rich\"], hash: {\"first\":28,\"last\":\"sam\"}');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n name: 'bob',\n age: 42\n }));\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n }\n\n ['@test class-based helper usable in subexpressions']() {\n this.registerHelper('join-words', {\n compute(params) {\n return params.join(' ');\n }\n\n });\n this.render(\"{{join-words \\\"Who\\\"\\n (join-words \\\"overcomes\\\" \\\"by\\\")\\n model.reason\\n (join-words (join-words \\\"hath overcome but\\\" \\\"half\\\"))\\n (join-words \\\"his\\\" (join-words \\\"foe\\\"))}}\", {\n model: {\n reason: 'force'\n }\n });\n this.assertText('Who overcomes by force hath overcome but half his foe');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Who overcomes by force hath overcome but half his foe');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.reason', 'Nickleback'));\n this.assertText('Who overcomes by Nickleback hath overcome but half his foe');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n reason: 'force'\n }));\n this.assertText('Who overcomes by force hath overcome but half his foe');\n }\n\n ['@test parameterless helper is usable in subexpressions']() {\n this.registerHelper('should-show', () => {\n return true;\n });\n this.render(\"{{#if (should-show)}}true{{/if}}\");\n this.assertText('true');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('true');\n }\n\n ['@test parameterless helper is usable in attributes']() {\n this.registerHelper('foo-bar', () => {\n return 'baz';\n });\n this.render(\"
\");\n this.assertHTML('
');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertHTML('
');\n }\n\n ['@test simple helper not usable with a block']() {\n this.registerHelper('some-helper', () => {});\n expectAssertion(() => {\n this.render(\"{{#some-helper}}{{/some-helper}}\");\n }, /Helpers may not be used in the block form/);\n }\n\n ['@test class-based helper not usable with a block']() {\n this.registerHelper('some-helper', {\n compute() {}\n\n });\n expectAssertion(() => {\n this.render(\"{{#some-helper}}{{/some-helper}}\");\n }, /Helpers may not be used in the block form/);\n }\n\n ['@test simple helper not usable within element']() {\n this.registerHelper('some-helper', () => {});\n this.assert.throws(() => {\n this.render(\"
\");\n }, /Compile Error some-helper is not a modifier: Helpers may not be used in the element form/);\n }\n\n ['@test class-based helper not usable within element']() {\n this.registerHelper('some-helper', {\n compute() {}\n\n });\n this.assert.throws(() => {\n this.render(\"
\");\n }, /Compile Error some-helper is not a modifier: Helpers may not be used in the element form/);\n }\n\n ['@test class-based helper is torn down'](assert) {\n let destroyCalled = 0;\n this.registerHelper('some-helper', {\n destroy() {\n destroyCalled++;\n\n this._super(...arguments);\n },\n\n compute() {\n return 'must define a compute';\n }\n\n });\n this.render(\"{{some-helper}}\");\n (0, _internalTestHelpers.runDestroy)(this.component);\n assert.strictEqual(destroyCalled, 1, 'destroy called once');\n }\n\n ['@test class-based helper used in subexpression can recompute']() {\n let helper;\n let phrase = 'overcomes by';\n this.registerHelper('dynamic-segment', {\n init() {\n this._super(...arguments);\n\n helper = this;\n },\n\n compute() {\n return phrase;\n }\n\n });\n this.registerHelper('join-words', {\n compute(params) {\n return params.join(' ');\n }\n\n });\n this.render(\"{{join-words \\\"Who\\\"\\n (dynamic-segment)\\n \\\"force\\\"\\n (join-words (join-words \\\"hath overcome but\\\" \\\"half\\\"))\\n (join-words \\\"his\\\" (join-words \\\"foe\\\"))}}\");\n this.assertText('Who overcomes by force hath overcome but half his foe');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Who overcomes by force hath overcome but half his foe');\n phrase = 'believes his';\n (0, _internalTestHelpers.runTask)(() => helper.recompute());\n this.assertText('Who believes his force hath overcome but half his foe');\n phrase = 'overcomes by';\n (0, _internalTestHelpers.runTask)(() => helper.recompute());\n this.assertText('Who overcomes by force hath overcome but half his foe');\n }\n\n ['@test class-based helper used in subexpression can recompute component']() {\n let helper;\n let phrase = 'overcomes by';\n this.registerHelper('dynamic-segment', {\n init() {\n this._super(...arguments);\n\n helper = this;\n },\n\n compute() {\n return phrase;\n }\n\n });\n this.registerHelper('join-words', {\n compute(params) {\n return params.join(' ');\n }\n\n });\n this.registerComponent('some-component', {\n template: '{{first}} {{second}} {{third}} {{fourth}} {{fifth}}'\n });\n this.render(\"{{some-component first=\\\"Who\\\"\\n second=(dynamic-segment)\\n third=\\\"force\\\"\\n fourth=(join-words (join-words \\\"hath overcome but\\\" \\\"half\\\"))\\n fifth=(join-words \\\"his\\\" (join-words \\\"foe\\\"))}}\");\n this.assertText('Who overcomes by force hath overcome but half his foe');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Who overcomes by force hath overcome but half his foe');\n phrase = 'believes his';\n (0, _internalTestHelpers.runTask)(() => helper.recompute());\n this.assertText('Who believes his force hath overcome but half his foe');\n phrase = 'overcomes by';\n (0, _internalTestHelpers.runTask)(() => helper.recompute());\n this.assertText('Who overcomes by force hath overcome but half his foe');\n }\n\n ['@test class-based helper used in subexpression is destroyed'](assert) {\n let destroyCount = 0;\n this.registerHelper('dynamic-segment', {\n phrase: 'overcomes by',\n\n init() {\n this._super(...arguments);\n },\n\n compute() {\n return this.phrase;\n },\n\n destroy() {\n destroyCount++;\n\n this._super(...arguments);\n }\n\n });\n this.registerHelper('join-words', {\n compute(params) {\n return params.join(' ');\n }\n\n });\n this.render(\"{{join-words \\\"Who\\\"\\n (dynamic-segment)\\n \\\"force\\\"\\n (join-words (join-words \\\"hath overcome but\\\" \\\"half\\\"))\\n (join-words \\\"his\\\" (join-words \\\"foe\\\"))}}\");\n (0, _internalTestHelpers.runDestroy)(this.component);\n assert.equal(destroyCount, 1, 'destroy is called after a view is destroyed');\n }\n\n ['@test simple helper can be invoked manually via `owner.factoryFor(...).create().compute()'](assert) {\n this.registerHelper('some-helper', () => {\n assert.ok(true, 'some-helper helper invoked');\n return 'lolol';\n });\n let instance = this.owner.factoryFor('helper:some-helper').create();\n assert.equal(typeof instance.compute, 'function', 'expected instance.compute to be present');\n assert.equal(instance.compute(), 'lolol', 'can invoke `.compute`');\n }\n\n ['@test class-based helper can be invoked manually via `owner.factoryFor(...).create().compute()'](assert) {\n this.registerHelper('some-helper', {\n compute() {\n assert.ok(true, 'some-helper helper invoked');\n return 'lolol';\n }\n\n });\n let instance = this.owner.factoryFor('helper:some-helper').create();\n assert.equal(typeof instance.compute, 'function', 'expected instance.compute to be present');\n assert.equal(instance.compute(), 'lolol', 'can invoke `.compute`');\n }\n\n });\n\n if (!EmberDev.runningProdBuild) {\n class HelperMutatingArgsTests extends _internalTestHelpers.RenderingTestCase {\n buildCompute() {\n return (params, hash) => {\n this.assert.throws(() => {\n params.push('foo'); // cannot assert error message as it varies by platform\n });\n this.assert.throws(() => {\n hash.foo = 'bar'; // cannot assert error message as it varies by platform\n });\n this.assert.throws(() => {\n hash.someUnusedHashProperty = 'bar'; // cannot assert error message as it varies by platform\n });\n };\n }\n\n ['@test cannot mutate params - no positional specified / named specified']() {\n this.render('{{test-helper foo=bar}}', {\n bar: 'derp'\n });\n }\n\n ['@test cannot mutate params - positional specified / no named specified']() {\n this.render('{{test-helper bar}}', {\n bar: 'derp'\n });\n }\n\n ['@test cannot mutate params - positional specified / named specified']() {\n this.render('{{test-helper bar foo=qux}}', {\n bar: 'derp',\n qux: 'baz'\n });\n }\n\n ['@test cannot mutate params - no positional specified / no named specified']() {\n this.render('{{test-helper}}', {\n bar: 'derp',\n qux: 'baz'\n });\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: mutation triggers errors - class based helper', class extends HelperMutatingArgsTests {\n constructor() {\n super(...arguments);\n let compute = this.buildCompute();\n this.registerHelper('test-helper', {\n compute\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Helpers test: mutation triggers errors - simple helper', class extends HelperMutatingArgsTests {\n constructor() {\n super(...arguments);\n let compute = this.buildCompute();\n this.registerHelper('test-helper', compute);\n }\n\n });\n }\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/element-action-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/instrumentation\", \"@ember/canary-features\", \"@ember/-internals/runtime\", \"@ember/-internals/views\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_internalTestHelpers, _metal, _instrumentation, _canaryFeatures, _runtime, _views, _helpers) {\n \"use strict\";\n\n function _templateObject8() {\n const data = _taggedTemplateLiteralLoose([\"\\n
Click Me \\n {{yield}}\\n \"]);\n\n _templateObject8 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject7() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#middle-component}}\\n {{inner-component action=\\\"hey\\\"}}\\n {{/middle-component}}\\n \"]);\n\n _templateObject7 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject6() {\n const data = _taggedTemplateLiteralLoose([\"\\n
click me \"]);\n\n _templateObject6 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject5() {\n const data = _taggedTemplateLiteralLoose([\"\\n
click me \"]);\n\n _templateObject5 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject4() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#target-component as |aTarget|}}\\n
click me \\n {{/target-component}}\\n \"]);\n\n _templateObject4 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject3() {\n const data = _taggedTemplateLiteralLoose([\"\\n
click me \"]);\n\n _templateObject3 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#target-component as |parent|}}\\n {{other-component anotherTarget=parent}}\\n {{/target-component}}\\n \"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#inner-component}}\\n
Wat me! \\n {{/inner-component}}\\n \"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n function getActionAttributes(element) {\n let attributes = element.attributes;\n let actionAttrs = [];\n\n for (let i = 0; i < attributes.length; i++) {\n let attr = attributes.item(i);\n\n if (attr.name.indexOf('data-ember-action-') === 0) {\n actionAttrs.push(attr.name);\n }\n }\n\n return actionAttrs;\n }\n\n function getActionIds(element) {\n return getActionAttributes(element).map(attribute => attribute.slice('data-ember-action-'.length));\n }\n\n const isIE11 = !window.ActiveXObject && 'ActiveXObject' in window;\n\n if (_canaryFeatures.EMBER_IMPROVED_INSTRUMENTATION) {\n (0, _internalTestHelpers.moduleFor)('Helpers test: element action instrumentation', class extends _internalTestHelpers.RenderingTestCase {\n teardown() {\n super.teardown();\n (0, _instrumentation.reset)();\n }\n\n ['@test action should fire interaction event with proper params']() {\n let subscriberCallCount = 0;\n let subscriberPayload = null;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n foo() {}\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
Click me '\n });\n (0, _instrumentation.subscribe)('interaction.ember-action', {\n before() {\n subscriberCallCount++;\n },\n\n after(name, time, payload) {\n subscriberPayload = payload;\n }\n\n });\n this.render('{{example-component}}');\n this.assert.equal(subscriberCallCount, 0, 'subscriber has not been called');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assert.equal(subscriberCallCount, 0, 'subscriber has not been called');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.equal(subscriberCallCount, 1, 'subscriber has been called 1 time');\n this.assert.equal(subscriberPayload.name, 'foo', 'subscriber called with correct name');\n this.assert.equal(subscriberPayload.args[0], 'bar', 'subscriber called with correct args');\n }\n\n });\n }\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: element action', class extends _internalTestHelpers.RenderingTestCase {\n ['@test it can call an action on its enclosing component']() {\n let fooCallCount = 0;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n foo() {\n fooCallCount++;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
Click me '\n });\n this.render('{{example-component}}');\n this.assert.equal(fooCallCount, 0, 'foo has not been called');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assert.equal(fooCallCount, 0, 'foo has not been called');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.equal(fooCallCount, 1, 'foo has been called 1 time');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.equal(fooCallCount, 2, 'foo has been called 2 times');\n }\n\n ['@test it can call an action with parameters']() {\n let fooArgs = [];\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n member: 'a',\n\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n actions: {\n foo(thing) {\n fooArgs.push(thing);\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
Click me '\n });\n this.render('{{example-component}}');\n this.assert.deepEqual(fooArgs, [], 'foo has not been called');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assert.deepEqual(fooArgs, [], 'foo has not been called');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.deepEqual(fooArgs, ['a'], 'foo has not been called');\n (0, _internalTestHelpers.runTask)(() => {\n component.set('member', 'b');\n });\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.deepEqual(fooArgs, ['a', 'b'], 'foo has been called with an updated value');\n }\n\n ['@test it should output a marker attribute with a guid']() {\n this.render('
me the money ');\n let button = this.$('button');\n let attributes = getActionAttributes(button[0]);\n this.assert.ok(button.attr('data-ember-action').match(''), 'An empty data-ember-action attribute was added');\n this.assert.ok(attributes[0].match(/data-ember-action-\\d+/), 'A data-ember-action-xyz attribute with a guid was added');\n }\n\n ['@test it should allow alternative events to be handled']() {\n let showCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n show() {\n showCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
'\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#show').trigger('mouseup');\n });\n this.assert.ok(showCalled, 'show action was called on mouseUp');\n }\n\n ['@test inside a yield, the target points at the original target']() {\n let targetWatted = false;\n let innerWatted = false;\n\n let TargetComponent = _helpers.Component.extend({\n actions: {\n wat() {\n targetWatted = true;\n }\n\n }\n });\n\n let InnerComponent = _helpers.Component.extend({\n actions: {\n wat() {\n innerWatted = true;\n }\n\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: '{{yield}}'\n });\n this.registerComponent('target-component', {\n ComponentClass: TargetComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject())\n });\n this.render('{{target-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.ok(targetWatted, 'the correct target was watted');\n this.assert.notOk(innerWatted, 'the inner target was not watted');\n }\n\n ['@test it should allow a target to be specified']() {\n let targetWatted = false;\n\n let TargetComponent = _helpers.Component.extend({\n actions: {\n wat() {\n targetWatted = true;\n }\n\n }\n });\n\n let OtherComponent = _helpers.Component.extend({});\n\n this.registerComponent('target-component', {\n ComponentClass: TargetComponent,\n template: '{{yield this}}'\n });\n this.registerComponent('other-component', {\n ComponentClass: OtherComponent,\n template: '
Wat? '\n });\n this.render((0, _internalTestHelpers.strip)(_templateObject2()));\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').click();\n });\n this.assert.equal(targetWatted, true, 'the specified target was watted');\n }\n\n ['@test it should lazily evaluate the target']() {\n let firstEdit = 0;\n let secondEdit = 0;\n let component;\n let first = {\n edit() {\n firstEdit++;\n }\n\n };\n let second = {\n edit() {\n secondEdit++;\n }\n\n };\n\n let ExampleComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n theTarget: first\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
Edit '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').click();\n });\n this.assert.equal(firstEdit, 1);\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(component, 'theTarget', second);\n });\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').click();\n });\n this.assert.equal(firstEdit, 1);\n this.assert.equal(secondEdit, 1);\n }\n\n ['@test it should register an event handler']() {\n let editHandlerWasCalled = false;\n let shortcutHandlerWasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n edit() {\n editHandlerWasCalled = true;\n },\n\n shortcut() {\n shortcutHandlerWasCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
click me click me too
'\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a[data-ember-action]').trigger('click', {\n altKey: true\n });\n });\n this.assert.equal(editHandlerWasCalled, true, 'the event handler was called');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('div[data-ember-action]').trigger('click', {\n ctrlKey: true\n });\n });\n this.assert.equal(shortcutHandlerWasCalled, true, 'the \"any\" shortcut\\'s event handler was called');\n }\n\n ['@test it handles whitelisted bound modifier keys']() {\n let editHandlerWasCalled = false;\n let shortcutHandlerWasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n altKey: 'alt',\n anyKey: 'any',\n actions: {\n edit() {\n editHandlerWasCalled = true;\n },\n\n shortcut() {\n shortcutHandlerWasCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
click me click me too
'\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a[data-ember-action]').trigger('click', {\n altKey: true\n });\n });\n this.assert.equal(editHandlerWasCalled, true, 'the event handler was called');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('div[data-ember-action]').trigger('click', {\n ctrlKey: true\n });\n });\n this.assert.equal(shortcutHandlerWasCalled, true, 'the \"any\" shortcut\\'s event handler was called');\n }\n\n ['@test it handles whitelisted bound modifier keys with current value']() {\n let editHandlerWasCalled = false;\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n acceptedKeys: 'alt',\n actions: {\n edit() {\n editHandlerWasCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
click me '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a[data-ember-action]').trigger('click', {\n altKey: true\n });\n });\n this.assert.equal(editHandlerWasCalled, true, 'the event handler was called');\n editHandlerWasCalled = false;\n (0, _internalTestHelpers.runTask)(() => {\n component.set('acceptedKeys', '');\n });\n (0, _internalTestHelpers.runTask)(() => {\n this.$('div[data-ember-action]').click();\n });\n this.assert.equal(editHandlerWasCalled, false, 'the event handler was not called');\n }\n\n ['@test should be able to use action more than once for the same event within a view']() {\n let editHandlerWasCalled = false;\n let deleteHandlerWasCalled = false;\n let originalHandlerWasCalled = false;\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n actions: {\n edit() {\n editHandlerWasCalled = true;\n },\n\n delete() {\n deleteHandlerWasCalled = true;\n }\n\n },\n\n click() {\n originalHandlerWasCalled = true;\n }\n\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
edit delete '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#edit').click();\n });\n this.assert.equal(editHandlerWasCalled, true, 'the edit action was called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called (due to bubbling)');\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#delete').click();\n });\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, true, 'the delete action was called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called (due to bubbling)');\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n (0, _internalTestHelpers.runTask)(() => {\n this.wrap(component.element).click();\n });\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called');\n }\n\n ['@test the event should not bubble if `bubbles=false` is passed']() {\n let editHandlerWasCalled = false;\n let deleteHandlerWasCalled = false;\n let originalHandlerWasCalled = false;\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n actions: {\n edit() {\n editHandlerWasCalled = true;\n },\n\n delete() {\n deleteHandlerWasCalled = true;\n }\n\n },\n\n click() {\n originalHandlerWasCalled = true;\n }\n\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
edit delete '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#edit').click();\n });\n this.assert.equal(editHandlerWasCalled, true, 'the edit action was called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, false, 'the click handler was not called');\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#delete').click();\n });\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, true, 'the delete action was called');\n this.assert.equal(originalHandlerWasCalled, false, 'the click handler was not called');\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n (0, _internalTestHelpers.runTask)(() => {\n this.wrap(component.element).click();\n });\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called');\n }\n\n ['@test the event should not bubble if `bubbles=false` is passed bound']() {\n let editHandlerWasCalled = false;\n let deleteHandlerWasCalled = false;\n let originalHandlerWasCalled = false;\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n isFalse: false,\n actions: {\n edit() {\n editHandlerWasCalled = true;\n },\n\n delete() {\n deleteHandlerWasCalled = true;\n }\n\n },\n\n click() {\n originalHandlerWasCalled = true;\n }\n\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
edit delete '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#edit').click();\n });\n this.assert.equal(editHandlerWasCalled, true, 'the edit action was called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, false, 'the click handler was not called');\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#delete').click();\n });\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, true, 'the delete action was called');\n this.assert.equal(originalHandlerWasCalled, false, 'the click handler was not called');\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n (0, _internalTestHelpers.runTask)(() => {\n this.wrap(component.element).click();\n });\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called');\n }\n\n ['@test the bubbling depends on the bound parameter']() {\n let editHandlerWasCalled = false;\n let originalHandlerWasCalled = false;\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n shouldBubble: false,\n actions: {\n edit() {\n editHandlerWasCalled = true;\n }\n\n },\n\n click() {\n originalHandlerWasCalled = true;\n }\n\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
edit '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#edit').click();\n });\n this.assert.equal(editHandlerWasCalled, true, 'the edit action was called');\n this.assert.equal(originalHandlerWasCalled, false, 'the click handler was not called');\n editHandlerWasCalled = originalHandlerWasCalled = false;\n (0, _internalTestHelpers.runTask)(() => {\n component.set('shouldBubble', true);\n });\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#edit').click();\n });\n this.assert.equal(editHandlerWasCalled, true, 'the edit action was called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called');\n }\n\n ['@test multiple actions with bubbles=false for same event are called but prevent bubbling']() {\n let clickAction1WasCalled = false;\n let clickAction2WasCalled = false;\n let eventHandlerWasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n clicked1() {\n clickAction1WasCalled = true;\n },\n\n clicked2() {\n clickAction2WasCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject3()),\n\n click() {\n eventHandlerWasCalled = true;\n }\n\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').trigger('click');\n });\n this.assert.ok(clickAction1WasCalled, 'the first clicked action was called');\n this.assert.ok(clickAction2WasCalled, 'the second clicked action was called');\n this.assert.notOk(eventHandlerWasCalled, 'event did not bubble up');\n }\n\n ['@test it should work properly in an #each block']() {\n let editHandlerWasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n items: (0, _runtime.A)([1, 2, 3, 4]),\n actions: {\n edit() {\n editHandlerWasCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '{{#each items as |item|}}
click me {{/each}}'\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').click();\n });\n this.assert.equal(editHandlerWasCalled, true, 'the event handler was called');\n }\n\n ['@test it should work properly in a {{#with foo as |bar|}} block']() {\n let editHandlerWasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n something: {\n ohai: 'there'\n },\n actions: {\n edit() {\n editHandlerWasCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '{{#with something as |somethingElse|}}
click me {{/with}}'\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').click();\n });\n this.assert.equal(editHandlerWasCalled, true, 'the event handler was called');\n }\n\n ['@test it should unregister event handlers when an element action is removed'](assert) {\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n edit() {}\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '{{#if isActive}}
click me {{/if}}'\n });\n this.render('{{example-component isActive=isActive}}', {\n isActive: true\n });\n assert.equal(this.$('a[data-ember-action]').length, 1, 'The element is rendered');\n let actionId;\n actionId = getActionIds(this.$('a[data-ember-action]')[0])[0];\n assert.ok(_views.ActionManager.registeredActions[actionId], 'An action is registered');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n assert.equal(this.$('a[data-ember-action]').length, 1, 'The element is still present');\n assert.ok(_views.ActionManager.registeredActions[actionId], 'The action is still registered');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'isActive', false));\n assert.strictEqual(this.$('a[data-ember-action]').length, 0, 'The element is removed');\n assert.ok(!_views.ActionManager.registeredActions[actionId], 'The action is unregistered');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'isActive', true));\n assert.equal(this.$('a[data-ember-action]').length, 1, 'The element is rendered');\n actionId = getActionIds(this.$('a[data-ember-action]')[0])[0];\n assert.ok(_views.ActionManager.registeredActions[actionId], 'A new action is registered');\n }\n\n ['@test it should capture events from child elements and allow them to trigger the action']() {\n let editHandlerWasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n edit() {\n editHandlerWasCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
click me
'\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.ok(editHandlerWasCalled, 'event on a child target triggered the action of its parent');\n }\n\n ['@test it should allow bubbling of events from action helper to original parent event']() {\n let editHandlerWasCalled = false;\n let originalHandlerWasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n edit() {\n editHandlerWasCalled = true;\n }\n\n },\n\n click() {\n originalHandlerWasCalled = true;\n }\n\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
click me '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').click();\n });\n this.assert.ok(editHandlerWasCalled && originalHandlerWasCalled, 'both event handlers were called');\n }\n\n ['@test it should not bubble an event from action helper to original parent event if `bubbles=false` is passed']() {\n let editHandlerWasCalled = false;\n let originalHandlerWasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n edit() {\n editHandlerWasCalled = true;\n }\n\n },\n\n click() {\n originalHandlerWasCalled = true;\n }\n\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
click me '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').click();\n });\n this.assert.ok(editHandlerWasCalled, 'the child event handler was called');\n this.assert.notOk(originalHandlerWasCalled, 'the parent handler was not called');\n }\n\n ['@test it should allow \"send\" as the action name (#594)']() {\n let sendHandlerWasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n send() {\n sendHandlerWasCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
click me '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').click();\n });\n this.assert.ok(sendHandlerWasCalled, 'the event handler was called');\n }\n\n ['@test it should send the view, event, and current context to the action']() {\n let passedTarget;\n let passedContext;\n let targetThis;\n\n let TargetComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n targetThis = this;\n },\n\n actions: {\n edit(context) {\n passedTarget = this === targetThis;\n passedContext = context;\n }\n\n }\n });\n\n let aContext;\n\n let ExampleComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n aContext = this;\n }\n\n });\n\n this.registerComponent('target-component', {\n ComponentClass: TargetComponent,\n template: '{{yield this}}'\n });\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject4())\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('#edit').click();\n });\n this.assert.ok(passedTarget, 'the action is called with the target as this');\n this.assert.strictEqual(passedContext, aContext, 'the parameter is passed along');\n }\n\n ['@test it should only trigger actions for the event they were registered on']() {\n let editHandlerWasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n edit() {\n editHandlerWasCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
click me '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').click();\n });\n this.assert.ok(editHandlerWasCalled, 'the event handler was called on click');\n editHandlerWasCalled = false;\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').trigger('mouseover');\n });\n this.assert.notOk(editHandlerWasCalled, 'the event handler was not called on mouseover');\n }\n\n ['@test it should allow multiple contexts to be specified']() {\n let passedContexts;\n let models = [_runtime.Object.create(), _runtime.Object.create()];\n\n let ExampleComponent = _helpers.Component.extend({\n modelA: models[0],\n modelB: models[1],\n actions: {\n edit(...args) {\n passedContexts = args;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
click me '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.deepEqual(passedContexts, models, 'the action was called with the passed contexts');\n }\n\n ['@test it should allow multiple contexts to be specified mixed with string args']() {\n let passedContexts;\n\n let model = _runtime.Object.create();\n\n let ExampleComponent = _helpers.Component.extend({\n model: model,\n actions: {\n edit(...args) {\n passedContexts = args;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
click me '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.deepEqual(passedContexts, ['herp', model], 'the action was called with the passed contexts');\n }\n\n ['@test it should not trigger action with special clicks']() {\n let showCalled = false;\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n actions: {\n show() {\n showCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
Howdy '\n });\n this.render('{{example-component}}');\n let assert = this.assert;\n\n let checkClick = (prop, value, expected) => {\n showCalled = false;\n let event = this.wrap(component.element).findAll('button').trigger('click', {\n [prop]: value\n })[0];\n\n if (expected) {\n assert.ok(showCalled, \"should call action with \" + prop + \":\" + value); // IE11 does not allow simulated events to have a valid `defaultPrevented`\n\n if (!isIE11) {\n assert.ok(event.defaultPrevented, 'should prevent default');\n }\n } else {\n assert.notOk(showCalled, \"should not call action with \" + prop + \":\" + value);\n assert.notOk(event.defaultPrevented, 'should not prevent default');\n }\n };\n\n checkClick('ctrlKey', true, false);\n checkClick('altKey', true, false);\n checkClick('metaKey', true, false);\n checkClick('shiftKey', true, false);\n checkClick('button', 0, true);\n checkClick('button', 1, false);\n checkClick('button', 2, false);\n checkClick('button', 3, false);\n checkClick('button', 4, false);\n }\n\n ['@test it can trigger actions for keyboard events']() {\n let showCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n show() {\n showCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
'\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('input').trigger('keyup', {\n char: 'a',\n which: 65\n });\n });\n this.assert.ok(showCalled, 'the action was called with keyup');\n }\n\n ['@test a quoteless parameter should allow dynamic lookup of the actionName']() {\n let lastAction;\n let actionOrder = [];\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n hookMeUp: 'rock',\n actions: {\n rock() {\n lastAction = 'rock';\n actionOrder.push('rock');\n },\n\n paper() {\n lastAction = 'paper';\n actionOrder.push('paper');\n },\n\n scissors() {\n lastAction = 'scissors';\n actionOrder.push('scissors');\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
Whistle tips go woop woooop '\n });\n this.render('{{example-component}}');\n let test = this;\n\n let testBoundAction = propertyValue => {\n (0, _internalTestHelpers.runTask)(() => {\n component.set('hookMeUp', propertyValue);\n });\n (0, _internalTestHelpers.runTask)(() => {\n this.wrap(component.element).findAll('#bound-param').click();\n });\n test.assert.ok(lastAction, propertyValue, \"lastAction set to \" + propertyValue);\n };\n\n testBoundAction('rock');\n testBoundAction('paper');\n testBoundAction('scissors');\n this.assert.deepEqual(actionOrder, ['rock', 'paper', 'scissors'], 'action name was looked up properly');\n }\n\n ['@test a quoteless string parameter should resolve actionName, including path']() {\n let lastAction;\n let actionOrder = [];\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n allactions: (0, _runtime.A)([{\n title: 'Rock',\n name: 'rock'\n }, {\n title: 'Paper',\n name: 'paper'\n }, {\n title: 'Scissors',\n name: 'scissors'\n }]),\n actions: {\n rock() {\n lastAction = 'rock';\n actionOrder.push('rock');\n },\n\n paper() {\n lastAction = 'paper';\n actionOrder.push('paper');\n },\n\n scissors() {\n lastAction = 'scissors';\n actionOrder.push('scissors');\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '{{#each allactions as |allaction|}}
{{allaction.title}} {{/each}}'\n });\n this.render('{{example-component}}');\n let test = this;\n\n let testBoundAction = propertyValue => {\n (0, _internalTestHelpers.runTask)(() => {\n this.wrap(component.element).findAll(\"#\" + propertyValue).click();\n });\n test.assert.ok(lastAction, propertyValue, \"lastAction set to \" + propertyValue);\n };\n\n testBoundAction('rock');\n testBoundAction('paper');\n testBoundAction('scissors');\n this.assert.deepEqual(actionOrder, ['rock', 'paper', 'scissors'], 'action name was looked up properly');\n }\n\n ['@test a quoteless function parameter should be called, including arguments']() {\n let submitCalled = false;\n let incomingArg;\n let arg = 'rough ray';\n\n let ExampleComponent = _helpers.Component.extend({\n submit(actualArg) {\n incomingArg = actualArg;\n submitCalled = true;\n }\n\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: \"
Hi \"\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').click();\n });\n this.assert.ok(submitCalled, 'submit function called');\n this.assert.equal(incomingArg, arg, 'argument passed');\n }\n\n ['@test a quoteless parameter that does not resolve to a value asserts']() {\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n ohNoeNotValid() {}\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
Hi '\n });\n expectAssertion(() => {\n this.render('{{example-component}}');\n }, 'You specified a quoteless path, `ohNoeNotValid`, 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 \"ohNoeNotValid\"}}).');\n }\n\n ['@test allows multiple actions on a single element']() {\n let clickActionWasCalled = false;\n let doubleClickActionWasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n clicked() {\n clickActionWasCalled = true;\n },\n\n doubleClicked() {\n doubleClickActionWasCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject5())\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').trigger('click');\n });\n this.assert.ok(clickActionWasCalled, 'the clicked action was called');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').trigger('dblclick');\n });\n this.assert.ok(doubleClickActionWasCalled, 'the doubleClicked action was called');\n }\n\n ['@test allows multiple actions for same event on a single element']() {\n let clickAction1WasCalled = false;\n let clickAction2WasCalled = false;\n\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n clicked1() {\n clickAction1WasCalled = true;\n },\n\n clicked2() {\n clickAction2WasCalled = true;\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject6())\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('a').trigger('click');\n });\n this.assert.ok(clickAction1WasCalled, 'the first clicked action was called');\n this.assert.ok(clickAction2WasCalled, 'the second clicked action was called');\n }\n\n ['@test it should respect preventDefault option if provided']() {\n let ExampleComponent = _helpers.Component.extend({\n actions: {\n show() {}\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
Hi '\n });\n this.render('{{example-component}}');\n let event;\n (0, _internalTestHelpers.runTask)(() => {\n event = this.$('a').click()[0];\n });\n this.assert.equal(event.defaultPrevented, false, 'should not preventDefault');\n }\n\n ['@test it should respect preventDefault option if provided bound']() {\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n shouldPreventDefault: false,\n\n init() {\n this._super(...arguments);\n\n component = this;\n },\n\n actions: {\n show() {}\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
Hi '\n });\n this.render('{{example-component}}');\n let event;\n (0, _internalTestHelpers.runTask)(() => {\n event = this.$('a').trigger(event)[0];\n });\n this.assert.equal(event.defaultPrevented, false, 'should not preventDefault');\n (0, _internalTestHelpers.runTask)(() => {\n component.set('shouldPreventDefault', true);\n event = this.$('a').trigger('click')[0];\n }); // IE11 does not allow simulated events to have a valid `defaultPrevented`\n\n if (!isIE11) {\n this.assert.equal(event.defaultPrevented, true, 'should preventDefault');\n }\n }\n\n ['@test it should target the proper component when `action` is in yielded block [GH #12409]']() {\n let outerActionCalled = false;\n let innerClickCalled = false;\n\n let OuterComponent = _helpers.Component.extend({\n actions: {\n hey() {\n outerActionCalled = true;\n }\n\n }\n });\n\n let MiddleComponent = _helpers.Component.extend({});\n\n let InnerComponent = _helpers.Component.extend({\n click() {\n innerClickCalled = true;\n expectDeprecation(() => {\n this.sendAction();\n }, /You called (.*).sendAction\\((.*)\\) but Component#sendAction is deprecated. Please use closure actions instead./);\n }\n\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject7())\n });\n this.registerComponent('middle-component', {\n ComponentClass: MiddleComponent,\n template: '{{yield}}'\n });\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject8())\n });\n this.render('{{outer-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.ok(outerActionCalled, 'the action fired on the proper target');\n this.assert.ok(innerClickCalled, 'the click was triggered');\n }\n\n ['@test element action with (mut undefinedThing) works properly']() {\n let component;\n\n let ExampleComponent = _helpers.Component.extend({\n label: undefined,\n\n init() {\n this._super(...arguments);\n\n component = this;\n }\n\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
{{if label label \"Click me\"}} '\n });\n this.render('{{example-component}}');\n this.assertText('Click me');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assertText('Clicked!');\n (0, _internalTestHelpers.runTask)(() => {\n component.set('label', 'Dun clicked');\n });\n this.assertText('Dun clicked');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assertText('Clicked!');\n (0, _internalTestHelpers.runTask)(() => {\n component.set('label', undefined);\n });\n this.assertText('Click me');\n }\n\n ['@test it supports non-registered actions [GH#14888]']() {\n this.render(\"\\n {{#if show}}\\n
\\n Show ({{show}})\\n \\n {{/if}}\\n \", {\n show: true\n });\n this.assert.equal(this.$('button').text().trim(), 'Show (true)'); // We need to focus in to simulate an actual click.\n\n (0, _internalTestHelpers.runTask)(() => {\n document.getElementById('ddButton').focus();\n document.getElementById('ddButton').click();\n });\n }\n\n [\"@test action handler that shifts element attributes doesn't trigger multiple invocations\"]() {\n let actionCount = 0;\n\n let ExampleComponent = _helpers.Component.extend({\n selected: false,\n actions: {\n toggleSelected() {\n actionCount++;\n this.toggleProperty('selected');\n }\n\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
Toggle Selected '\n });\n this.render('{{example-component}}');\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.equal(actionCount, 1, 'Click action only fired once.');\n this.assert.ok(this.$('button').hasClass('selected'), \"Element with action handler has properly updated it's conditional class\");\n (0, _internalTestHelpers.runTask)(() => {\n this.$('button').click();\n });\n this.assert.equal(actionCount, 2, 'Second click action only fired once.');\n this.assert.ok(!this.$('button').hasClass('selected'), \"Element with action handler has properly updated it's conditional class\");\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/get-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_internalTestHelpers, _metal, _helpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{get}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test should be able to get an object value with a static key']() {\n this.render(\"[{{get colors 'apple'}}] [{{if true (get colors 'apple')}}]\", {\n colors: {\n apple: 'red'\n }\n });\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'colors.apple', 'green'));\n this.assertText('[green] [green]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'colors', {\n apple: 'red'\n }));\n this.assertText('[red] [red]');\n }\n\n ['@test should be able to get an object value with nested static key']() {\n this.render(\"[{{get colors \\\"apple.gala\\\"}}] [{{if true (get colors \\\"apple.gala\\\")}}]\", {\n colors: {\n apple: {\n gala: 'red and yellow'\n }\n }\n });\n this.assertText('[red and yellow] [red and yellow]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[red and yellow] [red and yellow]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'colors.apple.gala', 'yellow and red striped'));\n this.assertText('[yellow and red striped] [yellow and red striped]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'colors', {\n apple: {\n gala: 'red and yellow'\n }\n }));\n this.assertText('[red and yellow] [red and yellow]');\n }\n\n ['@test should be able to get an object value with a number']() {\n this.render(\"[{{get items 1}}][{{get items 2}}][{{get items 3}}]\", {\n indexes: [1, 2, 3],\n items: {\n 1: 'First',\n 2: 'Second',\n 3: 'Third'\n }\n });\n this.assertText('[First][Second][Third]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[First][Second][Third]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'items.1', 'Qux'));\n this.assertText('[Qux][Second][Third]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'items', {\n 1: 'First',\n 2: 'Second',\n 3: 'Third'\n }));\n this.assertText('[First][Second][Third]');\n }\n\n ['@test should be able to get an array value with a number']() {\n this.render(\"[{{get numbers 0}}][{{get numbers 1}}][{{get numbers 2}}]\", {\n numbers: [1, 2, 3]\n });\n this.assertText('[1][2][3]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[1][2][3]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'numbers', [3, 2, 1]));\n this.assertText('[3][2][1]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'numbers', [1, 2, 3]));\n this.assertText('[1][2][3]');\n }\n\n ['@test should be able to get an object value with a path evaluating to a number']() {\n this.render(\"{{#each indexes as |index|}}[{{get items index}}]{{/each}}\", {\n indexes: [1, 2, 3],\n items: {\n 1: 'First',\n 2: 'Second',\n 3: 'Third'\n }\n });\n this.assertText('[First][Second][Third]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[First][Second][Third]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'items.1', 'Qux'));\n this.assertText('[Qux][Second][Third]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'items', {\n 1: 'First',\n 2: 'Second',\n 3: 'Third'\n }));\n this.assertText('[First][Second][Third]');\n }\n\n ['@test should be able to get an array value with a path evaluating to a number']() {\n this.render(\"{{#each numbers as |num index|}}[{{get numbers index}}]{{/each}}\", {\n numbers: [1, 2, 3]\n });\n this.assertText('[1][2][3]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[1][2][3]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'numbers', [3, 2, 1]));\n this.assertText('[3][2][1]');\n }\n\n ['@test should be able to get an object value with a bound/dynamic key']() {\n this.render(\"[{{get colors key}}] [{{if true (get colors key)}}]\", {\n colors: {\n apple: 'red',\n banana: 'yellow'\n },\n key: 'apple'\n });\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'banana'));\n this.assertText('[yellow] [yellow]');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'colors.apple', 'green');\n (0, _metal.set)(this.context, 'colors.banana', 'purple');\n });\n this.assertText('[purple] [purple]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'apple'));\n this.assertText('[green] [green]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'colors', {\n apple: 'red'\n }));\n this.assertText('[red] [red]');\n }\n\n ['@test should be able to get an object value with nested dynamic key']() {\n this.render(\"[{{get colors key}}] [{{if true (get colors key)}}]\", {\n colors: {\n apple: {\n gala: 'red and yellow',\n mcintosh: 'red'\n },\n banana: 'yellow'\n },\n key: 'apple.gala'\n });\n this.assertText('[red and yellow] [red and yellow]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[red and yellow] [red and yellow]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'apple.mcintosh'));\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'banana'));\n this.assertText('[yellow] [yellow]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'apple.gala'));\n this.assertText('[red and yellow] [red and yellow]');\n }\n\n ['@test should be able to get an object value with subexpression returning nested key']() {\n this.render(\"[{{get colors (concat 'apple' '.' 'gala')}}] [{{if true (get colors (concat 'apple' '.' 'gala'))}}]\", {\n colors: {\n apple: {\n gala: 'red and yellow',\n mcintosh: 'red'\n }\n },\n key: 'apple.gala'\n });\n this.assertText('[red and yellow] [red and yellow]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[red and yellow] [red and yellow]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'colors.apple.gala', 'yellow and red striped'));\n this.assertText('[yellow and red striped] [yellow and red striped]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'colors.apple.gala', 'yellow-redish'));\n this.assertText('[yellow-redish] [yellow-redish]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'colors', {\n apple: {\n gala: 'red and yellow',\n mcintosh: 'red'\n }\n }));\n this.assertText('[red and yellow] [red and yellow]');\n }\n\n ['@test should be able to get an object value with a get helper as the key']() {\n this.render(\"[{{get colors (get possibleKeys key)}}] [{{if true (get colors (get possibleKeys key))}}]\", {\n colors: {\n apple: 'red',\n banana: 'yellow'\n },\n key: 'key1',\n possibleKeys: {\n key1: 'apple',\n key2: 'banana'\n }\n });\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'key2'));\n this.assertText('[yellow] [yellow]');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'colors.apple', 'green');\n (0, _metal.set)(this.context, 'colors.banana', 'purple');\n });\n this.assertText('[purple] [purple]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'key1'));\n this.assertText('[green] [green]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'colors', {\n apple: 'red',\n banana: 'yellow'\n }));\n this.assertText('[red] [red]');\n }\n\n ['@test should be able to get an object value with a get helper value as a bound/dynamic key']() {\n this.render(\"[{{get (get possibleValues objectKey) key}}] [{{if true (get (get possibleValues objectKey) key)}}]\", {\n possibleValues: {\n colors1: {\n apple: 'red',\n banana: 'yellow'\n },\n colors2: {\n apple: 'green',\n banana: 'purple'\n }\n },\n objectKey: 'colors1',\n key: 'apple'\n });\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'objectKey', 'colors2'));\n this.assertText('[green] [green]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'objectKey', 'colors1'));\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'banana'));\n this.assertText('[yellow] [yellow]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'objectKey', 'colors2'));\n this.assertText('[purple] [purple]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'objectKey', 'colors1'));\n this.assertText('[yellow] [yellow]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'apple'));\n }\n\n ['@test should be able to get an object value with a get helper as the value and a get helper as the key']() {\n this.render(\"[{{get (get possibleValues objectKey) (get possibleKeys key)}}] [{{if true (get (get possibleValues objectKey) (get possibleKeys key))}}]\", {\n possibleValues: {\n colors1: {\n apple: 'red',\n banana: 'yellow'\n },\n colors2: {\n apple: 'green',\n banana: 'purple'\n }\n },\n objectKey: 'colors1',\n possibleKeys: {\n key1: 'apple',\n key2: 'banana'\n },\n key: 'key1'\n });\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'objectKey', 'colors2'));\n this.assertText('[green] [green]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'objectKey', 'colors1'));\n this.assertText('[red] [red]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'key2'));\n this.assertText('[yellow] [yellow]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'objectKey', 'colors2'));\n this.assertText('[purple] [purple]');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'objectKey', 'colors1');\n (0, _metal.set)(this.context, 'key', 'key1');\n });\n this.assertText('[red] [red]');\n }\n\n ['@test the result of a get helper can be yielded']() {\n let fooBarInstance;\n\n let FooBarComponent = _helpers.Component.extend({\n init() {\n this._super();\n\n fooBarInstance = this;\n this.mcintosh = 'red';\n }\n\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: \"{{yield (get colors mcintosh)}}\"\n });\n this.render(\"{{#foo-bar colors=colors as |value|}}{{value}}{{/foo-bar}}\", {\n colors: {\n red: 'banana'\n }\n });\n this.assertText('banana');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('banana');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(fooBarInstance, 'mcintosh', 'yellow');\n (0, _metal.set)(this.context, 'colors', {\n yellow: 'bus'\n });\n });\n this.assertText('bus');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(fooBarInstance, 'mcintosh', 'red');\n (0, _metal.set)(this.context, 'colors', {\n red: 'banana'\n });\n });\n this.assertText('banana');\n }\n\n ['@test should handle object values as nulls']() {\n this.render(\"[{{get colors 'apple'}}] [{{if true (get colors 'apple')}}]\", {\n colors: null\n });\n this.assertText('[] []');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[] []');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'colors', {\n apple: 'green',\n banana: 'purple'\n }));\n this.assertText('[green] [green]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'colors', null));\n this.assertText('[] []');\n }\n\n ['@test should handle object keys as nulls']() {\n this.render(\"[{{get colors key}}] [{{if true (get colors key)}}]\", {\n colors: {\n apple: 'red',\n banana: 'yellow'\n },\n key: null\n });\n this.assertText('[] []');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[] []');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'banana'));\n this.assertText('[yellow] [yellow]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', null));\n this.assertText('[] []');\n }\n\n ['@test should handle object values and keys as nulls']() {\n this.render(\"[{{get colors 'apple'}}] [{{if true (get colors key)}}]\", {\n colors: null,\n key: null\n });\n this.assertText('[] []');\n }\n\n ['@test get helper value should be updatable using {{input}} and (mut) - static key'](assert) {\n this.render(\"{{input type='text' value=(mut (get source 'banana')) id='get-input'}}\", {\n source: {\n banana: 'banana'\n }\n });\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'source.banana', 'yellow'));\n assert.strictEqual(this.$('#get-input').val(), 'yellow');\n (0, _internalTestHelpers.runTask)(() => this.$('#get-input').val('some value').trigger('change'));\n assert.strictEqual(this.$('#get-input').val(), 'some value');\n assert.strictEqual((0, _metal.get)(this.context, 'source.banana'), 'some value');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'source', {\n banana: 'banana'\n }));\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n }\n\n ['@test get helper value should be updatable using {{input}} and (mut) - dynamic key'](assert) {\n this.render(\"{{input type='text' value=(mut (get source key)) id='get-input'}}\", {\n source: {\n apple: 'apple',\n banana: 'banana'\n },\n key: 'banana'\n });\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'source.banana', 'yellow'));\n assert.strictEqual(this.$('#get-input').val(), 'yellow');\n (0, _internalTestHelpers.runTask)(() => this.$('#get-input').val('some value').trigger('change'));\n assert.strictEqual(this.$('#get-input').val(), 'some value');\n assert.strictEqual((0, _metal.get)(this.context, 'source.banana'), 'some value');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'apple'));\n assert.strictEqual(this.$('#get-input').val(), 'apple');\n (0, _internalTestHelpers.runTask)(() => this.$('#get-input').val('some other value').trigger('change'));\n assert.strictEqual(this.$('#get-input').val(), 'some other value');\n assert.strictEqual((0, _metal.get)(this.context, 'source.apple'), 'some other value');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'key', 'banana');\n (0, _metal.set)(this.context, 'source', {\n banana: 'banana'\n });\n });\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n }\n\n ['@test get helper value should be updatable using {{input}} and (mut) - dynamic nested key'](assert) {\n this.render(\"{{input type='text' value=(mut (get source key)) id='get-input'}}\", {\n source: {\n apple: {\n gala: 'gala',\n mcintosh: 'mcintosh'\n },\n banana: 'banana'\n },\n key: 'apple.mcintosh'\n });\n assert.strictEqual(this.$('#get-input').val(), 'mcintosh');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n assert.strictEqual(this.$('#get-input').val(), 'mcintosh');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'source.apple.mcintosh', 'red'));\n assert.strictEqual(this.$('#get-input').val(), 'red');\n (0, _internalTestHelpers.runTask)(() => this.$('#get-input').val('some value').trigger('change'));\n assert.strictEqual(this.$('#get-input').val(), 'some value');\n assert.strictEqual((0, _metal.get)(this.context, 'source.apple.mcintosh'), 'some value');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'apple.gala'));\n assert.strictEqual(this.$('#get-input').val(), 'gala');\n (0, _internalTestHelpers.runTask)(() => this.$('#get-input').val('some other value').trigger('change'));\n assert.strictEqual(this.$('#get-input').val(), 'some other value');\n assert.strictEqual((0, _metal.get)(this.context, 'source.apple.gala'), 'some other value');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'key', 'banana'));\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n (0, _internalTestHelpers.runTask)(() => this.$('#get-input').val('yet another value').trigger('change'));\n assert.strictEqual(this.$('#get-input').val(), 'yet another value');\n assert.strictEqual((0, _metal.get)(this.context, 'source.banana'), 'yet another value');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'key', 'apple.mcintosh');\n (0, _metal.set)(this.context, 'source', {\n apple: {\n gala: 'gala',\n mcintosh: 'mcintosh'\n },\n banana: 'banana'\n });\n });\n assert.strictEqual(this.$('#get-input').val(), 'mcintosh');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/hash-test\", [\"internal-test-helpers\", \"@ember/-internals/glimmer/tests/utils/helpers\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _helpers, _metal) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{hash}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test returns a hash with the right key-value']() {\n this.render(\"{{#with (hash name=\\\"Sergio\\\") as |person|}}{{person.name}}{{/with}}\");\n this.assertText('Sergio');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Sergio');\n }\n\n ['@test can have more than one key-value']() {\n this.render(\"{{#with (hash name=\\\"Sergio\\\" lastName=\\\"Arbeo\\\") as |person|}}{{person.name}} {{person.lastName}}{{/with}}\");\n this.assertText('Sergio Arbeo');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Sergio Arbeo');\n }\n\n ['@test binds values when variables are used']() {\n this.render(\"{{#with (hash name=model.firstName lastName=\\\"Arbeo\\\") as |person|}}{{person.name}} {{person.lastName}}{{/with}}\", {\n model: {\n firstName: 'Marisa'\n }\n });\n this.assertText('Marisa Arbeo');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Marisa Arbeo');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.firstName', 'Sergio'));\n this.assertText('Sergio Arbeo');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n firstName: 'Marisa'\n }));\n this.assertText('Marisa Arbeo');\n }\n\n ['@test binds multiple values when variables are used']() {\n this.render(\"{{#with (hash name=model.firstName lastName=model.lastName) as |person|}}{{person.name}} {{person.lastName}}{{/with}}\", {\n model: {\n firstName: 'Marisa',\n lastName: 'Arbeo'\n }\n });\n this.assertText('Marisa Arbeo');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Marisa Arbeo');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.firstName', 'Sergio'));\n this.assertText('Sergio Arbeo');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.lastName', 'Smith'));\n this.assertText('Sergio Smith');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n firstName: 'Marisa',\n lastName: 'Arbeo'\n }));\n this.assertText('Marisa Arbeo');\n }\n\n ['@test hash helpers can be nested']() {\n this.render(\"{{#with (hash person=(hash name=model.firstName)) as |ctx|}}{{ctx.person.name}}{{/with}}\", {\n model: {\n firstName: 'Balint'\n }\n });\n this.assertText('Balint');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Balint');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.firstName', 'Chad'));\n this.assertText('Chad');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n firstName: 'Balint'\n }));\n this.assertText('Balint');\n }\n\n ['@test should yield hash of internal properties']() {\n let fooBarInstance;\n\n let FooBarComponent = _helpers.Component.extend({\n init() {\n this._super();\n\n fooBarInstance = this;\n this.model = {\n firstName: 'Chad'\n };\n }\n\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: \"{{yield (hash firstName=model.firstName)}}\"\n });\n this.render(\"{{#foo-bar as |values|}}{{values.firstName}}{{/foo-bar}}\");\n this.assertText('Chad');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Chad');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(fooBarInstance, 'model.firstName', 'Godfrey'));\n this.assertText('Godfrey');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(fooBarInstance, 'model', {\n firstName: 'Chad'\n }));\n this.assertText('Chad');\n }\n\n ['@test should yield hash of internal and external properties']() {\n let fooBarInstance;\n\n let FooBarComponent = _helpers.Component.extend({\n init() {\n this._super();\n\n fooBarInstance = this;\n this.model = {\n firstName: 'Chad'\n };\n }\n\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: \"{{yield (hash firstName=model.firstName lastName=lastName)}}\"\n });\n this.render(\"{{#foo-bar lastName=model.lastName as |values|}}{{values.firstName}} {{values.lastName}}{{/foo-bar}}\", {\n model: {\n lastName: 'Hietala'\n }\n });\n this.assertText('Chad Hietala');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Chad Hietala');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(fooBarInstance, 'model.firstName', 'Godfrey');\n (0, _metal.set)(this.context, 'model.lastName', 'Chan');\n });\n this.assertText('Godfrey Chan');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(fooBarInstance, 'model', {\n firstName: 'Chad'\n });\n (0, _metal.set)(this.context, 'model', {\n lastName: 'Hietala'\n });\n });\n this.assertText('Chad Hietala');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/if-unless-test\", [\"internal-test-helpers\", \"@ember/-internals/glimmer/tests/utils/shared-conditional-tests\"], function (_internalTestHelpers, _sharedConditionalTests) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: inline {{if}}', class extends _sharedConditionalTests.IfUnlessHelperTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{if \" + cond + \" \" + truthy + \" \" + falsy + \"}}\";\n }\n\n ['@test it raises when there are more than three arguments']() {\n expectAssertion(() => {\n this.render(\"{{if condition 'a' 'b' 'c'}}\", {\n condition: true\n });\n }, \"The inline form of the 'if' helper expects two or three arguments. ('-top-level' @ L1:C0) \");\n }\n\n ['@test it raises when there are less than two arguments']() {\n expectAssertion(() => {\n this.render(\"{{if condition}}\", {\n condition: true\n });\n }, \"The inline form of the 'if' helper expects two or three arguments. ('-top-level' @ L1:C0) \");\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Helpers test: nested {{if}} helpers (returning truthy values)', class extends _sharedConditionalTests.IfUnlessHelperTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{if (if \" + cond + \" \" + cond + \" false) \" + truthy + \" \" + falsy + \"}}\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Helpers test: nested {{if}} helpers (returning falsy values)', class extends _sharedConditionalTests.IfUnlessHelperTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{if (if \" + cond + \" true \" + cond + \") \" + truthy + \" \" + falsy + \"}}\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{if}} used with another helper', class extends _sharedConditionalTests.IfUnlessHelperTest {\n wrapperFor(templates) {\n return \"{{concat \" + templates.join(' ') + \"}}\";\n }\n\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"(if \" + cond + \" \" + truthy + \" \" + falsy + \")\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{if}} used in attribute position', class extends _sharedConditionalTests.IfUnlessHelperTest {\n wrapperFor(templates) {\n return \"
\";\n }\n\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{if \" + cond + \" \" + truthy + \" \" + falsy + \"}}\";\n }\n\n textValue() {\n return this.$('div').attr('data-foo');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Helpers test: inline {{if}} and {{unless}} without the inverse argument', class extends _sharedConditionalTests.IfUnlessHelperTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{if \" + cond + \" \" + truthy + \"}}{{unless \" + cond + \" \" + falsy + \"}}\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Helpers test: inline {{unless}}', class extends _sharedConditionalTests.IfUnlessHelperTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{unless \" + cond + \" \" + falsy + \" \" + truthy + \"}}\";\n }\n\n ['@test it raises when there are more than three arguments']() {\n expectAssertion(() => {\n this.render(\"{{unless condition 'a' 'b' 'c'}}\", {\n condition: true\n });\n }, /The inline form of the `unless` helper expects two or three arguments/);\n }\n\n ['@test it raises when there are less than two arguments']() {\n expectAssertion(() => {\n this.render(\"{{unless condition}}\", {\n condition: true\n });\n }, /The inline form of the `unless` helper expects two or three arguments/);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Helpers test: nested {{unless}} helpers (returning truthy values)', class extends _sharedConditionalTests.IfUnlessHelperTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{unless (unless \" + cond + \" false \" + cond + \") \" + falsy + \" \" + truthy + \"}}\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Helpers test: nested {{unless}} helpers (returning falsy values)', class extends _sharedConditionalTests.IfUnlessHelperTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{unless (unless \" + cond + \" \" + cond + \" true) \" + falsy + \" \" + truthy + \"}}\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{unless}} used with another helper', class extends _sharedConditionalTests.IfUnlessHelperTest {\n wrapperFor(templates) {\n return \"{{concat \" + templates.join(' ') + \"}}\";\n }\n\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"(unless \" + cond + \" \" + falsy + \" \" + truthy + \")\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{unless}} used in attribute position', class extends _sharedConditionalTests.IfUnlessHelperTest {\n wrapperFor(templates) {\n return \"
\";\n }\n\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{unless \" + cond + \" \" + falsy + \" \" + truthy + \"}}\";\n }\n\n textValue() {\n return this.$('div').attr('data-foo');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/loc-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/string\"], function (_internalTestHelpers, _metal, _string) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{loc}}', class extends _internalTestHelpers.RenderingTestCase {\n constructor() {\n super(...arguments);\n (0, _string._setStrings)({\n 'Hello Friend': 'Hallo Freund',\n Hello: 'Hallo, %@'\n });\n }\n\n teardown() {\n super.teardown();\n (0, _string._setStrings)({});\n }\n\n ['@test it lets the original value through by default']() {\n this.render(\"{{loc \\\"Hiya buddy!\\\"}}\");\n this.assertText('Hiya buddy!', 'the unlocalized string is correct');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Hiya buddy!', 'the unlocalized string is correct after rerender');\n }\n\n ['@test it localizes a simple string']() {\n this.render(\"{{loc \\\"Hello Friend\\\"}}\");\n this.assertText('Hallo Freund', 'the localized string is correct');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Hallo Freund', 'the localized string is correct after rerender');\n }\n\n ['@test it takes passed formats into an account']() {\n this.render(\"{{loc \\\"%@, %@\\\" \\\"Hello\\\" \\\"Mr. Pitkin\\\"}}\");\n this.assertText('Hello, Mr. Pitkin', 'the formatted string is correct');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Hello, Mr. Pitkin', 'the formatted string is correct after rerender');\n }\n\n ['@test it updates when bound params change']() {\n this.render(\"{{loc simple}} - {{loc personal 'Mr. Pitkin'}}\", {\n simple: 'Hello Friend',\n personal: 'Hello'\n });\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct after rerender');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'simple', \"G'day mate\"));\n this.assertText(\"G'day mate - Hallo, Mr. Pitkin\", 'the bound value is correct after update');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'simple', 'Hello Friend'));\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct after reset');\n }\n\n ['@test it updates when nested bound params change']() {\n this.render(\"{{loc greetings.simple}} - {{loc greetings.personal 'Mr. Pitkin'}}\", {\n greetings: {\n simple: 'Hello Friend',\n personal: 'Hello'\n }\n });\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct after rerender');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'greetings.simple', \"G'day mate\"));\n this.assertText(\"G'day mate - Hallo, Mr. Pitkin\", 'the bound value is correct after interior mutation');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'greetings', {\n simple: 'Hello Friend',\n personal: 'Hello'\n }));\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct after replacement');\n }\n\n ['@test it can be overriden']() {\n this.registerHelper('loc', () => 'Yup');\n this.render(\"{{loc greeting}}\", {\n greeting: 'Hello Friend'\n });\n this.assertText('Yup', 'the localized string is correct');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/log-test\", [\"internal-test-helpers\"], function (_internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{log}}', class extends _internalTestHelpers.RenderingTestCase {\n constructor() {\n super(...arguments);\n /* eslint-disable no-console */\n\n this.originalLog = console.log;\n this.logCalls = [];\n\n console.log = (...args) => {\n this.logCalls.push(...args);\n /* eslint-enable no-console */\n };\n }\n\n teardown() {\n super.teardown();\n /* eslint-disable no-console */\n\n console.log = this.originalLog;\n /* eslint-enable no-console */\n }\n\n assertLog(values) {\n this.assertText('');\n this.assert.strictEqual(this.logCalls.length, values.length);\n\n for (let i = 0, len = values.length; i < len; i++) {\n this.assert.strictEqual(this.logCalls[i], values[i]);\n }\n }\n\n ['@test correctly logs primitives']() {\n this.render(\"{{log \\\"one\\\" 1 true}}\");\n this.assertLog(['one', 1, true]);\n }\n\n ['@test correctly logs a property']() {\n this.render(\"{{log value}}\", {\n value: 'one'\n });\n this.assertLog(['one']);\n }\n\n ['@test correctly logs multiple arguments']() {\n this.render(\"{{log \\\"my variable:\\\" value}}\", {\n value: 'one'\n });\n this.assertLog(['my variable:', 'one']);\n }\n\n ['@test correctly logs `this`']() {\n this.render(\"{{log this}}\");\n this.assertLog([this.context]);\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/mut-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_internalTestHelpers, _metal, _helpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{mut}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test a simple mutable binding using `mut` propagates properly']() {\n let bottom;\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n bottom = this;\n }\n\n }),\n template: '{{setMe}}'\n });\n this.registerComponent('middle-mut', {\n template: '{{bottom-mut setMe=value}}'\n });\n this.render('{{middle-mut value=(mut val)}}', {\n val: 12\n });\n this.assertText('12', 'the data propagated downwards');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => bottom.attrs.setMe.update(13));\n this.assertText('13', 'the set took effect');\n this.assert.strictEqual((0, _metal.get)(bottom, 'setMe'), 13, \"the set took effect on bottom's prop\");\n this.assert.strictEqual(bottom.attrs.setMe.value, 13, \"the set took effect on bottom's attr\");\n this.assert.strictEqual((0, _metal.get)(this.context, 'val'), 13, 'the set propagated back up');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(bottom, 'setMe', 14));\n this.assertText('14', 'the set took effect');\n this.assert.strictEqual((0, _metal.get)(bottom, 'setMe'), 14, \"the set took effect on bottom's prop\");\n this.assert.strictEqual(bottom.attrs.setMe.value, 14, \"the set took effect on bottom's attr\");\n this.assert.strictEqual((0, _metal.get)(this.context, 'val'), 14, 'the set propagated back up');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'val', 12));\n this.assertText('12');\n }\n\n ['@test a simple mutable binding using `mut` inserts into the DOM']() {\n let bottom, middle;\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n bottom = this;\n }\n\n }),\n template: '{{setMe}}'\n });\n this.registerComponent('middle-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n middle = this;\n }\n\n }),\n template: '{{bottom-mut setMe=(mut value)}}'\n });\n this.render('{{middle-mut value=(mut val)}}', {\n val: 12\n });\n this.assertText('12', 'the data propagated downwards');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => bottom.attrs.setMe.update(13));\n this.assertText('13', 'the set took effect');\n this.assert.strictEqual((0, _metal.get)(bottom, 'setMe'), 13, \"the set took effect on bottom's prop\");\n this.assert.strictEqual(bottom.attrs.setMe.value, 13, \"the set took effect on bottom's attr\");\n this.assert.strictEqual((0, _metal.get)(middle, 'value'), 13, \"the set propagated to middle's prop\");\n this.assert.strictEqual(middle.attrs.value.value, 13, \"the set propagated to middle's attr\");\n this.assert.strictEqual((0, _metal.get)(this.context, 'val'), 13, 'the set propagated back up');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(bottom, 'setMe', 14));\n this.assertText('14', 'the set took effect');\n this.assert.strictEqual((0, _metal.get)(bottom, 'setMe'), 14, \"the set took effect on bottom's prop\");\n this.assert.strictEqual(bottom.attrs.setMe.value, 14, \"the set took effect on bottom's attr\");\n this.assert.strictEqual((0, _metal.get)(middle, 'value'), 14, \"the set propagated to middle's prop\");\n this.assert.strictEqual(middle.attrs.value.value, 14, \"the set propagated to middle's attr\");\n this.assert.strictEqual((0, _metal.get)(this.context, 'val'), 14, 'the set propagated back up');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'val', 12));\n this.assertText('12');\n }\n\n ['@test passing a literal results in a assertion']() {\n this.registerComponent('bottom-mut', {\n template: '{{setMe}}'\n });\n expectAssertion(() => {\n this.render('{{bottom-mut setMe=(mut \"foo bar\")}}');\n }, 'You can only pass a path to mut');\n }\n\n ['@test passing the result of a helper invocation results in an assertion']() {\n this.registerComponent('bottom-mut', {\n template: '{{setMe}}'\n });\n expectAssertion(() => {\n this.render('{{bottom-mut setMe=(mut (concat \"foo\" \" \" \"bar\"))}}');\n }, 'You can only pass a path to mut');\n } // See https://github.com/emberjs/ember.js/commit/807a0cd for an explanation of this test\n\n\n ['@test using a string value through middle tier does not trigger assertion (due to the auto-mut transform)']() {\n let bottom;\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n bottom = this;\n }\n\n }),\n template: '{{stuff}}'\n });\n this.registerComponent('middle-mut', {\n template: '{{bottom-mut stuff=value}}'\n });\n this.render('{{middle-mut value=\"foo\"}}');\n this.assert.equal((0, _metal.get)(bottom, 'stuff'), 'foo', 'the data propagated');\n this.assertText('foo');\n this.assertStableRerender(); // No U-R for this test\n }\n\n ['@test {{readonly}} of a {{mut}} is converted into an immutable binding']() {\n let middle, bottom;\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n bottom = this;\n }\n\n }),\n template: '{{setMe}}'\n });\n this.registerComponent('middle-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n middle = this;\n }\n\n }),\n template: '{{bottom-mut setMe=(readonly value)}}'\n });\n this.render('{{middle-mut value=(mut val)}}', {\n val: 12\n });\n this.assertText('12');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => middle.attrs.value.update(13));\n this.assert.strictEqual((0, _metal.get)(middle, 'value'), 13, \"the set took effect on middle's prop\");\n this.assert.strictEqual(middle.attrs.value.value, 13, \"the set took effect on middle's attr\");\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(middle, 'value', 14));\n this.assert.strictEqual((0, _metal.get)(middle, 'value'), 14, \"the set took effect on middle's prop\");\n this.assert.strictEqual(middle.attrs.value.value, 14, \"the set took effect on middle's attr\");\n this.assert.strictEqual(bottom.attrs.setMe, 14, 'the mutable binding has been converted to an immutable cell');\n this.assertText('14');\n this.assert.strictEqual((0, _metal.get)(this.context, 'val'), 14, 'the set propagated back up');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'val', 12));\n this.assertText('12');\n }\n\n ['@test mutable bindings work inside of yielded content']() {\n this.registerComponent('bottom-mut', {\n template: '{{yield}}'\n });\n this.registerComponent('middle-mut', {\n template: '{{#bottom-mut}}{{model.name}}{{/bottom-mut}}'\n });\n this.render('{{middle-mut model=(mut model)}}', {\n model: {\n name: 'Matthew Beale'\n }\n });\n this.assertText('Matthew Beale');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.name', 'Joel Kang'));\n this.assertText('Joel Kang');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n name: 'Matthew Beale'\n }));\n this.assertText('Matthew Beale');\n }\n\n ['@test a simple mutable binding using {{mut}} is available in hooks']() {\n let bottom;\n let willRender = [];\n let didInsert = [];\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n willRender() {\n willRender.push((0, _metal.get)(this, 'setMe'));\n },\n\n didInsertElement() {\n didInsert.push((0, _metal.get)(this, 'setMe'));\n bottom = this;\n }\n\n }),\n template: '{{setMe}}'\n });\n this.registerComponent('middle-mut', {\n template: '{{bottom-mut setMe=(mut value)}}'\n });\n this.render('{{middle-mut value=(mut val)}}', {\n val: 12\n });\n this.assert.deepEqual(willRender, [12], 'willReceive is [12]');\n this.assert.deepEqual(didInsert, [12], 'didInsert is [12]');\n this.assertText('12');\n this.assertStableRerender();\n this.assert.deepEqual(willRender, [12], 'willReceive is [12]');\n this.assert.deepEqual(didInsert, [12], 'didInsert is [12]');\n this.assert.strictEqual((0, _metal.get)(bottom, 'setMe'), 12, 'the data propagated');\n (0, _internalTestHelpers.runTask)(() => bottom.attrs.setMe.update(13));\n this.assert.strictEqual((0, _metal.get)(bottom, 'setMe'), 13, \"the set took effect on bottom's prop\");\n this.assert.strictEqual(bottom.attrs.setMe.value, 13, \"the set took effect on bottom's attr\");\n this.assert.strictEqual((0, _metal.get)(this.context, 'val'), 13, 'the set propagated back up');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(bottom, 'setMe', 14));\n this.assert.strictEqual((0, _metal.get)(bottom, 'setMe'), 14, \"the set took effect on bottom's prop\");\n this.assert.strictEqual(bottom.attrs.setMe.value, 14, \"the set took effect on bottom's attr\");\n this.assert.strictEqual((0, _metal.get)(this.context, 'val'), 14, 'the set propagated back up');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'val', 12));\n this.assertText('12');\n }\n\n ['@test a mutable binding with a backing computed property and attribute present in the root of the component is updated when the upstream property invalidates #11023']() {\n let bottom, middle;\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n thingy: null,\n\n didInsertElement() {\n bottom = this;\n }\n\n }),\n template: '{{thingy}}'\n });\n this.registerComponent('middle-mut', {\n ComponentClass: _helpers.Component.extend({\n baseValue: 12,\n val: (0, _metal.computed)('baseValue', function () {\n return this.get('baseValue');\n }),\n\n didInsertElement() {\n middle = this;\n }\n\n }),\n template: '{{bottom-mut thingy=(mut val)}}'\n });\n this.render('{{middle-mut}}');\n this.assert.strictEqual((0, _metal.get)(bottom, 'thingy'), 12, 'data propagated');\n this.assertText('12');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(middle, 'baseValue', 13));\n this.assert.strictEqual((0, _metal.get)(middle, 'val'), 13, 'the set took effect');\n this.assert.strictEqual(bottom.attrs.thingy.value, 13, \"the set propagated down to bottom's attrs\");\n this.assert.strictEqual((0, _metal.get)(bottom, 'thingy'), 13, \"the set propagated down to bottom's prop\");\n this.assertText('13');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(middle, 'baseValue', 12));\n this.assertText('12');\n }\n\n ['@test automatic mutable bindings exposes a mut cell in attrs']() {\n let inner;\n this.registerComponent('x-inner', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n inner = this;\n }\n\n }),\n template: '{{foo}}'\n });\n this.registerComponent('x-outer', {\n template: '{{x-inner foo=bar}}'\n });\n this.render('{{x-outer bar=baz}}', {\n baz: 'foo'\n });\n this.assertText('foo');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => inner.attrs.foo.update('bar'));\n this.assert.equal(inner.attrs.foo.value, 'bar');\n this.assert.equal((0, _metal.get)(inner, 'foo'), 'bar');\n this.assertText('bar');\n (0, _internalTestHelpers.runTask)(() => inner.attrs.foo.update('foo'));\n this.assertText('foo');\n }\n\n ['@test automatic mutable bindings tolerate undefined non-stream inputs and attempts to set them']() {\n let inner;\n this.registerComponent('x-inner', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n inner = this;\n }\n\n }),\n template: '{{model}}'\n });\n this.registerComponent('x-outer', {\n template: '{{x-inner model=nonexistent}}'\n });\n this.render('{{x-outer}}');\n this.assertText('');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => inner.attrs.model.update(42));\n this.assert.equal(inner.attrs.model.value, 42);\n this.assert.equal((0, _metal.get)(inner, 'model'), 42);\n this.assertText('42');\n (0, _internalTestHelpers.runTask)(() => inner.attrs.model.update(undefined));\n this.assertText('');\n }\n\n ['@test automatic mutable bindings tolerate constant non-stream inputs and attempts to set them']() {\n let inner;\n this.registerComponent('x-inner', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n inner = this;\n }\n\n }),\n template: 'hello{{model}}'\n });\n this.registerComponent('x-outer', {\n template: '{{x-inner model=x}}'\n });\n this.render('{{x-outer x=\"foo\"}}');\n this.assertText('hellofoo');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => inner.attrs.model.update(42));\n this.assert.equal(inner.attrs.model.value, 42);\n this.assert.equal((0, _metal.get)(inner, 'model'), 42);\n this.assertText('hello42');\n (0, _internalTestHelpers.runTask)(() => inner.attrs.model.update('foo'));\n this.assertText('hellofoo');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Mutable Bindings used in Computed Properties that are bound as attributeBindings', class extends _internalTestHelpers.RenderingTestCase {\n ['@test an attribute binding of a computed property of a 2-way bound attr recomputes when the attr changes']() {\n let input, output;\n this.registerComponent('x-input', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n input = this;\n }\n\n })\n });\n this.registerComponent('x-output', {\n ComponentClass: _helpers.Component.extend({\n attributeBindings: ['style'],\n\n didInsertElement() {\n output = this;\n },\n\n style: (0, _metal.computed)('height', function () {\n let height = this.get('height');\n return (0, _helpers.htmlSafe)(\"height: \" + height + \"px;\");\n }),\n height: 20\n }),\n template: '{{height}}'\n });\n this.render('{{x-output height=height}}{{x-input height=(mut height)}}', {\n height: 60\n });\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n style: (0, _internalTestHelpers.styles)('height: 60px;')\n },\n content: '60'\n });\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => input.attrs.height.update(35));\n this.assert.strictEqual((0, _metal.get)(output, 'height'), 35, 'the set took effect');\n this.assert.strictEqual((0, _metal.get)(this.context, 'height'), 35, 'the set propagated back up');\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n style: (0, _internalTestHelpers.styles)('height: 35px;')\n },\n content: '35'\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(input, 'height', 36));\n this.assert.strictEqual((0, _metal.get)(output, 'height'), 36, 'the set took effect');\n this.assert.strictEqual((0, _metal.get)(this.context, 'height'), 36, 'the set propagated back up');\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n style: (0, _internalTestHelpers.styles)('height: 36px;')\n },\n content: '36'\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'height', 60));\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n style: (0, _internalTestHelpers.styles)('height: 60px;')\n },\n content: '60'\n });\n this.assert.strictEqual((0, _metal.get)(input, 'height'), 60);\n }\n\n ['@test an attribute binding of a computed property with a setter of a 2-way bound attr recomputes when the attr changes']() {\n let input, output;\n this.registerComponent('x-input', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n input = this;\n }\n\n })\n });\n this.registerComponent('x-output', {\n ComponentClass: _helpers.Component.extend({\n attributeBindings: ['style'],\n\n didInsertElement() {\n output = this;\n },\n\n style: (0, _metal.computed)('height', 'width', function () {\n let height = this.get('height');\n let width = this.get('width');\n return (0, _helpers.htmlSafe)(\"height: \" + height + \"px; width: \" + width + \"px;\");\n }),\n height: 20,\n width: (0, _metal.computed)('height', {\n get() {\n return this.get('height') * 2;\n },\n\n set(keyName, width) {\n this.set('height', width / 2);\n return width;\n }\n\n })\n }),\n template: '{{width}}x{{height}}'\n });\n this.render('{{x-output width=width}}{{x-input width=(mut width)}}', {\n width: 70\n });\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n style: (0, _internalTestHelpers.styles)('height: 35px; width: 70px;')\n },\n content: '70x35'\n });\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(input, 'width', 80));\n this.assert.strictEqual((0, _metal.get)(output, 'width'), 80, 'the set took effect');\n this.assert.strictEqual((0, _metal.get)(this.context, 'width'), 80, 'the set propagated back up');\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n style: (0, _internalTestHelpers.styles)('height: 40px; width: 80px;')\n },\n content: '80x40'\n });\n (0, _internalTestHelpers.runTask)(() => input.attrs.width.update(90));\n this.assert.strictEqual((0, _metal.get)(output, 'width'), 90, 'the set took effect');\n this.assert.strictEqual((0, _metal.get)(this.context, 'width'), 90, 'the set propagated back up');\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n style: (0, _internalTestHelpers.styles)('height: 45px; width: 90px;')\n },\n content: '90x45'\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'width', 70));\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n style: (0, _internalTestHelpers.styles)('height: 35px; width: 70px;')\n },\n content: '70x35'\n });\n this.assert.strictEqual((0, _metal.get)(input, 'width'), 70);\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/partial-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\"], function (_internalTestHelpers, _metal, _runtime) {\n \"use strict\";\n\n function _templateObject14() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#outer-component name=name as |outer|}}\\n {{partial 'some-partial'}}\\n {{/outer-component}}\"]);\n\n _templateObject14 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject13() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#outer.inner as |inner|}}\\n inner.name: {{inner.name}}\\n {{/outer.inner}}\\n \"]);\n\n _templateObject13 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject12() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#with item.thing as |t|}}\\n {{partial t}}\\n {{else}}\\n Nothing!\\n {{/with}}\"]);\n\n _templateObject12 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject11() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each model.items as |template i|}}\\n {{model.type}}: {{partial template}}\\n {{/each}}\"]);\n\n _templateObject11 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject10() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#with 'Sophie' as |person1|}}\\n Hi {{person1}} (aged {{age}}). {{partial 'person2-partial'}}\\n {{/with}}\"]);\n\n _templateObject10 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject9() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#with 'Sarah' as |person4|}}\\n Hi {{person1}} (aged {{age}}), {{person2}}, {{person3}} and {{person4}}.\\n {{/with}}\\n \"]);\n\n _templateObject9 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject8() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#with 'Alex' as |person3|}}\\n Hi {{person1}} (aged {{age}}), {{person2}} and {{person3}}. {{partial 'person4-partial'}}\\n {{/with}}\\n \"]);\n\n _templateObject8 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject7() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#with 'Ben' as |person2|}}\\n Hi {{person1}} (aged {{age}}) and {{person2}}. {{partial 'person3-partial'}}\\n {{/with}}\\n \"]);\n\n _templateObject7 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject6() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each names as |name i|}}\\n {{i}}: {{partial 'outer-partial'}}\\n {{/each}}\"]);\n\n _templateObject6 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject5() {\n const data = _taggedTemplateLiteralLoose([\"\\n [outer: {{name}}] {{partial 'inner-partial'}}\\n \"]);\n\n _templateObject5 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject4() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each items as |item|}}\\n {{item}}: {{partial 'show-item'}} |\\n {{/each}}\"]);\n\n _templateObject4 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject3() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each items as |item|}}\\n {{item.id}}: {{partial 'show-item'}} |\\n {{/each}}\"]);\n\n _templateObject3 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#with model as |item|}}\\n {{item.name}}: {{partial 'show-id'}}\\n {{/with}}\"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each model.items as |item|}}\\n {{item}}: {{partial 'show-item'}} |\\n {{/each}}\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{partial}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test should render other templates registered with the container']() {\n this.registerPartial('_subTemplateFromContainer', 'sub-template');\n this.render(\"This {{partial \\\"subTemplateFromContainer\\\"}} is pretty great.\");\n this.assertStableRerender();\n this.assertText('This sub-template is pretty great.');\n }\n\n ['@test should render other slash-separated templates registered with the container']() {\n this.registerPartial('child/_subTemplateFromContainer', 'sub-template');\n this.render(\"This {{partial \\\"child/subTemplateFromContainer\\\"}} is pretty great.\");\n this.assertStableRerender();\n this.assertText('This sub-template is pretty great.');\n }\n\n ['@test should use the current context']() {\n this.registerPartial('_person_name', '{{model.firstName}} {{model.lastName}}');\n this.render('Who is {{partial \"person_name\"}}?', {\n model: {\n firstName: 'Kris',\n lastName: 'Selden'\n }\n });\n this.assertStableRerender();\n this.assertText('Who is Kris Selden?');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.firstName', 'Kelly'));\n this.assertText('Who is Kelly Selden?');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n firstName: 'Kris',\n lastName: 'Selden'\n }));\n this.assertText('Who is Kris Selden?');\n }\n\n ['@test Quoteless parameters passed to {{partial}} perform a bound property lookup of the partial name']() {\n this.registerPartial('_subTemplate', 'sub-template');\n this.registerPartial('_otherTemplate', 'other-template');\n this.render('This {{partial templates.partialName}} is pretty {{partial nonexistent}}great.', {\n templates: {\n partialName: 'subTemplate'\n }\n });\n this.assertStableRerender();\n this.assertText('This sub-template is pretty great.');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'templates.partialName', 'otherTemplate'));\n this.assertText('This other-template is pretty great.');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'templates.partialName', null));\n this.assertText('This is pretty great.');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'templates', {\n partialName: 'subTemplate'\n }));\n this.assertText('This sub-template is pretty great.');\n }\n\n ['@test partial using data from {{#each}}']() {\n this.registerPartial('show-item', '{{item}}');\n this.render((0, _internalTestHelpers.strip)(_templateObject()), {\n model: {\n items: (0, _runtime.A)(['apple', 'orange', 'banana'])\n }\n });\n this.assertStableRerender();\n this.assertText('apple: apple |orange: orange |banana: banana |');\n (0, _internalTestHelpers.runTask)(() => this.context.model.items.pushObject('strawberry'));\n this.assertText('apple: apple |orange: orange |banana: banana |strawberry: strawberry |');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n items: (0, _runtime.A)(['apple', 'orange', 'banana'])\n }));\n this.assertText('apple: apple |orange: orange |banana: banana |');\n }\n\n ['@test partial using `{{get` on data from {{#with}}']() {\n this.registerPartial('show-id', '{{get item \"id\"}}');\n this.render((0, _internalTestHelpers.strip)(_templateObject2()), {\n model: {\n id: 1,\n name: 'foo'\n }\n });\n this.assertStableRerender();\n this.assertText('foo: 1');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.id', 2));\n this.assertText('foo: 2');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.name', 'bar'));\n this.assertText('bar: 2');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n id: 1,\n name: 'foo'\n }));\n this.assertText('foo: 1');\n }\n\n ['@test partial using `{{get` on data from {{#each}}']() {\n this.registerPartial('show-item', '{{get item \"id\"}}');\n this.render((0, _internalTestHelpers.strip)(_templateObject3()), {\n items: (0, _runtime.A)([{\n id: 1\n }, {\n id: 2\n }, {\n id: 3\n }])\n });\n this.assertStableRerender();\n this.assertText('1: 1 |2: 2 |3: 3 |');\n (0, _internalTestHelpers.runTask)(() => this.context.items.pushObject({\n id: 4\n }));\n this.assertText('1: 1 |2: 2 |3: 3 |4: 4 |');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'items', (0, _runtime.A)([{\n id: 1\n }, {\n id: 2\n }, {\n id: 3\n }])));\n this.assertText('1: 1 |2: 2 |3: 3 |');\n }\n\n ['@test partial using conditional on data from {{#each}}']() {\n this.registerPartial('show-item', '{{#if item}}{{item}}{{/if}}');\n this.render((0, _internalTestHelpers.strip)(_templateObject4()), {\n items: (0, _runtime.A)(['apple', null, 'orange', 'banana'])\n });\n this.assertStableRerender();\n this.assertText('apple: apple |: |orange: orange |banana: banana |');\n (0, _internalTestHelpers.runTask)(() => this.context.items.pushObject('strawberry'));\n this.assertText('apple: apple |: |orange: orange |banana: banana |strawberry: strawberry |');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'items', (0, _runtime.A)(['apple', null, 'orange', 'banana'])));\n this.assertText('apple: apple |: |orange: orange |banana: banana |');\n }\n\n ['@test nested partials using data from {{#each}}']() {\n this.registerPartial('_outer-partial', (0, _internalTestHelpers.strip)(_templateObject5()));\n this.registerPartial('inner-partial', '[inner: {{name}}]');\n this.render((0, _internalTestHelpers.strip)(_templateObject6()), {\n names: (0, _runtime.A)(['Alex', 'Ben'])\n });\n this.assertStableRerender();\n this.assertText('0: [outer: Alex] [inner: Alex]1: [outer: Ben] [inner: Ben]');\n (0, _internalTestHelpers.runTask)(() => this.context.names.pushObject('Sophie'));\n this.assertText('0: [outer: Alex] [inner: Alex]1: [outer: Ben] [inner: Ben]2: [outer: Sophie] [inner: Sophie]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'names', (0, _runtime.A)(['Alex', 'Ben'])));\n this.assertText('0: [outer: Alex] [inner: Alex]1: [outer: Ben] [inner: Ben]');\n }\n\n ['@test nested partials within nested `{{#with}}` blocks']() {\n this.registerPartial('_person2-partial', (0, _internalTestHelpers.strip)(_templateObject7()));\n this.registerPartial('_person3-partial', (0, _internalTestHelpers.strip)(_templateObject8()));\n this.registerPartial('_person4-partial', (0, _internalTestHelpers.strip)(_templateObject9()));\n this.render((0, _internalTestHelpers.strip)(_templateObject10()), {\n age: 0\n });\n this.assertStableRerender();\n this.assertText('Hi Sophie (aged 0). Hi Sophie (aged 0) and Ben. Hi Sophie (aged 0), Ben and Alex. Hi Sophie (aged 0), Ben, Alex and Sarah.');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'age', 1));\n this.assertText('Hi Sophie (aged 1). Hi Sophie (aged 1) and Ben. Hi Sophie (aged 1), Ben and Alex. Hi Sophie (aged 1), Ben, Alex and Sarah.');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'age', 0));\n this.assertText('Hi Sophie (aged 0). Hi Sophie (aged 0) and Ben. Hi Sophie (aged 0), Ben and Alex. Hi Sophie (aged 0), Ben, Alex and Sarah.');\n }\n\n ['@test dynamic partials in {{#each}}']() {\n this.registerPartial('_odd', 'ODD{{i}}');\n this.registerPartial('_even', 'EVEN{{i}}');\n this.render((0, _internalTestHelpers.strip)(_templateObject11()), {\n model: {\n items: ['even', 'odd', 'even', 'odd'],\n type: 'number'\n }\n });\n this.assertStableRerender();\n this.assertText('number: EVEN0number: ODD1number: EVEN2number: ODD3');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.type', 'integer'));\n this.assertText('integer: EVEN0integer: ODD1integer: EVEN2integer: ODD3');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n items: ['even', 'odd', 'even', 'odd'],\n type: 'number'\n }));\n this.assertText('number: EVEN0number: ODD1number: EVEN2number: ODD3');\n }\n\n ['@test dynamic partials in {{#with}}']() {\n this.registerPartial('_thing', '{{t}}');\n this.render((0, _internalTestHelpers.strip)(_templateObject12()), {\n item: {\n thing: false\n }\n });\n this.assertStableRerender();\n this.assertText('Nothing!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'item.thing', 'thing'));\n this.assertText('thing');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'item', {\n thing: false\n }));\n this.assertText('Nothing!');\n }\n\n ['@test partials which contain contextual components']() {\n this.registerComponent('outer-component', {\n template: '{{yield (hash inner=(component \"inner-component\" name=name))}}'\n });\n this.registerComponent('inner-component', {\n template: '{{yield (hash name=name)}}'\n });\n this.registerPartial('_some-partial', (0, _internalTestHelpers.strip)(_templateObject13()));\n this.render((0, _internalTestHelpers.strip)(_templateObject14()), {\n name: 'Sophie'\n });\n this.assertStableRerender();\n this.assertText('inner.name: Sophie');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'Ben'));\n this.assertText('inner.name: Ben');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'Sophie'));\n this.assertText('inner.name: Sophie');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/readonly-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_internalTestHelpers, _metal, _helpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{readonly}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test {{readonly}} of a path should work']() {\n let component;\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n component = this;\n }\n\n }),\n template: '{{value}}'\n });\n this.render('{{foo-bar value=(readonly val)}}', {\n val: 12\n });\n this.assertText('12');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(component, 'value', 13));\n this.assert.notOk(component.attrs.value.update);\n this.assertText('13', 'local property is updated');\n this.assert.equal((0, _metal.get)(this.context, 'val'), 12, 'upstream attribute is not updated'); // No U-R\n }\n\n '@test passing an action to {{readonly}} avoids mutable cell wrapping'(assert) {\n assert.expect(4);\n let outer, inner;\n this.registerComponent('x-inner', {\n ComponentClass: _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n inner = this;\n }\n\n })\n });\n this.registerComponent('x-outer', {\n ComponentClass: _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n outer = this;\n }\n\n }),\n template: '{{x-inner onClick=(readonly onClick)}}'\n });\n this.render('{{x-outer onClick=(action doIt)}}', {\n doIt() {\n assert.ok(true, 'action was called');\n }\n\n });\n assert.equal(typeof outer.attrs.onClick, 'function', 'function itself is present in outer component attrs');\n outer.attrs.onClick();\n assert.equal(typeof inner.attrs.onClick, 'function', 'function itself is present in inner component attrs');\n inner.attrs.onClick();\n }\n\n '@test updating a {{readonly}} property from above works'(assert) {\n let component;\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n component = this;\n }\n\n }),\n template: '{{value}}'\n });\n this.render('{{foo-bar value=(readonly thing)}}', {\n thing: 'initial'\n });\n this.assertText('initial');\n this.assertStableRerender();\n assert.strictEqual(component.attrs.value, 'initial', 'no mutable cell');\n assert.strictEqual((0, _metal.get)(component, 'value'), 'initial', 'no mutable cell');\n assert.strictEqual(this.context.thing, 'initial');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'thing', 'updated!'));\n this.assertText('updated!');\n assert.strictEqual(component.attrs.value, 'updated!', 'passed down value was set in attrs');\n assert.strictEqual((0, _metal.get)(component, 'value'), 'updated!', 'passed down value was set');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'thing', 'initial'));\n this.assertText('initial');\n }\n\n '@test updating a nested path of a {{readonly}}'(assert) {\n let component;\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n component = this;\n }\n\n }),\n template: '{{value.prop}}'\n });\n this.render('{{foo-bar value=(readonly thing)}}', {\n thing: {\n prop: 'initial'\n }\n });\n this.assertText('initial');\n this.assertStableRerender();\n assert.notOk(component.attrs.value.update, 'no update available');\n assert.deepEqual((0, _metal.get)(component, 'value'), {\n prop: 'initial'\n });\n assert.deepEqual(this.context.thing, {\n prop: 'initial'\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(component, 'value.prop', 'updated!'));\n this.assertText('updated!', 'nested path is updated');\n assert.deepEqual((0, _metal.get)(component, 'value'), {\n prop: 'updated!'\n });\n assert.deepEqual(this.context.thing, {\n prop: 'updated!'\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(component, 'value.prop', 'initial'));\n this.assertText('initial');\n }\n\n ['@test {{readonly}} of a string renders correctly']() {\n let component;\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n component = this;\n }\n\n }),\n template: '{{value}}'\n });\n this.render('{{foo-bar value=(readonly \"12\")}}');\n this.assertText('12');\n this.assertStableRerender();\n this.assert.notOk(component.attrs.value.update);\n this.assert.strictEqual((0, _metal.get)(component, 'value'), '12');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(component, 'value', '13'));\n this.assertText('13', 'local property is updated');\n this.assert.strictEqual((0, _metal.get)(component, 'value'), '13');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(component, 'value', '12'));\n this.assertText('12');\n }\n\n ['@test {{mut}} of a {{readonly}} mutates only the middle and bottom tiers']() {\n let middle, bottom;\n this.registerComponent('x-bottom', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n bottom = this;\n }\n\n }),\n template: '{{bar}}'\n });\n this.registerComponent('x-middle', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement() {\n middle = this;\n }\n\n }),\n template: '{{foo}} {{x-bottom bar=(mut foo)}}'\n });\n this.render('{{x-middle foo=(readonly val)}}', {\n val: 12\n });\n this.assertText('12 12');\n this.assertStableRerender();\n this.assert.equal((0, _metal.get)(bottom, 'bar'), 12, \"bottom's local bar received the value\");\n this.assert.equal((0, _metal.get)(middle, 'foo'), 12, \"middle's local foo received the value\"); // updating the mut-cell directly\n\n (0, _internalTestHelpers.runTask)(() => bottom.attrs.bar.update(13));\n this.assert.equal((0, _metal.get)(bottom, 'bar'), 13, \"bottom's local bar was updated after set of bottom's bar\");\n this.assert.equal((0, _metal.get)(middle, 'foo'), 13, \"middle's local foo was updated after set of bottom's bar\");\n this.assertText('13 13');\n this.assert.equal((0, _metal.get)(this.context, 'val'), 12, 'But context val is not updated');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(bottom, 'bar', 14));\n this.assert.equal((0, _metal.get)(bottom, 'bar'), 14, \"bottom's local bar was updated after set of bottom's bar\");\n this.assert.equal((0, _metal.get)(middle, 'foo'), 14, \"middle's local foo was updated after set of bottom's bar\");\n this.assertText('14 14');\n this.assert.equal((0, _metal.get)(this.context, 'val'), 12, 'But context val is not updated');\n this.assert.notOk(middle.attrs.foo.update, \"middle's foo attr is not a mutable cell\");\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(middle, 'foo', 15));\n this.assertText('15 15');\n this.assert.equal((0, _metal.get)(middle, 'foo'), 15, \"set of middle's foo took effect\");\n this.assert.equal((0, _metal.get)(bottom, 'bar'), 15, \"bottom's local bar was updated after set of middle's foo\");\n this.assert.equal((0, _metal.get)(this.context, 'val'), 12, 'Context val remains unchanged');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'val', 10));\n this.assertText('10 10');\n this.assert.equal((0, _metal.get)(bottom, 'bar'), 10, \"bottom's local bar was updated after set of context's val\");\n this.assert.equal((0, _metal.get)(middle, 'foo'), 10, \"middle's local foo was updated after set of context's val\"); // setting as a normal property\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(bottom, 'bar', undefined));\n this.assertText(' ');\n this.assert.equal((0, _metal.get)(bottom, 'bar'), undefined, \"bottom's local bar was updated to a falsy value\");\n this.assert.equal((0, _metal.get)(middle, 'foo'), undefined, \"middle's local foo was updated to a falsy value\");\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'val', 12));\n this.assertText('12 12', 'bottom and middle were both reset');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/tracked-test\", [\"@ember/canary-features\", \"@ember/-internals/runtime\", \"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_canaryFeatures, _runtime, _metal, _internalTestHelpers, _helpers) {\n \"use strict\";\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n {{hello-world this.full}}\\n \\n \"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n {{hello-world this.name}}\\n \\n \"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n (0, _internalTestHelpers.moduleFor)('Helper Tracked Properties', class extends _internalTestHelpers.RenderingTestCase {\n '@test tracked properties rerender when updated'(assert) {\n let computeCount = 0;\n\n let PersonComponent = _helpers.Component.extend({\n name: (0, _metal.tracked)({\n value: 'bob'\n }),\n\n updateName() {\n this.name = 'sal';\n }\n\n });\n\n this.registerComponent('person', {\n ComponentClass: PersonComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject())\n });\n this.registerHelper('hello-world', ([value]) => {\n computeCount++;\n return value + \"-value\";\n });\n this.render('
');\n this.assertText('bob-value');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('bob-value');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => this.$('button').click());\n this.assertText('sal-value');\n assert.strictEqual(computeCount, 2, 'compute is called exactly 2 times');\n }\n\n '@test nested tracked properties rerender when updated'(assert) {\n let computeCount = 0;\n\n let Person = _runtime.Object.extend({\n name: (0, _metal.tracked)({\n value: 'bob'\n })\n });\n\n this.registerHelper('hello-world', ([value]) => {\n computeCount++;\n return value + \"-value\";\n });\n this.render('{{hello-world model.name}}', {\n model: Person.create()\n });\n this.assertText('bob-value');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('bob-value');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => this.context.model.name = 'sal');\n this.assertText('sal-value');\n assert.strictEqual(computeCount, 2, 'compute is called exactly 2 times');\n }\n\n '@test getters update when dependent properties are invalidated'(assert) {\n let computeCount = 0;\n\n let PersonComponent = _helpers.Component.extend({\n first: (0, _metal.tracked)({\n value: 'Rob'\n }),\n last: (0, _metal.tracked)({\n value: 'Jackson'\n }),\n full: (0, _metal.nativeDescDecorator)({\n get() {\n return this.first + \" \" + this.last;\n }\n\n }),\n\n updatePerson() {\n this.first = 'Kris';\n this.last = 'Selden';\n }\n\n });\n\n this.registerComponent('person', {\n ComponentClass: PersonComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject2())\n });\n this.registerHelper('hello-world', ([value]) => {\n computeCount++;\n return value;\n });\n this.render('
');\n this.assertText('Rob Jackson');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Rob Jackson');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => this.$('button').click());\n this.assertText('Kris Selden');\n assert.strictEqual(computeCount, 2, 'compute is called exactly 2 times');\n }\n\n '@test nested getters update when dependent properties are invalidated'(assert) {\n let computeCount = 0;\n\n let Person = _runtime.Object.extend({\n first: (0, _metal.tracked)({\n value: 'Rob'\n }),\n last: (0, _metal.tracked)({\n value: 'Jackson'\n }),\n full: (0, _metal.nativeDescDecorator)({\n get() {\n return this.first + \" \" + this.last;\n }\n\n })\n });\n\n this.registerHelper('hello-world', ([value]) => {\n computeCount++;\n return value;\n });\n this.render('{{hello-world model.full}}', {\n model: Person.create()\n });\n this.assertText('Rob Jackson');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Rob Jackson');\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n (0, _internalTestHelpers.runTask)(() => {\n this.context.model.first = 'Kris';\n this.context.model.last = 'Selden';\n });\n this.assertText('Kris Selden');\n assert.strictEqual(computeCount, 2, 'compute is called exactly 2 times');\n }\n\n });\n }\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/unbound-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_internalTestHelpers, _metal, _runtime, _helpers) {\n \"use strict\";\n\n function _templateObject3() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#if (unbound model.foo)}}\\n {{#if model.bar}}true{{/if}}\\n {{#unless model.bar}}false{{/unless}}\\n {{/if}}\\n {{#unless (unbound model.notfoo)}}\\n {{#if model.bar}}true{{/if}}\\n {{#unless model.bar}}false{{/unless}}\\n {{/unless}}\"]);\n\n _templateObject3 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{unbound (surround model.prefix model.value \\\"bar\\\")}} {{surround model.prefix model.value \\\"bar\\\"}} {{unbound (surround \\\"bar\\\" model.value model.suffix)}} {{surround \\\"bar\\\" model.value model.suffix}}\"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{unbound}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test should be able to output a property without binding']() {\n this.render(\"
{{unbound content.anUnboundString}}
\", {\n content: {\n anUnboundString: 'No spans here, son.'\n }\n });\n this.assertText('No spans here, son.');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('No spans here, son.');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'content.anUnboundString', 'HEY'));\n this.assertText('No spans here, son.');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'content', {\n anUnboundString: 'No spans here, son.'\n }));\n this.assertText('No spans here, son.');\n }\n\n ['@test should be able to use unbound helper in #each helper']() {\n this.render(\"
{{#each items as |item|}}{{unbound item}} {{/each}} \", {\n items: (0, _runtime.A)(['a', 'b', 'c', 1, 2, 3])\n });\n this.assertText('abc123');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('abc123');\n }\n\n ['@test should be able to use unbound helper in #each helper (with objects)']() {\n this.render(\"
{{#each items as |item|}}{{unbound item.wham}} {{/each}} \", {\n items: (0, _runtime.A)([{\n wham: 'bam'\n }, {\n wham: 1\n }])\n });\n this.assertText('bam1');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('bam1');\n (0, _internalTestHelpers.runTask)(() => this.context.items.setEach('wham', 'HEY'));\n this.assertText('bam1');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'items', (0, _runtime.A)([{\n wham: 'bam'\n }, {\n wham: 1\n }])));\n this.assertText('bam1');\n }\n\n ['@test it should assert unbound cannot be called with multiple arguments']() {\n let willThrow = () => {\n this.render(\"{{unbound foo bar}}\", {\n foo: 'BORK',\n bar: 'BLOOP'\n });\n };\n\n expectAssertion(willThrow, /unbound helper cannot be called with multiple params or hash params/);\n }\n\n ['@test should render on attributes']() {\n this.render(\"
\", {\n model: {\n foo: 'BORK'\n }\n });\n this.assertHTML('
');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertHTML('
');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.foo', 'OOF'));\n this.assertHTML('
');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n foo: 'BORK'\n }));\n this.assertHTML('
');\n }\n\n ['@test should property escape unsafe hrefs']() {\n let unsafeUrls = (0, _runtime.A)([{\n name: 'Bob',\n url: 'javascript:bob-is-cool'\n }, {\n name: 'James',\n url: 'vbscript:james-is-cool'\n }, {\n name: 'Richard',\n url: 'javascript:richard-is-cool'\n }]);\n this.render(\"
\", {\n people: unsafeUrls\n });\n let escapedHtml = (0, _internalTestHelpers.strip)(_templateObject());\n this.assertHTML(escapedHtml);\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertHTML(escapedHtml);\n (0, _internalTestHelpers.runTask)(() => this.context.people.setEach('url', 'http://google.com'));\n this.assertHTML(escapedHtml);\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'people', unsafeUrls));\n this.assertHTML(escapedHtml);\n }\n\n ['@skip helper form updates on parent re-render']() {\n this.render(\"{{unbound foo}}\", {\n foo: 'BORK'\n });\n this.assertText('BORK');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('BORK');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', 'OOF'));\n this.assertText('BORK');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('OOF');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', ''));\n this.assertText('OOF');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', 'BORK'));\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('BORK');\n } // semantics here is not guaranteed\n\n\n ['@test sexpr form does not update no matter what']() {\n this.registerHelper('capitalize', args => args[0].toUpperCase());\n this.render(\"{{capitalize (unbound foo)}}\", {\n foo: 'bork'\n });\n this.assertText('BORK');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('BORK');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'foo', 'oof');\n this.rerender();\n });\n this.assertText('BORK');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', 'blip'));\n this.assertText('BORK');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'foo', 'bork');\n this.rerender();\n });\n this.assertText('BORK');\n }\n\n ['@test sexpr in helper form does not update on parent re-render']() {\n this.registerHelper('capitalize', params => params[0].toUpperCase());\n this.registerHelper('doublize', params => params[0] + \" \" + params[0]);\n this.render(\"{{capitalize (unbound (doublize foo))}}\", {\n foo: 'bork'\n });\n this.assertText('BORK BORK');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('BORK BORK');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'foo', 'oof');\n this.rerender();\n });\n this.assertText('BORK BORK');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', 'blip'));\n this.assertText('BORK BORK');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'foo', 'bork');\n this.rerender();\n });\n this.assertText('BORK BORK');\n }\n\n ['@test should be able to render an unbound helper invocation']() {\n this.registerHelper('repeat', ([value], {\n count\n }) => {\n let a = [];\n\n while (a.length < count) {\n a.push(value);\n }\n\n return a.join('');\n });\n this.render(\"{{unbound (repeat foo count=bar)}} {{repeat foo count=bar}} {{unbound (repeat foo count=2)}} {{repeat foo count=4}}\", {\n foo: 'X',\n bar: 5\n });\n this.assertText('XXXXX XXXXX XX XXXX');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('XXXXX XXXXX XX XXXX');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'bar', 1));\n this.assertText('XXXXX X XX XXXX');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'bar', 5));\n this.assertText('XXXXX XXXXX XX XXXX');\n }\n\n ['@test should be able to render an bound helper invocation mixed with static values']() {\n this.registerHelper('surround', ([prefix, value, suffix]) => prefix + \"-\" + value + \"-\" + suffix);\n this.render((0, _internalTestHelpers.strip)(_templateObject2()), {\n model: {\n prefix: 'before',\n value: 'core',\n suffix: 'after'\n }\n });\n this.assertText('before-core-bar before-core-bar bar-core-after bar-core-after');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('before-core-bar before-core-bar bar-core-after bar-core-after');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.setProperties)(this.context.model, {\n prefix: 'beforeChanged',\n value: 'coreChanged',\n suffix: 'afterChanged'\n });\n });\n this.assertText('before-core-bar beforeChanged-coreChanged-bar bar-core-after bar-coreChanged-afterChanged');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'model', {\n prefix: 'before',\n value: 'core',\n suffix: 'after'\n });\n });\n this.assertText('before-core-bar before-core-bar bar-core-after bar-core-after');\n }\n\n ['@test should be able to render unbound forms of multi-arg helpers']() {\n this.registerHelper('fauxconcat', params => params.join(''));\n this.render(\"{{fauxconcat model.foo model.bar model.bing}} {{unbound (fauxconcat model.foo model.bar model.bing)}}\", {\n model: {\n foo: 'a',\n bar: 'b',\n bing: 'c'\n }\n });\n this.assertText('abc abc');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('abc abc');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.bar', 'X'));\n this.assertText('aXc abc');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n foo: 'a',\n bar: 'b',\n bing: 'c'\n }));\n this.assertText('abc abc');\n }\n\n ['@test should be able to render an unbound helper invocation for helpers with dependent keys']() {\n this.registerHelper('capitalizeName', {\n destroy() {\n this.removeObserver('value.firstName', this, this.recompute);\n\n this._super(...arguments);\n },\n\n compute([value]) {\n if (this.get('value')) {\n this.removeObserver('value.firstName', this, this.recompute);\n }\n\n this.set('value', value);\n this.addObserver('value.firstName', this, this.recompute);\n return value ? (0, _metal.get)(value, 'firstName').toUpperCase() : '';\n }\n\n });\n this.registerHelper('concatNames', {\n destroy() {\n this.teardown();\n\n this._super(...arguments);\n },\n\n teardown() {\n this.removeObserver('value.firstName', this, this.recompute);\n this.removeObserver('value.lastName', this, this.recompute);\n },\n\n compute([value]) {\n if (this.get('value')) {\n this.teardown();\n }\n\n this.set('value', value);\n this.addObserver('value.firstName', this, this.recompute);\n this.addObserver('value.lastName', this, this.recompute);\n return (value ? (0, _metal.get)(value, 'firstName') : '') + (value ? (0, _metal.get)(value, 'lastName') : '');\n }\n\n });\n this.render(\"{{capitalizeName person}} {{unbound (capitalizeName person)}} {{concatNames person}} {{unbound (concatNames person)}}\", {\n person: {\n firstName: 'shooby',\n lastName: 'taylor'\n }\n });\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'person.firstName', 'sally'));\n this.assertText('SALLY SHOOBY sallytaylor shoobytaylor');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'person', {\n firstName: 'shooby',\n lastName: 'taylor'\n }));\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n }\n\n ['@test should be able to render an unbound helper invocation in #each helper']() {\n this.registerHelper('capitalize', params => params[0].toUpperCase());\n this.render(\"{{#each people as |person|}}{{capitalize person.firstName}} {{unbound (capitalize person.firstName)}}{{/each}}\", {\n people: (0, _runtime.A)([{\n firstName: 'shooby',\n lastName: 'taylor'\n }, {\n firstName: 'cindy',\n lastName: 'taylor'\n }])\n });\n this.assertText('SHOOBY SHOOBYCINDY CINDY');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('SHOOBY SHOOBYCINDY CINDY');\n (0, _internalTestHelpers.runTask)(() => this.context.people.setEach('firstName', 'chad'));\n this.assertText('CHAD SHOOBYCHAD CINDY');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'people', (0, _runtime.A)([{\n firstName: 'shooby',\n lastName: 'taylor'\n }, {\n firstName: 'cindy',\n lastName: 'taylor'\n }])));\n this.assertText('SHOOBY SHOOBYCINDY CINDY');\n }\n\n ['@test should be able to render an unbound helper invocation with bound hash options']() {\n this.registerHelper('capitalizeName', {\n destroy() {\n this.removeObserver('value.firstName', this, this.recompute);\n\n this._super(...arguments);\n },\n\n compute([value]) {\n if (this.get('value')) {\n this.removeObserver('value.firstName', this, this.recompute);\n }\n\n this.set('value', value);\n this.addObserver('value.firstName', this, this.recompute);\n return value ? (0, _metal.get)(value, 'firstName').toUpperCase() : '';\n }\n\n });\n this.registerHelper('concatNames', {\n destroy() {\n this.teardown();\n\n this._super(...arguments);\n },\n\n teardown() {\n this.removeObserver('value.firstName', this, this.recompute);\n this.removeObserver('value.lastName', this, this.recompute);\n },\n\n compute([value]) {\n if (this.get('value')) {\n this.teardown();\n }\n\n this.set('value', value);\n this.addObserver('value.firstName', this, this.recompute);\n this.addObserver('value.lastName', this, this.recompute);\n return (value ? (0, _metal.get)(value, 'firstName') : '') + (value ? (0, _metal.get)(value, 'lastName') : '');\n }\n\n });\n this.render(\"{{capitalizeName person}} {{unbound (capitalizeName person)}} {{concatNames person}} {{unbound (concatNames person)}}\", {\n person: {\n firstName: 'shooby',\n lastName: 'taylor'\n }\n });\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'person.firstName', 'sally'));\n this.assertText('SALLY SHOOBY sallytaylor shoobytaylor');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'person', {\n firstName: 'shooby',\n lastName: 'taylor'\n }));\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n }\n\n ['@test should be able to render bound form of a helper inside unbound form of same helper']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject3()), {\n model: {\n foo: true,\n notfoo: false,\n bar: true\n }\n });\n this.assertText('truetrue');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('truetrue');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.bar', false));\n this.assertText('falsefalse');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n foo: true,\n notfoo: false,\n bar: true\n }));\n this.assertText('truetrue');\n }\n\n ['@test yielding unbound does not update']() {\n let fooBarInstance;\n\n let FooBarComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n fooBarInstance = this;\n },\n\n model: {\n foo: 'bork'\n }\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: \"{{yield (unbound model.foo)}}\"\n });\n this.render(\"{{#foo-bar as |value|}}{{value}}{{/foo-bar}}\");\n this.assertText('bork');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('bork');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(fooBarInstance, 'model.foo', 'oof'));\n this.assertText('bork');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(fooBarInstance, 'model', {\n foo: 'bork'\n }));\n this.assertText('bork');\n }\n\n ['@test yielding unbound hash does not update']() {\n let fooBarInstance;\n\n let FooBarComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n fooBarInstance = this;\n },\n\n model: {\n foo: 'bork'\n }\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: \"{{yield (unbound (hash foo=model.foo))}}\"\n });\n this.render(\"{{#foo-bar as |value|}}{{value.foo}}{{/foo-bar}}\");\n this.assertText('bork');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('bork');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(fooBarInstance, 'model.foo', 'oof'));\n this.assertText('bork');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(fooBarInstance, 'model', {\n foo: 'bork'\n }));\n this.assertText('bork');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/helpers/yield-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_internalTestHelpers, _metal, _helpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Helpers test: {{yield}} helper', class extends _internalTestHelpers.RenderingTestCase {\n ['@test can yield to block']() {\n this.registerComponent('yield-comp', {\n template: '[In layout:] {{yield}}'\n });\n this.render('{{#yield-comp}}[In Block:] {{object.title}}{{/yield-comp}}', {\n object: {\n title: 'Seattle'\n }\n });\n this.assertText('[In layout:] [In Block:] Seattle');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'object.title', 'Vancouver'));\n this.assertText('[In layout:] [In Block:] Vancouver');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'object', {\n title: 'Seattle'\n }));\n this.assertText('[In layout:] [In Block:] Seattle');\n }\n\n ['@test templates should yield to block inside a nested component']() {\n this.registerComponent('outer-comp', {\n template: '
[In layout:] {{yield}}
'\n });\n this.registerComponent('inner-comp', {\n template: '{{#outer-comp}}[In Block:] {{object.title}}{{/outer-comp}}'\n });\n this.render('{{inner-comp object=object}}', {\n object: {\n title: 'Seattle'\n }\n });\n this.assertText('[In layout:] [In Block:] Seattle');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'object.title', 'Vancouver'));\n this.assertText('[In layout:] [In Block:] Vancouver');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'object', {\n title: 'Seattle'\n }));\n this.assertText('[In layout:] [In Block:] Seattle');\n }\n\n ['@test templates should yield to block, when the yield is embedded in a each helper']() {\n let list = [1, 2, 3];\n this.registerComponent('outer-comp', {\n template: '{{#each list as |item|}}{{yield}}{{/each}}'\n });\n this.render('{{#outer-comp list=list}}Hello{{/outer-comp}}', {\n list: list\n });\n this.assertText('HelloHelloHello');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'list', [4, 5]));\n this.assertText('HelloHello');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'list', list));\n this.assertText('HelloHelloHello');\n }\n\n ['@test templates should yield to block, when the yield is embedded in a if helper']() {\n this.registerComponent('outer-comp', {\n template: '{{#if boolean}}{{yield}}{{/if}}'\n });\n this.render('{{#outer-comp boolean=boolean}}Hello{{/outer-comp}}', {\n boolean: true\n });\n this.assertText('Hello');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'boolean', false));\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'boolean', true));\n this.assertText('Hello');\n }\n\n ['@test simple curlies inside of a yielded clock should work when the yield is nested inside of another view']() {\n this.registerComponent('kiwi-comp', {\n template: '{{#if falsy}}{{else}}{{yield}}{{/if}}'\n });\n this.render('{{#kiwi-comp}}{{text}}{{/kiwi-comp}}', {\n text: 'ohai'\n });\n this.assertText('ohai');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'text', 'portland'));\n this.assertText('portland');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'text', 'ohai'));\n this.assertText('ohai');\n }\n\n ['@test nested simple curlies inside of a yielded block should work when the yield is nested inside of another view']() {\n this.registerComponent('parent-comp', {\n template: '{{#if falsy}}{{else}}{{yield}}{{/if}}'\n });\n this.registerComponent('child-comp', {\n template: '{{#if falsy}}{{else}}{{text}}{{/if}}'\n });\n this.render('{{#parent-comp}}{{child-comp text=text}}{{/parent-comp}}', {\n text: 'ohai'\n });\n this.assertText('ohai');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'text', 'portland'));\n this.assertText('portland');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'text', 'ohai'));\n this.assertText('ohai');\n }\n\n ['@test yielding to a non-existent block is not an error']() {\n this.registerComponent('yielding-comp', {\n template: 'Hello:{{yield}}'\n });\n this.registerComponent('outer-comp', {\n template: '{{yielding-comp}} {{title}}'\n });\n this.render('{{outer-comp title=title}}', {\n title: 'Mr. Selden'\n });\n this.assertText('Hello: Mr. Selden');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'title', 'Mr. Chag'));\n this.assertText('Hello: Mr. Chag');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'title', 'Mr. Selden'));\n this.assertText('Hello: Mr. Selden');\n }\n\n ['@test yield uses the original context']() {\n let KiwiCompComponent = _helpers.Component.extend({\n boundText: 'Inner'\n });\n\n this.registerComponent('kiwi-comp', {\n ComponentClass: KiwiCompComponent,\n template: '
{{boundText}}
{{yield}}
'\n });\n this.render('{{#kiwi-comp}}{{boundText}}{{/kiwi-comp}}', {\n boundText: 'Original'\n });\n this.assertText('InnerOriginal');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'boundText', 'Otherworld'));\n this.assertText('InnerOtherworld');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'boundText', 'Original'));\n this.assertText('InnerOriginal');\n }\n\n [\"@test outer block param doesn't mask inner component property\"]() {\n let KiwiCompComponent = _helpers.Component.extend({\n boundText: 'Inner'\n });\n\n this.registerComponent('kiwi-comp', {\n ComponentClass: KiwiCompComponent,\n template: '
{{boundText}}
{{yield}}
'\n });\n this.render('{{#with boundText as |item|}}{{#kiwi-comp}}{{item}}{{/kiwi-comp}}{{/with}}', {\n boundText: 'Outer'\n });\n this.assertText('InnerOuter');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'boundText', 'Otherworld'));\n this.assertText('InnerOtherworld');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'boundText', 'Outer'));\n this.assertText('InnerOuter');\n }\n\n [\"@test inner block param doesn't mask yield property\"]() {\n let KiwiCompComponent = _helpers.Component.extend({\n boundText: 'Inner'\n });\n\n this.registerComponent('kiwi-comp', {\n ComponentClass: KiwiCompComponent,\n template: '{{#with boundText as |item|}}
{{item}}
{{yield}}
{{/with}}'\n });\n this.render('{{#kiwi-comp}}{{item}}{{/kiwi-comp}}', {\n item: 'Outer'\n });\n this.assertText('InnerOuter');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'item', 'Otherworld'));\n this.assertText('InnerOtherworld');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'item', 'Outer'));\n this.assertText('InnerOuter');\n }\n\n ['@test can bind a block param to a component and use it in yield']() {\n this.registerComponent('kiwi-comp', {\n template: '
{{content}}
{{yield}}
'\n });\n this.render('{{#with boundText as |item|}}{{#kiwi-comp content=item}}{{item}}{{/kiwi-comp}}{{/with}}', {\n boundText: 'Outer'\n });\n this.assertText('OuterOuter');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'boundText', 'Update'));\n this.assertText('UpdateUpdate');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'boundText', 'Outer'));\n this.assertText('OuterOuter');\n } // INUR not need with no data update\n\n\n ['@test yield should not introduce a view'](assert) {\n let ParentCompComponent = _helpers.Component.extend({\n isParentComponent: true\n });\n\n let ChildCompComponent = _helpers.Component.extend({\n didReceiveAttrs() {\n this._super();\n\n let parentView = this.get('parentView');\n assert.ok(parentView.get('isParentComponent'));\n }\n\n });\n\n this.registerComponent('parent-comp', {\n ComponentClass: ParentCompComponent,\n template: '{{yield}}'\n });\n this.registerComponent('child-comp', {\n ComponentClass: ChildCompComponent\n });\n this.render('{{#parent-comp}}{{child-comp}}{{/parent-comp}}');\n }\n\n ['@test yield with nested components (#3220)']() {\n this.registerComponent('inner-component', {\n template: '{{yield}}'\n });\n this.registerComponent('outer-component', {\n template: '{{#inner-component}}
{{yield}} {{/inner-component}}'\n });\n this.render('{{#outer-component}}Hello {{boundText}}{{/outer-component}}', {\n boundText: 'world'\n });\n this.assertText('Hello world');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'boundText', 'update'));\n this.assertText('Hello update');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'boundText', 'world'));\n this.assertText('Hello world');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/input-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _metal) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Input element tests', class extends _internalTestHelpers.RenderingTestCase {\n runAttributeTest(attributeName, values) {\n let template = \"
\";\n this.render(template, {\n value: values[0]\n });\n this.assertAttributeHasValue(attributeName, values[0], attributeName + \" is set on initial render\");\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertAttributeHasValue(attributeName, values[0], attributeName + \" is set on noop rerender\");\n this.setComponentValue(values[1]);\n this.assertAttributeHasValue(attributeName, values[1], attributeName + \" is set on rerender\");\n this.setComponentValue(values[0]);\n this.assertAttributeHasValue(attributeName, values[0], attributeName + \" can be set back to the initial value\");\n }\n\n runPropertyTest(propertyName, values) {\n let attributeName = propertyName;\n let template = \"
\";\n this.render(template, {\n value: values[0]\n });\n this.assertPropertyHasValue(propertyName, values[0], propertyName + \" is set on initial render\");\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertPropertyHasValue(propertyName, values[0], propertyName + \" is set on noop rerender\");\n this.setComponentValue(values[1]);\n this.assertPropertyHasValue(propertyName, values[1], propertyName + \" is set on rerender\");\n this.setComponentValue(values[0]);\n this.assertPropertyHasValue(propertyName, values[0], propertyName + \" can be set back to the initial value\");\n }\n\n runFalsyValueProperty(values) {\n let value = 'value';\n let template = \"
\";\n this.render(template, {\n value: values[0]\n });\n this.assertPropertyHasValue(value, '', value + \" is set on initial render\");\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertPropertyHasValue(value, '', value + \" is set on noop rerender\");\n this.setComponentValue(values[1]);\n this.assertPropertyHasValue(value, values[1], value + \" is set on rerender\");\n this.setComponentValue(values[0]);\n this.assertPropertyHasValue(value, '', value + \" can be set back to the initial value\");\n }\n\n ['@test input disabled attribute']() {\n let model = {\n model: {\n value: false\n }\n };\n this.render(\"
\", model);\n this.assert.equal(this.$inputElement().prop('disabled'), false);\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assert.equal(this.$inputElement().prop('disabled'), false);\n (0, _internalTestHelpers.runTask)(() => this.context.set('model.value', true));\n this.assert.equal(this.$inputElement().prop('disabled'), true);\n this.assertHTML('
'); // Note the DOM output is
\n\n (0, _internalTestHelpers.runTask)(() => this.context.set('model.value', 'wat'));\n this.assert.equal(this.$inputElement().prop('disabled'), true);\n this.assertHTML('
'); // Note the DOM output is
\n\n (0, _internalTestHelpers.runTask)(() => this.context.set('model', {\n value: false\n }));\n this.assert.equal(this.$inputElement().prop('disabled'), false);\n this.assertHTML('
');\n }\n\n ['@test input value attribute']() {\n this.runPropertyTest('value', ['foo', 'bar']);\n }\n\n ['@test input placeholder attribute']() {\n this.runAttributeTest('placeholder', ['foo', 'bar']);\n }\n\n ['@test input name attribute']() {\n this.runAttributeTest('name', ['nam', 'name']);\n }\n\n ['@test input maxlength attribute']() {\n this.runAttributeTest('maxlength', [2, 3]);\n }\n\n ['@test input size attribute']() {\n this.runAttributeTest('size', [2, 3]);\n }\n\n ['@test input tabindex attribute']() {\n this.runAttributeTest('tabindex', [2, 3]);\n }\n\n ['@test null input value']() {\n this.runFalsyValueProperty([null, 'hello']);\n }\n\n ['@test undefined input value']() {\n this.runFalsyValueProperty([undefined, 'hello']);\n }\n\n ['@test undefined `toString` method as input value']() {\n this.runFalsyValueProperty([Object.create(null), 'hello']);\n }\n\n ['@test cursor position is not lost when updating content']() {\n let template = \"
\";\n this.render(template, {\n value: 'hola'\n });\n this.setDOMValue('hello');\n this.setSelectionRange(1, 3);\n this.setComponentValue('hello');\n this.assertSelectionRange(1, 3); // Note: We should eventually get around to testing reseting, however\n // browsers handle `selectionStart` and `selectionEnd` differently\n // when are synthetically testing movement of the cursor.\n }\n\n ['@test input can be updated multiple times']() {\n let template = \"
\";\n this.render(template, {\n value: 'hola'\n });\n this.assertValue('hola', 'Value is initialised');\n this.setComponentValue('');\n this.assertValue('', 'Value is set in the DOM');\n this.setDOMValue('hola');\n this.setComponentValue('hola');\n this.assertValue('hola', 'Value is updated the first time');\n this.setComponentValue('');\n this.assertValue('', 'Value is updated the second time');\n }\n\n ['@test DOM is SSOT if value is set']() {\n let template = \"
\";\n this.render(template, {\n value: 'hola'\n });\n this.assertValue('hola', 'Value is initialised');\n this.setComponentValue('hello');\n this.assertValue('hello', 'Value is initialised');\n this.setDOMValue('hola');\n this.assertValue('hola', 'DOM is used');\n this.setComponentValue('bye');\n this.assertValue('bye', 'Value is used'); // Simulates setting the input to the same value as it already is which won't cause a rerender\n\n this.setDOMValue('hola');\n this.assertValue('hola', 'DOM is used');\n this.setComponentValue('hola');\n this.assertValue('hola', 'Value is used');\n } // private helpers and assertions\n\n\n setDOMValue(value) {\n this.inputElement().value = value;\n }\n\n setComponentValue(value) {\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'value', value));\n }\n\n setSelectionRange(start, end) {\n this.inputElement().selectionStart = start;\n this.inputElement().selectionEnd = end;\n }\n\n inputElement() {\n return this.$inputElement()[0];\n }\n\n $inputElement() {\n return this.$('input');\n }\n\n assertValue(value, message) {\n this.assertPropertyHasValue('value', value, message);\n }\n\n assertAttributeHasValue(attribute, value, message) {\n this.assert.equal(this.$inputElement().attr(attribute), value, attribute + \" \" + message);\n }\n\n assertPropertyHasValue(property, value, message) {\n this.assert.equal(this.$inputElement().prop(property), value, property + \" \" + message);\n }\n\n assertSelectionRange(start, end) {\n this.assert.equal(this.inputElement().selectionStart, start);\n this.assert.equal(this.inputElement().selectionEnd, end);\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/mount-test\", [\"internal-test-helpers\", \"@ember/-internals/owner\", \"@ember/-internals/glimmer/tests/utils/helpers\", \"@ember/controller\", \"@ember/-internals/metal\", \"@ember/engine\"], function (_internalTestHelpers, _owner, _helpers, _controller, _metal, _engine) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('{{mount}} single param assertion', class extends _internalTestHelpers.RenderingTestCase {\n ['@test it asserts that only a single param is passed']() {\n expectAssertion(() => {\n this.render('{{mount \"chat\" \"foo\"}}');\n }, /You can only pass a single positional argument to the {{mount}} helper, e.g. {{mount \"chat-engine\"}}./i);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('{{mount}} assertions', class extends _internalTestHelpers.RenderingTestCase {\n ['@test it asserts when an invalid engine name is provided']() {\n expectAssertion(() => {\n this.render('{{mount engineName}}', {\n engineName: {}\n });\n }, /Invalid engine name '\\[object Object\\]' specified, engine name must be either a string, null or undefined./i);\n }\n\n ['@test it asserts that the specified engine is registered']() {\n expectAssertion(() => {\n this.render('{{mount \"chat\"}}');\n }, /You used `{{mount 'chat'}}`, but the engine 'chat' can not be found./i);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('{{mount}} test', class extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n super(...arguments);\n let engineRegistrations = this.engineRegistrations = {};\n this.add('engine:chat', _engine.default.extend({\n router: null,\n\n init() {\n this._super(...arguments);\n\n Object.keys(engineRegistrations).forEach(fullName => {\n this.register(fullName, engineRegistrations[fullName]);\n });\n }\n\n }));\n this.addTemplate('index', '{{mount \"chat\"}}');\n }\n\n ['@test it boots an engine, instantiates its application controller, and renders its application template'](assert) {\n this.engineRegistrations['template:application'] = (0, _helpers.compile)('
Chat here, {{username}} ', {\n moduleName: 'my-app/templates/application.hbs'\n });\n let controller;\n this.engineRegistrations['controller:application'] = _controller.default.extend({\n username: 'dgeb',\n\n init() {\n this._super();\n\n controller = this;\n }\n\n });\n return this.visit('/').then(() => {\n assert.ok(controller, \"engine's application controller has been instantiated\");\n let engineInstance = (0, _owner.getOwner)(controller);\n assert.strictEqual((0, _engine.getEngineParent)(engineInstance), this.applicationInstance, 'engine instance has the application instance as its parent');\n this.assertInnerHTML('
Chat here, dgeb ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'username', 'chancancode'));\n this.assertInnerHTML('
Chat here, chancancode ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'username', 'dgeb'));\n this.assertInnerHTML('
Chat here, dgeb ');\n });\n }\n\n ['@test it emits a useful backtracking re-render assertion message']() {\n this.router.map(function () {\n this.route('route-with-mount');\n });\n this.addTemplate('index', '');\n this.addTemplate('route-with-mount', '{{mount \"chat\"}}');\n this.engineRegistrations['template:application'] = (0, _helpers.compile)('hi {{person.name}} [{{component-with-backtracking-set person=person}}]', {\n moduleName: 'my-app/templates/application.hbs'\n });\n this.engineRegistrations['controller:application'] = _controller.default.extend({\n person: {\n name: 'Alex'\n }\n });\n this.engineRegistrations['template:components/component-with-backtracking-set'] = (0, _helpers.compile)('[component {{person.name}}]', {\n moduleName: 'my-app/templates/components/component-with-backtracking-set.hbs'\n });\n this.engineRegistrations['component:component-with-backtracking-set'] = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n this.set('person.name', 'Ben');\n }\n\n });\n let expectedBacktrackingMessage = /modified \"person\\.name\" twice on \\[object Object\\] in a single render\\. It was rendered in \"template:my-app\\/templates\\/route-with-mount.hbs\" \\(in \"engine:chat\"\\) and modified in \"component:component-with-backtracking-set\" \\(in \"engine:chat\"\\)/;\n return this.visit('/').then(() => {\n expectAssertion(() => {\n this.visit('/route-with-mount');\n }, expectedBacktrackingMessage);\n });\n }\n\n ['@test it renders with a bound engine name']() {\n this.router.map(function () {\n this.route('bound-engine-name');\n });\n let controller;\n this.add('controller:bound-engine-name', _controller.default.extend({\n engineName: null,\n\n init() {\n this._super();\n\n controller = this;\n }\n\n }));\n this.addTemplate('bound-engine-name', '{{mount engineName}}');\n this.add('engine:foo', _engine.default.extend({\n router: null,\n\n init() {\n this._super(...arguments);\n\n this.register('template:application', (0, _helpers.compile)('
Foo Engine ', {\n moduleName: 'my-app/templates/application.hbs'\n }));\n }\n\n }));\n this.add('engine:bar', _engine.default.extend({\n router: null,\n\n init() {\n this._super(...arguments);\n\n this.register('template:application', (0, _helpers.compile)('
Bar Engine ', {\n moduleName: 'my-app/templates/application.hbs'\n }));\n }\n\n }));\n return this.visit('/bound-engine-name').then(() => {\n this.assertInnerHTML('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'engineName', 'foo'));\n this.assertInnerHTML('
Foo Engine ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'engineName', undefined));\n this.assertInnerHTML('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'engineName', 'foo'));\n this.assertInnerHTML('
Foo Engine ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'engineName', 'bar'));\n this.assertInnerHTML('
Bar Engine ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'engineName', 'foo'));\n this.assertInnerHTML('
Foo Engine ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'engineName', null));\n this.assertInnerHTML('');\n });\n }\n\n ['@test it declares the event dispatcher as a singleton']() {\n this.router.map(function () {\n this.route('engine-event-dispatcher-singleton');\n });\n let controller;\n let component;\n this.add('controller:engine-event-dispatcher-singleton', _controller.default.extend({\n init() {\n this._super(...arguments);\n\n controller = this;\n }\n\n }));\n this.addTemplate('engine-event-dispatcher-singleton', '{{mount \"foo\"}}');\n this.add('engine:foo', _engine.default.extend({\n router: null,\n\n init() {\n this._super(...arguments);\n\n this.register('template:application', (0, _helpers.compile)('
Foo Engine: {{tagless-component}} ', {\n moduleName: 'my-app/templates/application.hbs'\n }));\n this.register('component:tagless-component', _helpers.Component.extend({\n tagName: '',\n\n init() {\n this._super(...arguments);\n\n component = this;\n }\n\n }));\n this.register('template:components/tagless-component', (0, _helpers.compile)('Tagless Component', {\n moduleName: 'my-app/templates/components/tagless-component.hbs'\n }));\n }\n\n }));\n return this.visit('/engine-event-dispatcher-singleton').then(() => {\n this.assertInnerHTML('
Foo Engine: Tagless Component ');\n let controllerOwnerEventDispatcher = (0, _owner.getOwner)(controller).lookup('event_dispatcher:main');\n let taglessComponentOwnerEventDispatcher = (0, _owner.getOwner)(component).lookup('event_dispatcher:main');\n this.assert.strictEqual(controllerOwnerEventDispatcher, taglessComponentOwnerEventDispatcher);\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('{{mount}} params tests', class extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n super(...arguments);\n this.add('engine:paramEngine', _engine.default.extend({\n router: null,\n\n init() {\n this._super(...arguments);\n\n this.register('template:application', (0, _helpers.compile)('
Param Engine: {{model.foo}} ', {\n moduleName: 'my-app/templates/application.hbs'\n }));\n }\n\n }));\n }\n\n ['@test it renders with static parameters']() {\n this.router.map(function () {\n this.route('engine-params-static');\n });\n this.addTemplate('engine-params-static', '{{mount \"paramEngine\" model=(hash foo=\"bar\")}}');\n return this.visit('/engine-params-static').then(() => {\n this.assertInnerHTML('
Param Engine: bar ');\n });\n }\n\n ['@test it renders with bound parameters']() {\n this.router.map(function () {\n this.route('engine-params-bound');\n });\n let controller;\n this.add('controller:engine-params-bound', _controller.default.extend({\n boundParamValue: null,\n\n init() {\n this._super();\n\n controller = this;\n }\n\n }));\n this.addTemplate('engine-params-bound', '{{mount \"paramEngine\" model=(hash foo=boundParamValue)}}');\n return this.visit('/engine-params-bound').then(() => {\n this.assertInnerHTML('
Param Engine: ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'boundParamValue', 'bar'));\n this.assertInnerHTML('
Param Engine: bar ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'boundParamValue', undefined));\n this.assertInnerHTML('
Param Engine: ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'boundParamValue', 'bar'));\n this.assertInnerHTML('
Param Engine: bar ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'boundParamValue', 'baz'));\n this.assertInnerHTML('
Param Engine: baz ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'boundParamValue', 'bar'));\n this.assertInnerHTML('
Param Engine: bar ');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'boundParamValue', null));\n this.assertInnerHTML('
Param Engine: ');\n });\n }\n\n ['@test it renders contextual components passed as parameter values']() {\n this.router.map(function () {\n this.route('engine-params-contextual-component');\n });\n this.addComponent('foo-component', {\n template: \"foo-component rendered! - {{app-bar-component}}\"\n });\n this.addComponent('app-bar-component', {\n ComponentClass: _helpers.Component.extend({\n tagName: ''\n }),\n template: 'rendered app-bar-component from the app'\n });\n this.add('engine:componentParamEngine', _engine.default.extend({\n router: null,\n\n init() {\n this._super(...arguments);\n\n this.register('template:application', (0, _helpers.compile)('{{model.foo}}', {\n moduleName: 'my-app/templates/application.hbs'\n }));\n }\n\n }));\n this.addTemplate('engine-params-contextual-component', '{{mount \"componentParamEngine\" model=(hash foo=(component \"foo-component\"))}}');\n return this.visit('/engine-params-contextual-component').then(() => {\n this.assertComponentElement(this.firstChild, {\n content: 'foo-component rendered! - rendered app-bar-component from the app'\n });\n });\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/outlet-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _metal) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('outlet view', class extends _internalTestHelpers.RenderingTestCase {\n constructor() {\n super(...arguments);\n let CoreOutlet = this.owner.factoryFor('view:-outlet');\n this.component = CoreOutlet.create();\n }\n\n ['@test should not error when initial rendered template is undefined']() {\n let outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: undefined,\n template: undefined\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n (0, _internalTestHelpers.runAppend)(this.component);\n this.assertText('');\n }\n\n ['@test should render the outlet when set after DOM insertion']() {\n let outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: undefined,\n template: undefined\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n (0, _internalTestHelpers.runAppend)(this.component);\n this.assertText('');\n this.registerTemplate('application', 'HI{{outlet}}');\n outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: {},\n template: this.owner.lookup('template:application')\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n this.assertText('HI');\n this.assertStableRerender();\n this.registerTemplate('index', '
BYE
');\n outletState.outlets.main = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'index',\n controller: {},\n template: this.owner.lookup('template:index')\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n this.assertText('HIBYE');\n }\n\n ['@test should render the outlet when set before DOM insertion']() {\n this.registerTemplate('application', 'HI{{outlet}}');\n let outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: {},\n template: this.owner.lookup('template:application')\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n (0, _internalTestHelpers.runAppend)(this.component);\n this.assertText('HI');\n this.assertStableRerender();\n this.registerTemplate('index', '
BYE
');\n outletState.outlets.main = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'index',\n controller: {},\n template: this.owner.lookup('template:index')\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n this.assertText('HIBYE');\n }\n\n ['@test should support an optional name']() {\n this.registerTemplate('application', '
HI {{outlet \"special\"}}');\n let outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: {},\n template: this.owner.lookup('template:application')\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n (0, _internalTestHelpers.runAppend)(this.component);\n this.assertText('HI');\n this.assertStableRerender();\n this.registerTemplate('special', '
BYE
');\n outletState.outlets.special = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'special',\n controller: {},\n template: this.owner.lookup('template:special')\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n this.assertText('HIBYE');\n }\n\n ['@test does not default outlet name when positional argument is present']() {\n this.registerTemplate('application', '
HI {{outlet someUndefinedThing}}');\n let outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: {},\n template: this.owner.lookup('template:application')\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n (0, _internalTestHelpers.runAppend)(this.component);\n this.assertText('HI');\n this.assertStableRerender();\n this.registerTemplate('special', '
BYE
');\n outletState.outlets.main = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'special',\n controller: {},\n template: this.owner.lookup('template:special')\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n this.assertText('HI');\n }\n\n ['@test should support bound outlet name']() {\n let controller = {\n outletName: 'foo'\n };\n this.registerTemplate('application', '
HI {{outlet outletName}}');\n let outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller,\n template: this.owner.lookup('template:application')\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n (0, _internalTestHelpers.runAppend)(this.component);\n this.assertText('HI');\n this.assertStableRerender();\n this.registerTemplate('foo', '
FOO
');\n outletState.outlets.foo = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'foo',\n controller: {},\n template: this.owner.lookup('template:foo')\n },\n outlets: Object.create(null)\n };\n this.registerTemplate('bar', '
BAR
');\n outletState.outlets.bar = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'bar',\n controller: {},\n template: this.owner.lookup('template:bar')\n },\n outlets: Object.create(null)\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n this.assertText('HIFOO');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(controller, 'outletName', 'bar'));\n this.assertText('HIBAR');\n }\n\n ['@test outletState can pass through user code (liquid-fire initimate API) ']() {\n this.registerTemplate('outer', 'A{{#-with-dynamic-vars outletState=(identity (-get-dynamic-var \"outletState\"))}}B{{outlet}}D{{/-with-dynamic-vars}}E');\n this.registerTemplate('inner', 'C'); // This looks like it doesn't do anything, but its presence\n // guarantees that the outletState gets converted from a reference\n // to a value and then back to a reference. That is what we're\n // testing here.\n\n this.registerHelper('identity', ([a]) => a);\n let outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'outer',\n controller: {},\n template: this.owner.lookup('template:outer')\n },\n outlets: {\n main: {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'inner',\n controller: {},\n template: this.owner.lookup('template:inner')\n },\n outlets: Object.create(null)\n }\n }\n };\n (0, _internalTestHelpers.runTask)(() => this.component.setOutletState(outletState));\n (0, _internalTestHelpers.runAppend)(this.component);\n this.assertText('ABCDE');\n this.assertStableRerender();\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/refinements-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _metal) {\n \"use strict\";\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#with var as |foo|}}\\n {{foo}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |outlet|}}\\n {{outlet}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |mount|}}\\n {{mount}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |component|}}\\n {{component}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |input|}}\\n {{input}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |-with-dynamic-vars|}}\\n {{-with-dynamic-vars}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |-in-element|}}\\n {{-in-element}}\\n {{/with}}\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('syntax refinements', class extends _internalTestHelpers.RenderingTestCase {\n ['@test block params should not be refined']() {\n this.registerHelper('foo', () => 'bar helper');\n this.render((0, _internalTestHelpers.strip)(_templateObject()), {\n var: 'var'\n });\n this.assertText('var---var---var---var---var---var---var');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'var', 'RARRR!!!'));\n this.assertText('RARRR!!!---RARRR!!!---RARRR!!!---RARRR!!!---RARRR!!!---RARRR!!!---RARRR!!!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'var', 'var'));\n this.assertText('var---var---var---var---var---var---var');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/render-settled-test\", [\"internal-test-helpers\", \"@ember/-internals/glimmer\", \"@ember/runloop\", \"rsvp\"], function (_internalTestHelpers, _glimmer, _runloop, _rsvp) {\n \"use strict\";\n\n function _templateObject3() {\n const data = _taggedTemplateLiteralLoose([\"{{foo}}\"]);\n\n _templateObject3 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"{{foo}}\"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"{{foo}}\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('renderSettled', class extends _internalTestHelpers.RenderingTestCase {\n ['@test resolves when no rendering is happening'](assert) {\n return (0, _glimmer.renderSettled)().then(() => {\n assert.ok(true, 'resolved even without rendering');\n });\n }\n\n ['@test resolves renderers exist but no runloops are triggered'](assert) {\n this.render((0, _internalTestHelpers.strip)(_templateObject()), {\n foo: 'bar'\n });\n return (0, _glimmer.renderSettled)().then(() => {\n assert.ok(true, 'resolved even without runloops');\n });\n }\n\n ['@test does not create extraneous promises'](assert) {\n let first = (0, _glimmer.renderSettled)();\n let second = (0, _glimmer.renderSettled)();\n assert.strictEqual(first, second);\n return (0, _rsvp.all)([first, second]);\n }\n\n ['@test resolves when rendering has completed (after property update)']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject2()), {\n foo: 'bar'\n });\n this.assertText('bar');\n this.component.set('foo', 'baz');\n this.assertText('bar');\n return (0, _glimmer.renderSettled)().then(() => {\n this.assertText('baz');\n });\n }\n\n ['@test resolves in run loop when renderer has settled'](assert) {\n assert.expect(3);\n this.render((0, _internalTestHelpers.strip)(_templateObject3()), {\n foo: 'bar'\n });\n this.assertText('bar');\n let promise;\n return (0, _runloop.run)(() => {\n (0, _runloop.schedule)('actions', null, () => {\n this.component.set('foo', 'set in actions');\n promise = (0, _glimmer.renderSettled)().then(() => {\n this.assertText('set in afterRender');\n });\n (0, _runloop.schedule)('afterRender', null, () => {\n this.component.set('foo', 'set in afterRender');\n });\n }); // still not updated here\n\n this.assertText('bar');\n return promise;\n });\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/svg-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _metal) {\n \"use strict\";\n\n function _templateObject14() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject14 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject13() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject13 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject12() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject12 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject11() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject11 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject10() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject10 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject9() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject9 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject8() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject8 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject7() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject7 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject6() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject6 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject5() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject5 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject4() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject4 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject3() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject3 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \\n
\\n \"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('SVG element tests', class extends _internalTestHelpers.RenderingTestCase {\n ['@test unquoted viewBox property is output'](assert) {\n let viewBoxString = '0 0 100 100';\n this.render('
', {\n model: {\n viewBoxString\n }\n });\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject(), viewBoxString));\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject2(), viewBoxString));\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.viewBoxString', null));\n assert.equal(this.firstChild.getAttribute('svg'), null);\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n viewBoxString\n }));\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject3(), viewBoxString));\n }\n\n ['@test quoted viewBox property is output'](assert) {\n let viewBoxString = '0 0 100 100';\n this.render('
', {\n model: {\n viewBoxString\n }\n });\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject4(), viewBoxString));\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject5(), viewBoxString));\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.viewBoxString', null));\n assert.equal(this.firstChild.getAttribute('svg'), null);\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n viewBoxString\n }));\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject6(), viewBoxString));\n }\n\n ['@test quoted viewBox property is concat']() {\n let viewBoxString = '100 100';\n this.render('
', {\n model: {\n viewBoxString\n }\n });\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject7(), viewBoxString));\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject8(), viewBoxString));\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.viewBoxString', '200 200'));\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject9()));\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n viewBoxString\n }));\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject10(), viewBoxString));\n }\n\n ['@test class is output']() {\n this.render(\"
\", {\n model: {\n color: 'blue'\n }\n });\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject11()));\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject12()));\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model.color', 'yellow'));\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject13()));\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'model', {\n color: 'blue'\n }));\n this.assertInnerHTML((0, _internalTestHelpers.strip)(_templateObject14()));\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/syntax/each-in-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"@ember/-internals/utils\", \"@ember/-internals/glimmer/tests/utils/shared-conditional-tests\"], function (_internalTestHelpers, _metal, _runtime, _utils, _sharedConditionalTests) {\n \"use strict\";\n\n function _templateObject14() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n \"]);\n\n _templateObject14 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject13() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n one: foo \\n two: bar \\n \\n \"]);\n\n _templateObject13 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject12() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n {{#each-in map key=\\\"@identity\\\" as |key value|}}\\n {{key.name}}: {{value}} \\n {{/each-in}}\\n \"]);\n\n _templateObject12 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject11() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n Smartphones: 8203 \\n JavaScript Frameworks: Infinity \\n \\n \"]);\n\n _templateObject11 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject10() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n Smartphones: 100 \\n Tablets: 20 \\n \\n \"]);\n\n _templateObject10 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject9() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n Smartphones: 100 \\n JavaScript Frameworks: Infinity \\n Tweets: 443115 \\n \\n \"]);\n\n _templateObject9 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject8() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n Smartphones: 8203 \\n JavaScript Frameworks: Infinity \\n \\n \"]);\n\n _templateObject8 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject7() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n {{#each-in categories as |category count|}}\\n {{category}}: {{count}} \\n {{/each-in}}\\n \\n \"]);\n\n _templateObject7 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject6() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each-in arr as |key value|}}\\n [{{key}}:{{value}}]\\n {{/each-in}}\"]);\n\n _templateObject6 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject5() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each-in arr as |key value|}}\\n [{{key}}:{{value}}]\\n {{/each-in}}\"]);\n\n _templateObject5 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject4() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n Smartphones: 8203 \\n JavaScript Frameworks: Infinity \\n \\n \"]);\n\n _templateObject4 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject3() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n Emberinios: 123456 \\n \\n \"]);\n\n _templateObject3 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n Smartphones: 8203 \\n JavaScript Frameworks: Infinity \\n \\n \"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n
\\n {{#each-in categories as |category count|}}\\n {{category}}: {{count}} \\n {{/each-in}}\\n \\n \"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n function EmptyFunction() {}\n\n function NonEmptyFunction() {}\n\n NonEmptyFunction.foo = 'bar';\n\n class EmptyConstructor {}\n\n class NonEmptyConstructor {}\n\n NonEmptyConstructor.foo = 'bar';\n\n class TogglingEachInTest extends _sharedConditionalTests.TogglingSyntaxConditionalsTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{#each-in \" + cond + \" as |key|}}\" + truthy + \"{{else}}\" + falsy + \"{{/each-in}}\";\n }\n\n }\n\n class BasicEachInTest extends TogglingEachInTest {}\n\n class BasicSyntaxTest extends BasicEachInTest {\n get truthyValue() {\n return {\n 'Not Empty': 1\n };\n }\n\n get falsyValue() {\n return {};\n }\n\n }\n\n class EachInProxyTest extends TogglingEachInTest {}\n\n (0, _internalTestHelpers.applyMixins)(BasicEachInTest, new _sharedConditionalTests.TruthyGenerator([{\n foo: 1\n }, _runtime.Object.create({\n 'Not Empty': 1\n }), [1], NonEmptyFunction, NonEmptyConstructor]), new _sharedConditionalTests.FalsyGenerator([null, undefined, false, '', 0, [], EmptyFunction, EmptyConstructor, {}, Object.create(null), Object.create({}), Object.create({\n 'Not Empty': 1\n }), _runtime.Object.create()]));\n (0, _internalTestHelpers.applyMixins)(EachInProxyTest, new _sharedConditionalTests.TruthyGenerator([_runtime.ObjectProxy.create({\n content: {\n 'Not empty': 1\n }\n })]), new _sharedConditionalTests.FalsyGenerator([_runtime.ObjectProxy.create(), _runtime.ObjectProxy.create({\n content: null\n }), _runtime.ObjectProxy.create({\n content: {}\n }), _runtime.ObjectProxy.create({\n content: Object.create(null)\n }), _runtime.ObjectProxy.create({\n content: Object.create({})\n }), _runtime.ObjectProxy.create({\n content: Object.create({\n 'Not Empty': 1\n })\n }), _runtime.ObjectProxy.create({\n content: _runtime.Object.create()\n })])); // Truthy/Falsy tests\n\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each-in}} with `ObjectProxy`', class extends EachInProxyTest {\n get truthyValue() {\n return _runtime.ObjectProxy.create({\n content: {\n 'Not Empty': 1\n }\n });\n }\n\n get falsyValue() {\n return _runtime.ObjectProxy.create({\n content: null\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each-in}}', BasicSyntaxTest); // Rendering tests\n\n class AbstractEachInTest extends _internalTestHelpers.RenderingTestCase {\n createHash()\n /* hash */\n {\n throw new Error('Not implemented: `createHash`');\n }\n\n makeHash(obj) {\n let {\n hash,\n delegate\n } = this.createHash(obj);\n this.hash = hash;\n this.delegate = delegate;\n return hash;\n }\n\n replaceHash(hash) {\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'hash', this.createHash(hash).hash));\n }\n\n clear() {\n return (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'hash', this.createHash({}).hash));\n }\n\n setProp(key, value) {\n return (0, _internalTestHelpers.runTask)(() => this.delegate.setProp(this.context, key, value));\n }\n\n updateNestedValue(key, innerKey, value) {\n return (0, _internalTestHelpers.runTask)(() => this.delegate.updateNestedValue(this.context, key, innerKey, value));\n }\n\n render(template, context = {}) {\n if (this.hash !== undefined) {\n context.hash = this.hash;\n }\n\n if (this.type !== undefined) {\n context.type = this.type;\n }\n\n context.secretKey = 'asd';\n return super.render(template, context);\n }\n\n }\n\n class EachInTest extends AbstractEachInTest {\n [\"@test it repeats the given block for each item in the hash\"]() {\n this.makeHash({\n Smartphones: 8203,\n 'JavaScript Frameworks': Infinity\n });\n this.render(\"
{{#each-in hash as |category count|}}{{category}}: {{count}} {{else}}Empty!{{/each-in}} \");\n this.assertText('Smartphones: 8203JavaScript Frameworks: Infinity');\n this.assertStableRerender();\n\n if (this.allowsSetProp) {\n // Not al backing data structures allow kvo tracking. Maps and Iterables don't\n this.setProp('Tweets', 100);\n this.assertText('Smartphones: 8203JavaScript Frameworks: InfinityTweets: 100');\n }\n\n this.clear();\n this.assertText('Empty!');\n }\n\n [\"@test it can render sub-paths of each item\"](assert) {\n this.makeHash({\n Smartphones: {\n reports: {\n unitsSold: 8203\n }\n },\n 'JavaScript Frameworks': {\n reports: {\n unitsSold: Infinity\n }\n }\n });\n this.render(\"
{{#each-in hash as |category data|}}{{category}}: {{data.reports.unitsSold}} {{else}}Empty!{{/each-in}} \");\n this.assertText('Smartphones: 8203JavaScript Frameworks: Infinity');\n this.assertStableRerender();\n\n if (this.allowsSetProp) {\n this.setProp('Tweets', {\n reports: {\n unitsSold: 100\n }\n });\n this.assertText('Smartphones: 8203JavaScript Frameworks: InfinityTweets: 100');\n }\n\n (0, _internalTestHelpers.runTask)(() => this.updateNestedValue('Smartphones', 'reports.unitsSold', 8204));\n assert.ok(this.textValue().indexOf('Smartphones: 8204') > -1);\n this.clear();\n this.assertText('Empty!');\n }\n\n [\"@test it can render duplicate items\"]() {\n this.makeHash({\n Smartphones: 8203,\n Tablets: 8203,\n 'JavaScript Frameworks': Infinity,\n Bugs: Infinity\n });\n this.render(\"
{{#each-in hash key='@identity' as |category count|}}{{category}}: {{count}} {{/each-in}} \");\n this.assertText('Smartphones: 8203Tablets: 8203JavaScript Frameworks: InfinityBugs: Infinity');\n this.assertStableRerender();\n\n if (this.allowsSetProp) {\n this.setProp('Smartphones', 100);\n this.setProp('Tweets', 443115);\n this.assertText('Smartphones: 100Tablets: 8203JavaScript Frameworks: InfinityBugs: InfinityTweets: 443115');\n }\n\n this.clear();\n this.assertText('');\n }\n\n [\"@test it repeats the given block when the hash is dynamic\"]() {\n let {\n hash: categories\n } = this.createHash({\n Smartphones: 8203,\n 'JavaScript Frameworks': Infinity\n });\n let {\n hash: otherCategories\n } = this.createHash({\n Emberinios: 533462,\n Tweets: 7323\n });\n let context = {\n hashes: {\n categories,\n otherCategories,\n type: 'categories'\n }\n };\n this.render(\"
{{#each-in (get hashes hashes.type) as |category count|}}{{category}}: {{count}} {{else}}Empty!{{/each-in}} \", context);\n this.assertText('Smartphones: 8203JavaScript Frameworks: Infinity');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(context, 'hashes.type', 'otherCategories'));\n this.assertText('Emberinios: 533462Tweets: 7323');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(context, 'hashes.type', 'categories'));\n this.assertText('Smartphones: 8203JavaScript Frameworks: Infinity');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(context, 'hashes.type', 'nonExistent'));\n this.clear();\n this.assertText('Empty!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(context, 'hashes.type', 'categories'));\n this.assertText('Smartphones: 8203JavaScript Frameworks: Infinity');\n }\n\n ['@test keying off of `undefined` does not render']() {\n this.makeHash({});\n this.render(\"{{#each-in hash as |key value|}}{{key}}: {{value.baz}}{{else}}Empty!{{/each-in}}\");\n this.assertText('Empty!');\n this.assertStableRerender();\n this.replaceHash({\n bar: {\n baz: 'Here!'\n }\n });\n this.assertText('bar: Here!');\n this.clear();\n this.assertText('Empty!');\n }\n\n [\"@test it can render items with a key of empty string\"]() {\n this.makeHash({\n '': 'empty-string',\n a: 'a'\n });\n this.render(\"
{{#each-in hash as |key value|}}{{key}}: {{value}} {{else}}Empty!{{/each-in}} \");\n this.assertText(': empty-stringa: a');\n this.assertStableRerender();\n this.clear();\n this.assertText('Empty!');\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each-in}} with POJOs', class extends EachInTest {\n constructor() {\n super(...arguments);\n this.allowsSetProp = true;\n }\n\n createHash(pojo) {\n return {\n hash: pojo,\n delegate: {\n setProp(context, key, value) {\n (0, _metal.set)(context.hash, key, value);\n },\n\n updateNestedValue(context, key, innerKey, value) {\n let target = context.hash[key];\n (0, _metal.set)(target, innerKey, value);\n }\n\n }\n };\n }\n\n [\"@test it only iterates over an object's own properties\"]() {\n let protoCategories = {\n Smartphones: 8203,\n 'JavaScript Frameworks': Infinity\n };\n let categories = Object.create(protoCategories);\n categories['Televisions'] = 183;\n categories['Alarm Clocks'] = 999;\n this.render(\"
{{#each-in categories as |category count|}}{{category}}: {{count}} {{else}}Empty!{{/each-in}} \", {\n categories\n });\n this.assertText('Televisions: 183Alarm Clocks: 999');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(protoCategories, 'Robots', 666);\n (0, _metal.set)(categories, 'Tweets', 443115);\n });\n this.assertText('Televisions: 183Alarm Clocks: 999Tweets: 443115');\n categories = Object.create(protoCategories);\n categories['Televisions'] = 183;\n categories['Alarm Clocks'] = 999;\n }\n\n [\"@test it does not observe direct property mutations (not going through set) on the object\"]() {\n this.render((0, _internalTestHelpers.strip)(_templateObject()), {\n categories: {\n Smartphones: 8203,\n 'JavaScript Frameworks': Infinity\n }\n });\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject2()));\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => {\n let categories = (0, _metal.get)(this.context, 'categories');\n delete categories.Smartphones;\n });\n this.assertInvariants();\n (0, _internalTestHelpers.runTask)(() => {\n let categories = (0, _metal.get)(this.context, 'categories');\n categories['Emberinios'] = 123456;\n });\n this.assertInvariants();\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'categories', {\n Emberinios: 123456\n });\n });\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject3()));\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'categories', {\n Smartphones: 8203,\n 'JavaScript Frameworks': Infinity\n });\n });\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject4()));\n }\n\n ['@test it skips holes in sparse arrays']() {\n let arr = [];\n arr[5] = 'foo';\n arr[6] = 'bar';\n this.render((0, _internalTestHelpers.strip)(_templateObject5()), {\n arr\n });\n this.assertText('[5:foo][6:bar]');\n this.assertStableRerender();\n }\n\n ['@test it iterate over array with `in` instead of walking over elements']() {\n let arr = [1, 2, 3];\n arr.foo = 'bar';\n this.render((0, _internalTestHelpers.strip)(_templateObject6()), {\n arr\n });\n this.assertText('[0:1][1:2][2:3][foo:bar]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[0:1][1:2][2:3][foo:bar]');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(arr, 'zomg', 'lol');\n });\n this.assertText('[0:1][1:2][2:3][foo:bar][zomg:lol]');\n arr = [1, 2, 3];\n arr.foo = 'bar';\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'arr', arr));\n this.assertText('[0:1][1:2][2:3][foo:bar]');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each-in}} with EmberObjects', class extends EachInTest {\n constructor() {\n super(...arguments);\n this.allowsSetProp = true;\n }\n\n createHash(pojo) {\n let hash = _runtime.Object.create(pojo);\n\n return {\n hash,\n delegate: {\n setProp(context, key, value) {\n (0, _metal.set)(context, \"hash.\" + key, value);\n },\n\n updateNestedValue(context, key, innerKey, value) {\n let target = (0, _metal.get)(context.hash, key);\n (0, _metal.set)(target, innerKey, value);\n }\n\n }\n };\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each-in}} with object proxies', class extends EachInTest {\n constructor() {\n super(...arguments);\n this.allowsSetProp = true;\n }\n\n createHash(pojo) {\n let hash = _runtime.ObjectProxy.create({\n content: pojo\n });\n\n return {\n hash,\n delegate: {\n setProp(context, key, value) {\n (0, _metal.set)(context, \"hash.\" + key, value);\n },\n\n updateNestedValue(context, key, innerKey, value) {\n let target = (0, _metal.get)(context.hash, key);\n (0, _metal.set)(target, innerKey, value);\n }\n\n }\n };\n }\n\n ['@test it iterates over the content, not the proxy']() {\n let content = {\n Smartphones: 8203,\n 'JavaScript Frameworks': Infinity\n };\n\n let proxy = _runtime.ObjectProxy.create({\n content,\n foo: 'bar'\n });\n\n this.render((0, _internalTestHelpers.strip)(_templateObject7()), {\n categories: proxy\n });\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject8()));\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(proxy, 'content.Smartphones', 100);\n (0, _metal.set)(proxy, 'content.Tweets', 443115);\n });\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject9()));\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(proxy, 'content', {\n Smartphones: 100,\n Tablets: 20\n });\n });\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject10()));\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'categories', _runtime.ObjectProxy.create({\n content: {\n Smartphones: 8203,\n 'JavaScript Frameworks': Infinity\n }\n })));\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject11()));\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each-in}} with ES6 Maps', class extends EachInTest {\n createHash(pojo) {\n let map = new Map();\n Object.keys(pojo).forEach(key => {\n map.set(key, pojo[key]);\n });\n return {\n hash: map,\n delegate: {\n updateNestedValue(context, key, innerKey, value) {\n let target = context.hash.get(key);\n (0, _metal.set)(target, innerKey, value);\n }\n\n }\n };\n }\n\n [\"@test it supports having objects as keys on ES6 Maps\"]() {\n let map = new Map();\n map.set({\n name: 'one'\n }, 'foo');\n map.set({\n name: 'two'\n }, 'bar');\n this.render((0, _internalTestHelpers.strip)(_templateObject12()), {\n map\n });\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject13()));\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => {\n let map = new Map();\n map.set({\n name: 'three'\n }, 'qux');\n (0, _metal.set)(this.context, 'map', map);\n });\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject14()));\n }\n\n });\n\n if (_utils.HAS_NATIVE_SYMBOL) {\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each-in}} with custom iterables', class extends EachInTest {\n createHash(pojo) {\n let ary = Object.keys(pojo).reduce((accum, key) => {\n return accum.concat([[key, pojo[key]]]);\n }, []);\n let iterable = {\n [Symbol.iterator]: () => makeIterator(ary)\n };\n return {\n hash: iterable,\n delegate: {\n updateNestedValue(context, key, innerKey, value) {\n let ary = Array.from(context.hash);\n let target = ary.find(([k]) => k === key)[1];\n (0, _metal.set)(target, innerKey, value);\n }\n\n }\n };\n }\n\n });\n } // Utils\n\n\n function makeIterator(ary) {\n var index = 0;\n return {\n next() {\n return index < ary.length ? {\n value: ary[index++],\n done: false\n } : {\n done: true\n };\n }\n\n };\n }\n});","enifed(\"@ember/-internals/glimmer/tests/integration/syntax/each-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"@ember/-internals/utils\", \"@ember/-internals/glimmer/tests/utils/helpers\", \"@ember/-internals/glimmer/tests/utils/shared-conditional-tests\"], function (_internalTestHelpers, _metal, _runtime, _utils, _helpers, _sharedConditionalTests) {\n \"use strict\";\n\n function _templateObject8() {\n const data = _taggedTemplateLiteralLoose([\"\\n
Think Pieces\\u2122 \\n\\n
\\n Rails is omakase \\n Ember is omakase \\n \\n \"]);\n\n _templateObject8 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject7() {\n const data = _taggedTemplateLiteralLoose([\"\\n
Essays \\n\\n
\\n Rails is omakase \\n Ember is omakase \\n \\n \"]);\n\n _templateObject7 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject6() {\n const data = _taggedTemplateLiteralLoose([\"\\n
Blog Posts \\n\\n
\\n Rails is omakase \\n Ember is omakase \\n \\n \"]);\n\n _templateObject6 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject5() {\n const data = _taggedTemplateLiteralLoose([\"\\n
{{page.title}} \\n\\n
\\n {{#each model as |post|}}\\n {{post.title}} \\n {{/each}}\\n \\n \"]);\n\n _templateObject5 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject4() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each list as |value key|}}\\n [{{key}}:{{value}}]\\n {{/each}}\"]);\n\n _templateObject4 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject3() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each foo.bar.baz as |thing|}}\\n {{thing}}\\n {{/each}}\"]);\n\n _templateObject3 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each content as |value|}}\\n {{value}}-\\n {{#each options as |option|}}\\n {{option.value}}:{{option.label}}\\n {{/each}}\\n {{/each}}\\n \"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#each list as |item|}}\\n
Prev \\n {{foo-bar item=item}}\\n
Next \\n {{/each}}\\n \"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n class ArrayDelegate {\n constructor(content, target) {\n this._array = content;\n this._target = target || this;\n } // The following methods are APIs used by the tests\n\n\n toArray() {\n return this._array.slice();\n }\n\n objectAt(idx) {\n return this._array[idx];\n }\n\n clear() {\n this._array.length = 0;\n this.arrayContentDidChange();\n }\n\n replace(idx, del, ins) {\n this._array.splice(idx, del, ...ins);\n\n this.arrayContentDidChange();\n }\n\n unshiftObject(obj) {\n this._array.unshift(obj);\n\n this.arrayContentDidChange();\n }\n\n unshiftObjects(arr) {\n this._array.unshift(...arr);\n\n this.arrayContentDidChange();\n }\n\n pushObject(obj) {\n this._array.push(obj);\n\n this.arrayContentDidChange();\n }\n\n pushObjects(arr) {\n this._array.push(...arr);\n\n this.arrayContentDidChange();\n }\n\n shiftObject() {\n let obj = this._array.shift();\n\n this.arrayContentDidChange();\n return obj;\n }\n\n popObject() {\n let obj = this._array.pop();\n\n this.arrayContentDidChange();\n return obj;\n }\n\n insertAt(idx, obj) {\n this._array.splice(idx, 0, obj);\n\n this.arrayContentDidChange();\n }\n\n removeAt(idx, len = 1) {\n this._array.splice(idx, len);\n\n this.arrayContentDidChange();\n }\n\n arrayContentDidChange() {\n (0, _metal.notifyPropertyChange)(this._target, '[]');\n (0, _metal.notifyPropertyChange)(this._target, 'length');\n }\n\n toString() {\n return \"#<\" + (this.constructor.name || 'UnknownArrayDelegate') + \">\";\n }\n\n toJSON() {\n return this.toString();\n }\n\n }\n\n const makeSet = (() => {\n // IE11 does not support `new Set(items);`\n let set = new Set([1, 2, 3]);\n\n if (set.size === 3) {\n return items => new Set(items);\n } else {\n return items => {\n let s = new Set();\n items.forEach(value => s.add(value));\n return s;\n };\n }\n })();\n\n class SetDelegate extends ArrayDelegate {\n constructor(set) {\n let array = [];\n set.forEach(value => array.push(value));\n super(array, set);\n this._set = set;\n }\n\n arrayContentDidChange() {\n this._set.clear();\n\n this._array.forEach(value => this._set.add(value));\n\n super.arrayContentDidChange();\n }\n\n }\n\n class ForEachable extends ArrayDelegate {\n get length() {\n return this._array.length;\n }\n\n forEach(callback) {\n this._array.forEach(callback);\n }\n\n }\n\n let ArrayIterable;\n\n if (_utils.HAS_NATIVE_SYMBOL) {\n ArrayIterable = class extends ArrayDelegate {\n [Symbol.iterator]() {\n return this._array[Symbol.iterator]();\n }\n\n };\n }\n\n class TogglingEachTest extends _sharedConditionalTests.TogglingSyntaxConditionalsTest {\n get truthyValue() {\n return ['non-empty'];\n }\n\n get falsyValue() {\n return [];\n }\n\n }\n\n class BasicEachTest extends TogglingEachTest {}\n\n const TRUTHY_CASES = [['hello'], (0, _runtime.A)(['hello']), makeSet(['hello']), new ForEachable(['hello']), _runtime.ArrayProxy.create({\n content: ['hello']\n }), _runtime.ArrayProxy.create({\n content: (0, _runtime.A)(['hello'])\n })];\n const FALSY_CASES = [null, undefined, false, '', 0, [], (0, _runtime.A)([]), makeSet([]), new ForEachable([]), _runtime.ArrayProxy.create({\n content: []\n }), _runtime.ArrayProxy.create({\n content: (0, _runtime.A)([])\n })];\n\n if (_utils.HAS_NATIVE_SYMBOL) {\n TRUTHY_CASES.push(new ArrayIterable(['hello']));\n FALSY_CASES.push(new ArrayIterable([]));\n }\n\n (0, _internalTestHelpers.applyMixins)(BasicEachTest, new _sharedConditionalTests.TruthyGenerator(TRUTHY_CASES), new _sharedConditionalTests.FalsyGenerator(FALSY_CASES), _sharedConditionalTests.ArrayTestCases);\n (0, _internalTestHelpers.moduleFor)('Syntax test: toggling {{#each}}', class extends BasicEachTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{#each \" + cond + \"}}\" + truthy + \"{{else}}\" + falsy + \"{{/each}}\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: toggling {{#each as}}', class extends BasicEachTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{#each \" + cond + \" as |test|}}\" + truthy + \"{{else}}\" + falsy + \"{{/each}}\";\n }\n\n });\n\n class EachEdgeCasesTest extends TogglingEachTest {}\n\n (0, _internalTestHelpers.applyMixins)(EachEdgeCasesTest, new _sharedConditionalTests.FalsyGenerator([true, 'hello', 1, Object, function () {}, {}, {\n foo: 'bar'\n }, Object.create(null), Object.create({}), Object.create({\n foo: 'bar'\n })]));\n (0, _internalTestHelpers.moduleFor)('Syntax test: toggling {{#each}}', class extends EachEdgeCasesTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{#each \" + cond + \"}}\" + truthy + \"{{else}}\" + falsy + \"{{/each}}\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: toggling {{#each as}}', class extends EachEdgeCasesTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{#each \" + cond + \" as |test|}}\" + truthy + \"{{else}}\" + falsy + \"{{/each}}\";\n }\n\n });\n\n class AbstractEachTest extends _internalTestHelpers.RenderingTestCase {\n /* abstract */\n createList()\n /* items */\n {\n throw new Error('Not implemented: `createList`');\n }\n\n makeList(items) {\n let {\n list,\n delegate\n } = this.createList(items);\n this.list = list;\n this.delegate = delegate;\n }\n\n replaceList(list) {\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'list', this.createList(list).list));\n }\n\n forEach(callback) {\n return this.delegate.toArray().forEach(callback);\n }\n\n objectAt(idx) {\n return this.delegate.objectAt(idx);\n }\n\n clear() {\n return this.delegate.clear();\n }\n\n replace(idx, del, ins) {\n return this.delegate.replace(idx, del, ins);\n }\n\n unshiftObject(obj) {\n return this.delegate.unshiftObject(obj);\n }\n\n unshiftObjects(arr) {\n return this.delegate.unshiftObjects(arr);\n }\n\n pushObject(obj) {\n return this.delegate.pushObject(obj);\n }\n\n pushObjects(arr) {\n return this.delegate.pushObjects(arr);\n }\n\n shiftObject() {\n return this.delegate.shiftObject();\n }\n\n popObject() {\n return this.delegate.popObject();\n }\n\n insertAt(idx, obj) {\n return this.delegate.insertAt(idx, obj);\n }\n\n removeAt(idx, len) {\n return this.delegate.removeAt(idx, len);\n }\n\n render(template, context = {}) {\n if (this.list !== undefined) {\n context.list = this.list;\n }\n\n return super.render(template, context);\n }\n\n }\n\n class EachTest extends AbstractEachTest {\n /* single each */\n ['@test it repeats the given block for each item in the array']() {\n this.makeList([{\n text: 'hello'\n }]);\n this.render(\"{{#each list as |item|}}{{item.text}}{{else}}Empty{{/each}}\");\n this.assertText('hello');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('hello');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.objectAt(0), 'text', 'Hello'));\n this.assertText('Hello');\n (0, _internalTestHelpers.runTask)(() => {\n this.pushObject({\n text: ' '\n });\n this.pushObject({\n text: 'World'\n });\n });\n this.assertText('Hello World');\n (0, _internalTestHelpers.runTask)(() => {\n this.pushObject({\n text: 'Earth'\n });\n this.removeAt(1);\n this.insertAt(1, {\n text: 'Globe'\n });\n });\n this.assertText('HelloGlobeWorldEarth');\n (0, _internalTestHelpers.runTask)(() => {\n this.pushObject({\n text: 'Planet'\n });\n this.removeAt(1);\n this.insertAt(1, {\n text: ' '\n });\n this.pushObject({\n text: ' '\n });\n this.pushObject({\n text: 'Earth'\n });\n this.removeAt(3);\n });\n this.assertText('Hello WorldPlanet Earth');\n (0, _internalTestHelpers.runTask)(() => {\n this.pushObject({\n text: 'Globe'\n });\n this.removeAt(1);\n this.insertAt(1, {\n text: ' '\n });\n this.pushObject({\n text: ' '\n });\n this.pushObject({\n text: 'World'\n });\n this.removeAt(2);\n });\n this.assertText('Hello Planet EarthGlobe World');\n (0, _internalTestHelpers.runTask)(() => this.replace(2, 4, [{\n text: 'my'\n }]));\n this.assertText('Hello my World');\n (0, _internalTestHelpers.runTask)(() => this.clear());\n this.assertText('Empty');\n this.replaceList([{\n text: 'hello'\n }]);\n this.assertText('hello');\n }\n\n ['@test it receives the index as the second parameter']() {\n this.makeList([{\n text: 'hello'\n }, {\n text: 'world'\n }]);\n this.render(\"{{#each list as |item index|}}[{{index}}. {{item.text}}]{{/each}}\");\n this.assertText('[0. hello][1. world]');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => this.insertAt(1, {\n text: 'my'\n }));\n this.assertText('[0. hello][1. my][2. world]');\n this.replaceList([{\n text: 'hello'\n }, {\n text: 'world'\n }]);\n this.assertText('[0. hello][1. world]');\n }\n\n ['@test it accepts a string key']() {\n this.makeList([{\n text: 'hello'\n }, {\n text: 'world'\n }]);\n this.render(\"{{#each list key='text' as |item|}}{{item.text}}{{/each}}\");\n this.assertText('helloworld');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => this.pushObject({\n text: 'again'\n }));\n this.assertText('helloworldagain');\n this.replaceList([{\n text: 'hello'\n }, {\n text: 'world'\n }]);\n this.assertText('helloworld');\n }\n\n ['@test it accepts a numeric key']() {\n this.makeList([{\n id: 1\n }, {\n id: 2\n }]);\n this.render(\"{{#each list key='id' as |item|}}{{item.id}}{{/each}}\");\n this.assertText('12');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => this.pushObject({\n id: 3\n }));\n this.assertText('123');\n this.replaceList([{\n id: 1\n }, {\n id: 2\n }]);\n this.assertText('12');\n }\n\n ['@test it can specify @index as the key']() {\n this.makeList([{\n id: 1\n }, {\n id: 2\n }]);\n this.render(\"{{#each list key='@index' as |item|}}{{item.id}}{{/each}}\");\n this.assertText('12');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => this.pushObject({\n id: 3\n }));\n this.assertText('123');\n this.replaceList([{\n id: 1\n }, {\n id: 2\n }]);\n this.assertText('12');\n }\n\n ['@test it can specify @identity as the key for arrays of primitives']() {\n this.makeList([1, 2]);\n this.render(\"{{#each list key='@identity' as |item|}}{{item}}{{/each}}\");\n this.assertText('12');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => this.pushObject(3));\n this.assertText('123');\n this.replaceList([1, 2]);\n this.assertText('12');\n }\n\n ['@test it can specify @identity as the key for mixed arrays of objects and primitives']() {\n this.makeList([1, {\n id: 2\n }, 3]);\n this.render(\"{{#each list key='@identity' as |item|}}{{if item.id item.id item}}{{/each}}\");\n this.assertText('123');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => this.insertAt(2, {\n id: 4\n }));\n this.assertText('1243');\n this.replaceList([1, {\n id: 2\n }, 3]);\n this.assertText('123');\n }\n\n ['@test it can render duplicate primitive items']() {\n this.makeList(['a', 'a', 'a']);\n this.render(\"{{#each list as |item|}}{{item}}{{/each}}\");\n this.assertText('aaa');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => this.pushObject('a'));\n this.assertText('aaaa');\n (0, _internalTestHelpers.runTask)(() => this.pushObject('a'));\n this.assertText('aaaaa');\n this.replaceList(['a', 'a', 'a']);\n this.assertText('aaa');\n }\n\n [\"@test updating and setting within #each\"]() {\n this.makeList([{\n value: 1\n }, {\n value: 2\n }, {\n value: 3\n }]);\n\n let FooBarComponent = _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n this.isEven = true;\n this.tagName = 'li';\n },\n\n _isEven() {\n this.set('isEven', this.get('item.value') % 2 === 0);\n },\n\n didUpdate() {\n this._isEven();\n }\n\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: '{{#if isEven}}{{item.value}}{{/if}}'\n });\n this.render((0, _internalTestHelpers.strip)(_templateObject()));\n this.assertText('Prev1NextPrev2NextPrev3Next');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.objectAt(0), 'value', 3));\n this.assertText('PrevNextPrev2NextPrev3Next');\n this.replaceList([{\n value: 1\n }, {\n value: 2\n }, {\n value: 3\n }]);\n this.assertText('Prev1NextPrev2NextPrev3Next');\n }\n\n ['@test it can render duplicate objects']() {\n let duplicateItem = {\n text: 'foo'\n };\n this.makeList([duplicateItem, duplicateItem, {\n text: 'bar'\n }, {\n text: 'baz'\n }]);\n this.render(\"{{#each list as |item|}}{{item.text}}{{/each}}\");\n this.assertText('foofoobarbaz');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => this.pushObject(duplicateItem));\n this.assertText('foofoobarbazfoo');\n (0, _internalTestHelpers.runTask)(() => this.pushObject(duplicateItem));\n this.assertText('foofoobarbazfoofoo');\n this.replaceList([duplicateItem, duplicateItem, {\n text: 'bar'\n }, {\n text: 'baz'\n }]);\n this.assertText('foofoobarbaz');\n }\n\n [\"@test it maintains DOM stability when condition changes between objects with the same keys\"]() {\n this.makeList([{\n text: 'Hello'\n }, {\n text: ' '\n }, {\n text: 'world'\n }]);\n this.render(\"{{#each list key=\\\"text\\\" as |item|}}{{item.text}}{{/each}}\");\n this.assertText('Hello world');\n this.takeSnapshot();\n (0, _internalTestHelpers.runTask)(() => {\n this.popObject();\n this.popObject();\n this.pushObject({\n text: ' '\n });\n this.pushObject({\n text: 'world'\n });\n });\n this.assertText('Hello world');\n this.assertInvariants();\n this.replaceList([{\n text: 'Hello'\n }, {\n text: ' '\n }, {\n text: 'world'\n }]);\n this.assertText('Hello world');\n this.assertInvariants();\n }\n\n [\"@test it maintains DOM stability for stable keys when list is updated\"]() {\n this.makeList([{\n text: 'Hello'\n }, {\n text: ' '\n }, {\n text: 'world'\n }]);\n this.render(\"{{#each list key=\\\"text\\\" as |item|}}{{item.text}}{{/each}}\");\n this.assertText('Hello world');\n this.assertStableRerender();\n let oldSnapshot = this.takeSnapshot();\n (0, _internalTestHelpers.runTask)(() => {\n this.unshiftObject({\n text: ', '\n });\n this.unshiftObject({\n text: 'Hi'\n });\n this.pushObject({\n text: '!'\n });\n this.pushObject({\n text: 'earth'\n });\n });\n this.assertText('Hi, Hello world!earth');\n this.assertPartialInvariants(2, 5);\n this.replaceList([{\n text: 'Hello'\n }, {\n text: ' '\n }, {\n text: 'world'\n }]);\n this.assertText('Hello world');\n this.assertInvariants(oldSnapshot, this.takeSnapshot());\n }\n\n [\"@test it renders all items with duplicate key values\"]() {\n this.makeList([{\n text: 'Hello'\n }, {\n text: 'Hello'\n }, {\n text: 'Hello'\n }]);\n this.render(\"{{#each list key=\\\"text\\\" as |item|}}{{item.text}}{{/each}}\");\n this.assertText('HelloHelloHello');\n (0, _internalTestHelpers.runTask)(() => {\n this.forEach(hash => (0, _metal.set)(hash, 'text', 'Goodbye'));\n });\n this.assertText('GoodbyeGoodbyeGoodbye');\n this.replaceList([{\n text: 'Hello'\n }, {\n text: 'Hello'\n }, {\n text: 'Hello'\n }]);\n this.assertText('HelloHelloHello');\n }\n\n ['@test context is not changed to the inner scope inside an {{#each as}} block']() {\n this.makeList([{\n name: 'Chad'\n }, {\n name: 'Zack'\n }, {\n name: 'Asa'\n }]);\n this.render(\"{{name}}-{{#each list as |person|}}{{name}}{{/each}}-{{name}}\", {\n name: 'Joel'\n });\n this.assertText('Joel-JoelJoelJoel-Joel');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => this.shiftObject());\n this.assertText('Joel-JoelJoel-Joel');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'Godfrey'));\n this.assertText('Godfrey-GodfreyGodfrey-Godfrey');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'Joel'));\n this.replaceList([{\n name: 'Chad'\n }, {\n name: 'Zack'\n }, {\n name: 'Asa'\n }]);\n this.assertText('Joel-JoelJoelJoel-Joel');\n }\n\n ['@test can access the item and the original scope']() {\n this.makeList([{\n name: 'Tom Dale'\n }, {\n name: 'Yehuda Katz'\n }, {\n name: 'Godfrey Chan'\n }]);\n this.render(\"{{#each list key=\\\"name\\\" as |person|}}[{{title}}: {{person.name}}]{{/each}}\", {\n title: 'Señor Engineer'\n });\n this.assertText('[Señor Engineer: Tom Dale][Señor Engineer: Yehuda Katz][Señor Engineer: Godfrey Chan]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[Señor Engineer: Tom Dale][Señor Engineer: Yehuda Katz][Señor Engineer: Godfrey Chan]');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.objectAt(1), 'name', 'Stefan Penner');\n this.removeAt(0);\n this.pushObject({\n name: 'Tom Dale'\n });\n this.insertAt(1, {\n name: 'Chad Hietala'\n });\n (0, _metal.set)(this.context, 'title', 'Principal Engineer');\n });\n this.assertText('[Principal Engineer: Stefan Penner][Principal Engineer: Chad Hietala][Principal Engineer: Godfrey Chan][Principal Engineer: Tom Dale]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'title', 'Señor Engineer'));\n this.replaceList([{\n name: 'Tom Dale'\n }, {\n name: 'Yehuda Katz'\n }, {\n name: 'Godfrey Chan'\n }]);\n this.assertText('[Señor Engineer: Tom Dale][Señor Engineer: Yehuda Katz][Señor Engineer: Godfrey Chan]');\n }\n\n ['@test the scoped variable is not available outside the {{#each}} block.']() {\n this.makeList(['Yehuda']);\n this.render(\"{{name}}-{{#each list as |name|}}{{name}}{{/each}}-{{name}}\", {\n name: 'Stef'\n });\n this.assertText('Stef-Yehuda-Stef');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Stef-Yehuda-Stef');\n (0, _internalTestHelpers.runTask)(() => this.pushObjects([' ', 'Katz']));\n this.assertText('Stef-Yehuda Katz-Stef');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'Tom'));\n this.assertText('Tom-Yehuda Katz-Tom');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'Stef'));\n this.replaceList(['Yehuda']);\n this.assertText('Stef-Yehuda-Stef');\n }\n\n ['@test inverse template is displayed with context']() {\n this.makeList([]);\n this.render(\"{{#each list as |thing|}}Has Thing{{else}}No Thing {{otherThing}}{{/each}}\", {\n otherThing: 'bar'\n });\n this.assertText('No Thing bar');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('No Thing bar');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'otherThing', 'biz'));\n this.assertText('No Thing biz');\n (0, _internalTestHelpers.runTask)(() => this.pushObject('non-empty'));\n this.assertText('Has Thing');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'otherThing', 'baz'));\n this.assertText('Has Thing');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'otherThing', 'bar'));\n this.replaceList([]);\n this.assertText('No Thing bar');\n }\n\n ['@test content that are not initially present updates correctly GH#13983']() {\n // The root cause of this bug is that Glimmer did not call `didInitializeChildren`\n // on the inserted `TryOpcode`, causing that `TryOpcode` to have an uninitialized\n // tag. Currently the only way to observe this the \"JUMP-IF-NOT-MODIFIED\", i.e. by\n // wrapping it in an component.\n this.registerComponent('x-wrapper', {\n template: '{{yield}}'\n });\n this.makeList([]);\n this.render(\"{{#x-wrapper}}{{#each list as |obj|}}[{{obj.text}}]{{/each}}{{/x-wrapper}}\");\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => this.pushObject({\n text: 'foo'\n }));\n this.assertText('[foo]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.objectAt(0), 'text', 'FOO'));\n this.assertText('[FOO]');\n (0, _internalTestHelpers.runTask)(() => this.pushObject({\n text: 'bar'\n }));\n this.assertText('[FOO][bar]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.objectAt(1), 'text', 'BAR'));\n this.assertText('[FOO][BAR]');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.objectAt(1), 'text', 'baz'));\n this.assertText('[FOO][baz]');\n (0, _internalTestHelpers.runTask)(() => this.replace(1, 1, [{\n text: 'BAZ'\n }]));\n this.assertText('[FOO][BAZ]');\n this.replaceList([]);\n this.assertText('');\n }\n\n ['@test empty trusted content clears properly [GH#16314]']() {\n this.makeList(['hello']);\n this.render(\"before {{#each list as |value|}}{{{value}}}{{/each}} after\");\n this.assertText('before hello after');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => this.pushObjects([null, ' world']));\n this.assertText('before hello world after');\n (0, _internalTestHelpers.runTask)(() => this.replace(1, 2, [undefined, ' world!']));\n this.assertText('before hello world! after');\n (0, _internalTestHelpers.runTask)(() => this.replace(1, 2, [(0, _helpers.htmlSafe)(''), ' world!!']));\n this.assertText('before hello world!! after');\n this.replaceList(['hello']);\n this.assertText('before hello after');\n }\n /* multi each */\n\n\n ['@test re-using the same variable with different {{#each}} blocks does not override each other']() {\n let admins = this.createList([{\n name: 'Tom Dale'\n }]);\n let users = this.createList([{\n name: 'Yehuda Katz'\n }]);\n this.render(\"Admin: {{#each admins key=\\\"name\\\" as |person|}}[{{person.name}}]{{/each}} User: {{#each users key=\\\"name\\\" as |person|}}[{{person.name}}]{{/each}}\", {\n admins: admins.list,\n users: users.list\n });\n this.assertText('Admin: [Tom Dale] User: [Yehuda Katz]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Admin: [Tom Dale] User: [Yehuda Katz]');\n (0, _internalTestHelpers.runTask)(() => {\n admins.delegate.pushObject({\n name: 'Godfrey Chan'\n });\n (0, _metal.set)(users.delegate.objectAt(0), 'name', 'Stefan Penner');\n });\n this.assertText('Admin: [Tom Dale][Godfrey Chan] User: [Stefan Penner]');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'admins', this.createList([{\n name: 'Tom Dale'\n }]).list);\n (0, _metal.set)(this.context, 'users', this.createList([{\n name: 'Yehuda Katz'\n }]).list);\n });\n this.assertText('Admin: [Tom Dale] User: [Yehuda Katz]');\n }\n\n [\"@test an outer {{#each}}'s scoped variable does not clobber an inner {{#each}}'s property if they share the same name - Issue #1315\"]() {\n let content = this.createList(['X', 'Y']);\n let options = this.createList([{\n label: 'One',\n value: 1\n }, {\n label: 'Two',\n value: 2\n }]);\n this.render((0, _internalTestHelpers.strip)(_templateObject2()), {\n content: content.list,\n options: options.list\n });\n this.assertText('X-1:One2:TwoY-1:One2:Two');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => {\n content.delegate.pushObject('Z');\n (0, _metal.set)(options.delegate.objectAt(0), 'value', 0);\n });\n this.assertText('X-0:One2:TwoY-0:One2:TwoZ-0:One2:Two');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'content', this.createList(['X', 'Y']).list);\n (0, _metal.set)(this.context, 'options', this.createList([{\n label: 'One',\n value: 1\n }, {\n label: 'Two',\n value: 2\n }]).list);\n });\n this.assertText('X-1:One2:TwoY-1:One2:Two');\n }\n\n ['@test the scoped variable is not available outside the {{#each}} block']() {\n let first = this.createList(['Limbo']);\n let fifth = this.createList(['Wrath']);\n let ninth = this.createList(['Treachery']);\n this.render(\"{{ring}}-{{#each first as |ring|}}{{ring}}-{{#each fifth as |ring|}}{{ring}}-{{#each ninth as |ring|}}{{ring}}-{{/each}}{{ring}}-{{/each}}{{ring}}-{{/each}}{{ring}}\", {\n ring: 'Greed',\n first: first.list,\n fifth: fifth.list,\n ninth: ninth.list\n });\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'ring', 'O');\n fifth.delegate.insertAt(0, 'D');\n });\n this.assertText('O-Limbo-D-Treachery-D-Wrath-Treachery-Wrath-Limbo-O');\n (0, _internalTestHelpers.runTask)(() => {\n first.delegate.pushObject('I');\n ninth.delegate.replace(0, 1, ['K']);\n });\n this.assertText('O-Limbo-D-K-D-Wrath-K-Wrath-Limbo-I-D-K-D-Wrath-K-Wrath-I-O');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'ring', 'Greed');\n (0, _metal.set)(this.context, 'first', this.createList(['Limbo']).list);\n (0, _metal.set)(this.context, 'fifth', this.createList(['Wrath']).list);\n (0, _metal.set)(this.context, 'ninth', this.createList(['Treachery']).list);\n });\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n }\n\n ['@test it should support {{#each name as |foo|}}, then {{#each foo as |bar|}}']() {\n let inner = this.createList(['caterpillar']);\n let outer = this.createList([inner.list]);\n this.render(\"{{#each name key=\\\"@index\\\" as |foo|}}{{#each foo as |bar|}}{{bar}}{{/each}}{{/each}}\", {\n name: outer.list\n });\n this.assertText('caterpillar');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('caterpillar');\n (0, _internalTestHelpers.runTask)(() => {\n inner.delegate.replace(0, 1, ['lady']);\n outer.delegate.pushObject(this.createList(['bird']).list);\n });\n this.assertText('ladybird');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', this.createList([this.createList(['caterpillar']).list]).list));\n this.assertText('caterpillar');\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each}} with native arrays', class extends EachTest {\n createList(items) {\n return {\n list: items,\n delegate: new ArrayDelegate(items, items)\n };\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each}} with emberA-wrapped arrays', class extends EachTest {\n createList(items) {\n let wrapped = (0, _runtime.A)(items);\n return {\n list: wrapped,\n delegate: wrapped\n };\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each}} with native Set', class extends EachTest {\n createList(items) {\n let set = makeSet(items);\n return {\n list: set,\n delegate: new SetDelegate(set)\n };\n }\n\n ['@test it can render duplicate primitive items'](assert) {\n assert.ok(true, 'not supported by Set');\n }\n\n ['@test it can render duplicate objects'](assert) {\n assert.ok(true, 'not supported by Set');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each}} with array-like objects implementing forEach', class extends EachTest {\n createList(items) {\n let forEachable = new ForEachable(items);\n return {\n list: forEachable,\n delegate: forEachable\n };\n }\n\n });\n\n if (_utils.HAS_NATIVE_SYMBOL) {\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each}} with array-like objects implementing Symbol.iterator', class extends EachTest {\n createList(items) {\n let iterable = new ArrayIterable(items);\n return {\n list: iterable,\n delegate: iterable\n };\n }\n\n });\n }\n\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each}} with array proxies, modifying itself', class extends EachTest {\n createList(items) {\n let proxty = _runtime.ArrayProxy.create({\n content: (0, _runtime.A)(items)\n });\n\n return {\n list: proxty,\n delegate: proxty\n };\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each}} with array proxies, replacing its content', class extends EachTest {\n createList(items) {\n let wrapped = (0, _runtime.A)(items);\n return {\n list: wrapped,\n delegate: _runtime.ArrayProxy.create({\n content: wrapped\n })\n };\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each as}} undefined path', class extends _internalTestHelpers.RenderingTestCase {\n ['@test keying off of `undefined` does not render']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject3()), {\n foo: {}\n });\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: {\n baz: ['Here!']\n }\n }));\n this.assertText('Here!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {}));\n this.assertText('');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each}} with sparse arrays', class extends _internalTestHelpers.RenderingTestCase {\n ['@test it should itterate over holes']() {\n let sparseArray = [];\n sparseArray[3] = 'foo';\n sparseArray[4] = 'bar';\n this.render((0, _internalTestHelpers.strip)(_templateObject4()), {\n list: (0, _runtime.A)(sparseArray)\n });\n this.assertText('[0:][1:][2:][3:foo][4:bar]');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => {\n let list = (0, _metal.get)(this.context, 'list');\n list.pushObject('baz');\n });\n this.assertText('[0:][1:][2:][3:foo][4:bar][5:baz]');\n }\n\n });\n /* globals MutationObserver: false */\n\n if (typeof MutationObserver === 'function') {\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#each as}} DOM mutation test', class extends _internalTestHelpers.RenderingTestCase {\n constructor() {\n super(...arguments);\n this.observer = null;\n }\n\n observe(element) {\n let observer = this.observer = new MutationObserver(function () {});\n observer.observe(element, {\n childList: true,\n characterData: true\n });\n }\n\n teardown() {\n if (this.observer) {\n this.observer.disconnect();\n }\n\n super.teardown();\n }\n\n assertNoMutation() {\n this.assert.deepEqual(this.observer.takeRecords(), [], 'Expected no mutations');\n }\n\n expectMutations() {\n this.assert.ok(this.observer.takeRecords().length > 0, 'Expected some mutations');\n }\n\n ['@test {{#each}} should not mutate a subtree when the array has not changed [GH #14332]']() {\n let page = {\n title: 'Blog Posts'\n };\n let model = [{\n title: 'Rails is omakase'\n }, {\n title: 'Ember is omakase'\n }];\n this.render((0, _internalTestHelpers.strip)(_templateObject5()), {\n page,\n model\n });\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject6()));\n this.observe(this.$('#posts')[0]); // MutationObserver is async\n\n return _runtime.RSVP.Promise.resolve(() => {\n this.assertStableRerender();\n }).then(() => {\n this.assertNoMutation();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'page', {\n title: 'Essays'\n }));\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject7()));\n }).then(() => {\n this.assertNoMutation();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context.page, 'title', 'Think Pieces™'));\n this.assertHTML((0, _internalTestHelpers.strip)(_templateObject8()));\n }).then(() => {\n // The last set is localized to the `page` object, so we do not expect Glimmer\n // to re-iterate the list\n this.assertNoMutation();\n });\n }\n\n });\n }\n});","enifed(\"@ember/-internals/glimmer/tests/integration/syntax/experimental-syntax-test\", [\"internal-test-helpers\", \"@ember/-internals/glimmer\"], function (_internalTestHelpers, _glimmer) {\n \"use strict\";\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#-let obj as |bar|}}\\n {{bar}}\\n {{/-let}}\\n \"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('registerMacros', class extends _internalTestHelpers.RenderingTestCase {\n constructor() {\n let originalMacros = _glimmer._experimentalMacros.slice();\n\n (0, _glimmer._registerMacros)(blocks => {\n blocks.add('-let', (params, hash, _default, inverse, builder) => {\n builder.compileParams(params);\n builder.invokeStaticBlock(_default, params.length);\n });\n });\n super(...arguments);\n this.originalMacros = originalMacros;\n }\n\n teardown() {\n _glimmer._experimentalMacros.length = 0;\n this.originalMacros.forEach(macro => _glimmer._experimentalMacros.push(macro));\n super.teardown();\n }\n\n ['@test allows registering custom syntax via private API']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject()), {\n obj: 'hello world!'\n });\n this.assertText('hello world!');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/syntax/if-unless-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime\", \"@ember/-internals/metal\", \"@ember/-internals/glimmer/tests/utils/helpers\", \"@ember/-internals/glimmer/tests/utils/shared-conditional-tests\"], function (_internalTestHelpers, _runtime, _metal, _helpers, _sharedConditionalTests) {\n \"use strict\";\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#if foo.bar.baz}}\\n Here!\\n {{else}}\\n Nothing Here!\\n {{/if}}\"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#if cond}}\\n {{#each numbers as |number|}}\\n {{foo-bar number=number}}\\n {{/each}}\\n {{else}}\\n Nothing Here!\\n {{/if}}\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#if}} with inverse', class extends _sharedConditionalTests.IfUnlessWithSyntaxTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{#if \" + cond + \"}}\" + truthy + \"{{else}}\" + falsy + \"{{/if}}\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#unless}} with inverse', class extends _sharedConditionalTests.IfUnlessWithSyntaxTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{#unless \" + cond + \"}}\" + falsy + \"{{else}}\" + truthy + \"{{/unless}}\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#if}} and {{#unless}} without inverse', class extends _sharedConditionalTests.IfUnlessWithSyntaxTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{#if \" + cond + \"}}\" + truthy + \"{{/if}}{{#unless \" + cond + \"}}\" + falsy + \"{{/unless}}\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#if}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test using `if` with an `{{each}}` destroys components when transitioning to and from inverse (GH #12267)'](assert) {\n let destroyedChildrenCount = 0;\n this.registerComponent('foo-bar', {\n template: '{{number}}',\n ComponentClass: _helpers.Component.extend({\n willDestroy() {\n this._super();\n\n destroyedChildrenCount++;\n }\n\n })\n });\n this.render((0, _internalTestHelpers.strip)(_templateObject()), {\n cond: true,\n numbers: (0, _runtime.A)([1, 2, 3])\n });\n this.assertText('123');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('123');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', false));\n this.assertText('Nothing Here!');\n assert.equal(destroyedChildrenCount, 3, 'the children were properly destroyed');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', true));\n this.assertText('123');\n }\n\n ['@test looking up `undefined` property defaults to false']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject2()), {\n foo: {}\n });\n this.assertText('Nothing Here!');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Nothing Here!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: {\n baz: true\n }\n }));\n this.assertText('Here!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {}));\n this.assertText('Nothing Here!');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/syntax/in-element-test\", [\"internal-test-helpers\", \"@ember/-internals/glimmer\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _glimmer, _metal) {\n \"use strict\";\n\n function _templateObject3() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#if showModal}}\\n {{#-in-element someElement}}\\n {{modal-display text=text}}\\n {{/-in-element}}\\n {{/if}}\\n \"]);\n\n _templateObject3 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#-in-element someElement}}\\n {{text}}\\n {{/-in-element}}\\n \"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"{{#in-element el}}{{/in-element}}\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('{{-in-element}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test using {{#in-element whatever}} asserts']() {\n // the in-element keyword is not yet public API this test should be removed\n // once https://github.com/emberjs/rfcs/pull/287 lands and is enabled\n let el = document.createElement('div');\n expectAssertion(() => {\n this.render((0, _internalTestHelpers.strip)(_templateObject()), {\n el\n });\n }, /The {{in-element}} helper cannot be used. \\('-top-level' @ L1:C0\\)/);\n }\n\n ['@test allows rendering into an external element']() {\n let someElement = document.createElement('div');\n this.render((0, _internalTestHelpers.strip)(_templateObject2()), {\n someElement,\n text: 'Whoop!'\n });\n (0, _internalTestHelpers.equalTokens)(this.element, '');\n (0, _internalTestHelpers.equalTokens)(someElement, 'Whoop!');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'text', 'Huzzah!!'));\n (0, _internalTestHelpers.equalTokens)(this.element, '');\n (0, _internalTestHelpers.equalTokens)(someElement, 'Huzzah!!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'text', 'Whoop!'));\n (0, _internalTestHelpers.equalTokens)(this.element, '');\n (0, _internalTestHelpers.equalTokens)(someElement, 'Whoop!');\n }\n\n ['@test components are cleaned up properly'](assert) {\n let hooks = [];\n let someElement = document.createElement('div');\n this.registerComponent('modal-display', {\n ComponentClass: _glimmer.Component.extend({\n didInsertElement() {\n hooks.push('didInsertElement');\n },\n\n willDestroyElement() {\n hooks.push('willDestroyElement');\n }\n\n }),\n template: \"{{text}}\"\n });\n this.render((0, _internalTestHelpers.strip)(_templateObject3()), {\n someElement,\n text: 'Whoop!',\n showModal: false\n });\n (0, _internalTestHelpers.equalTokens)(this.element, '');\n (0, _internalTestHelpers.equalTokens)(someElement, '');\n this.assertStableRerender();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'showModal', true));\n (0, _internalTestHelpers.equalTokens)(this.element, '');\n this.assertComponentElement(someElement.firstChild, {\n content: 'Whoop!'\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'text', 'Huzzah!'));\n (0, _internalTestHelpers.equalTokens)(this.element, '');\n this.assertComponentElement(someElement.firstChild, {\n content: 'Huzzah!'\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'text', 'Whoop!'));\n (0, _internalTestHelpers.equalTokens)(this.element, '');\n this.assertComponentElement(someElement.firstChild, {\n content: 'Whoop!'\n });\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'showModal', false));\n (0, _internalTestHelpers.equalTokens)(this.element, '');\n (0, _internalTestHelpers.equalTokens)(someElement, '');\n assert.deepEqual(hooks, ['didInsertElement', 'willDestroyElement']);\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/syntax/let-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\"], function (_internalTestHelpers, _metal, _runtime) {\n \"use strict\";\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{name}}\\n {{#let committer1.name as |name|}}\\n [{{name}}\\n {{#let committer2.name as |name|}}\\n [{{name}}]\\n {{/let}}\\n {{name}}]\\n {{/let}}\\n {{name}}\\n {{#let committer2.name as |name|}}\\n [{{name}}\\n {{#let committer1.name as |name|}}\\n [{{name}}]\\n {{/let}}\\n {{name}}]\\n {{/let}}\\n {{name}}\\n \"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#let foo.bar.baz as |thing|}}\\n value: \\\"{{thing}}\\\"\\n {{/let}}\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#let as}}', class extends _internalTestHelpers.RenderingTestCase {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{#let \" + cond + \" as |test|}}\" + truthy + \"{{else}}\" + falsy + \"{{/let}}\";\n }\n\n ['@test it renders the block if `undefined` is passed as an argument']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject()), {\n foo: {}\n });\n this.assertText('value: \"\"');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('value: \"\"');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: {\n baz: 'Here!'\n }\n }));\n this.assertText('value: \"Here!\"');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {}));\n this.assertText('value: \"\"');\n }\n\n ['@test it renders the block if arguments are falsey']() {\n this.render(\"{{#let cond1 cond2 as |cond|}}value: \\\"{{cond1}}\\\"{{/let}}\", {\n cond1: false\n });\n this.assertText('value: \"false\"');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('value: \"false\"');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', ''));\n this.assertText('value: \"\"');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', 0));\n this.assertText('value: \"0\"');\n }\n\n ['@test it yields multiple arguments in order']() {\n this.render(\"{{#let foo bar baz.name as |a b c|}}{{a}} {{b}} {{c}}{{/let}}\", {\n foo: 'Señor Engineer',\n bar: '',\n baz: {\n name: 'Dale'\n }\n });\n this.assertText('Señor Engineer Dale');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'bar', 'Tom'));\n this.assertText('Señor Engineer Tom Dale');\n }\n\n ['@test can access alias and original scope']() {\n this.render(\"{{#let person as |tom|}}{{title}}: {{tom.name}}{{/let}}\", {\n title: 'Señor Engineer',\n person: {\n name: 'Tom Dale'\n }\n });\n this.assertText('Señor Engineer: Tom Dale');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Señor Engineer: Tom Dale');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'person.name', 'Yehuda Katz');\n (0, _metal.set)(this.context, 'title', 'Principal Engineer');\n });\n this.assertText('Principal Engineer: Yehuda Katz');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'person', {\n name: 'Tom Dale'\n });\n (0, _metal.set)(this.context, 'title', 'Señor Engineer');\n });\n this.assertText('Señor Engineer: Tom Dale');\n }\n\n ['@test the scoped variable is not available outside the {{#let}} block.']() {\n this.render(\"{{name}}-{{#let other as |name|}}{{name}}{{/let}}-{{name}}\", {\n name: 'Stef',\n other: 'Yehuda'\n });\n this.assertText('Stef-Yehuda-Stef');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Stef-Yehuda-Stef');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'other', 'Chad'));\n this.assertText('Stef-Chad-Stef');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'Tom'));\n this.assertText('Tom-Chad-Tom');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'name', 'Stef');\n (0, _metal.set)(this.context, 'other', 'Yehuda');\n });\n this.assertText('Stef-Yehuda-Stef');\n }\n\n ['@test can access alias of a proxy']() {\n this.render(\"{{#let proxy as |person|}}{{person.name}}{{/let}}\", {\n proxy: _runtime.ObjectProxy.create({\n content: {\n name: 'Tom Dale'\n }\n })\n });\n this.assertText('Tom Dale');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Tom Dale');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'proxy.name', 'Yehuda Katz'));\n this.assertText('Yehuda Katz');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'proxy.content', {\n name: 'Godfrey Chan'\n }));\n this.assertText('Godfrey Chan');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'proxy.content.name', 'Stefan Penner'));\n this.assertText('Stefan Penner');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'proxy.content', null));\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'proxy', _runtime.ObjectProxy.create({\n content: {\n name: 'Tom Dale'\n }\n })));\n this.assertText('Tom Dale');\n }\n\n ['@test can access alias of an array']() {\n this.render(\"{{#let arrayThing as |words|}}{{#each words as |word|}}{{word}}{{/each}}{{/let}}\", {\n arrayThing: (0, _runtime.A)(['Hello', ' ', 'world'])\n });\n this.assertText('Hello world');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Hello world');\n (0, _internalTestHelpers.runTask)(() => {\n let array = (0, _metal.get)(this.context, 'arrayThing');\n array.replace(0, 1, ['Goodbye']);\n (0, _runtime.removeAt)(array, 1);\n array.insertAt(1, ', ');\n array.pushObject('!');\n });\n this.assertText('Goodbye, world!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'arrayThing', ['Hello', ' ', 'world']));\n this.assertText('Hello world');\n }\n\n ['@test `attrs` can be used as a block param [GH#14678]']() {\n this.render('{{#let hash as |attrs|}}[{{hash.foo}}-{{attrs.foo}}]{{/let}}', {\n hash: {\n foo: 'foo'\n }\n });\n this.assertText('[foo-foo]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[foo-foo]');\n (0, _internalTestHelpers.runTask)(() => this.context.set('hash.foo', 'FOO'));\n this.assertText('[FOO-FOO]');\n (0, _internalTestHelpers.runTask)(() => this.context.set('hash.foo', 'foo'));\n this.assertText('[foo-foo]');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: Multiple {{#let as}} helpers', class extends _internalTestHelpers.RenderingTestCase {\n ['@test re-using the same variable with different {{#let}} blocks does not override each other']() {\n this.render(\"Admin: {{#let admin as |person|}}{{person.name}}{{/let}} User: {{#let user as |person|}}{{person.name}}{{/let}}\", {\n admin: {\n name: 'Tom Dale'\n },\n user: {\n name: 'Yehuda Katz'\n }\n });\n this.assertText('Admin: Tom Dale User: Yehuda Katz');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Admin: Tom Dale User: Yehuda Katz');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'admin.name', 'Godfrey Chan');\n (0, _metal.set)(this.context, 'user.name', 'Stefan Penner');\n });\n this.assertText('Admin: Godfrey Chan User: Stefan Penner');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'admin', {\n name: 'Tom Dale'\n });\n (0, _metal.set)(this.context, 'user', {\n name: 'Yehuda Katz'\n });\n });\n this.assertText('Admin: Tom Dale User: Yehuda Katz');\n }\n\n ['@test the scoped variable is not available outside the {{#let}} block']() {\n this.render(\"{{ring}}-{{#let first as |ring|}}{{ring}}-{{#let fifth as |ring|}}{{ring}}-{{#let ninth as |ring|}}{{ring}}-{{/let}}{{ring}}-{{/let}}{{ring}}-{{/let}}{{ring}}\", {\n ring: 'Greed',\n first: 'Limbo',\n fifth: 'Wrath',\n ninth: 'Treachery'\n });\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'ring', 'O');\n (0, _metal.set)(this.context, 'fifth', 'D');\n });\n this.assertText('O-Limbo-D-Treachery-D-Limbo-O');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'first', 'I');\n (0, _metal.set)(this.context, 'ninth', 'K');\n });\n this.assertText('O-I-D-K-D-I-O');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'ring', 'Greed');\n (0, _metal.set)(this.context, 'first', 'Limbo');\n (0, _metal.set)(this.context, 'fifth', 'Wrath');\n (0, _metal.set)(this.context, 'ninth', 'Treachery');\n });\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n }\n\n ['@test it should support {{#let name as |foo|}}, then {{#let foo as |bar|}}']() {\n this.render(\"{{#let name as |foo|}}{{#let foo as |bar|}}{{bar}}{{/let}}{{/let}}\", {\n name: 'caterpillar'\n });\n this.assertText('caterpillar');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('caterpillar');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'butterfly'));\n this.assertText('butterfly');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'caterpillar'));\n this.assertText('caterpillar');\n }\n\n ['@test updating the context should update the alias']() {\n this.render(\"{{#let this as |person|}}{{person.name}}{{/let}}\", {\n name: 'Los Pivots'\n });\n this.assertText('Los Pivots');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Los Pivots');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', \"l'Pivots\"));\n this.assertText(\"l'Pivots\");\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'Los Pivots'));\n this.assertText('Los Pivots');\n }\n\n ['@test nested {{#let}} blocks should have access to root context']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject2()), {\n name: 'ebryn',\n committer1: {\n name: 'trek'\n },\n committer2: {\n name: 'machty'\n }\n });\n this.assertText('ebryn[trek[machty]trek]ebryn[machty[trek]machty]ebryn');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('ebryn[trek[machty]trek]ebryn[machty[trek]machty]ebryn');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'chancancode'));\n this.assertText('chancancode[trek[machty]trek]chancancode[machty[trek]machty]chancancode');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'committer1', {\n name: 'krisselden'\n }));\n this.assertText('chancancode[krisselden[machty]krisselden]chancancode[machty[krisselden]machty]chancancode');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'committer1.name', 'wycats');\n (0, _metal.set)(this.context, 'committer2', {\n name: 'rwjblue'\n });\n });\n this.assertText('chancancode[wycats[rwjblue]wycats]chancancode[rwjblue[wycats]rwjblue]chancancode');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'name', 'ebryn');\n (0, _metal.set)(this.context, 'committer1', {\n name: 'trek'\n });\n (0, _metal.set)(this.context, 'committer2', {\n name: 'machty'\n });\n });\n this.assertText('ebryn[trek[machty]trek]ebryn[machty[trek]machty]ebryn');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/syntax/with-dynamic-var-test\", [\"internal-test-helpers\"], function (_internalTestHelpers) {\n \"use strict\";\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#-with-dynamic-vars outletState=\\\"bar\\\"}}\\n {{-get-dynamic-var 'outletState'}}\\n {{/-with-dynamic-vars}}\\n \"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#-with-dynamic-vars foo=\\\"bar\\\"}}\\n {{-get-dynamic-var 'foo'}}\\n {{/-with-dynamic-vars}}\\n \"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('{{-with-dynamic-var}}', class extends _internalTestHelpers.RenderingTestCase {\n ['@test does not allow setting values other than outletState']() {\n expectAssertion(() => {\n this.render((0, _internalTestHelpers.strip)(_templateObject()));\n }, /Using `-with-dynamic-scope` is only supported for `outletState` \\(you used `foo`\\)./);\n }\n\n ['@test allows setting/getting outletState']() {\n // this is simply asserting that we can write and read outletState\n // the actual value being used here is not what is used in real life\n // feel free to change the value being set and asserted as needed\n this.render((0, _internalTestHelpers.strip)(_templateObject2()));\n this.assertText('bar');\n }\n\n ['@test does not allow setting values other than outletState']() {\n expectAssertion(() => {\n this.render(\"{{-get-dynamic-var 'foo'}}\");\n }, /Using `-get-dynamic-scope` is only supported for `outletState` \\(you used `foo`\\)./);\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/integration/syntax/with-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"@ember/-internals/glimmer/tests/utils/shared-conditional-tests\"], function (_internalTestHelpers, _metal, _runtime, _sharedConditionalTests) {\n \"use strict\";\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{name}}\\n {{#with committer1.name as |name|}}\\n [{{name}}\\n {{#with committer2.name as |name|}}\\n [{{name}}]\\n {{/with}}\\n {{name}}]\\n {{/with}}\\n {{name}}\\n {{#with committer2.name as |name|}}\\n [{{name}}\\n {{#with committer1.name as |name|}}\\n [{{name}}]\\n {{/with}}\\n {{name}}]\\n {{/with}}\\n {{name}}\\n \"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n {{#with foo.bar.baz as |thing|}}\\n {{thing}}\\n {{/with}}\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#with}}', class extends _sharedConditionalTests.IfUnlessWithSyntaxTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{#with \" + cond + \"}}\" + truthy + \"{{else}}\" + falsy + \"{{/with}}\";\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: {{#with as}}', class extends _sharedConditionalTests.IfUnlessWithSyntaxTest {\n templateFor({\n cond,\n truthy,\n falsy\n }) {\n return \"{{#with \" + cond + \" as |test|}}\" + truthy + \"{{else}}\" + falsy + \"{{/with}}\";\n }\n\n ['@test keying off of `undefined` does not render']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject()), {\n foo: {}\n });\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {\n bar: {\n baz: 'Here!'\n }\n }));\n this.assertText('Here!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'foo', {}));\n this.assertText('');\n }\n\n ['@test it renders and hides the given block based on the conditional']() {\n this.render(\"{{#with cond1 as |cond|}}{{cond.greeting}}{{else}}False{{/with}}\", {\n cond1: {\n greeting: 'Hello'\n }\n });\n this.assertText('Hello');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Hello');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1.greeting', 'Hello world'));\n this.assertText('Hello world');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', false));\n this.assertText('False');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', {\n greeting: 'Hello'\n }));\n this.assertText('Hello');\n }\n\n ['@test can access alias and original scope']() {\n this.render(\"{{#with person as |tom|}}{{title}}: {{tom.name}}{{/with}}\", {\n title: 'Señor Engineer',\n person: {\n name: 'Tom Dale'\n }\n });\n this.assertText('Señor Engineer: Tom Dale');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Señor Engineer: Tom Dale');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'person.name', 'Yehuda Katz');\n (0, _metal.set)(this.context, 'title', 'Principal Engineer');\n });\n this.assertText('Principal Engineer: Yehuda Katz');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'person', {\n name: 'Tom Dale'\n });\n (0, _metal.set)(this.context, 'title', 'Señor Engineer');\n });\n this.assertText('Señor Engineer: Tom Dale');\n }\n\n ['@test the scoped variable is not available outside the {{#with}} block.']() {\n this.render(\"{{name}}-{{#with other as |name|}}{{name}}{{/with}}-{{name}}\", {\n name: 'Stef',\n other: 'Yehuda'\n });\n this.assertText('Stef-Yehuda-Stef');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Stef-Yehuda-Stef');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'other', 'Chad'));\n this.assertText('Stef-Chad-Stef');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'Tom'));\n this.assertText('Tom-Chad-Tom');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'name', 'Stef');\n (0, _metal.set)(this.context, 'other', 'Yehuda');\n });\n this.assertText('Stef-Yehuda-Stef');\n }\n\n ['@test inverse template is displayed with context']() {\n this.render(\"{{#with falsyThing as |thing|}}Has Thing{{else}}No Thing {{otherThing}}{{/with}}\", {\n falsyThing: null,\n otherThing: 'bar'\n });\n this.assertText('No Thing bar');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('No Thing bar');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'otherThing', 'biz'));\n this.assertText('No Thing biz');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'falsyThing', true));\n this.assertText('Has Thing');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'otherThing', 'baz'));\n this.assertText('Has Thing');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'otherThing', 'bar');\n (0, _metal.set)(this.context, 'falsyThing', null);\n });\n this.assertText('No Thing bar');\n }\n\n ['@test can access alias of a proxy']() {\n this.render(\"{{#with proxy as |person|}}{{person.name}}{{/with}}\", {\n proxy: _runtime.ObjectProxy.create({\n content: {\n name: 'Tom Dale'\n }\n })\n });\n this.assertText('Tom Dale');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Tom Dale');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'proxy.name', 'Yehuda Katz'));\n this.assertText('Yehuda Katz');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'proxy.content', {\n name: 'Godfrey Chan'\n }));\n this.assertText('Godfrey Chan');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'proxy.content.name', 'Stefan Penner'));\n this.assertText('Stefan Penner');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'proxy.content', null));\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'proxy', _runtime.ObjectProxy.create({\n content: {\n name: 'Tom Dale'\n }\n })));\n this.assertText('Tom Dale');\n }\n\n ['@test can access alias of an array']() {\n this.render(\"{{#with arrayThing as |words|}}{{#each words as |word|}}{{word}}{{/each}}{{/with}}\", {\n arrayThing: (0, _runtime.A)(['Hello', ' ', 'world'])\n });\n this.assertText('Hello world');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Hello world');\n (0, _internalTestHelpers.runTask)(() => {\n let array = (0, _metal.get)(this.context, 'arrayThing');\n array.replace(0, 1, ['Goodbye']);\n (0, _runtime.removeAt)(array, 1);\n array.insertAt(1, ', ');\n array.pushObject('!');\n });\n this.assertText('Goodbye, world!');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'arrayThing', ['Hello', ' ', 'world']));\n this.assertText('Hello world');\n }\n\n ['@test `attrs` can be used as a block param [GH#14678]']() {\n this.render('{{#with hash as |attrs|}}[{{hash.foo}}-{{attrs.foo}}]{{/with}}', {\n hash: {\n foo: 'foo'\n }\n });\n this.assertText('[foo-foo]');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('[foo-foo]');\n (0, _internalTestHelpers.runTask)(() => this.context.set('hash.foo', 'FOO'));\n this.assertText('[FOO-FOO]');\n (0, _internalTestHelpers.runTask)(() => this.context.set('hash.foo', 'foo'));\n this.assertText('[foo-foo]');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Syntax test: Multiple {{#with as}} helpers', class extends _internalTestHelpers.RenderingTestCase {\n ['@test re-using the same variable with different {{#with}} blocks does not override each other']() {\n this.render(\"Admin: {{#with admin as |person|}}{{person.name}}{{/with}} User: {{#with user as |person|}}{{person.name}}{{/with}}\", {\n admin: {\n name: 'Tom Dale'\n },\n user: {\n name: 'Yehuda Katz'\n }\n });\n this.assertText('Admin: Tom Dale User: Yehuda Katz');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Admin: Tom Dale User: Yehuda Katz');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'admin.name', 'Godfrey Chan');\n (0, _metal.set)(this.context, 'user.name', 'Stefan Penner');\n });\n this.assertText('Admin: Godfrey Chan User: Stefan Penner');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'admin', {\n name: 'Tom Dale'\n });\n (0, _metal.set)(this.context, 'user', {\n name: 'Yehuda Katz'\n });\n });\n this.assertText('Admin: Tom Dale User: Yehuda Katz');\n }\n\n ['@test the scoped variable is not available outside the {{#with}} block']() {\n this.render(\"{{ring}}-{{#with first as |ring|}}{{ring}}-{{#with fifth as |ring|}}{{ring}}-{{#with ninth as |ring|}}{{ring}}-{{/with}}{{ring}}-{{/with}}{{ring}}-{{/with}}{{ring}}\", {\n ring: 'Greed',\n first: 'Limbo',\n fifth: 'Wrath',\n ninth: 'Treachery'\n });\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'ring', 'O');\n (0, _metal.set)(this.context, 'fifth', 'D');\n });\n this.assertText('O-Limbo-D-Treachery-D-Limbo-O');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'first', 'I');\n (0, _metal.set)(this.context, 'ninth', 'K');\n });\n this.assertText('O-I-D-K-D-I-O');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'ring', 'Greed');\n (0, _metal.set)(this.context, 'first', 'Limbo');\n (0, _metal.set)(this.context, 'fifth', 'Wrath');\n (0, _metal.set)(this.context, 'ninth', 'Treachery');\n });\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n }\n\n ['@test it should support {{#with name as |foo|}}, then {{#with foo as |bar|}}']() {\n this.render(\"{{#with name as |foo|}}{{#with foo as |bar|}}{{bar}}{{/with}}{{/with}}\", {\n name: 'caterpillar'\n });\n this.assertText('caterpillar');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('caterpillar');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'butterfly'));\n this.assertText('butterfly');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'caterpillar'));\n this.assertText('caterpillar');\n }\n\n ['@test updating the context should update the alias']() {\n this.render(\"{{#with this as |person|}}{{person.name}}{{/with}}\", {\n name: 'Los Pivots'\n });\n this.assertText('Los Pivots');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('Los Pivots');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', \"l'Pivots\"));\n this.assertText(\"l'Pivots\");\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'Los Pivots'));\n this.assertText('Los Pivots');\n }\n\n ['@test nested {{#with}} blocks should have access to root context']() {\n this.render((0, _internalTestHelpers.strip)(_templateObject2()), {\n name: 'ebryn',\n committer1: {\n name: 'trek'\n },\n committer2: {\n name: 'machty'\n }\n });\n this.assertText('ebryn[trek[machty]trek]ebryn[machty[trek]machty]ebryn');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('ebryn[trek[machty]trek]ebryn[machty[trek]machty]ebryn');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'name', 'chancancode'));\n this.assertText('chancancode[trek[machty]trek]chancancode[machty[trek]machty]chancancode');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'committer1', {\n name: 'krisselden'\n }));\n this.assertText('chancancode[krisselden[machty]krisselden]chancancode[machty[krisselden]machty]chancancode');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'committer1.name', 'wycats');\n (0, _metal.set)(this.context, 'committer2', {\n name: 'rwjblue'\n });\n });\n this.assertText('chancancode[wycats[rwjblue]wycats]chancancode[rwjblue[wycats]rwjblue]chancancode');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'name', 'ebryn');\n (0, _metal.set)(this.context, 'committer1', {\n name: 'trek'\n });\n (0, _metal.set)(this.context, 'committer2', {\n name: 'machty'\n });\n });\n this.assertText('ebryn[trek[machty]trek]ebryn[machty[trek]machty]ebryn');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/unit/outlet-test\", [\"internal-test-helpers\", \"@ember/-internals/glimmer\", \"@ember/runloop\"], function (_internalTestHelpers, _glimmer, _runloop) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Glimmer OutletView', class extends _internalTestHelpers.AbstractTestCase {\n ['@test render in the render queue'](assert) {\n let didAppendOutletView = 0;\n let expectedOutlet = '#foo.bar';\n let renderer = {\n appendOutletView(view, target) {\n didAppendOutletView++;\n assert.equal(view, outletView);\n assert.equal(target, expectedOutlet);\n }\n\n };\n let outletView = new _glimmer.OutletView({}, renderer);\n (0, _runloop.run)(() => {\n assert.equal(didAppendOutletView, 0, 'appendOutletView should not yet have been called (before appendTo)');\n outletView.appendTo(expectedOutlet);\n assert.equal(didAppendOutletView, 0, 'appendOutletView should not yet have been called (sync after appendTo)');\n (0, _runloop.schedule)('actions', () => assert.equal(didAppendOutletView, 0, 'appendOutletView should not yet have been called (in actions)'));\n (0, _runloop.schedule)('render', () => assert.equal(didAppendOutletView, 1, 'appendOutletView should be invoked in render'));\n });\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/unit/runtime-resolver-cache-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_internalTestHelpers, _metal, _helpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember-glimmer runtime resolver cache', class extends _internalTestHelpers.RenderingTestCase {\n '@test a helper definition is only generated once'(assert) {\n this.registerHelper('foo-bar', () => 'foo-bar helper!');\n this.registerHelper('baz-qux', () => 'baz-qux helper!'); // assert precondition\n\n let state = this.getCacheCounters();\n assert.deepEqual(state, {\n templateCacheHits: 0,\n templateCacheMisses: 0,\n componentDefinitionCount: 0,\n helperDefinitionCount: 0\n }, 'precondition');\n this.render(\"\\n {{~#if cond~}}\\n {{foo-bar}}\\n {{~else~}}\\n {{baz-qux}}\\n {{~/if}}\", {\n cond: true\n });\n this.assertText('foo-bar helper!');\n state = this.expectCacheChanges({\n helperDefinitionCount: 1\n }, state, 'calculate foo-bar helper only'); // show component-two for the first time\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', false));\n this.assertText('baz-qux helper!');\n state = this.expectCacheChanges({\n helperDefinitionCount: 1\n }, state, 'calculate baz-qux helper, misses cache'); // show foo-bar again\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', true));\n this.assertText('foo-bar helper!');\n state = this.expectCacheChanges({}, state, 'toggle back to foo-bar cache hit'); // show baz-qux again\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', false));\n this.assertText('baz-qux helper!');\n state = this.expectCacheChanges({}, state, 'toggle back to baz-qux cache hit');\n }\n\n '@test a component definition is only generated once'(assert) {\n // static layout\n this.registerComponent('component-one', {\n template: 'One'\n });\n this.registerComponent('component-two', {\n ComponentClass: _helpers.Component.extend(),\n template: 'Two'\n }); // assert precondition\n\n let state = this.getCacheCounters();\n assert.deepEqual(state, {\n templateCacheHits: 0,\n templateCacheMisses: 0,\n componentDefinitionCount: 0,\n helperDefinitionCount: 0\n }, 'precondition'); // show component-one for the first time\n\n this.render(\"{{component componentName}}\", {\n componentName: 'component-one'\n });\n this.assertText('One');\n state = this.expectCacheChanges({\n componentDefinitionCount: 1\n }, state, 'test case component and component-one no change'); // show component-two for the first time\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'componentName', 'component-two'));\n this.assertText('Two');\n state = this.expectCacheChanges({\n componentDefinitionCount: 1\n }, state, 'component-two first render'); // show component-one again\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'componentName', 'component-one'));\n this.assertText('One');\n state = this.expectCacheChanges({}, state, 'toggle back to component-one no change'); // show component-two again\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'componentName', 'component-two'));\n this.assertText('Two');\n state = this.expectCacheChanges({}, state, 'toggle back to component-two no change');\n }\n\n ['@test each template is only compiled once'](assert) {\n // static layout\n this.registerComponent('component-one', {\n template: 'One'\n }); // test directly import template factory onto late bound layout\n\n let Two = _helpers.Component.extend({\n layout: this.compile('Two')\n });\n\n this.registerComponent('component-two', {\n ComponentClass: Two\n }); // inject layout onto component, share layout with component-one\n\n this.registerComponent('root-component', {\n ComponentClass: _helpers.Component\n });\n this.owner.inject('component:root-component', 'layout', 'template:components/component-one'); // template instance shared between to template managers\n\n let rootFactory = this.owner.factoryFor('component:root-component'); // assert precondition\n\n let state = this.getCacheCounters();\n assert.deepEqual(state, {\n templateCacheHits: 0,\n templateCacheMisses: 0,\n componentDefinitionCount: 0,\n helperDefinitionCount: 0\n }, 'precondition'); // show component-one for the first time\n\n this.render(\"\\n {{~#if cond~}}\\n {{component-one}}\\n {{~else~}}\\n {{component-two}}\\n {{~/if}}\", {\n cond: true\n });\n this.assertText('One');\n state = this.expectCacheChanges({\n componentDefinitionCount: 1\n }, state, 'test case component and component-one no change'); // show component-two for the first time\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', false));\n this.assertText('Two');\n state = this.expectCacheChanges({\n templateCacheMisses: 1,\n componentDefinitionCount: 1\n }, state, 'component-two first render misses template cache'); // show component-one again\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', true));\n this.assertText('One');\n state = this.expectCacheChanges({}, state, 'toggle back to component-one no change'); // show component-two again\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', false));\n this.assertText('Two');\n state = this.expectCacheChanges({\n templateCacheHits: 1\n }, state, 'toggle back to component-two hits template cache'); // render new root append\n\n let root = rootFactory.create();\n\n try {\n (0, _internalTestHelpers.runAppend)(root);\n this.assertText('TwoOne'); // roots have different capabilities so this will hit\n\n state = this.expectCacheChanges({}, state, 'append root with component-one no change'); // render new root append\n\n let root2 = rootFactory.create();\n\n try {\n (0, _internalTestHelpers.runAppend)(root2);\n this.assertText('TwoOneOne');\n state = this.expectCacheChanges({}, state, 'append another root no change');\n } finally {\n (0, _internalTestHelpers.runDestroy)(root2);\n }\n } finally {\n (0, _internalTestHelpers.runDestroy)(root);\n }\n }\n\n getCacheCounters() {\n let {\n templateCacheHits,\n templateCacheMisses,\n componentDefinitionCount,\n helperDefinitionCount\n } = this.runtimeResolver;\n return {\n templateCacheHits,\n templateCacheMisses,\n componentDefinitionCount,\n helperDefinitionCount\n };\n }\n\n expectCacheChanges(expected, lastState, message) {\n let state = this.getCacheCounters();\n let actual = diff(state, lastState);\n this.assert.deepEqual(actual, expected, message);\n return state;\n }\n\n });\n\n function diff(state, lastState) {\n let res = {};\n Object.keys(state).forEach(key => {\n let delta = state[key] - lastState[key];\n\n if (delta !== 0) {\n res[key] = state[key] - lastState[key];\n }\n });\n return res;\n }\n});","enifed(\"@ember/-internals/glimmer/tests/unit/template-factory-test\", [\"internal-test-helpers\", \"@ember/-internals/glimmer\", \"ember-template-compiler\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_internalTestHelpers, _glimmer, _emberTemplateCompiler, _helpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Template factory test', class extends _internalTestHelpers.RenderingTestCase {\n ['@test the template factory returned from precompile is the same as compile'](assert) {\n let {\n owner\n } = this;\n let {\n runtimeResolver\n } = this;\n let templateStr = 'Hello {{name}}';\n let options = {\n moduleName: 'my-app/templates/some-module.hbs'\n };\n let spec = (0, _emberTemplateCompiler.precompile)(templateStr, options);\n let body = \"exports.default = template(\" + spec + \");\";\n let module = new Function('exports', 'template', body);\n let exports = {};\n module(exports, _glimmer.template);\n let Precompiled = exports['default'];\n let Compiled = (0, _emberTemplateCompiler.compile)(templateStr, options);\n assert.equal(typeof Precompiled.create, 'function', 'precompiled is a factory');\n assert.ok(Precompiled.id, 'precompiled has id');\n assert.equal(typeof Compiled.create, 'function', 'compiled is a factory');\n assert.ok(Compiled.id, 'compiled has id');\n assert.equal(runtimeResolver.templateCacheMisses, 0, 'misses 0');\n assert.equal(runtimeResolver.templateCacheHits, 0, 'hits 0');\n let precompiled = runtimeResolver.createTemplate(Precompiled, owner);\n assert.equal(runtimeResolver.templateCacheMisses, 1, 'misses 1');\n assert.equal(runtimeResolver.templateCacheHits, 0, 'hits 0');\n let compiled = runtimeResolver.createTemplate(Compiled, owner);\n assert.equal(runtimeResolver.templateCacheMisses, 2, 'misses 2');\n assert.equal(runtimeResolver.templateCacheHits, 0, 'hits 0');\n assert.ok(typeof precompiled.spec !== 'string', 'Spec has been parsed');\n assert.ok(typeof compiled.spec !== 'string', 'Spec has been parsed');\n this.registerComponent('x-precompiled', {\n ComponentClass: _helpers.Component.extend({\n layout: Precompiled\n })\n });\n this.registerComponent('x-compiled', {\n ComponentClass: _helpers.Component.extend({\n layout: Compiled\n })\n });\n this.render('{{x-precompiled name=\"precompiled\"}} {{x-compiled name=\"compiled\"}}');\n assert.equal(runtimeResolver.templateCacheMisses, 2, 'misses 2');\n assert.equal(runtimeResolver.templateCacheHits, 2, 'hits 2');\n this.assertText('Hello precompiled Hello compiled');\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/unit/utils/debug-stack-test\", [\"internal-test-helpers\", \"@ember/-internals/glimmer\", \"@glimmer/env\"], function (_internalTestHelpers, _glimmer, _env) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Glimmer DebugStack', class extends _internalTestHelpers.AbstractTestCase {\n ['@test pushing and popping'](assert) {\n if (_env.DEBUG) {\n let stack = new _glimmer.DebugStack();\n assert.equal(stack.peek(), undefined);\n stack.push('template:application');\n assert.equal(stack.peek(), '\"template:application\"');\n stack.push('component:top-level-component');\n assert.equal(stack.peek(), '\"component:top-level-component\"');\n stack.pushEngine('engine:my-engine');\n stack.push('component:component-in-engine');\n assert.equal(stack.peek(), '\"component:component-in-engine\" (in \"engine:my-engine\")');\n stack.pop();\n stack.pop();\n let item = stack.pop();\n assert.equal(item, 'component:top-level-component');\n assert.equal(stack.peek(), '\"template:application\"');\n } else {\n assert.expect(0);\n }\n }\n\n });\n});","enifed(\"@ember/-internals/glimmer/tests/utils/glimmerish-component\", [\"exports\", \"@ember/-internals/glimmer\", \"@ember/-internals/metal\", \"@ember/-internals/owner\"], function (_exports, _glimmer, _metal, _owner) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class GlimmerishComponentManager {\n constructor(owner) {\n this.capabilities = (0, _glimmer.capabilities)('3.4');\n this.owner = owner;\n }\n\n createComponent(Factory, args) {\n return new Factory(this.owner, args.named);\n }\n\n updateComponent(component, args) {\n (0, _metal.set)(component, 'args', args.named);\n }\n\n getContext(component) {\n return component;\n }\n\n }\n\n class GlimmerishComponent {\n constructor(owner, args) {\n (0, _owner.setOwner)(this, owner);\n this.args = args;\n }\n\n get args() {\n return (0, _metal.get)(this, '__args__');\n }\n\n set args(args) {\n (0, _metal.set)(this, '__args__', args);\n }\n\n }\n\n (0, _glimmer.setComponentManager)(() => new GlimmerishComponentManager(), GlimmerishComponent);\n var _default = GlimmerishComponent;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/glimmer/tests/utils/helpers\", [\"exports\", \"ember-template-compiler\", \"@ember/-internals/glimmer\"], function (_exports, _emberTemplateCompiler, _glimmer) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isHTMLSafe = _exports.DOMChanges = _exports.SafeString = _exports.htmlSafe = _exports.InertRenderer = _exports.InteractiveRenderer = _exports.LinkComponent = _exports.Component = _exports.helper = _exports.Helper = _exports.INVOKE = _exports.precompile = _exports.compile = void 0;\n _exports.compile = _emberTemplateCompiler.compile;\n _exports.precompile = _emberTemplateCompiler.precompile;\n _exports.INVOKE = _glimmer.INVOKE;\n _exports.Helper = _glimmer.Helper;\n _exports.helper = _glimmer.helper;\n _exports.Component = _glimmer.Component;\n _exports.LinkComponent = _glimmer.LinkComponent;\n _exports.InteractiveRenderer = _glimmer.InteractiveRenderer;\n _exports.InertRenderer = _glimmer.InertRenderer;\n _exports.htmlSafe = _glimmer.htmlSafe;\n _exports.SafeString = _glimmer.SafeString;\n _exports.DOMChanges = _glimmer.DOMChanges;\n _exports.isHTMLSafe = _glimmer.isHTMLSafe;\n});","enifed(\"@ember/-internals/glimmer/tests/utils/shared-conditional-tests\", [\"exports\", \"internal-test-helpers\", \"@ember/polyfills\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_exports, _internalTestHelpers, _polyfills, _metal, _runtime, _helpers) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.IfUnlessWithSyntaxTest = _exports.TogglingSyntaxConditionalsTest = _exports.IfUnlessHelperTest = _exports.TogglingHelperConditionalsTest = _exports.TogglingConditionalsTest = _exports.ArrayTestCases = _exports.ObjectTestCases = _exports.BasicConditionalsTest = _exports.StableFalsyGenerator = _exports.StableTruthyGenerator = _exports.FalsyGenerator = _exports.TruthyGenerator = void 0;\n\n /* eslint-disable no-new-wrappers */\n class AbstractConditionalsTest extends _internalTestHelpers.RenderingTestCase {\n get truthyValue() {\n return true;\n }\n\n get falsyValue() {\n return false;\n }\n\n wrapperFor(templates) {\n return templates.join('');\n }\n\n wrappedTemplateFor(options) {\n return this.wrapperFor([this.templateFor(options)]);\n }\n /* abstract */\n\n\n templateFor()\n /* { cond, truthy, falsy } */\n {\n // e.g. `{{#if ${cond}}}${truthy}{{else}}${falsy}{{/if}}`\n throw new Error('Not implemented: `templateFor`');\n }\n /* abstract */\n\n\n renderValues()\n /* ...values */\n {\n throw new Error('Not implemented: `renderValues`');\n }\n\n }\n\n class AbstractGenerator {\n constructor(cases) {\n this.cases = cases;\n }\n /* abstract */\n\n\n generate()\n /* value, idx */\n {\n throw new Error('Not implemented: `generate`');\n }\n\n }\n /*\n The test cases in this file generally follow the following pattern:\n \n 1. Render with [ truthy, ...(other truthy variations), falsy, ...(other falsy variations) ]\n 2. No-op rerender\n 3. Make all of them falsy (through interior mutation)\n 4. Make all of them truthy (through interior mutation, sometimes with some slight variations)\n 5. Reset them to their original values (through replacement)\n */\n\n\n class TruthyGenerator extends AbstractGenerator {\n generate(value, idx) {\n return {\n [\"@test it should consider \" + JSON.stringify(value) + \" truthy [\" + idx + \"]\"]() {\n this.renderValues(value);\n this.assertText('T1');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('T1');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', this.falsyValue));\n this.assertText('F1');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', value));\n this.assertText('T1');\n }\n\n };\n }\n\n }\n\n _exports.TruthyGenerator = TruthyGenerator;\n\n class FalsyGenerator extends AbstractGenerator {\n generate(value, idx) {\n return {\n [\"@test it should consider \" + JSON.stringify(value) + \" falsy [\" + idx + \"]\"]() {\n this.renderValues(value);\n this.assertText('F1');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('F1');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', this.truthyValue));\n this.assertText('T1');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', value));\n this.assertText('F1');\n }\n\n };\n }\n\n }\n\n _exports.FalsyGenerator = FalsyGenerator;\n\n class StableTruthyGenerator extends TruthyGenerator {\n generate(value, idx) {\n return (0, _polyfills.assign)(super.generate(value, idx), {\n [\"@test it maintains DOM stability when condition changes from \" + value + \" to another truthy value and back [\" + idx + \"]\"]() {\n this.renderValues(value);\n this.assertText('T1');\n this.takeSnapshot();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', this.truthyValue));\n this.assertText('T1');\n this.assertInvariants();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', value));\n this.assertText('T1');\n this.assertInvariants();\n }\n\n });\n }\n\n }\n\n _exports.StableTruthyGenerator = StableTruthyGenerator;\n\n class StableFalsyGenerator extends FalsyGenerator {\n generate(value, idx) {\n return (0, _polyfills.assign)(super.generate(value), {\n [\"@test it maintains DOM stability when condition changes from \" + value + \" to another falsy value and back [\" + idx + \"]\"]() {\n this.renderValues(value);\n this.assertText('F1');\n this.takeSnapshot();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', this.falsyValue));\n this.assertText('F1');\n this.assertInvariants();\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', value));\n this.assertText('F1');\n this.assertInvariants();\n }\n\n });\n }\n\n }\n\n _exports.StableFalsyGenerator = StableFalsyGenerator;\n\n class ObjectProxyGenerator extends AbstractGenerator {\n generate(value, idx) {\n // This is inconsistent with our usual to-bool policy, but the current proxy implementation\n // simply uses !!content to determine truthiness\n if (value) {\n return {\n [\"@test it should consider an object proxy with `\" + JSON.stringify(value) + \"` truthy [\" + idx + \"]\"]() {\n this.renderValues(_runtime.ObjectProxy.create({\n content: value\n }));\n this.assertText('T1');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('T1');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1.content', this.falsyValue));\n this.assertText('F1');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', _runtime.ObjectProxy.create({\n content: value\n })));\n this.assertText('T1');\n }\n\n };\n } else {\n return {\n [\"@test it should consider an object proxy with `\" + JSON.stringify(value) + \"` falsy [\" + idx + \"]\"]() {\n this.renderValues(_runtime.ObjectProxy.create({\n content: value\n }));\n this.assertText('F1');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('F1');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1.content', this.truthyValue));\n this.assertText('T1');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', _runtime.ObjectProxy.create({\n content: value\n })));\n this.assertText('F1');\n }\n\n };\n }\n }\n\n } // Testing behaviors shared across all conditionals, i.e. {{#if}}, {{#unless}},\n // {{#with}}, {{#each}}, {{#each-in}}, (if) and (unless)\n\n\n class BasicConditionalsTest extends AbstractConditionalsTest {\n ['@test it renders the corresponding block based on the conditional']() {\n this.renderValues(this.truthyValue, this.falsyValue);\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', this.falsyValue));\n this.assertText('F1F2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', this.truthyValue);\n (0, _metal.set)(this.context, 'cond2', this.truthyValue);\n });\n this.assertText('T1T2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', this.truthyValue);\n (0, _metal.set)(this.context, 'cond2', this.falsyValue);\n });\n this.assertText('T1F2');\n }\n\n } // Testing behaviors related to ember objects, object proxies, etc\n\n\n _exports.BasicConditionalsTest = BasicConditionalsTest;\n const ObjectTestCases = {\n ['@test it considers object proxies without content falsy']() {\n this.renderValues(_runtime.ObjectProxy.create({\n content: {}\n }), _runtime.ObjectProxy.create({\n content: _runtime.Object.create()\n }), _runtime.ObjectProxy.create({\n content: null\n }));\n this.assertText('T1T2F3');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('T1T2F3');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1.content', null);\n (0, _metal.set)(this.context, 'cond2.content', null);\n });\n this.assertText('F1F2F3');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1.content', _runtime.Object.create());\n (0, _metal.set)(this.context, 'cond2.content', {});\n (0, _metal.set)(this.context, 'cond3.content', {\n foo: 'bar'\n });\n });\n this.assertText('T1T2T3');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', _runtime.ObjectProxy.create({\n content: {}\n }));\n (0, _metal.set)(this.context, 'cond2', _runtime.ObjectProxy.create({\n content: _runtime.Object.create()\n }));\n (0, _metal.set)(this.context, 'cond3', _runtime.ObjectProxy.create({\n content: null\n }));\n });\n this.assertText('T1T2F3');\n }\n\n }; // Testing behaviors related to arrays and array proxies\n\n _exports.ObjectTestCases = ObjectTestCases;\n const ArrayTestCases = {\n ['@test it considers empty arrays falsy']() {\n this.renderValues((0, _runtime.A)(['hello']), (0, _runtime.A)());\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => (0, _runtime.removeAt)((0, _metal.get)(this.context, 'cond1'), 0));\n this.assertText('F1F2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.get)(this.context, 'cond1').pushObject('hello');\n (0, _metal.get)(this.context, 'cond2').pushObjects([1]);\n });\n this.assertText('T1T2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', (0, _runtime.A)(['hello']));\n (0, _metal.set)(this.context, 'cond2', (0, _runtime.A)());\n });\n this.assertText('T1F2');\n },\n\n ['@test it considers array proxies without content falsy']() {\n this.renderValues(_runtime.ArrayProxy.create({\n content: (0, _runtime.A)(['hello'])\n }), _runtime.ArrayProxy.create({\n content: null\n }));\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1.content', null);\n (0, _metal.set)(this.context, 'cond2.content', null);\n });\n this.assertText('F1F2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1.content', (0, _runtime.A)(['hello']));\n (0, _metal.set)(this.context, 'cond2.content', (0, _runtime.A)([1]));\n });\n this.assertText('T1T2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', _runtime.ArrayProxy.create({\n content: (0, _runtime.A)(['hello'])\n }));\n (0, _metal.set)(this.context, 'cond2', _runtime.ArrayProxy.create({\n content: null\n }));\n });\n this.assertText('T1F2');\n },\n\n ['@test it considers array proxies with empty arrays falsy']() {\n this.renderValues(_runtime.ArrayProxy.create({\n content: (0, _runtime.A)(['hello'])\n }), _runtime.ArrayProxy.create({\n content: (0, _runtime.A)()\n }));\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => (0, _runtime.removeAt)((0, _metal.get)(this.context, 'cond1.content'), 0));\n this.assertText('F1F2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.get)(this.context, 'cond1.content').pushObject('hello');\n (0, _metal.get)(this.context, 'cond2.content').pushObjects([1]);\n });\n this.assertText('T1T2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', _runtime.ArrayProxy.create({\n content: (0, _runtime.A)(['hello'])\n }));\n (0, _metal.set)(this.context, 'cond2', _runtime.ArrayProxy.create({\n content: (0, _runtime.A)()\n }));\n });\n this.assertText('T1F2');\n }\n\n };\n _exports.ArrayTestCases = ArrayTestCases;\n const IfUnlessWithTestCases = [new StableTruthyGenerator([true, ' ', 'hello', 'false', 'null', 'undefined', 1, ['hello'], (0, _runtime.A)(['hello']), {}, {\n foo: 'bar'\n }, _runtime.Object.create(), _runtime.Object.create({\n foo: 'bar'\n }), _runtime.ObjectProxy.create({\n content: true\n }), Object, function () {}, new String('hello'), new String(''), new Boolean(true), new Boolean(false), new Date()]), new StableFalsyGenerator([false, null, undefined, '', 0, [], (0, _runtime.A)(), _runtime.ObjectProxy.create({\n content: undefined\n })]), new ObjectProxyGenerator([true, ' ', 'hello', 'false', 'null', 'undefined', 1, ['hello'], (0, _runtime.A)(['hello']), _runtime.ArrayProxy.create({\n content: ['hello']\n }), _runtime.ArrayProxy.create({\n content: []\n }), {}, {\n foo: 'bar'\n }, _runtime.Object.create(), _runtime.Object.create({\n foo: 'bar'\n }), _runtime.ObjectProxy.create({\n content: true\n }), _runtime.ObjectProxy.create({\n content: undefined\n }), new String('hello'), new String(''), new Boolean(true), new Boolean(false), new Date(), false, null, undefined, '', 0, [], (0, _runtime.A)()]), ObjectTestCases, ArrayTestCases]; // Testing behaviors shared across the \"toggling\" conditionals, i.e. {{#if}},\n // {{#unless}}, {{#with}}, {{#each}}, {{#each-in}}, (if) and (unless)\n\n class TogglingConditionalsTest extends BasicConditionalsTest {} // Testing behaviors shared across the (if) and (unless) helpers\n\n\n _exports.TogglingConditionalsTest = TogglingConditionalsTest;\n\n class TogglingHelperConditionalsTest extends TogglingConditionalsTest {\n renderValues(...values) {\n let templates = [];\n let context = {};\n\n for (let i = 1; i <= values.length; i++) {\n templates.push(this.templateFor({\n cond: \"cond\" + i,\n truthy: \"t\" + i,\n falsy: \"f\" + i\n }));\n context[\"t\" + i] = \"T\" + i;\n context[\"f\" + i] = \"F\" + i;\n context[\"cond\" + i] = values[i - 1];\n }\n\n let wrappedTemplate = this.wrapperFor(templates);\n this.render(wrappedTemplate, context);\n }\n\n ['@test it has access to the outer scope from both templates']() {\n let template = this.wrapperFor([this.templateFor({\n cond: 'cond1',\n truthy: 'truthy',\n falsy: 'falsy'\n }), this.templateFor({\n cond: 'cond2',\n truthy: 'truthy',\n falsy: 'falsy'\n })]);\n this.render(template, {\n cond1: this.truthyValue,\n cond2: this.falsyValue,\n truthy: 'YES',\n falsy: 'NO'\n });\n this.assertText('YESNO');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('YESNO');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'truthy', 'YASS');\n (0, _metal.set)(this.context, 'falsy', 'NOPE');\n });\n this.assertText('YASSNOPE');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', this.falsyValue);\n (0, _metal.set)(this.context, 'cond2', this.truthyValue);\n });\n this.assertText('NOPEYASS');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'truthy', 'YES');\n (0, _metal.set)(this.context, 'falsy', 'NO');\n (0, _metal.set)(this.context, 'cond1', this.truthyValue);\n (0, _metal.set)(this.context, 'cond2', this.falsyValue);\n });\n this.assertText('YESNO');\n }\n\n ['@test it does not update when the unbound helper is used']() {\n let template = this.wrapperFor([this.templateFor({\n cond: '(unbound cond1)',\n truthy: '\"T1\"',\n falsy: '\"F1\"'\n }), this.templateFor({\n cond: '(unbound cond2)',\n truthy: '\"T2\"',\n falsy: '\"F2\"'\n })]);\n this.render(template, {\n cond1: this.truthyValue,\n cond2: this.falsyValue\n });\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', this.falsyValue));\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', this.truthyValue);\n (0, _metal.set)(this.context, 'cond2', this.truthyValue);\n });\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', this.truthyValue);\n (0, _metal.set)(this.context, 'cond2', this.falsyValue);\n });\n this.assertText('T1F2');\n }\n\n ['@test evaluation should be lazy'](assert) {\n let truthyEvaluated;\n let falsyEvaluated;\n\n let withoutEvaluatingTruthy = callback => {\n truthyEvaluated = false;\n callback();\n assert.ok(!truthyEvaluated, 'x-truthy is not evaluated');\n };\n\n let withoutEvaluatingFalsy = callback => {\n falsyEvaluated = false;\n callback();\n assert.ok(!falsyEvaluated, 'x-falsy is not evaluated');\n };\n\n this.registerHelper('x-truthy', {\n compute() {\n truthyEvaluated = true;\n return 'T';\n }\n\n });\n this.registerHelper('x-falsy', {\n compute() {\n falsyEvaluated = true;\n return 'F';\n }\n\n });\n let template = this.wrappedTemplateFor({\n cond: 'cond',\n truthy: '(x-truthy)',\n falsy: '(x-falsy)'\n });\n withoutEvaluatingFalsy(() => this.render(template, {\n cond: this.truthyValue\n }));\n this.assertText('T');\n withoutEvaluatingFalsy(() => (0, _internalTestHelpers.runTask)(() => this.rerender()));\n this.assertText('T');\n withoutEvaluatingTruthy(() => (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', this.falsyValue)));\n this.assertText('F');\n withoutEvaluatingTruthy(() => (0, _internalTestHelpers.runTask)(() => this.rerender()));\n this.assertText('F');\n withoutEvaluatingFalsy(() => (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', this.truthyValue)));\n this.assertText('T');\n }\n\n }\n\n _exports.TogglingHelperConditionalsTest = TogglingHelperConditionalsTest;\n\n class IfUnlessHelperTest extends TogglingHelperConditionalsTest {}\n\n _exports.IfUnlessHelperTest = IfUnlessHelperTest;\n (0, _internalTestHelpers.applyMixins)(IfUnlessHelperTest, ...IfUnlessWithTestCases); // Testing behaviors shared across the \"toggling\" syntatical constructs,\n // i.e. {{#if}}, {{#unless}}, {{#with}}, {{#each}} and {{#each-in}}\n\n class TogglingSyntaxConditionalsTest extends TogglingConditionalsTest {\n renderValues(...values) {\n let templates = [];\n let context = {};\n\n for (let i = 1; i <= values.length; i++) {\n templates.push(this.templateFor({\n cond: \"cond\" + i,\n truthy: \"{{t}}\" + i,\n falsy: \"{{f}}\" + i\n }));\n context[\"cond\" + i] = values[i - 1];\n }\n\n let wrappedTemplate = this.wrapperFor(templates);\n this.render(wrappedTemplate, (0, _polyfills.assign)({\n t: 'T',\n f: 'F'\n }, context));\n }\n\n ['@test it does not update when the unbound helper is used']() {\n let template = \"\" + this.templateFor({\n cond: '(unbound cond1)',\n truthy: 'T1',\n falsy: 'F1'\n }) + this.templateFor({\n cond: '(unbound cond2)',\n truthy: 'T2',\n falsy: 'F2'\n });\n this.render(template, {\n cond1: this.truthyValue,\n cond2: this.falsyValue\n });\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond1', this.falsyValue));\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', this.truthyValue);\n (0, _metal.set)(this.context, 'cond2', this.truthyValue);\n });\n this.assertText('T1F2');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', this.truthyValue);\n (0, _metal.set)(this.context, 'cond2', this.falsyValue);\n });\n this.assertText('T1F2');\n }\n\n ['@test it has access to the outer scope from both templates']() {\n let template = this.wrapperFor([this.templateFor({\n cond: 'cond1',\n truthy: '{{truthy}}',\n falsy: '{{falsy}}'\n }), this.templateFor({\n cond: 'cond2',\n truthy: '{{truthy}}',\n falsy: '{{falsy}}'\n })]);\n this.render(template, {\n cond1: this.truthyValue,\n cond2: this.falsyValue,\n truthy: 'YES',\n falsy: 'NO'\n });\n this.assertText('YESNO');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('YESNO');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'truthy', 'YASS');\n (0, _metal.set)(this.context, 'falsy', 'NOPE');\n });\n this.assertText('YASSNOPE');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond1', this.falsyValue);\n (0, _metal.set)(this.context, 'cond2', this.truthyValue);\n });\n this.assertText('NOPEYASS');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'truthy', 'YES');\n (0, _metal.set)(this.context, 'falsy', 'NO');\n (0, _metal.set)(this.context, 'cond1', this.truthyValue);\n (0, _metal.set)(this.context, 'cond2', this.falsyValue);\n });\n this.assertText('YESNO');\n }\n\n ['@test it updates correctly when enclosing another conditional']() {\n // This tests whether the outer conditional tracks its bounds correctly as its inner bounds changes\n let inner = this.templateFor({\n cond: 'inner',\n truthy: 'T-inner',\n falsy: 'F-inner'\n });\n let template = this.wrappedTemplateFor({\n cond: 'outer',\n truthy: inner,\n falsy: 'F-outer'\n });\n this.render(template, {\n outer: this.truthyValue,\n inner: this.truthyValue\n });\n this.assertText('T-inner');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('T-inner'); // Changes the inner bounds\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'inner', this.falsyValue));\n this.assertText('F-inner'); // Now rerender the outer conditional, which require first clearing its bounds\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'outer', this.falsyValue));\n this.assertText('F-outer');\n }\n\n ['@test it updates correctly when enclosing #each']() {\n // This tests whether the outer conditional tracks its bounds correctly as its inner bounds changes\n let template = this.wrappedTemplateFor({\n cond: 'outer',\n truthy: '{{#each inner as |text|}}{{text}}{{/each}}',\n falsy: 'F-outer'\n });\n this.render(template, {\n outer: this.truthyValue,\n inner: ['inner', '-', 'before']\n });\n this.assertText('inner-before');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('inner-before'); // Changes the inner bounds\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'inner', ['inner-after']));\n this.assertText('inner-after'); // Now rerender the outer conditional, which require first clearing its bounds\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'outer', this.falsyValue));\n this.assertText('F-outer'); // Reset\n\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'inner', ['inner-again']);\n (0, _metal.set)(this.context, 'outer', this.truthyValue);\n });\n this.assertText('inner-again'); // Now clear the inner bounds\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'inner', []));\n this.assertText(''); // Now rerender the outer conditional, which require first clearing its bounds\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'outer', this.falsyValue));\n this.assertText('F-outer');\n }\n\n ['@test it updates correctly when enclosing triple-curlies']() {\n // This tests whether the outer conditional tracks its bounds correctly as its inner bounds changes\n let template = this.wrappedTemplateFor({\n cond: 'outer',\n truthy: '{{{inner}}}',\n falsy: 'F-outer'\n });\n this.render(template, {\n outer: this.truthyValue,\n inner: '
inner -
before '\n });\n this.assertText('inner-before');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n this.assertText('inner-before'); // Changes the inner bounds\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'inner', '
inner-after
'));\n this.assertText('inner-after'); // Now rerender the outer conditional, which require first clearing its bounds\n\n (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'outer', this.falsyValue));\n this.assertText('F-outer');\n }\n\n ['@test child conditional should not render children if parent conditional becomes false'](assert) {\n let childCreated = false;\n this.registerComponent('foo-bar', {\n template: 'foo-bar',\n ComponentClass: _helpers.Component.extend({\n init() {\n this._super(...arguments);\n\n childCreated = true;\n }\n\n })\n });\n let innerTemplate = this.templateFor({\n cond: 'cond2',\n truthy: '{{foo-bar}}',\n falsy: ''\n });\n let wrappedTemplate = this.wrappedTemplateFor({\n cond: 'cond1',\n truthy: innerTemplate,\n falsy: ''\n });\n this.render(wrappedTemplate, {\n cond1: this.truthyValue,\n cond2: this.falsyValue\n });\n assert.ok(!childCreated);\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => this.rerender());\n assert.ok(!childCreated);\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond2', this.truthyValue);\n (0, _metal.set)(this.context, 'cond1', this.falsyValue);\n });\n assert.ok(!childCreated);\n this.assertText('');\n (0, _internalTestHelpers.runTask)(() => {\n (0, _metal.set)(this.context, 'cond2', this.falsyValue);\n (0, _metal.set)(this.context, 'cond1', this.truthyValue);\n });\n assert.ok(!childCreated);\n this.assertText('');\n }\n\n ['@test evaluation should be lazy'](assert) {\n let truthyEvaluated;\n let falsyEvaluated;\n\n let withoutEvaluatingTruthy = callback => {\n truthyEvaluated = false;\n callback();\n assert.ok(!truthyEvaluated, 'x-truthy is not evaluated');\n };\n\n let withoutEvaluatingFalsy = callback => {\n falsyEvaluated = false;\n callback();\n assert.ok(!falsyEvaluated, 'x-falsy is not evaluated');\n };\n\n this.registerHelper('x-truthy', {\n compute() {\n truthyEvaluated = true;\n return 'T';\n }\n\n });\n this.registerHelper('x-falsy', {\n compute() {\n falsyEvaluated = true;\n return 'F';\n }\n\n });\n let template = this.wrappedTemplateFor({\n cond: 'cond',\n truthy: '{{x-truthy}}',\n falsy: '{{x-falsy}}'\n });\n withoutEvaluatingFalsy(() => this.render(template, {\n cond: this.truthyValue\n }));\n this.assertText('T');\n withoutEvaluatingFalsy(() => (0, _internalTestHelpers.runTask)(() => this.rerender()));\n this.assertText('T');\n withoutEvaluatingTruthy(() => (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', this.falsyValue)));\n this.assertText('F');\n withoutEvaluatingTruthy(() => (0, _internalTestHelpers.runTask)(() => this.rerender()));\n this.assertText('F');\n withoutEvaluatingFalsy(() => (0, _internalTestHelpers.runTask)(() => (0, _metal.set)(this.context, 'cond', this.truthyValue)));\n this.assertText('T');\n }\n\n }\n\n _exports.TogglingSyntaxConditionalsTest = TogglingSyntaxConditionalsTest;\n\n class IfUnlessWithSyntaxTest extends TogglingSyntaxConditionalsTest {}\n\n _exports.IfUnlessWithSyntaxTest = IfUnlessWithSyntaxTest;\n (0, _internalTestHelpers.applyMixins)(IfUnlessWithSyntaxTest, ...IfUnlessWithTestCases);\n});","enifed(\"@ember/-internals/glimmer/tests/utils/string-test\", [\"internal-test-helpers\", \"@ember/-internals/glimmer/tests/utils/helpers\"], function (_internalTestHelpers, _helpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('SafeString', class extends _internalTestHelpers.AbstractTestCase {\n ['@test htmlSafe should return an instance of SafeString']() {\n let safeString = (0, _helpers.htmlSafe)('you need to be more
bold ');\n this.assert.ok(safeString instanceof _helpers.SafeString, 'should be a SafeString');\n }\n\n ['@test htmlSafe should return an empty string for null']() {\n let safeString = (0, _helpers.htmlSafe)(null);\n this.assert.equal(safeString instanceof _helpers.SafeString, true, 'should be a SafeString');\n this.assert.equal(safeString.toString(), '', 'should return an empty string');\n }\n\n ['@test htmlSafe should return an instance of SafeString']() {\n let safeString = (0, _helpers.htmlSafe)();\n this.assert.equal(safeString instanceof _helpers.SafeString, true, 'should be a SafeString');\n this.assert.equal(safeString.toString(), '', 'should return an empty string');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('SafeString isHTMLSafe', class extends _internalTestHelpers.AbstractTestCase {\n ['@test isHTMLSafe should detect SafeString']() {\n let safeString = (0, _helpers.htmlSafe)('
Emphasize the important things.');\n this.assert.ok((0, _helpers.isHTMLSafe)(safeString));\n }\n\n ['@test isHTMLSafe should not detect SafeString on primatives']() {\n this.assert.notOk((0, _helpers.isHTMLSafe)('Hello World'));\n this.assert.notOk((0, _helpers.isHTMLSafe)({}));\n this.assert.notOk((0, _helpers.isHTMLSafe)([]));\n this.assert.notOk((0, _helpers.isHTMLSafe)(10));\n this.assert.notOk((0, _helpers.isHTMLSafe)(null));\n }\n\n });\n});","enifed(\"@ember/-internals/meta/index\", [\"exports\", \"@ember/-internals/meta/lib/meta\"], function (_exports, _meta) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.UNDEFINED = _exports.setMeta = _exports.peekMeta = _exports.meta = _exports.Meta = _exports.deleteMeta = _exports.counters = void 0;\n _exports.counters = _meta.counters;\n _exports.deleteMeta = _meta.deleteMeta;\n _exports.Meta = _meta.Meta;\n _exports.meta = _meta.meta;\n _exports.peekMeta = _meta.peekMeta;\n _exports.setMeta = _meta.setMeta;\n _exports.UNDEFINED = _meta.UNDEFINED;\n});","enifed(\"@ember/-internals/meta/lib/meta\", [\"exports\", \"@ember/-internals/utils\", \"@ember/debug\", \"@glimmer/env\"], function (_exports, _utils, _debug, _env) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setMeta = setMeta;\n _exports.peekMeta = peekMeta;\n _exports.deleteMeta = deleteMeta;\n _exports.counters = _exports.meta = _exports.Meta = _exports.UNDEFINED = void 0;\n const objectPrototype = Object.prototype;\n let counters;\n _exports.counters = counters;\n\n if (_env.DEBUG) {\n _exports.counters = counters = {\n peekCalls: 0,\n peekPrototypeWalks: 0,\n setCalls: 0,\n deleteCalls: 0,\n metaCalls: 0,\n metaInstantiated: 0,\n matchingListenersCalls: 0,\n addToListenersCalls: 0,\n removeFromListenersCalls: 0,\n removeAllListenersCalls: 0,\n listenersInherited: 0,\n listenersFlattened: 0,\n parentListenersUsed: 0,\n flattenedListenersCalls: 0,\n reopensAfterFlatten: 0\n };\n }\n /**\n @module ember\n */\n\n\n const UNDEFINED = (0, _utils.symbol)('undefined');\n _exports.UNDEFINED = UNDEFINED;\n let currentListenerVersion = 1;\n\n class Meta {\n constructor(obj) {\n this._listenersVersion = 1;\n this._inheritedEnd = -1;\n this._flattenedVersion = 0;\n\n if (_env.DEBUG) {\n counters.metaInstantiated++;\n this._values = undefined;\n }\n\n this._parent = undefined;\n this._descriptors = undefined;\n this._watching = undefined;\n this._mixins = undefined;\n this._deps = undefined;\n this._chainWatchers = undefined;\n this._chains = undefined;\n this._tag = undefined;\n this._tags = undefined; // initial value for all flags right now is false\n // see FLAGS const for detailed list of flags used\n\n this._flags = 0\n /* NONE */\n ; // used only internally\n\n this.source = obj;\n this.proto = obj.constructor === undefined ? undefined : obj.constructor.prototype;\n this._listeners = undefined;\n }\n\n get parent() {\n let parent = this._parent;\n\n if (parent === undefined) {\n let proto = getPrototypeOf(this.source);\n this._parent = parent = proto === null || proto === objectPrototype ? null : meta(proto);\n }\n\n return parent;\n }\n\n setInitializing() {\n this._flags |= 8\n /* INITIALIZING */\n ;\n }\n\n unsetInitializing() {\n this._flags ^= 8\n /* INITIALIZING */\n ;\n }\n\n isInitializing() {\n return this._hasFlag(8\n /* INITIALIZING */\n );\n }\n\n isPrototypeMeta(obj) {\n return this.proto === this.source && this.source === obj;\n }\n\n destroy() {\n if (this.isMetaDestroyed()) {\n return;\n }\n\n this.setMetaDestroyed(); // remove chainWatchers to remove circular references that would prevent GC\n\n let chains = this.readableChains();\n\n if (chains !== undefined) {\n chains.destroy();\n }\n }\n\n isSourceDestroying() {\n return this._hasFlag(1\n /* SOURCE_DESTROYING */\n );\n }\n\n setSourceDestroying() {\n this._flags |= 1\n /* SOURCE_DESTROYING */\n ;\n }\n\n isSourceDestroyed() {\n return this._hasFlag(2\n /* SOURCE_DESTROYED */\n );\n }\n\n setSourceDestroyed() {\n this._flags |= 2\n /* SOURCE_DESTROYED */\n ;\n }\n\n isMetaDestroyed() {\n return this._hasFlag(4\n /* META_DESTROYED */\n );\n }\n\n setMetaDestroyed() {\n this._flags |= 4\n /* META_DESTROYED */\n ;\n }\n\n _hasFlag(flag) {\n return (this._flags & flag) === flag;\n }\n\n _getOrCreateOwnMap(key) {\n return this[key] || (this[key] = Object.create(null));\n }\n\n _getOrCreateOwnSet(key) {\n return this[key] || (this[key] = new Set());\n }\n\n _findInherited1(key) {\n let pointer = this;\n\n while (pointer !== null) {\n let map = pointer[key];\n\n if (map !== undefined) {\n return map;\n }\n\n pointer = pointer.parent;\n }\n }\n\n _findInherited2(key, subkey) {\n let pointer = this;\n\n while (pointer !== null) {\n let map = pointer[key];\n\n if (map !== undefined) {\n let value = map[subkey];\n\n if (value !== undefined) {\n return value;\n }\n }\n\n pointer = pointer.parent;\n }\n }\n\n _findInherited3(key, subkey, subsubkey) {\n let pointer = this;\n\n while (pointer !== null) {\n let map = pointer[key];\n\n if (map !== undefined) {\n let submap = map[subkey];\n\n if (submap !== undefined) {\n let value = submap[subsubkey];\n\n if (value !== undefined) {\n return value;\n }\n }\n }\n\n pointer = pointer.parent;\n }\n }\n\n _findInheritedMap(key, subkey) {\n let pointer = this;\n\n while (pointer !== null) {\n let map = pointer[key];\n\n if (map !== undefined) {\n let value = map.get(subkey);\n\n if (value !== undefined) {\n return value;\n }\n }\n\n pointer = pointer.parent;\n }\n }\n\n _hasInInheritedSet(key, value) {\n let pointer = this;\n\n while (pointer !== null) {\n let set = pointer[key];\n\n if (set !== undefined && set.has(value)) {\n return true;\n }\n\n pointer = pointer.parent;\n }\n\n return false;\n } // Implements a member that provides a lazily created map of maps,\n // with inheritance at both levels.\n\n\n writeDeps(subkey, itemkey, count) {\n (0, _debug.assert)(this.isMetaDestroyed() ? \"Cannot modify dependent keys for `\" + itemkey + \"` on `\" + (0, _utils.toString)(this.source) + \"` after it has been destroyed.\" : '', !this.isMetaDestroyed());\n\n let outerMap = this._getOrCreateOwnMap('_deps');\n\n let innerMap = outerMap[subkey];\n\n if (innerMap === undefined) {\n innerMap = outerMap[subkey] = Object.create(null);\n }\n\n innerMap[itemkey] = count;\n }\n\n peekDeps(subkey, itemkey) {\n let val = this._findInherited3('_deps', subkey, itemkey);\n\n return val === undefined ? 0 : val;\n }\n\n hasDeps(subkey) {\n let val = this._findInherited2('_deps', subkey);\n\n return val !== undefined;\n }\n\n forEachInDeps(subkey, fn) {\n let pointer = this;\n let seen;\n\n while (pointer !== null) {\n let map = pointer._deps;\n\n if (map !== undefined) {\n let innerMap = map[subkey];\n\n if (innerMap !== undefined) {\n seen = seen === undefined ? new Set() : seen;\n\n for (let innerKey in innerMap) {\n if (!seen.has(innerKey)) {\n seen.add(innerKey);\n\n if (innerMap[innerKey] > 0) {\n fn(innerKey);\n }\n }\n }\n }\n }\n\n pointer = pointer.parent;\n }\n }\n\n writableTags() {\n return this._getOrCreateOwnMap('_tags');\n }\n\n readableTags() {\n return this._tags;\n }\n\n writableTag(create) {\n (0, _debug.assert)(this.isMetaDestroyed() ? \"Cannot create a new tag for `\" + (0, _utils.toString)(this.source) + \"` after it has been destroyed.\" : '', !this.isMetaDestroyed());\n let ret = this._tag;\n\n if (ret === undefined) {\n ret = this._tag = create(this.source);\n }\n\n return ret;\n }\n\n readableTag() {\n return this._tag;\n }\n\n writableChainWatchers(create) {\n (0, _debug.assert)(this.isMetaDestroyed() ? \"Cannot create a new chain watcher for `\" + (0, _utils.toString)(this.source) + \"` after it has been destroyed.\" : '', !this.isMetaDestroyed());\n let ret = this._chainWatchers;\n\n if (ret === undefined) {\n ret = this._chainWatchers = create(this.source);\n }\n\n return ret;\n }\n\n readableChainWatchers() {\n return this._chainWatchers;\n }\n\n writableChains(create) {\n (0, _debug.assert)(this.isMetaDestroyed() ? \"Cannot create a new chains for `\" + (0, _utils.toString)(this.source) + \"` after it has been destroyed.\" : '', !this.isMetaDestroyed());\n let {\n _chains: ret\n } = this;\n\n if (ret === undefined) {\n this._chains = ret = create(this.source);\n let {\n parent\n } = this;\n\n if (parent !== null) {\n let parentChains = parent.writableChains(create);\n parentChains.copyTo(ret);\n }\n }\n\n return ret;\n }\n\n readableChains() {\n return this._findInherited1('_chains');\n }\n\n writeWatching(subkey, value) {\n (0, _debug.assert)(this.isMetaDestroyed() ? \"Cannot update watchers for `\" + subkey + \"` on `\" + (0, _utils.toString)(this.source) + \"` after it has been destroyed.\" : '', !this.isMetaDestroyed());\n\n let map = this._getOrCreateOwnMap('_watching');\n\n map[subkey] = value;\n }\n\n peekWatching(subkey) {\n let count = this._findInherited2('_watching', subkey);\n\n return count === undefined ? 0 : count;\n }\n\n addMixin(mixin) {\n (0, _debug.assert)(this.isMetaDestroyed() ? \"Cannot add mixins of `\" + (0, _utils.toString)(mixin) + \"` on `\" + (0, _utils.toString)(this.source) + \"` call addMixin after it has been destroyed.\" : '', !this.isMetaDestroyed());\n\n let set = this._getOrCreateOwnSet('_mixins');\n\n set.add(mixin);\n }\n\n hasMixin(mixin) {\n return this._hasInInheritedSet('_mixins', mixin);\n }\n\n forEachMixins(fn) {\n let pointer = this;\n let seen;\n\n while (pointer !== null) {\n let set = pointer._mixins;\n\n if (set !== undefined) {\n seen = seen === undefined ? new Set() : seen; // TODO cleanup typing here\n\n set.forEach(mixin => {\n if (!seen.has(mixin)) {\n seen.add(mixin);\n fn(mixin);\n }\n });\n }\n\n pointer = pointer.parent;\n }\n }\n\n writeDescriptors(subkey, value) {\n (0, _debug.assert)(this.isMetaDestroyed() ? \"Cannot update descriptors for `\" + subkey + \"` on `\" + (0, _utils.toString)(this.source) + \"` after it has been destroyed.\" : '', !this.isMetaDestroyed());\n let map = this._descriptors || (this._descriptors = new Map());\n map.set(subkey, value);\n }\n\n peekDescriptors(subkey) {\n let possibleDesc = this._findInheritedMap('_descriptors', subkey);\n\n return possibleDesc === UNDEFINED ? undefined : possibleDesc;\n }\n\n removeDescriptors(subkey) {\n this.writeDescriptors(subkey, UNDEFINED);\n }\n\n forEachDescriptors(fn) {\n let pointer = this;\n let seen;\n\n while (pointer !== null) {\n let map = pointer._descriptors;\n\n if (map !== undefined) {\n seen = seen === undefined ? new Set() : seen;\n map.forEach((value, key) => {\n if (!seen.has(key)) {\n seen.add(key);\n\n if (value !== UNDEFINED) {\n fn(key, value);\n }\n }\n });\n }\n\n pointer = pointer.parent;\n }\n }\n\n addToListeners(eventName, target, method, once) {\n if (_env.DEBUG) {\n counters.addToListenersCalls++;\n }\n\n this.pushListener(eventName, target, method, once ? 1\n /* ONCE */\n : 0\n /* ADD */\n );\n }\n\n removeFromListeners(eventName, target, method) {\n if (_env.DEBUG) {\n counters.removeFromListenersCalls++;\n }\n\n this.pushListener(eventName, target, method, 2\n /* REMOVE */\n );\n }\n\n removeAllListeners(event) {\n (0, _debug.deprecate)('The remove all functionality of removeListener and removeObserver has been deprecated. Remove each listener/observer individually instead.', false, {\n id: 'events.remove-all-listeners',\n until: '3.9.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_events-remove-all-listeners'\n });\n\n if (_env.DEBUG) {\n counters.removeAllListenersCalls++;\n }\n\n let listeners = this.writableListeners();\n let inheritedEnd = this._inheritedEnd; // remove all listeners of event name\n // adjusting the inheritedEnd if listener is below it\n\n for (let i = listeners.length - 1; i >= 0; i--) {\n let listener = listeners[i];\n\n if (listener.event === event) {\n listeners.splice(i, 1);\n\n if (i < inheritedEnd) {\n inheritedEnd--;\n }\n }\n }\n\n this._inheritedEnd = inheritedEnd; // we put remove alls at start because rare and easy to check there\n\n listeners.splice(inheritedEnd, 0, {\n event,\n target: null,\n method: null,\n kind: 3\n /* REMOVE_ALL */\n\n });\n }\n\n pushListener(event, target, method, kind) {\n let listeners = this.writableListeners();\n let i = indexOfListener(listeners, event, target, method); // remove if found listener was inherited\n\n if (i !== -1 && i < this._inheritedEnd) {\n listeners.splice(i, 1);\n this._inheritedEnd--;\n i = -1;\n } // if not found, push. Note that we must always push if a listener is not\n // found, even in the case of a function listener remove, because we may be\n // attempting to add or remove listeners _before_ flattening has occured.\n\n\n if (i === -1) {\n (0, _debug.deprecate)('Adding function listeners to prototypes has been deprecated. Convert the listener to a string listener, or add it to the instance instead.', !(this.isPrototypeMeta(this.source) && typeof method === 'function'), {\n id: 'events.inherited-function-listeners',\n until: '3.9.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_events-inherited-function-listeners'\n });\n (0, _debug.deprecate)('You attempted to remove a function listener which did not exist on the instance, which means it was an inherited prototype listener, or you attempted to remove it before it was added. Prototype function listeners have been deprecated, and attempting to remove a non-existent function listener this will error in the future.', !(!this.isPrototypeMeta(this.source) && typeof method === 'function' && kind === 2\n /* REMOVE */\n ), {\n id: 'events.inherited-function-listeners',\n until: '3.9.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_events-inherited-function-listeners'\n });\n listeners.push({\n event,\n target,\n method,\n kind\n });\n } else {\n let listener = listeners[i]; // If the listener is our own function listener and we are trying to\n // remove it, we want to splice it out entirely so we don't hold onto a\n // reference.\n\n if (kind === 2\n /* REMOVE */\n && listener.kind !== 2\n /* REMOVE */\n && typeof method === 'function') {\n listeners.splice(i, 1);\n } else {\n // update own listener\n listener.kind = kind; // TODO: Remove this when removing REMOVE_ALL, it won't be necessary\n\n listener.target = target;\n listener.method = method;\n }\n }\n }\n\n writableListeners() {\n // Check if we need to invalidate and reflatten. We need to do this if we\n // have already flattened (flattened version is the current version) and\n // we are either writing to a prototype meta OR we have never inherited, and\n // may have cached the parent's listeners.\n if (this._flattenedVersion === currentListenerVersion && (this.source === this.proto || this._inheritedEnd === -1)) {\n if (_env.DEBUG) {\n counters.reopensAfterFlatten++;\n }\n\n currentListenerVersion++;\n } // Inherited end has not been set, then we have never created our own\n // listeners, but may have cached the parent's\n\n\n if (this._inheritedEnd === -1) {\n this._inheritedEnd = 0;\n this._listeners = [];\n }\n\n return this._listeners;\n }\n /**\n Flattening is based on a global revision counter. If the revision has\n bumped it means that somewhere in a class inheritance chain something has\n changed, so we need to reflatten everything. This can only happen if:\n 1. A meta has been flattened (listener has been called)\n 2. The meta is a prototype meta with children who have inherited its\n listeners\n 3. A new listener is subsequently added to the meta (e.g. via `.reopen()`)\n This is a very rare occurence, so while the counter is global it shouldn't\n be updated very often in practice.\n */\n\n\n flattenedListeners() {\n if (_env.DEBUG) {\n counters.flattenedListenersCalls++;\n }\n\n if (this._flattenedVersion < currentListenerVersion) {\n if (_env.DEBUG) {\n counters.listenersFlattened++;\n }\n\n let parent = this.parent;\n\n if (parent !== null) {\n // compute\n let parentListeners = parent.flattenedListeners();\n\n if (parentListeners !== undefined) {\n if (this._listeners === undefined) {\n // If this instance doesn't have any of its own listeners (writableListeners\n // has never been called) then we don't need to do any flattening, return\n // the parent's listeners instead.\n if (_env.DEBUG) {\n counters.parentListenersUsed++;\n }\n\n this._listeners = parentListeners;\n } else {\n let listeners = this._listeners;\n\n if (this._inheritedEnd > 0) {\n listeners.splice(0, this._inheritedEnd);\n this._inheritedEnd = 0;\n }\n\n for (let i = 0; i < parentListeners.length; i++) {\n let listener = parentListeners[i];\n let index = indexOfListener(listeners, listener.event, listener.target, listener.method);\n\n if (index === -1) {\n if (_env.DEBUG) {\n counters.listenersInherited++;\n }\n\n listeners.unshift(listener);\n this._inheritedEnd++;\n }\n }\n }\n }\n }\n\n this._flattenedVersion = currentListenerVersion;\n }\n\n return this._listeners;\n }\n\n matchingListeners(eventName) {\n let listeners = this.flattenedListeners();\n let result;\n\n if (_env.DEBUG) {\n counters.matchingListenersCalls++;\n }\n\n if (listeners !== undefined) {\n for (let index = 0; index < listeners.length; index++) {\n let listener = listeners[index]; // REMOVE and REMOVE_ALL listeners are placeholders that tell us not to\n // inherit, so they never match. Only ADD and ONCE can match.\n\n if (listener.event === eventName && (listener.kind === 0\n /* ADD */\n || listener.kind === 1\n /* ONCE */\n )) {\n if (result === undefined) {\n // we create this array only after we've found a listener that\n // matches to avoid allocations when no matches are found.\n result = [];\n }\n\n result.push(listener.target, listener.method, listener.kind === 1\n /* ONCE */\n );\n }\n }\n }\n\n return result;\n }\n\n }\n\n _exports.Meta = Meta;\n\n if (_env.DEBUG) {\n Meta.prototype.writeValues = function (subkey, value) {\n (0, _debug.assert)(this.isMetaDestroyed() ? \"Cannot set the value of `\" + subkey + \"` on `\" + (0, _utils.toString)(this.source) + \"` after it has been destroyed.\" : '', !this.isMetaDestroyed());\n\n let map = this._getOrCreateOwnMap('_values');\n\n map[subkey] = value;\n };\n\n Meta.prototype.peekValues = function (subkey) {\n return this._findInherited2('_values', subkey);\n };\n\n Meta.prototype.deleteFromValues = function (subkey) {\n delete this._getOrCreateOwnMap('_values')[subkey];\n };\n\n Meta.prototype.readInheritedValue = function (key, subkey) {\n let internalKey = \"_\" + key;\n let pointer = this;\n\n while (pointer !== null) {\n let map = pointer[internalKey];\n\n if (map !== undefined) {\n let value = map[subkey];\n\n if (value !== undefined || subkey in map) {\n return value;\n }\n }\n\n pointer = pointer.parent;\n }\n\n return UNDEFINED;\n };\n\n Meta.prototype.writeValue = function (obj, key, value) {\n let descriptor = (0, _utils.lookupDescriptor)(obj, key);\n let isMandatorySetter = descriptor !== null && descriptor.set && descriptor.set.isMandatorySetter;\n\n if (isMandatorySetter) {\n this.writeValues(key, value);\n } else {\n obj[key] = value;\n }\n };\n }\n\n const getPrototypeOf = Object.getPrototypeOf;\n const metaStore = new WeakMap();\n\n function setMeta(obj, meta) {\n (0, _debug.assert)('Cannot call `setMeta` on null', obj !== null);\n (0, _debug.assert)('Cannot call `setMeta` on undefined', obj !== undefined);\n (0, _debug.assert)(\"Cannot call `setMeta` on \" + typeof obj, typeof obj === 'object' || typeof obj === 'function');\n\n if (_env.DEBUG) {\n counters.setCalls++;\n }\n\n metaStore.set(obj, meta);\n }\n\n function peekMeta(obj) {\n (0, _debug.assert)('Cannot call `peekMeta` on null', obj !== null);\n (0, _debug.assert)('Cannot call `peekMeta` on undefined', obj !== undefined);\n (0, _debug.assert)(\"Cannot call `peekMeta` on \" + typeof obj, typeof obj === 'object' || typeof obj === 'function');\n\n if (_env.DEBUG) {\n counters.peekCalls++;\n }\n\n let meta = metaStore.get(obj);\n\n if (meta !== undefined) {\n return meta;\n }\n\n let pointer = getPrototypeOf(obj);\n\n while (pointer !== null) {\n if (_env.DEBUG) {\n counters.peekPrototypeWalks++;\n }\n\n meta = metaStore.get(pointer);\n\n if (meta !== undefined) {\n if (meta.proto !== pointer) {\n // The meta was a prototype meta which was not marked as initializing.\n // This can happen when a prototype chain was created manually via\n // Object.create() and the source object does not have a constructor.\n meta.proto = pointer;\n }\n\n return meta;\n }\n\n pointer = getPrototypeOf(pointer);\n }\n\n return null;\n }\n /**\n Tears down the meta on an object so that it can be garbage collected.\n Multiple calls will have no effect.\n \n @method deleteMeta\n @for Ember\n @param {Object} obj the object to destroy\n @return {void}\n @private\n */\n\n\n function deleteMeta(obj) {\n (0, _debug.assert)('Cannot call `deleteMeta` on null', obj !== null);\n (0, _debug.assert)('Cannot call `deleteMeta` on undefined', obj !== undefined);\n (0, _debug.assert)(\"Cannot call `deleteMeta` on \" + typeof obj, typeof obj === 'object' || typeof obj === 'function');\n\n if (_env.DEBUG) {\n counters.deleteCalls++;\n }\n\n let meta = peekMeta(obj);\n\n if (meta !== null) {\n meta.destroy();\n }\n }\n /**\n Retrieves the meta hash for an object. If `writable` is true ensures the\n hash is writable for this object as well.\n \n The meta object contains information about computed property descriptors as\n well as any watched properties and other information. You generally will\n not access this information directly but instead work with higher level\n methods that manipulate this hash indirectly.\n \n @method meta\n @for Ember\n @private\n \n @param {Object} obj The object to retrieve meta for\n @param {Boolean} [writable=true] Pass `false` if you do not intend to modify\n the meta hash, allowing the method to avoid making an unnecessary copy.\n @return {Object} the meta hash for an object\n */\n\n\n const meta = function meta(obj) {\n (0, _debug.assert)('Cannot call `meta` on null', obj !== null);\n (0, _debug.assert)('Cannot call `meta` on undefined', obj !== undefined);\n (0, _debug.assert)(\"Cannot call `meta` on \" + typeof obj, typeof obj === 'object' || typeof obj === 'function');\n\n if (_env.DEBUG) {\n counters.metaCalls++;\n }\n\n let maybeMeta = peekMeta(obj); // remove this code, in-favor of explicit parent\n\n if (maybeMeta !== null && maybeMeta.source === obj) {\n return maybeMeta;\n }\n\n let newMeta = new Meta(obj);\n setMeta(obj, newMeta);\n return newMeta;\n };\n\n _exports.meta = meta;\n\n if (_env.DEBUG) {\n meta._counters = counters;\n }\n\n function indexOfListener(listeners, event, target, method) {\n for (let i = listeners.length - 1; i >= 0; i--) {\n let listener = listeners[i];\n\n if (listener.event === event && (listener.target === target && listener.method === method || listener.kind === 3\n /* REMOVE_ALL */\n )) {\n return i;\n }\n }\n\n return -1;\n }\n});","enifed(\"@ember/-internals/meta/tests/listeners_test\", [\"@glimmer/env\", \"internal-test-helpers\", \"@ember/-internals/meta\"], function (_env, _internalTestHelpers, _meta) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember.meta listeners', class extends _internalTestHelpers.AbstractTestCase {\n ['@test basics'](assert) {\n let t = {};\n let m = (0, _meta.meta)({});\n m.addToListeners('hello', t, 'm', 0);\n let matching = m.matchingListeners('hello');\n assert.equal(matching.length, 3);\n assert.equal(matching[0], t);\n m.removeFromListeners('hello', t, 'm');\n matching = m.matchingListeners('hello');\n assert.equal(matching, undefined);\n }\n\n ['@test inheritance'](assert) {\n let target = {};\n let parent = {};\n let parentMeta = (0, _meta.meta)(parent);\n parentMeta.addToListeners('hello', target, 'm', 0);\n let child = Object.create(parent);\n let m = (0, _meta.meta)(child);\n let matching = m.matchingListeners('hello');\n assert.equal(matching.length, 3);\n assert.equal(matching[0], target);\n assert.equal(matching[1], 'm');\n assert.equal(matching[2], 0);\n m.removeFromListeners('hello', target, 'm');\n matching = m.matchingListeners('hello');\n assert.equal(matching, undefined);\n matching = parentMeta.matchingListeners('hello');\n assert.equal(matching.length, 3);\n }\n\n ['@test deduplication'](assert) {\n let t = {};\n let m = (0, _meta.meta)({});\n m.addToListeners('hello', t, 'm', 0);\n m.addToListeners('hello', t, 'm', 0);\n let matching = m.matchingListeners('hello');\n assert.equal(matching.length, 3);\n assert.equal(matching[0], t);\n }\n\n ['@test parent caching'](assert) {\n if (_env.DEBUG) {\n _meta.counters.flattenedListenersCalls = 0;\n _meta.counters.parentListenersUsed = 0;\n }\n\n class Class {}\n\n let classMeta = (0, _meta.meta)(Class.prototype);\n classMeta.addToListeners('hello', null, 'm', 0);\n let instance = new Class();\n let m = (0, _meta.meta)(instance);\n let matching = m.matchingListeners('hello');\n assert.equal(matching.length, 3);\n\n if (_env.DEBUG) {\n assert.equal(_meta.counters.flattenedListenersCalls, 2);\n assert.equal(_meta.counters.parentListenersUsed, 1);\n }\n\n matching = m.matchingListeners('hello');\n assert.equal(matching.length, 3);\n\n if (_env.DEBUG) {\n assert.equal(_meta.counters.flattenedListenersCalls, 3);\n assert.equal(_meta.counters.parentListenersUsed, 1);\n }\n }\n\n ['@test parent cache invalidation'](assert) {\n if (_env.DEBUG) {\n _meta.counters.flattenedListenersCalls = 0;\n _meta.counters.parentListenersUsed = 0;\n _meta.counters.listenersInherited = 0;\n }\n\n class Class {}\n\n let classMeta = (0, _meta.meta)(Class.prototype);\n classMeta.addToListeners('hello', null, 'm', 0);\n let instance = new Class();\n let m = (0, _meta.meta)(instance);\n let matching = m.matchingListeners('hello');\n assert.equal(matching.length, 3);\n\n if (_env.DEBUG) {\n assert.equal(_meta.counters.flattenedListenersCalls, 2);\n assert.equal(_meta.counters.parentListenersUsed, 1);\n assert.equal(_meta.counters.listenersInherited, 0);\n }\n\n m.addToListeners('hello', null, 'm2');\n matching = m.matchingListeners('hello');\n assert.equal(matching.length, 6);\n\n if (_env.DEBUG) {\n assert.equal(_meta.counters.flattenedListenersCalls, 4);\n assert.equal(_meta.counters.parentListenersUsed, 1);\n assert.equal(_meta.counters.listenersInherited, 1);\n }\n }\n\n ['@test reopen after flatten'](assert) {\n if (!_env.DEBUG) {\n assert.expect(0);\n return;\n } // Ensure counter is zeroed\n\n\n _meta.counters.reopensAfterFlatten = 0;\n\n class Class1 {}\n\n let class1Meta = (0, _meta.meta)(Class1.prototype);\n class1Meta.addToListeners('hello', null, 'm', 0);\n let instance1 = new Class1();\n let m1 = (0, _meta.meta)(instance1);\n\n class Class2 {}\n\n let class2Meta = (0, _meta.meta)(Class2.prototype);\n class2Meta.addToListeners('hello', null, 'm', 0);\n let instance2 = new Class2();\n let m2 = (0, _meta.meta)(instance2);\n m1.matchingListeners('hello');\n m2.matchingListeners('hello');\n assert.equal(_meta.counters.reopensAfterFlatten, 0, 'no reopen calls yet');\n m1.addToListeners('world', null, 'm', 0);\n m2.addToListeners('world', null, 'm', 0);\n m1.matchingListeners('world');\n m2.matchingListeners('world');\n assert.equal(_meta.counters.reopensAfterFlatten, 1, 'reopen calls after invalidating parent cache');\n m1.addToListeners('world', null, 'm', 0);\n m2.addToListeners('world', null, 'm', 0);\n m1.matchingListeners('world');\n m2.matchingListeners('world');\n assert.equal(_meta.counters.reopensAfterFlatten, 1, 'no reopen calls after mutating leaf nodes');\n class1Meta.removeFromListeners('hello', null, 'm');\n class2Meta.removeFromListeners('hello', null, 'm');\n m1.matchingListeners('hello');\n m2.matchingListeners('hello');\n assert.equal(_meta.counters.reopensAfterFlatten, 2, 'one reopen call after mutating parents');\n class1Meta.addToListeners('hello', null, 'm', 0);\n m1.matchingListeners('hello');\n class2Meta.addToListeners('hello', null, 'm', 0);\n m2.matchingListeners('hello');\n assert.equal(_meta.counters.reopensAfterFlatten, 3, 'one reopen call after mutating parents and flattening out of order');\n }\n\n ['@test REMOVE_ALL does not interfere with future adds'](assert) {\n expectDeprecation(() => {\n let t = {};\n let m = (0, _meta.meta)({});\n m.addToListeners('hello', t, 'm', 0);\n let matching = m.matchingListeners('hello');\n assert.equal(matching.length, 3);\n assert.equal(matching[0], t); // Remove all listeners\n\n m.removeAllListeners('hello');\n matching = m.matchingListeners('hello');\n assert.equal(matching, undefined);\n m.addToListeners('hello', t, 'm', 0);\n matching = m.matchingListeners('hello'); // listener was added back successfully\n\n assert.equal(matching.length, 3);\n assert.equal(matching[0], t);\n });\n }\n\n });\n});","enifed(\"@ember/-internals/meta/tests/meta_test\", [\"internal-test-helpers\", \"@ember/-internals/meta\"], function (_internalTestHelpers, _meta) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember.meta', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should return the same hash for an object'](assert) {\n let obj = {};\n (0, _meta.meta)(obj).foo = 'bar';\n assert.equal((0, _meta.meta)(obj).foo, 'bar', 'returns same hash with multiple calls to Ember.meta()');\n }\n\n ['@test meta is not enumerable'](assert) {\n let proto, obj, props, prop;\n proto = {\n foo: 'bar'\n };\n (0, _meta.meta)(proto);\n obj = Object.create(proto);\n (0, _meta.meta)(obj);\n obj.bar = 'baz';\n props = [];\n\n for (prop in obj) {\n props.push(prop);\n }\n\n assert.deepEqual(props.sort(), ['bar', 'foo']);\n\n if (typeof JSON !== 'undefined' && 'stringify' in JSON) {\n try {\n JSON.stringify(obj);\n } catch (e) {\n assert.ok(false, 'meta should not fail JSON.stringify');\n }\n }\n }\n\n ['@test meta.writeWatching issues useful error after destroy']() {\n let target = {\n toString() {\n return '
';\n }\n\n };\n let targetMeta = (0, _meta.meta)(target);\n targetMeta.destroy();\n expectAssertion(() => {\n targetMeta.writeWatching('hello', 1);\n }, 'Cannot update watchers for `hello` on `` after it has been destroyed.');\n }\n\n ['@test meta.writableTag issues useful error after destroy']() {\n let target = {\n toString() {\n return '';\n }\n\n };\n let targetMeta = (0, _meta.meta)(target);\n targetMeta.destroy();\n expectAssertion(() => {\n targetMeta.writableTag(() => {});\n }, 'Cannot create a new tag for `` after it has been destroyed.');\n }\n\n ['@test meta.writableChainWatchers issues useful error after destroy']() {\n let target = {\n toString() {\n return '';\n }\n\n };\n let targetMeta = (0, _meta.meta)(target);\n targetMeta.destroy();\n expectAssertion(() => {\n targetMeta.writableChainWatchers(() => {});\n }, 'Cannot create a new chain watcher for `` after it has been destroyed.');\n }\n\n ['@test meta.writableChains issues useful error after destroy']() {\n let target = {\n toString() {\n return '';\n }\n\n };\n let targetMeta = (0, _meta.meta)(target);\n targetMeta.destroy();\n expectAssertion(() => {\n targetMeta.writableChains(() => {});\n }, 'Cannot create a new chains for `` after it has been destroyed.');\n }\n\n ['@test meta.writeValues issues useful error after destroy']() {\n let target = {\n toString() {\n return '';\n }\n\n };\n let targetMeta = (0, _meta.meta)(target);\n targetMeta.destroy();\n expectAssertion(() => {\n targetMeta.writeValues('derp', 'ohai');\n }, 'Cannot set the value of `derp` on `` after it has been destroyed.');\n }\n\n ['@test meta.writeDeps issues useful error after destroy']() {\n let target = {\n toString() {\n return '';\n }\n\n };\n let targetMeta = (0, _meta.meta)(target);\n targetMeta.destroy();\n expectAssertion(() => {\n targetMeta.writeDeps('derp', 'ohai', 1);\n }, 'Cannot modify dependent keys for `ohai` on `` after it has been destroyed.');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/index\", [\"exports\", \"@ember/-internals/metal/lib/computed\", \"@ember/-internals/metal/lib/computed_cache\", \"@ember/-internals/metal/lib/alias\", \"@ember/-internals/metal/lib/deprecate_property\", \"@ember/-internals/metal/lib/property_get\", \"@ember/-internals/metal/lib/property_set\", \"@ember/-internals/metal/lib/array\", \"@ember/-internals/metal/lib/array_events\", \"@ember/-internals/metal/lib/each_proxy\", \"@ember/-internals/metal/lib/each_proxy_events\", \"@ember/-internals/metal/lib/events\", \"@ember/-internals/metal/lib/is_none\", \"@ember/-internals/metal/lib/is_empty\", \"@ember/-internals/metal/lib/is_blank\", \"@ember/-internals/metal/lib/is_present\", \"@ember/-internals/metal/lib/property_events\", \"@ember/-internals/metal/lib/properties\", \"@ember/-internals/metal/lib/decorator\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/watch_key\", \"@ember/-internals/metal/lib/chains\", \"@ember/-internals/metal/lib/watch_path\", \"@ember/-internals/metal/lib/watching\", \"@ember/-internals/metal/lib/libraries\", \"@ember/-internals/metal/lib/get_properties\", \"@ember/-internals/metal/lib/set_properties\", \"@ember/-internals/metal/lib/expand_properties\", \"@ember/-internals/metal/lib/observer\", \"@ember/-internals/metal/lib/mixin\", \"@ember/-internals/metal/lib/injected_property\", \"@ember/-internals/metal/lib/tags\", \"@ember/-internals/metal/lib/transaction\", \"@ember/-internals/metal/lib/tracked\", \"@ember/-internals/metal/lib/namespace_search\"], function (_exports, _computed, _computed_cache, _alias, _deprecate_property, _property_get, _property_set, _array, _array_events, _each_proxy, _each_proxy_events, _events, _is_none, _is_empty, _is_blank, _is_present, _property_events, _properties, _decorator, _descriptor_map, _watch_key, _chains, _watch_path, _watching, _libraries, _get_properties, _set_properties, _expand_properties, _observer, _mixin, _injected_property, _tags, _transaction, _tracked, _namespace_search) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setNamespaceSearchDisabled = _exports.isNamespaceSearchDisabled = _exports.removeNamespace = _exports.processAllNamespaces = _exports.processNamespace = _exports.findNamespaces = _exports.findNamespace = _exports.classToString = _exports.addNamespace = _exports.NAMESPACES_BY_ID = _exports.NAMESPACES = _exports.setCurrentTracker = _exports.getCurrentTracker = _exports.tracked = _exports.Tracker = _exports.assertNotRendered = _exports.didRender = _exports.markObjectAsDirty = _exports.tagFor = _exports.tagForProperty = _exports.DEBUG_INJECTION_FUNCTIONS = _exports.applyMixin = _exports.observer = _exports.mixin = _exports.aliasMethod = _exports.Mixin = _exports.removeObserver = _exports.addObserver = _exports.Libraries = _exports.watcherCount = _exports.watch = _exports.unwatch = _exports.isWatching = _exports.unwatchPath = _exports.watchPath = _exports.removeChainWatcher = _exports.finishChains = _exports.ChainNode = _exports.unwatchKey = _exports.watchKey = _exports.setClassicDecorator = _exports.isClassicDecorator = _exports.descriptorForProperty = _exports.descriptorForDecorator = _exports.nativeDescDecorator = _exports.isElementDescriptor = _exports.defineProperty = _exports.PROPERTY_DID_CHANGE = _exports.overrideChains = _exports.notifyPropertyChange = _exports.endPropertyChanges = _exports.changeProperties = _exports.beginPropertyChanges = _exports.sendEvent = _exports.removeListener = _exports.on = _exports.hasListeners = _exports.addListener = _exports.eachProxyArrayDidChange = _exports.eachProxyArrayWillChange = _exports.eachProxyFor = _exports.arrayContentDidChange = _exports.arrayContentWillChange = _exports.removeArrayObserver = _exports.addArrayObserver = _exports.replaceInNativeArray = _exports.replace = _exports.objectAt = _exports.trySet = _exports.set = _exports.getWithDefault = _exports.get = _exports._getPath = _exports.PROXY_CONTENT = _exports.deprecateProperty = _exports.peekCacheFor = _exports.getCachedValueFor = _exports.getCacheFor = _exports.ComputedProperty = _exports._globalsComputed = _exports.isComputed = _exports.runInTransaction = _exports.inject = _exports.expandProperties = _exports.setProperties = _exports.getProperties = _exports.libraries = _exports.isPresent = _exports.isBlank = _exports.isEmpty = _exports.isNone = _exports.alias = _exports.computed = void 0;\n _exports.computed = _computed.default;\n _exports.isComputed = _computed.isComputed;\n _exports._globalsComputed = _computed._globalsComputed;\n _exports.ComputedProperty = _computed.ComputedProperty;\n _exports.getCacheFor = _computed_cache.getCacheFor;\n _exports.getCachedValueFor = _computed_cache.getCachedValueFor;\n _exports.peekCacheFor = _computed_cache.peekCacheFor;\n _exports.alias = _alias.default;\n _exports.deprecateProperty = _deprecate_property.deprecateProperty;\n _exports.PROXY_CONTENT = _property_get.PROXY_CONTENT;\n _exports._getPath = _property_get._getPath;\n _exports.get = _property_get.get;\n _exports.getWithDefault = _property_get.getWithDefault;\n _exports.set = _property_set.set;\n _exports.trySet = _property_set.trySet;\n _exports.objectAt = _array.objectAt;\n _exports.replace = _array.replace;\n _exports.replaceInNativeArray = _array.replaceInNativeArray;\n _exports.addArrayObserver = _array.addArrayObserver;\n _exports.removeArrayObserver = _array.removeArrayObserver;\n _exports.arrayContentWillChange = _array_events.arrayContentWillChange;\n _exports.arrayContentDidChange = _array_events.arrayContentDidChange;\n _exports.eachProxyFor = _each_proxy.eachProxyFor;\n _exports.eachProxyArrayWillChange = _each_proxy_events.eachProxyArrayWillChange;\n _exports.eachProxyArrayDidChange = _each_proxy_events.eachProxyArrayDidChange;\n _exports.addListener = _events.addListener;\n _exports.hasListeners = _events.hasListeners;\n _exports.on = _events.on;\n _exports.removeListener = _events.removeListener;\n _exports.sendEvent = _events.sendEvent;\n _exports.isNone = _is_none.default;\n _exports.isEmpty = _is_empty.default;\n _exports.isBlank = _is_blank.default;\n _exports.isPresent = _is_present.default;\n _exports.beginPropertyChanges = _property_events.beginPropertyChanges;\n _exports.changeProperties = _property_events.changeProperties;\n _exports.endPropertyChanges = _property_events.endPropertyChanges;\n _exports.notifyPropertyChange = _property_events.notifyPropertyChange;\n _exports.overrideChains = _property_events.overrideChains;\n _exports.PROPERTY_DID_CHANGE = _property_events.PROPERTY_DID_CHANGE;\n _exports.defineProperty = _properties.defineProperty;\n _exports.isElementDescriptor = _decorator.isElementDescriptor;\n _exports.nativeDescDecorator = _decorator.nativeDescDecorator;\n _exports.descriptorForDecorator = _descriptor_map.descriptorForDecorator;\n _exports.descriptorForProperty = _descriptor_map.descriptorForProperty;\n _exports.isClassicDecorator = _descriptor_map.isClassicDecorator;\n _exports.setClassicDecorator = _descriptor_map.setClassicDecorator;\n _exports.watchKey = _watch_key.watchKey;\n _exports.unwatchKey = _watch_key.unwatchKey;\n _exports.ChainNode = _chains.ChainNode;\n _exports.finishChains = _chains.finishChains;\n _exports.removeChainWatcher = _chains.removeChainWatcher;\n _exports.watchPath = _watch_path.watchPath;\n _exports.unwatchPath = _watch_path.unwatchPath;\n _exports.isWatching = _watching.isWatching;\n _exports.unwatch = _watching.unwatch;\n _exports.watch = _watching.watch;\n _exports.watcherCount = _watching.watcherCount;\n _exports.libraries = _libraries.default;\n _exports.Libraries = _libraries.Libraries;\n _exports.getProperties = _get_properties.default;\n _exports.setProperties = _set_properties.default;\n _exports.expandProperties = _expand_properties.default;\n _exports.addObserver = _observer.addObserver;\n _exports.removeObserver = _observer.removeObserver;\n _exports.Mixin = _mixin.Mixin;\n _exports.aliasMethod = _mixin.aliasMethod;\n _exports.mixin = _mixin.mixin;\n _exports.observer = _mixin.observer;\n _exports.applyMixin = _mixin.applyMixin;\n _exports.inject = _injected_property.default;\n _exports.DEBUG_INJECTION_FUNCTIONS = _injected_property.DEBUG_INJECTION_FUNCTIONS;\n _exports.tagForProperty = _tags.tagForProperty;\n _exports.tagFor = _tags.tagFor;\n _exports.markObjectAsDirty = _tags.markObjectAsDirty;\n _exports.runInTransaction = _transaction.default;\n _exports.didRender = _transaction.didRender;\n _exports.assertNotRendered = _transaction.assertNotRendered;\n _exports.Tracker = _tracked.Tracker;\n _exports.tracked = _tracked.tracked;\n _exports.getCurrentTracker = _tracked.getCurrentTracker;\n _exports.setCurrentTracker = _tracked.setCurrentTracker;\n _exports.NAMESPACES = _namespace_search.NAMESPACES;\n _exports.NAMESPACES_BY_ID = _namespace_search.NAMESPACES_BY_ID;\n _exports.addNamespace = _namespace_search.addNamespace;\n _exports.classToString = _namespace_search.classToString;\n _exports.findNamespace = _namespace_search.findNamespace;\n _exports.findNamespaces = _namespace_search.findNamespaces;\n _exports.processNamespace = _namespace_search.processNamespace;\n _exports.processAllNamespaces = _namespace_search.processAllNamespaces;\n _exports.removeNamespace = _namespace_search.removeNamespace;\n _exports.isNamespaceSearchDisabled = _namespace_search.isSearchDisabled;\n _exports.setNamespaceSearchDisabled = _namespace_search.setSearchDisabled;\n});","enifed(\"@ember/-internals/metal/lib/alias\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/utils\", \"@ember/debug\", \"@ember/error\", \"@ember/-internals/metal/lib/computed_cache\", \"@ember/-internals/metal/lib/decorator\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/properties\", \"@ember/-internals/metal/lib/property_get\", \"@ember/-internals/metal/lib/property_set\"], function (_exports, _meta, _utils, _debug, _error, _computed_cache, _decorator, _descriptor_map, _properties, _property_get, _property_set) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = alias;\n _exports.AliasedProperty = void 0;\n const CONSUMED = Object.freeze({});\n\n function alias(altKey) {\n (0, _debug.assert)('You attempted to use @alias as a decorator directly, but it requires a `altKey` parameter', !(0, _decorator.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _decorator.makeComputedDecorator)(new AliasedProperty(altKey), AliasDecoratorImpl);\n } // TODO: This class can be svelted once `meta` has been deprecated\n\n\n class AliasDecoratorImpl extends Function {\n readOnly() {\n (0, _descriptor_map.descriptorForDecorator)(this).readOnly();\n return this;\n }\n\n oneWay() {\n (0, _descriptor_map.descriptorForDecorator)(this).oneWay();\n return this;\n }\n\n meta(meta) {\n let prop = (0, _descriptor_map.descriptorForDecorator)(this);\n\n if (arguments.length === 0) {\n return prop._meta || {};\n } else {\n prop._meta = meta;\n }\n }\n\n }\n\n class AliasedProperty extends _decorator.ComputedDescriptor {\n constructor(altKey) {\n super();\n this.altKey = altKey;\n this._dependentKeys = [altKey];\n }\n\n setup(obj, keyName, propertyDesc, meta) {\n (0, _debug.assert)(\"Setting alias '\" + keyName + \"' on self\", this.altKey !== keyName);\n super.setup(obj, keyName, propertyDesc, meta);\n\n if (meta.peekWatching(keyName) > 0) {\n this.consume(obj, keyName, meta);\n }\n }\n\n teardown(obj, keyName, meta) {\n this.unconsume(obj, keyName, meta);\n super.teardown(obj, keyName, meta);\n }\n\n willWatch(obj, keyName, meta) {\n this.consume(obj, keyName, meta);\n }\n\n get(obj, keyName) {\n let ret = (0, _property_get.get)(obj, this.altKey);\n this.consume(obj, keyName, (0, _meta.meta)(obj));\n return ret;\n }\n\n unconsume(obj, keyName, meta) {\n let wasConsumed = (0, _computed_cache.getCachedValueFor)(obj, keyName) === CONSUMED;\n\n if (wasConsumed || meta.peekWatching(keyName) > 0) {\n (0, _decorator.removeDependentKeys)(this, obj, keyName, meta);\n }\n\n if (wasConsumed) {\n (0, _computed_cache.getCacheFor)(obj).delete(keyName);\n }\n }\n\n consume(obj, keyName, meta) {\n let cache = (0, _computed_cache.getCacheFor)(obj);\n\n if (cache.get(keyName) !== CONSUMED) {\n cache.set(keyName, CONSUMED);\n (0, _decorator.addDependentKeys)(this, obj, keyName, meta);\n }\n }\n\n set(obj, _keyName, value) {\n return (0, _property_set.set)(obj, this.altKey, value);\n }\n\n readOnly() {\n this.set = AliasedProperty_readOnlySet;\n }\n\n oneWay() {\n this.set = AliasedProperty_oneWaySet;\n }\n\n }\n\n _exports.AliasedProperty = AliasedProperty;\n\n function AliasedProperty_readOnlySet(obj, keyName) {\n // eslint-disable-line no-unused-vars\n throw new _error.default(\"Cannot set read-only property '\" + keyName + \"' on object: \" + (0, _utils.inspect)(obj));\n }\n\n function AliasedProperty_oneWaySet(obj, keyName, value) {\n (0, _properties.defineProperty)(obj, keyName, null);\n return (0, _property_set.set)(obj, keyName, value);\n }\n});","enifed(\"@ember/-internals/metal/lib/array\", [\"exports\", \"@ember/-internals/metal/lib/array_events\", \"@ember/-internals/metal/lib/events\", \"@ember/-internals/metal/lib/property_events\", \"@ember/-internals/metal/lib/property_get\"], function (_exports, _array_events, _events, _property_events, _property_get) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.objectAt = objectAt;\n _exports.replace = replace;\n _exports.replaceInNativeArray = replaceInNativeArray;\n _exports.addArrayObserver = addArrayObserver;\n _exports.removeArrayObserver = removeArrayObserver;\n const EMPTY_ARRAY = Object.freeze([]);\n\n function objectAt(array, index) {\n if (Array.isArray(array)) {\n return array[index];\n } else {\n return array.objectAt(index);\n }\n }\n\n function replace(array, start, deleteCount, items = EMPTY_ARRAY) {\n if (Array.isArray(array)) {\n replaceInNativeArray(array, start, deleteCount, items);\n } else {\n array.replace(start, deleteCount, items);\n }\n }\n\n const CHUNK_SIZE = 60000; // To avoid overflowing the stack, we splice up to CHUNK_SIZE items at a time.\n // See https://code.google.com/p/chromium/issues/detail?id=56588 for more details.\n\n function replaceInNativeArray(array, start, deleteCount, items) {\n (0, _array_events.arrayContentWillChange)(array, start, deleteCount, items.length);\n\n if (items.length <= CHUNK_SIZE) {\n array.splice(start, deleteCount, ...items);\n } else {\n array.splice(start, deleteCount);\n\n for (let i = 0; i < items.length; i += CHUNK_SIZE) {\n let chunk = items.slice(i, i + CHUNK_SIZE);\n array.splice(start + i, 0, ...chunk);\n }\n }\n\n (0, _array_events.arrayContentDidChange)(array, start, deleteCount, items.length);\n }\n\n function arrayObserversHelper(obj, target, opts, operation, notify) {\n let willChange = opts && opts.willChange || 'arrayWillChange';\n let didChange = opts && opts.didChange || 'arrayDidChange';\n let hasObservers = (0, _property_get.get)(obj, 'hasArrayObservers');\n operation(obj, '@array:before', target, willChange);\n operation(obj, '@array:change', target, didChange);\n\n if (hasObservers === notify) {\n (0, _property_events.notifyPropertyChange)(obj, 'hasArrayObservers');\n }\n\n return obj;\n }\n\n function addArrayObserver(array, target, opts) {\n return arrayObserversHelper(array, target, opts, _events.addListener, false);\n }\n\n function removeArrayObserver(array, target, opts) {\n return arrayObserversHelper(array, target, opts, _events.removeListener, true);\n }\n});","enifed(\"@ember/-internals/metal/lib/array_events\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/metal/lib/computed_cache\", \"@ember/-internals/metal/lib/each_proxy_events\", \"@ember/-internals/metal/lib/events\", \"@ember/-internals/metal/lib/property_events\"], function (_exports, _meta, _computed_cache, _each_proxy_events, _events, _property_events) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.arrayContentWillChange = arrayContentWillChange;\n _exports.arrayContentDidChange = arrayContentDidChange;\n\n function arrayContentWillChange(array, startIdx, removeAmt, addAmt) {\n // if no args are passed assume everything changes\n if (startIdx === undefined) {\n startIdx = 0;\n removeAmt = addAmt = -1;\n } else {\n if (removeAmt === undefined) {\n removeAmt = -1;\n }\n\n if (addAmt === undefined) {\n addAmt = -1;\n }\n }\n\n (0, _each_proxy_events.eachProxyArrayWillChange)(array, startIdx, removeAmt, addAmt);\n (0, _events.sendEvent)(array, '@array:before', [array, startIdx, removeAmt, addAmt]);\n return array;\n }\n\n function arrayContentDidChange(array, startIdx, removeAmt, addAmt) {\n // if no args are passed assume everything changes\n if (startIdx === undefined) {\n startIdx = 0;\n removeAmt = addAmt = -1;\n } else {\n if (removeAmt === undefined) {\n removeAmt = -1;\n }\n\n if (addAmt === undefined) {\n addAmt = -1;\n }\n }\n\n let meta = (0, _meta.peekMeta)(array);\n\n if (addAmt < 0 || removeAmt < 0 || addAmt - removeAmt !== 0) {\n (0, _property_events.notifyPropertyChange)(array, 'length', meta);\n }\n\n (0, _property_events.notifyPropertyChange)(array, '[]', meta);\n (0, _each_proxy_events.eachProxyArrayDidChange)(array, startIdx, removeAmt, addAmt);\n (0, _events.sendEvent)(array, '@array:change', [array, startIdx, removeAmt, addAmt]);\n let cache = (0, _computed_cache.peekCacheFor)(array);\n\n if (cache !== undefined) {\n let length = array.length;\n let addedAmount = addAmt === -1 ? 0 : addAmt;\n let removedAmount = removeAmt === -1 ? 0 : removeAmt;\n let delta = addedAmount - removedAmount;\n let previousLength = length - delta;\n let normalStartIdx = startIdx < 0 ? previousLength + startIdx : startIdx;\n\n if (cache.has('firstObject') && normalStartIdx === 0) {\n (0, _property_events.notifyPropertyChange)(array, 'firstObject', meta);\n }\n\n if (cache.has('lastObject')) {\n let previousLastIndex = previousLength - 1;\n let lastAffectedIndex = normalStartIdx + removedAmount;\n\n if (previousLastIndex < lastAffectedIndex) {\n (0, _property_events.notifyPropertyChange)(array, 'lastObject', meta);\n }\n }\n }\n\n return array;\n }\n});","enifed(\"@ember/-internals/metal/lib/chains\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/metal/lib/computed_cache\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/each_proxy\", \"@ember/-internals/metal/lib/property_get\", \"@ember/-internals/metal/lib/watch_key\"], function (_exports, _meta2, _computed_cache, _descriptor_map, _each_proxy, _property_get, _watch_key) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.finishChains = finishChains;\n _exports.makeChainNode = makeChainNode;\n _exports.removeChainWatcher = removeChainWatcher;\n _exports.ChainNode = void 0;\n\n function isObject(obj) {\n return typeof obj === 'object' && obj !== null;\n }\n\n function isVolatile(obj, keyName, meta) {\n let desc = (0, _descriptor_map.descriptorForProperty)(obj, keyName, meta);\n return !(desc !== undefined && desc._volatile === false);\n }\n\n class ChainWatchers {\n constructor() {\n // chain nodes that reference a key in this obj by key\n // we only create ChainWatchers when we are going to add them\n // so create this upfront\n this.chains = Object.create(null);\n }\n\n add(key, node) {\n let nodes = this.chains[key];\n\n if (nodes === undefined) {\n this.chains[key] = [node];\n } else {\n nodes.push(node);\n }\n }\n\n remove(key, node) {\n let nodes = this.chains[key];\n\n if (nodes !== undefined) {\n for (let i = 0; i < nodes.length; i++) {\n if (nodes[i] === node) {\n nodes.splice(i, 1);\n break;\n }\n }\n }\n }\n\n has(key, node) {\n let nodes = this.chains[key];\n\n if (nodes !== undefined) {\n for (let i = 0; i < nodes.length; i++) {\n if (nodes[i] === node) {\n return true;\n }\n }\n }\n\n return false;\n }\n\n revalidateAll() {\n for (let key in this.chains) {\n this.notify(key, true, undefined);\n }\n }\n\n revalidate(key) {\n this.notify(key, true, undefined);\n } // key: the string key that is part of a path changed\n // revalidate: boolean; the chains that are watching this value should revalidate\n // callback: function that will be called with the object and path that\n // will be/are invalidated by this key change, depending on\n // whether the revalidate flag is passed\n\n\n notify(key, revalidate, callback) {\n let nodes = this.chains[key];\n\n if (nodes === undefined || nodes.length === 0) {\n return;\n }\n\n let affected = undefined;\n\n if (callback !== undefined) {\n affected = [];\n }\n\n for (let i = 0; i < nodes.length; i++) {\n nodes[i].notify(revalidate, affected);\n }\n\n if (callback === undefined) {\n return;\n } // we gather callbacks so we don't notify them during revalidation\n\n\n for (let i = 0; i < affected.length; i += 2) {\n let obj = affected[i];\n let path = affected[i + 1];\n callback(obj, path);\n }\n }\n\n }\n\n function makeChainWatcher() {\n return new ChainWatchers();\n }\n\n function makeChainNode(obj) {\n return new ChainNode(null, null, obj);\n }\n\n function addChainWatcher(obj, keyName, node) {\n let m = (0, _meta2.meta)(obj);\n m.writableChainWatchers(makeChainWatcher).add(keyName, node);\n (0, _watch_key.watchKey)(obj, keyName, m);\n }\n\n function removeChainWatcher(obj, keyName, node, _meta) {\n if (!isObject(obj)) {\n return;\n }\n\n let meta = _meta === undefined ? (0, _meta2.peekMeta)(obj) : _meta;\n\n if (meta === null || meta.isSourceDestroying() || meta.isMetaDestroyed() || meta.readableChainWatchers() === undefined) {\n return;\n } // make meta writable\n\n\n meta = (0, _meta2.meta)(obj);\n meta.readableChainWatchers().remove(keyName, node);\n (0, _watch_key.unwatchKey)(obj, keyName, meta);\n }\n\n const NODE_STACK = [];\n\n function destroyRoot(root) {\n pushChildren(root);\n\n while (NODE_STACK.length > 0) {\n let node = NODE_STACK.pop();\n pushChildren(node);\n destroyOne(node);\n }\n }\n\n function destroyOne(node) {\n if (node.isWatching) {\n removeChainWatcher(node.object, node.key, node);\n node.isWatching = false;\n }\n }\n\n function pushChildren(node) {\n let nodes = node.chains;\n\n if (nodes !== undefined) {\n for (let key in nodes) {\n if (nodes[key] !== undefined) {\n NODE_STACK.push(nodes[key]);\n }\n }\n }\n } // A ChainNode watches a single key on an object. If you provide a starting\n // value for the key then the node won't actually watch it. For a root node\n // pass null for parent and key and object for value.\n\n\n class ChainNode {\n constructor(parent, key, value) {\n this.paths = undefined;\n this.isWatching = false;\n this.chains = undefined;\n this.object = undefined;\n this.count = 0;\n this.parent = parent;\n this.key = key;\n this.content = value; // It is false for the root of a chain (because we have no parent)\n\n let isWatching = this.isWatching = parent !== null;\n\n if (isWatching) {\n let parentValue = parent.value();\n\n if (isObject(parentValue)) {\n this.object = parentValue;\n addChainWatcher(parentValue, key, this);\n }\n }\n }\n\n value() {\n if (this.content === undefined && this.isWatching) {\n let obj = this.parent.value();\n this.content = lazyGet(obj, this.key);\n }\n\n return this.content;\n }\n\n destroy() {\n // check if root\n if (this.parent === null) {\n destroyRoot(this);\n } else {\n destroyOne(this);\n }\n } // copies a top level object only\n\n\n copyTo(target) {\n let paths = this.paths;\n\n if (paths !== undefined) {\n let path;\n\n for (path in paths) {\n if (paths[path] > 0) {\n target.add(path);\n }\n }\n }\n } // called on the root node of a chain to setup watchers on the specified\n // path.\n\n\n add(path) {\n let paths = this.paths || (this.paths = {});\n paths[path] = (paths[path] || 0) + 1;\n let tails = path.split('.');\n this.chain(tails.shift(), tails);\n } // called on the root node of a chain to teardown watcher on the specified\n // path\n\n\n remove(path) {\n let paths = this.paths;\n\n if (paths === undefined) {\n return;\n }\n\n if (paths[path] > 0) {\n paths[path]--;\n }\n\n let tails = path.split('.');\n this.unchain(tails.shift(), tails);\n }\n\n chain(key, tails) {\n let chains = this.chains;\n\n if (chains === undefined) {\n chains = this.chains = Object.create(null);\n }\n\n let node = chains[key];\n\n if (node === undefined) {\n node = chains[key] = new ChainNode(this, key, undefined);\n }\n\n node.count++; // count chains...\n // chain rest of path if there is one\n\n if (tails.length > 0) {\n node.chain(tails.shift(), tails);\n }\n }\n\n unchain(key, tails) {\n let chains = this.chains;\n let node = chains[key]; // unchain rest of path first...\n\n if (tails.length > 0) {\n node.unchain(tails.shift(), tails);\n } // delete node if needed.\n\n\n node.count--;\n\n if (node.count <= 0) {\n chains[node.key] = undefined;\n node.destroy();\n }\n }\n\n notify(revalidate, affected) {\n if (revalidate && this.isWatching) {\n let parentValue = this.parent.value();\n\n if (parentValue !== this.object) {\n removeChainWatcher(this.object, this.key, this);\n\n if (isObject(parentValue)) {\n this.object = parentValue;\n addChainWatcher(parentValue, this.key, this);\n } else {\n this.object = undefined;\n }\n }\n\n this.content = undefined;\n } // then notify chains...\n\n\n let chains = this.chains;\n\n if (chains !== undefined) {\n let node;\n\n for (let key in chains) {\n node = chains[key];\n\n if (node !== undefined) {\n node.notify(revalidate, affected);\n }\n }\n }\n\n if (affected !== undefined && this.parent !== null) {\n this.parent.populateAffected(this.key, 1, affected);\n }\n }\n\n populateAffected(path, depth, affected) {\n if (this.key) {\n path = this.key + \".\" + path;\n }\n\n if (this.parent !== null) {\n this.parent.populateAffected(path, depth + 1, affected);\n } else if (depth > 1) {\n affected.push(this.value(), path);\n }\n }\n\n }\n\n _exports.ChainNode = ChainNode;\n\n function lazyGet(obj, key) {\n if (!isObject(obj)) {\n return;\n }\n\n let meta = (0, _meta2.peekMeta)(obj); // check if object meant only to be a prototype\n\n if (meta !== null && meta.proto === obj) {\n return;\n } // Use `get` if the return value is an EachProxy or an uncacheable value.\n\n\n if (key === '@each') {\n return (0, _each_proxy.eachProxyFor)(obj);\n } else if (isVolatile(obj, key, meta)) {\n return (0, _property_get.get)(obj, key); // Otherwise attempt to get the cached value of the computed property\n } else {\n return (0, _computed_cache.getCachedValueFor)(obj, key);\n }\n }\n\n function finishChains(meta) {\n // finish any current chains node watchers that reference obj\n let chainWatchers = meta.readableChainWatchers();\n\n if (chainWatchers !== undefined) {\n chainWatchers.revalidateAll();\n } // ensure that if we have inherited any chains they have been\n // copied onto our own meta.\n\n\n if (meta.readableChains() !== undefined) {\n meta.writableChains(makeChainNode);\n }\n }\n});","enifed(\"@ember/-internals/metal/lib/change_event\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = changeEvent;\n const AFTER_OBSERVERS = ':change';\n\n function changeEvent(keyName) {\n return keyName + AFTER_OBSERVERS;\n }\n});","enifed(\"@ember/-internals/metal/lib/computed\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/utils\", \"@ember/canary-features\", \"@ember/debug\", \"@ember/error\", \"@ember/-internals/metal/lib/computed_cache\", \"@ember/-internals/metal/lib/decorator\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/expand_properties\", \"@ember/-internals/metal/lib/properties\", \"@ember/-internals/metal/lib/property_events\", \"@ember/-internals/metal/lib/property_set\", \"@ember/-internals/metal/lib/tags\", \"@ember/-internals/metal/lib/tracked\"], function (_exports, _meta, _utils, _canaryFeatures, _debug, _error, _computed_cache, _decorator, _descriptor_map, _expand_properties, _properties, _property_events, _property_set, _tags, _tracked) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.computed = computed;\n _exports.isComputed = isComputed;\n _exports.default = _exports._globalsComputed = _exports.ComputedProperty = void 0;\n\n /**\n @module @ember/object\n */\n const DEEP_EACH_REGEX = /\\.@each\\.[^.]+\\./;\n\n function noop() {}\n /**\n `@computed` is a decorator that turns a JavaScript getter and setter into a\n computed property, which is a _cached, trackable value_. By default the getter\n will only be called once and the result will be cached. You can specify\n various properties that your computed property depends on. This will force the\n cached result to be cleared if the dependencies are modified, and lazily recomputed the next time something asks for it.\n \n In the following example we decorate a getter - `fullName` - by calling\n `computed` with the property dependencies (`firstName` and `lastName`) as\n arguments. The `fullName` getter will be called once (regardless of how many\n times it is accessed) as long as its dependencies do not change. Once\n `firstName` or `lastName` are updated any future calls to `fullName` will\n incorporate the new values, and any watchers of the value such as templates\n will be updated:\n \n ```javascript\n import { computed, set } from '@ember/object';\n \n class Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n \n @computed('firstName', 'lastName')\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n });\n \n let tom = new Person('Tom', 'Dale');\n \n tom.fullName; // 'Tom Dale'\n ```\n \n You can also provide a setter, which will be used when updating the computed\n property. Ember's `set` function must be used to update the property\n since it will also notify observers of the property:\n \n ```javascript\n import { computed, set } from '@ember/object';\n \n class Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n \n @computed('firstName', 'lastName')\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n \n set fullName(value) {\n let [firstName, lastName] = value.split(' ');\n \n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n });\n \n let person = new Person();\n \n set(person, 'fullName', 'Peter Wagenet');\n person.firstName; // 'Peter'\n person.lastName; // 'Wagenet'\n ```\n \n You can also pass a getter function or object with `get` and `set` functions\n as the last argument to the computed decorator. This allows you to define\n computed property _macros_:\n \n ```js\n import { computed } from '@ember/object';\n \n function join(...keys) {\n return computed(...keys, function() {\n return keys.map(key => this[key]).join(' ');\n });\n }\n \n class Person {\n @join('firstName', 'lastName')\n fullName;\n }\n ```\n \n Note that when defined this way, getters and setters receive the _key_ of the\n property they are decorating as the first argument. Setters receive the value\n they are setting to as the second argument instead. Additionally, setters must\n _return_ the value that should be cached:\n \n ```javascript\n import { computed, set } from '@ember/object';\n \n function fullNameMacro(firstNameKey, lastNameKey) {\n @computed(firstNameKey, lastNameKey, {\n get() {\n return `${this[firstNameKey]} ${this[lastNameKey]}`;\n }\n \n set(key, value) {\n let [firstName, lastName] = value.split(' ');\n \n set(this, firstNameKey, firstName);\n set(this, lastNameKey, lastName);\n \n return value;\n }\n });\n }\n \n class Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n \n @fullNameMacro fullName;\n });\n \n let person = new Person();\n \n set(person, 'fullName', 'Peter Wagenet');\n person.firstName; // 'Peter'\n person.lastName; // 'Wagenet'\n ```\n \n Computed properties can also be used in classic classes. To do this, we\n provide the getter and setter as the last argument like we would for a macro,\n and we assign it to a property on the class definition. This is an _anonymous_\n computed macro:\n \n ```javascript\n import EmberObject, { computed, set } from '@ember/object';\n \n let Person = EmberObject.extend({\n // these will be supplied by `create`\n firstName: null,\n lastName: null,\n \n fullName: computed('firstName', 'lastName', {\n get() {\n return `${this.firstName} ${this.lastName}`;\n }\n \n set(key, value) {\n let [firstName, lastName] = value.split(' ');\n \n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n \n return value;\n }\n })\n });\n \n let tom = Person.create({\n firstName: 'Tom',\n lastName: 'Dale'\n });\n \n tom.get('fullName') // 'Tom Dale'\n ```\n \n You can overwrite computed property without setters with a normal property (no\n longer computed) that won't change if dependencies change. You can also mark\n computed property as `.readOnly()` and block all attempts to set it.\n \n ```javascript\n import { computed, set } from '@ember/object';\n \n class Person {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n \n @computed('firstName', 'lastName').readOnly()\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n });\n \n let person = new Person();\n person.set('fullName', 'Peter Wagenet'); // Uncaught Error: Cannot set read-only property \"fullName\" on object: <(...):emberXXX>\n ```\n \n Additional resources:\n - [Decorators RFC](https://github.com/emberjs/rfcs/blob/master/text/0408-decorators.md)\n - [New CP syntax RFC](https://github.com/emberjs/rfcs/blob/master/text/0011-improved-cp-syntax.md)\n - [New computed syntax explained in \"Ember 1.12 released\" ](https://emberjs.com/blog/2015/05/13/ember-1-12-released.html#toc_new-computed-syntax)\n \n @class ComputedProperty\n @public\n */\n\n\n class ComputedProperty extends _decorator.ComputedDescriptor {\n constructor(args) {\n super();\n this._volatile = false;\n this._readOnly = false;\n this._suspended = undefined;\n this._hasConfig = false;\n this._getter = undefined;\n this._setter = undefined;\n let maybeConfig = args[args.length - 1];\n\n if (typeof maybeConfig === 'function' || maybeConfig !== null && typeof maybeConfig === 'object') {\n this._hasConfig = true;\n let config = args.pop();\n\n if (typeof config === 'function') {\n (0, _debug.assert)(\"You attempted to pass a computed property instance to computed(). Computed property instances are decorator functions, and cannot be passed to computed() because they cannot be turned into decorators twice\", !(0, _descriptor_map.isClassicDecorator)(config));\n this._getter = config;\n } else {\n const objectConfig = config;\n (0, _debug.assert)('computed expects a function or an object as last argument.', typeof objectConfig === 'object' && !Array.isArray(objectConfig));\n (0, _debug.assert)('Config object passed to computed can only contain `get` and `set` keys.', Object.keys(objectConfig).every(key => key === 'get' || key === 'set'));\n (0, _debug.assert)('Computed properties must receive a getter or a setter, you passed none.', Boolean(objectConfig.get) || Boolean(objectConfig.set));\n this._getter = objectConfig.get || noop;\n this._setter = objectConfig.set;\n }\n }\n\n if (args.length > 0) {\n this._property(...args);\n }\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n this._auto = false;\n }\n }\n\n setup(obj, keyName, propertyDesc, meta) {\n super.setup(obj, keyName, propertyDesc, meta);\n (0, _debug.assert)(\"@computed can only be used on accessors or fields, attempted to use it with \" + keyName + \" but that was a method. Try converting it to a getter (e.g. `get \" + keyName + \"() {}`)\", !(propertyDesc && typeof propertyDesc.value === 'function'));\n (0, _debug.assert)(\"@computed can only be used on empty fields. \" + keyName + \" has an initial value (e.g. `\" + keyName + \" = someValue`)\", !propertyDesc || !propertyDesc.initializer);\n (0, _debug.assert)(\"Attempted to apply a computed property that already has a getter/setter to a \" + keyName + \", but it is a method or an accessor. If you passed @computed a function or getter/setter (e.g. `@computed({ get() { ... } })`), then it must be applied to a field\", !(this._hasConfig && propertyDesc && (typeof propertyDesc.get === 'function' || typeof propertyDesc.set === 'function')));\n\n if (this._hasConfig === false) {\n (0, _debug.assert)(\"Attempted to use @computed on \" + keyName + \", but it did not have a getter or a setter. You must either pass a get a function or getter/setter to @computed directly (e.g. `@computed({ get() { ... } })`) or apply @computed directly to a getter/setter\", propertyDesc && (typeof propertyDesc.get === 'function' || typeof propertyDesc.set === 'function'));\n let {\n get,\n set\n } = propertyDesc;\n\n if (get !== undefined) {\n this._getter = get;\n }\n\n if (set !== undefined) {\n this._setter = function setterWrapper(_key, value) {\n let ret = set.call(this, value);\n\n if (get !== undefined) {\n return typeof ret === 'undefined' ? get.call(this) : ret;\n }\n\n return ret;\n };\n }\n }\n }\n /**\n Call on a computed property to set it into non-cached mode. When in this\n mode the computed property will not automatically cache the return value.\n It also does not automatically fire any change events. You must manually notify\n any changes if you want to observe this property.\n Dependency keys have no effect on volatile properties as they are for cache\n invalidation and notification when cached value is invalidated.\n ```javascript\n import EmberObject, { computed } from '@ember/object';\n let outsideService = EmberObject.extend({\n value: computed(function() {\n return OutsideService.getValue();\n }).volatile()\n }).create();\n ```\n @method volatile\n @return {ComputedProperty} this\n @chainable\n @public\n */\n\n\n volatile() {\n (0, _debug.deprecate)('Setting a computed property as volatile has been deprecated. Instead, consider using a native getter with native class syntax.', false, {\n id: 'computed-property.volatile',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_computed-property-volatile'\n });\n this._volatile = true;\n }\n /**\n Call on a computed property to set it into read-only mode. When in this\n mode the computed property will throw an error when set.\n ```javascript\n import EmberObject, { computed } from '@ember/object';\n let Person = EmberObject.extend({\n guid: computed(function() {\n return 'guid-guid-guid';\n }).readOnly()\n });\n let person = Person.create();\n person.set('guid', 'new-guid'); // will throw an exception\n ```\n @method readOnly\n @return {ComputedProperty} this\n @chainable\n @public\n */\n\n\n readOnly() {\n this._readOnly = true;\n (0, _debug.assert)('Computed properties that define a setter using the new syntax cannot be read-only', !(this._readOnly && this._setter && this._setter !== this._getter));\n }\n /**\n Sets the dependent keys on this computed property. Pass any number of\n arguments containing key paths that this computed property depends on.\n ```javascript\n import EmberObject, { computed } from '@ember/object';\n let President = EmberObject.extend({\n fullName: computed('firstName', 'lastName', function() {\n return this.get('firstName') + ' ' + this.get('lastName');\n // Tell Ember that this computed property depends on firstName\n // and lastName\n })\n });\n let president = President.create({\n firstName: 'Barack',\n lastName: 'Obama'\n });\n president.get('fullName'); // 'Barack Obama'\n ```\n @method property\n @param {String} path* zero or more property paths\n @return {ComputedProperty} this\n @chainable\n @public\n */\n\n\n property(...passedArgs) {\n (0, _debug.deprecate)('Setting dependency keys using the `.property()` modifier has been deprecated. Pass the dependency keys directly to computed as arguments instead. If you are using `.property()` on a computed property macro, consider refactoring your macro to receive additional dependent keys in its initial declaration.', false, {\n id: 'computed-property.property',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_computed-property-property'\n });\n\n this._property(...passedArgs);\n }\n\n _property(...passedArgs) {\n let args = [];\n\n function addArg(property) {\n (0, _debug.warn)(\"Dependent keys containing @each only work one level deep. \" + (\"You used the key \\\"\" + property + \"\\\" which is invalid. \") + \"Please create an intermediary computed property.\", DEEP_EACH_REGEX.test(property) === false, {\n id: 'ember-metal.computed-deep-each'\n });\n args.push(property);\n }\n\n for (let i = 0; i < passedArgs.length; i++) {\n (0, _expand_properties.default)(passedArgs[i], addArg);\n }\n\n this._dependentKeys = args;\n }\n /**\n In some cases, you may want to annotate computed properties with additional\n metadata about how they function or what values they operate on. For example,\n computed property functions may close over variables that are then no longer\n available for introspection.\n You can pass a hash of these values to a computed property like this:\n ```\n import { computed } from '@ember/object';\n import Person from 'my-app/utils/person';\n person: computed(function() {\n let personId = this.get('personId');\n return Person.create({ id: personId });\n }).meta({ type: Person })\n ```\n The hash that you pass to the `meta()` function will be saved on the\n computed property descriptor under the `_meta` key. Ember runtime\n exposes a public API for retrieving these values from classes,\n via the `metaForProperty()` function.\n @method meta\n @param {Object} meta\n @chainable\n @public\n */\n // invalidate cache when CP key changes\n\n\n didChange(obj, keyName) {\n // _suspended is set via a CP.set to ensure we don't clear\n // the cached value set by the setter\n if (this._volatile || this._suspended === obj) {\n return;\n } // don't create objects just to invalidate\n\n\n let meta = (0, _meta.peekMeta)(obj);\n\n if (meta === null || meta.source !== obj) {\n return;\n }\n\n let cache = (0, _computed_cache.peekCacheFor)(obj);\n\n if (cache !== undefined && cache.delete(keyName)) {\n (0, _decorator.removeDependentKeys)(this, obj, keyName, meta);\n }\n }\n\n get(obj, keyName) {\n if (this._volatile) {\n return this._getter.call(obj, keyName);\n }\n\n let cache = (0, _computed_cache.getCacheFor)(obj);\n let propertyTag;\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n propertyTag = (0, _tags.tagForProperty)(obj, keyName);\n\n if (cache.has(keyName)) {\n // special-case for computed with no dependent keys used to\n // trigger cacheable behavior.\n if (!this._auto && (!this._dependentKeys || this._dependentKeys.length === 0)) {\n return cache.get(keyName);\n }\n\n let lastRevision = (0, _computed_cache.getLastRevisionFor)(obj, keyName);\n\n if (propertyTag.validate(lastRevision)) {\n return cache.get(keyName);\n }\n }\n } else {\n if (cache.has(keyName)) {\n return cache.get(keyName);\n }\n }\n\n let parent;\n let tracker;\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n parent = (0, _tracked.getCurrentTracker)();\n tracker = (0, _tracked.setCurrentTracker)();\n }\n\n let ret = this._getter.call(obj, keyName);\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n (0, _tracked.setCurrentTracker)(parent);\n let tag = tracker.combine();\n if (parent) parent.add(tag);\n (0, _tags.update)(propertyTag, tag);\n (0, _computed_cache.setLastRevisionFor)(obj, keyName, propertyTag.value());\n }\n\n cache.set(keyName, ret);\n let meta = (0, _meta.meta)(obj);\n let chainWatchers = meta.readableChainWatchers();\n\n if (chainWatchers !== undefined) {\n chainWatchers.revalidate(keyName);\n }\n\n (0, _decorator.addDependentKeys)(this, obj, keyName, meta);\n return ret;\n }\n\n set(obj, keyName, value) {\n if (this._readOnly) {\n this._throwReadOnlyError(obj, keyName);\n }\n\n if (!this._setter) {\n return this.clobberSet(obj, keyName, value);\n }\n\n if (this._volatile) {\n return this.volatileSet(obj, keyName, value);\n }\n\n return this.setWithSuspend(obj, keyName, value);\n }\n\n _throwReadOnlyError(obj, keyName) {\n throw new _error.default(\"Cannot set read-only property \\\"\" + keyName + \"\\\" on object: \" + (0, _utils.inspect)(obj));\n }\n\n clobberSet(obj, keyName, value) {\n (0, _debug.deprecate)(\"The \" + (0, _utils.toString)(obj) + \"#\" + keyName + \" computed property was just overriden. This removes the computed property and replaces it with a plain value, and has been deprecated. If you want this behavior, consider defining a setter which does it manually.\", false, {\n id: 'computed-property.override',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_computed-property-override'\n });\n let cachedValue = (0, _computed_cache.getCachedValueFor)(obj, keyName);\n (0, _properties.defineProperty)(obj, keyName, null, cachedValue);\n (0, _property_set.set)(obj, keyName, value);\n return value;\n }\n\n volatileSet(obj, keyName, value) {\n return this._setter.call(obj, keyName, value);\n }\n\n setWithSuspend(obj, keyName, value) {\n let oldSuspended = this._suspended;\n this._suspended = obj;\n\n try {\n return this._set(obj, keyName, value);\n } finally {\n this._suspended = oldSuspended;\n }\n }\n\n _set(obj, keyName, value) {\n let cache = (0, _computed_cache.getCacheFor)(obj);\n let hadCachedValue = cache.has(keyName);\n let cachedValue = cache.get(keyName);\n\n let ret = this._setter.call(obj, keyName, value, cachedValue); // allows setter to return the same value that is cached already\n\n\n if (hadCachedValue && cachedValue === ret) {\n return ret;\n }\n\n let meta = (0, _meta.meta)(obj);\n\n if (!hadCachedValue) {\n (0, _decorator.addDependentKeys)(this, obj, keyName, meta);\n }\n\n cache.set(keyName, ret);\n (0, _property_events.notifyPropertyChange)(obj, keyName, meta);\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n let propertyTag = (0, _tags.tagForProperty)(obj, keyName);\n (0, _computed_cache.setLastRevisionFor)(obj, keyName, propertyTag.value());\n }\n\n return ret;\n }\n /* called before property is overridden */\n\n\n teardown(obj, keyName, meta) {\n if (!this._volatile) {\n let cache = (0, _computed_cache.peekCacheFor)(obj);\n\n if (cache !== undefined && cache.delete(keyName)) {\n (0, _decorator.removeDependentKeys)(this, obj, keyName, meta);\n }\n }\n\n super.teardown(obj, keyName, meta);\n }\n\n }\n\n _exports.ComputedProperty = ComputedProperty;\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n ComputedProperty.prototype.auto = function () {\n this._auto = true;\n return this;\n };\n } // TODO: This class can be svelted once `meta` has been deprecated\n\n\n class ComputedDecoratorImpl extends Function {\n readOnly() {\n (0, _descriptor_map.descriptorForDecorator)(this).readOnly();\n return this;\n }\n\n volatile() {\n (0, _descriptor_map.descriptorForDecorator)(this).volatile();\n return this;\n }\n\n property(...keys) {\n (0, _descriptor_map.descriptorForDecorator)(this).property(...keys);\n return this;\n }\n\n meta(meta) {\n let prop = (0, _descriptor_map.descriptorForDecorator)(this);\n\n if (arguments.length === 0) {\n return prop._meta || {};\n } else {\n prop._meta = meta;\n return this;\n }\n } // TODO: Remove this when we can provide alternatives in the ecosystem to\n // addons such as ember-macro-helpers that use it.\n\n\n get _getter() {\n return (0, _descriptor_map.descriptorForDecorator)(this)._getter;\n } // TODO: Refactor this, this is an internal API only\n\n\n set enumerable(value) {\n (0, _descriptor_map.descriptorForDecorator)(this).enumerable = value;\n }\n\n }\n\n function computed(...args) {\n (0, _debug.assert)(\"@computed can only be used directly as a native decorator. If you're using tracked in classic classes, add parenthesis to call it like a function: computed()\", !((0, _decorator.isElementDescriptor)(args.slice(0, 3)) && args.length === 5 && args[4] === true));\n\n if ((0, _decorator.isElementDescriptor)(args)) {\n (0, _debug.assert)('Native decorators are not enabled without the EMBER_NATIVE_DECORATOR_SUPPORT flag. If you are using computed in a classic class, add parenthesis to it: computed()', Boolean(_canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT));\n let decorator = (0, _decorator.makeComputedDecorator)(new ComputedProperty([]), ComputedDecoratorImpl);\n return decorator(args[0], args[1], args[2]);\n }\n\n return (0, _decorator.makeComputedDecorator)(new ComputedProperty(args), ComputedDecoratorImpl);\n }\n /**\n Allows checking if a given property on an object is a computed property. For the most part,\n this doesn't matter (you would normally just access the property directly and use its value),\n but for some tooling specific scenarios (e.g. the ember-inspector) it is important to\n differentiate if a property is a computed property or a \"normal\" property.\n \n This will work on either a class's prototype or an instance itself.\n \n @static\n @method isComputed\n @for @ember/debug\n @private\n */\n\n\n function isComputed(obj, key) {\n return Boolean((0, _descriptor_map.descriptorForProperty)(obj, key));\n }\n\n const _globalsComputed = computed.bind(null);\n\n _exports._globalsComputed = _globalsComputed;\n var _default = computed;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/metal/lib/computed_cache\", [\"exports\", \"@ember/canary-features\"], function (_exports, _canaryFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.getCacheFor = getCacheFor;\n _exports.getCachedValueFor = getCachedValueFor;\n _exports.peekCacheFor = peekCacheFor;\n _exports.getLastRevisionFor = _exports.setLastRevisionFor = void 0;\n const COMPUTED_PROPERTY_CACHED_VALUES = new WeakMap();\n const COMPUTED_PROPERTY_LAST_REVISION = _canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES ? new WeakMap() : undefined;\n /**\n Returns the cached value for a property, if one exists.\n This can be useful for peeking at the value of a computed\n property that is generated lazily, without accidentally causing\n it to be created.\n \n @method cacheFor\n @static\n @for @ember/object/internals\n @param {Object} obj the object whose property you want to check\n @param {String} key the name of the property whose cached value you want\n to return\n @return {Object} the cached value\n @public\n */\n\n function getCacheFor(obj) {\n let cache = COMPUTED_PROPERTY_CACHED_VALUES.get(obj);\n\n if (cache === undefined) {\n cache = new Map();\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n COMPUTED_PROPERTY_LAST_REVISION.set(obj, new Map());\n }\n\n COMPUTED_PROPERTY_CACHED_VALUES.set(obj, cache);\n }\n\n return cache;\n }\n\n function getCachedValueFor(obj, key) {\n let cache = COMPUTED_PROPERTY_CACHED_VALUES.get(obj);\n\n if (cache !== undefined) {\n return cache.get(key);\n }\n }\n\n let setLastRevisionFor;\n _exports.setLastRevisionFor = setLastRevisionFor;\n let getLastRevisionFor;\n _exports.getLastRevisionFor = getLastRevisionFor;\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n _exports.setLastRevisionFor = setLastRevisionFor = (obj, key, revision) => {\n let lastRevision = COMPUTED_PROPERTY_LAST_REVISION.get(obj);\n lastRevision.set(key, revision);\n };\n\n _exports.getLastRevisionFor = getLastRevisionFor = (obj, key) => {\n let cache = COMPUTED_PROPERTY_LAST_REVISION.get(obj);\n\n if (cache === undefined) {\n return 0;\n } else {\n let revision = cache.get(key);\n return revision === undefined ? 0 : revision;\n }\n };\n }\n\n function peekCacheFor(obj) {\n return COMPUTED_PROPERTY_CACHED_VALUES.get(obj);\n }\n});","enifed(\"@ember/-internals/metal/lib/decorator\", [\"exports\", \"@ember/-internals/meta\", \"@ember/canary-features\", \"@ember/debug\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/watching\"], function (_exports, _meta, _canaryFeatures, _debug, _descriptor_map, _watching) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isElementDescriptor = isElementDescriptor;\n _exports.addDependentKeys = addDependentKeys;\n _exports.removeDependentKeys = removeDependentKeys;\n _exports.nativeDescDecorator = nativeDescDecorator;\n _exports.makeComputedDecorator = makeComputedDecorator;\n _exports.ComputedDescriptor = void 0;\n\n function isElementDescriptor(args) {\n let [maybeTarget, maybeKey, maybeDesc] = args;\n return (// Ensure we have the right number of args\n args.length === 3 && ( // Make sure the target is a class or object (prototype)\n typeof maybeTarget === 'function' || typeof maybeTarget === 'object' && maybeTarget !== null) && // Make sure the key is a string\n typeof maybeKey === 'string' && ( // Make sure the descriptor is the right shape\n typeof maybeDesc === 'object' && maybeDesc !== null && 'enumerable' in maybeDesc && 'configurable' in maybeDesc || // TS compatibility\n maybeDesc === undefined)\n );\n } // ..........................................................\n // DEPENDENT KEYS\n //\n\n\n function addDependentKeys(desc, obj, keyName, meta) {\n // the descriptor has a list of dependent keys, so\n // add all of its dependent keys.\n let depKeys = desc._dependentKeys;\n\n if (depKeys === null || depKeys === undefined) {\n return;\n }\n\n for (let idx = 0; idx < depKeys.length; idx++) {\n let depKey = depKeys[idx]; // Increment the number of times depKey depends on keyName.\n\n meta.writeDeps(depKey, keyName, meta.peekDeps(depKey, keyName) + 1); // Watch the depKey\n\n (0, _watching.watch)(obj, depKey, meta);\n }\n }\n\n function removeDependentKeys(desc, obj, keyName, meta) {\n // the descriptor has a list of dependent keys, so\n // remove all of its dependent keys.\n let depKeys = desc._dependentKeys;\n\n if (depKeys === null || depKeys === undefined) {\n return;\n }\n\n for (let idx = 0; idx < depKeys.length; idx++) {\n let depKey = depKeys[idx]; // Decrement the number of times depKey depends on keyName.\n\n meta.writeDeps(depKey, keyName, meta.peekDeps(depKey, keyName) - 1); // Unwatch the depKey\n\n (0, _watching.unwatch)(obj, depKey, meta);\n }\n }\n\n function nativeDescDecorator(propertyDesc) {\n let decorator = function () {\n return propertyDesc;\n };\n\n (0, _descriptor_map.setClassicDecorator)(decorator);\n return decorator;\n }\n /**\n Objects of this type can implement an interface to respond to requests to\n get and set. The default implementation handles simple properties.\n \n @class Descriptor\n @private\n */\n\n\n class ComputedDescriptor {\n constructor() {\n this.enumerable = true;\n this.configurable = true;\n this._dependentKeys = undefined;\n this._meta = undefined;\n }\n\n setup(_obj, keyName, _propertyDesc, meta) {\n meta.writeDescriptors(keyName, this);\n }\n\n teardown(_obj, keyName, meta) {\n meta.removeDescriptors(keyName);\n }\n\n }\n\n _exports.ComputedDescriptor = ComputedDescriptor;\n\n function DESCRIPTOR_GETTER_FUNCTION(name, descriptor) {\n return function CPGETTER_FUNCTION() {\n return descriptor.get(this, name);\n };\n }\n\n function makeComputedDecorator(desc, DecoratorClass) {\n let decorator = function COMPUTED_DECORATOR(target, key, propertyDesc, maybeMeta, isClassicDecorator) {\n (0, _debug.assert)('Native decorators are not enabled without the EMBER_NATIVE_DECORATOR_SUPPORT flag', _canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT || isClassicDecorator);\n (0, _debug.assert)(\"Only one computed property decorator can be applied to a class field or accessor, but '\" + key + \"' was decorated twice. You may have added the decorator to both a getter and setter, which is unecessary.\", isClassicDecorator || !propertyDesc || !propertyDesc.get || propertyDesc.get.toString().indexOf('CPGETTER_FUNCTION') === -1);\n let meta = arguments.length === 3 ? (0, _meta.meta)(target) : maybeMeta;\n desc.setup(target, key, propertyDesc, meta);\n return {\n enumerable: desc.enumerable,\n configurable: desc.configurable,\n get: DESCRIPTOR_GETTER_FUNCTION(key, desc)\n };\n };\n\n (0, _descriptor_map.setClassicDecorator)(decorator, desc);\n Object.setPrototypeOf(decorator, DecoratorClass.prototype);\n return decorator;\n }\n});","enifed(\"@ember/-internals/metal/lib/dependent_keys\", [], function () {\n \"use strict\";\n});","enifed(\"@ember/-internals/metal/lib/deprecate_property\", [\"exports\", \"@ember/debug\", \"@ember/-internals/metal/lib/property_get\", \"@ember/-internals/metal/lib/property_set\"], function (_exports, _debug, _property_get, _property_set) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.deprecateProperty = deprecateProperty;\n\n /**\n @module ember\n */\n\n /**\n Used internally to allow changing properties in a backwards compatible way, and print a helpful\n deprecation warning.\n \n @method deprecateProperty\n @param {Object} object The object to add the deprecated property to.\n @param {String} deprecatedKey The property to add (and print deprecation warnings upon accessing).\n @param {String} newKey The property that will be aliased.\n @private\n @since 1.7.0\n */\n function deprecateProperty(object, deprecatedKey, newKey, options) {\n function _deprecate() {\n (0, _debug.deprecate)(\"Usage of `\" + deprecatedKey + \"` is deprecated, use `\" + newKey + \"` instead.\", false, options);\n }\n\n Object.defineProperty(object, deprecatedKey, {\n configurable: true,\n enumerable: false,\n\n set(value) {\n _deprecate();\n\n (0, _property_set.set)(this, newKey, value);\n },\n\n get() {\n _deprecate();\n\n return (0, _property_get.get)(this, newKey);\n }\n\n });\n }\n});","enifed(\"@ember/-internals/metal/lib/descriptor_map\", [\"exports\", \"@ember/-internals/meta\", \"@ember/debug\"], function (_exports, _meta2, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.descriptorForProperty = descriptorForProperty;\n _exports.descriptorForDecorator = descriptorForDecorator;\n _exports.isClassicDecorator = isClassicDecorator;\n _exports.setClassicDecorator = setClassicDecorator;\n const DECORATOR_DESCRIPTOR_MAP = new WeakMap();\n /**\n Returns the CP descriptor assocaited with `obj` and `keyName`, if any.\n \n @method descriptorForProperty\n @param {Object} obj the object to check\n @param {String} keyName the key to check\n @return {Descriptor}\n @private\n */\n\n function descriptorForProperty(obj, keyName, _meta) {\n (0, _debug.assert)('Cannot call `descriptorForProperty` on null', obj !== null);\n (0, _debug.assert)('Cannot call `descriptorForProperty` on undefined', obj !== undefined);\n (0, _debug.assert)(\"Cannot call `descriptorForProperty` on \" + typeof obj, typeof obj === 'object' || typeof obj === 'function');\n let meta = _meta === undefined ? (0, _meta2.peekMeta)(obj) : _meta;\n\n if (meta !== null) {\n return meta.peekDescriptors(keyName);\n }\n }\n\n function descriptorForDecorator(dec) {\n return DECORATOR_DESCRIPTOR_MAP.get(dec);\n }\n /**\n Check whether a value is a decorator\n \n @method isClassicDecorator\n @param {any} possibleDesc the value to check\n @return {boolean}\n @private\n */\n\n\n function isClassicDecorator(dec) {\n return dec !== null && dec !== undefined && DECORATOR_DESCRIPTOR_MAP.has(dec);\n }\n /**\n Set a value as a decorator\n \n @method setClassicDecorator\n @param {function} decorator the value to mark as a decorator\n @private\n */\n\n\n function setClassicDecorator(dec, value = true) {\n DECORATOR_DESCRIPTOR_MAP.set(dec, value);\n }\n});","enifed(\"@ember/-internals/metal/lib/each_proxy\", [\"exports\", \"@ember/-internals/meta\", \"@ember/debug\", \"@ember/-internals/metal/lib/array\", \"@ember/-internals/metal/lib/each_proxy_events\", \"@ember/-internals/metal/lib/observer\", \"@ember/-internals/metal/lib/property_events\"], function (_exports, _meta, _debug, _array, _each_proxy_events, _observer, _property_events) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.eachProxyFor = eachProxyFor;\n\n function eachProxyFor(array) {\n let eachProxy = _each_proxy_events.EACH_PROXIES.get(array);\n\n if (eachProxy === undefined) {\n eachProxy = new EachProxy(array);\n\n _each_proxy_events.EACH_PROXIES.set(array, eachProxy);\n }\n\n return eachProxy;\n }\n\n class EachProxy {\n constructor(content) {\n this._content = content;\n this._keys = undefined;\n (0, _meta.meta)(this);\n } // ..........................................................\n // ARRAY CHANGES\n // Invokes whenever the content array itself changes.\n\n\n arrayWillChange(content, idx, removedCnt\n /*, addedCnt */\n ) {\n // eslint-disable-line no-unused-vars\n let keys = this._keys;\n\n if (!keys) {\n return;\n }\n\n let lim = removedCnt > 0 ? idx + removedCnt : -1;\n\n if (lim > 0) {\n for (let key in keys) {\n removeObserverForContentKey(content, key, this, idx, lim);\n }\n }\n }\n\n arrayDidChange(content, idx, _removedCnt, addedCnt) {\n let keys = this._keys;\n\n if (!keys) {\n return;\n }\n\n let lim = addedCnt > 0 ? idx + addedCnt : -1;\n let meta = (0, _meta.peekMeta)(this);\n\n for (let key in keys) {\n if (lim > 0) {\n addObserverForContentKey(content, key, this, idx, lim);\n }\n\n (0, _property_events.notifyPropertyChange)(this, key, meta);\n }\n } // ..........................................................\n // LISTEN FOR NEW OBSERVERS AND OTHER EVENT LISTENERS\n // Start monitoring keys based on who is listening...\n\n\n willWatchProperty(property) {\n this.beginObservingContentKey(property);\n }\n\n didUnwatchProperty(property) {\n this.stopObservingContentKey(property);\n } // ..........................................................\n // CONTENT KEY OBSERVING\n // Actual watch keys on the source content.\n\n\n beginObservingContentKey(keyName) {\n let keys = this._keys;\n\n if (keys === undefined) {\n keys = this._keys = Object.create(null);\n }\n\n if (!keys[keyName]) {\n keys[keyName] = 1;\n let content = this._content;\n let len = content.length;\n addObserverForContentKey(content, keyName, this, 0, len);\n } else {\n keys[keyName]++;\n }\n }\n\n stopObservingContentKey(keyName) {\n let keys = this._keys;\n\n if (keys !== undefined && keys[keyName] > 0 && --keys[keyName] <= 0) {\n let content = this._content;\n let len = content.length;\n removeObserverForContentKey(content, keyName, this, 0, len);\n }\n }\n\n contentKeyDidChange(_obj, keyName) {\n (0, _property_events.notifyPropertyChange)(this, keyName);\n }\n\n }\n\n function addObserverForContentKey(content, keyName, proxy, idx, loc) {\n while (--loc >= idx) {\n let item = (0, _array.objectAt)(content, loc);\n\n if (item) {\n (0, _debug.assert)(\"When using @each to observe the array `\" + content.toString() + \"`, the array must return an object\", typeof item === 'object');\n (0, _observer.addObserver)(item, keyName, proxy, 'contentKeyDidChange');\n }\n }\n }\n\n function removeObserverForContentKey(content, keyName, proxy, idx, loc) {\n while (--loc >= idx) {\n let item = (0, _array.objectAt)(content, loc);\n\n if (item) {\n (0, _observer.removeObserver)(item, keyName, proxy, 'contentKeyDidChange');\n }\n }\n }\n});","enifed(\"@ember/-internals/metal/lib/each_proxy_events\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.eachProxyArrayWillChange = eachProxyArrayWillChange;\n _exports.eachProxyArrayDidChange = eachProxyArrayDidChange;\n _exports.EACH_PROXIES = void 0;\n const EACH_PROXIES = new WeakMap();\n _exports.EACH_PROXIES = EACH_PROXIES;\n\n function eachProxyArrayWillChange(array, idx, removedCnt, addedCnt) {\n let eachProxy = EACH_PROXIES.get(array);\n\n if (eachProxy !== undefined) {\n eachProxy.arrayWillChange(array, idx, removedCnt, addedCnt);\n }\n }\n\n function eachProxyArrayDidChange(array, idx, removedCnt, addedCnt) {\n let eachProxy = EACH_PROXIES.get(array);\n\n if (eachProxy !== undefined) {\n eachProxy.arrayDidChange(array, idx, removedCnt, addedCnt);\n }\n }\n});","enifed(\"@ember/-internals/metal/lib/events\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/utils\", \"@ember/debug\"], function (_exports, _meta2, _utils, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.addListener = addListener;\n _exports.removeListener = removeListener;\n _exports.sendEvent = sendEvent;\n _exports.hasListeners = hasListeners;\n _exports.on = on;\n\n /**\n @module @ember/object\n */\n\n /*\n The event system uses a series of nested hashes to store listeners on an\n object. When a listener is registered, or when an event arrives, these\n hashes are consulted to determine which target and action pair to invoke.\n \n The hashes are stored in the object's meta hash, and look like this:\n \n // Object's meta hash\n {\n listeners: { // variable name: `listenerSet`\n \"foo:change\": [ // variable name: `actions`\n target, method, once\n ]\n }\n }\n \n */\n\n /**\n Add an event listener\n \n @method addListener\n @static\n @for @ember/object/events\n @param obj\n @param {String} eventName\n @param {Object|Function} target A target object or a function\n @param {Function|String} method A function or the name of a function to be called on `target`\n @param {Boolean} once A flag whether a function should only be called once\n @public\n */\n function addListener(obj, eventName, target, method, once) {\n (0, _debug.assert)('You must pass at least an object and event name to addListener', Boolean(obj) && Boolean(eventName));\n\n if (!method && 'function' === typeof target) {\n method = target;\n target = null;\n }\n\n (0, _meta2.meta)(obj).addToListeners(eventName, target, method, once === true);\n }\n /**\n Remove an event listener\n \n Arguments should match those passed to `addListener`.\n \n @method removeListener\n @static\n @for @ember/object/events\n @param obj\n @param {String} eventName\n @param {Object|Function} target A target object or a function\n @param {Function|String} method A function or the name of a function to be called on `target`\n @public\n */\n\n\n function removeListener(obj, eventName, target, method) {\n (0, _debug.assert)('You must pass at least an object and event name to removeListener', Boolean(obj) && Boolean(eventName));\n\n if (!method && 'function' === typeof target) {\n method = target;\n target = null;\n }\n\n let m = (0, _meta2.meta)(obj);\n\n if (method === undefined) {\n m.removeAllListeners(eventName);\n } else {\n m.removeFromListeners(eventName, target, method);\n }\n }\n /**\n Send an event. The execution of suspended listeners\n is skipped, and once listeners are removed. A listener without\n a target is executed on the passed object. If an array of actions\n is not passed, the actions stored on the passed object are invoked.\n \n @method sendEvent\n @static\n @for @ember/object/events\n @param obj\n @param {String} eventName\n @param {Array} params Optional parameters for each listener.\n @return {Boolean} if the event was delivered to one or more actions\n @public\n */\n\n\n function sendEvent(obj, eventName, params, actions, _meta) {\n if (actions === undefined) {\n let meta = _meta === undefined ? (0, _meta2.peekMeta)(obj) : _meta;\n actions = typeof meta === 'object' && meta !== null ? meta.matchingListeners(eventName) : undefined;\n }\n\n if (actions === undefined || actions.length === 0) {\n return false;\n }\n\n for (let i = actions.length - 3; i >= 0; i -= 3) {\n // looping in reverse for once listeners\n let target = actions[i];\n let method = actions[i + 1];\n let once = actions[i + 2];\n\n if (!method) {\n continue;\n }\n\n if (once) {\n removeListener(obj, eventName, target, method);\n }\n\n if (!target) {\n target = obj;\n }\n\n if ('string' === typeof method) {\n method = target[method];\n }\n\n method.apply(target, params);\n }\n\n return true;\n }\n /**\n @private\n @method hasListeners\n @static\n @for @ember/object/events\n @param obj\n @param {String} eventName\n @return {Boolean} if `obj` has listeners for event `eventName`\n */\n\n\n function hasListeners(obj, eventName) {\n let meta = (0, _meta2.peekMeta)(obj);\n\n if (meta === null) {\n return false;\n }\n\n let matched = meta.matchingListeners(eventName);\n return matched !== undefined && matched.length > 0;\n }\n /**\n Define a property as a function that should be executed when\n a specified event or events are triggered.\n \n ``` javascript\n import EmberObject from '@ember/object';\n import { on } from '@ember/object/evented';\n import { sendEvent } from '@ember/object/events';\n \n let Job = EmberObject.extend({\n logCompleted: on('completed', function() {\n console.log('Job completed!');\n })\n });\n \n let job = Job.create();\n \n sendEvent(job, 'completed'); // Logs 'Job completed!'\n ```\n \n @method on\n @static\n @for @ember/object/evented\n @param {String} eventNames*\n @param {Function} func\n @return {Function} the listener function, passed as last argument to on(...)\n @public\n */\n\n\n function on(...args) {\n let func = args.pop();\n let events = args;\n (0, _debug.assert)('on expects function as last argument', typeof func === 'function');\n (0, _debug.assert)('on called without valid event names', events.length > 0 && events.every(p => typeof p === 'string' && p.length > 0));\n (0, _utils.setListeners)(func, events);\n return func;\n }\n});","enifed(\"@ember/-internals/metal/lib/expand_properties\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = expandProperties;\n\n /**\n @module @ember/object\n */\n const END_WITH_EACH_REGEX = /\\.@each$/;\n /**\n Expands `pattern`, invoking `callback` for each expansion.\n \n The only pattern supported is brace-expansion, anything else will be passed\n once to `callback` directly.\n \n Example\n \n ```js\n import { expandProperties } from '@ember/object/computed';\n \n function echo(arg){ console.log(arg); }\n \n expandProperties('foo.bar', echo); //=> 'foo.bar'\n expandProperties('{foo,bar}', echo); //=> 'foo', 'bar'\n expandProperties('foo.{bar,baz}', echo); //=> 'foo.bar', 'foo.baz'\n expandProperties('{foo,bar}.baz', echo); //=> 'foo.baz', 'bar.baz'\n expandProperties('foo.{bar,baz}.[]', echo) //=> 'foo.bar.[]', 'foo.baz.[]'\n expandProperties('{foo,bar}.{spam,eggs}', echo) //=> 'foo.spam', 'foo.eggs', 'bar.spam', 'bar.eggs'\n expandProperties('{foo}.bar.{baz}') //=> 'foo.bar.baz'\n ```\n \n @method expandProperties\n @static\n @for @ember/object/computed\n @public\n @param {String} pattern The property pattern to expand.\n @param {Function} callback The callback to invoke. It is invoked once per\n expansion, and is passed the expansion.\n */\n\n function expandProperties(pattern, callback) {\n (0, _debug.assert)(\"A computed property key must be a string, you passed \" + typeof pattern + \" \" + pattern, typeof pattern === 'string');\n (0, _debug.assert)('Brace expanded properties cannot contain spaces, e.g. \"user.{firstName, lastName}\" should be \"user.{firstName,lastName}\"', pattern.indexOf(' ') === -1); // regex to look for double open, double close, or unclosed braces\n\n (0, _debug.assert)(\"Brace expanded properties have to be balanced and cannot be nested, pattern: \" + pattern, pattern.match(/\\{[^}{]*\\{|\\}[^}{]*\\}|\\{[^}]*$/g) === null);\n let start = pattern.indexOf('{');\n\n if (start < 0) {\n callback(pattern.replace(END_WITH_EACH_REGEX, '.[]'));\n } else {\n dive('', pattern, start, callback);\n }\n }\n\n function dive(prefix, pattern, start, callback) {\n let end = pattern.indexOf('}'),\n i = 0,\n newStart,\n arrayLength;\n let tempArr = pattern.substring(start + 1, end).split(',');\n let after = pattern.substring(end + 1);\n prefix = prefix + pattern.substring(0, start);\n arrayLength = tempArr.length;\n\n while (i < arrayLength) {\n newStart = after.indexOf('{');\n\n if (newStart < 0) {\n callback((prefix + tempArr[i++] + after).replace(END_WITH_EACH_REGEX, '.[]'));\n } else {\n dive(prefix + tempArr[i++], after, newStart, callback);\n }\n }\n }\n});","enifed(\"@ember/-internals/metal/lib/get_properties\", [\"exports\", \"@ember/-internals/metal/lib/property_get\"], function (_exports, _property_get) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = getProperties;\n\n /**\n @module @ember/object\n */\n\n /**\n To get multiple properties at once, call `getProperties`\n with an object followed by a list of strings or an array:\n \n ```javascript\n import { getProperties } from '@ember/object';\n \n getProperties(record, 'firstName', 'lastName', 'zipCode');\n // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n ```\n \n is equivalent to:\n \n ```javascript\n import { getProperties } from '@ember/object';\n \n getProperties(record, ['firstName', 'lastName', 'zipCode']);\n // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n ```\n \n @method getProperties\n @static\n @for @ember/object\n @param {Object} obj\n @param {String...|Array} list of keys to get\n @return {Object}\n @public\n */\n function getProperties(obj, keys) {\n let ret = {};\n let propertyNames = arguments;\n let i = 1;\n\n if (arguments.length === 2 && Array.isArray(keys)) {\n i = 0;\n propertyNames = arguments[1];\n }\n\n for (; i < propertyNames.length; i++) {\n ret[propertyNames[i]] = (0, _property_get.get)(obj, propertyNames[i]);\n }\n\n return ret;\n }\n});","enifed(\"@ember/-internals/metal/lib/injected_property\", [\"exports\", \"@ember/-internals/owner\", \"@ember/canary-features\", \"@ember/debug\", \"@glimmer/env\", \"@ember/-internals/metal/lib/computed\", \"@ember/-internals/metal/lib/decorator\", \"@ember/-internals/metal/lib/properties\"], function (_exports, _owner, _canaryFeatures, _debug, _env, _computed, _decorator, _properties) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = inject;\n _exports.DEBUG_INJECTION_FUNCTIONS = void 0;\n let DEBUG_INJECTION_FUNCTIONS;\n _exports.DEBUG_INJECTION_FUNCTIONS = DEBUG_INJECTION_FUNCTIONS;\n\n if (_env.DEBUG) {\n _exports.DEBUG_INJECTION_FUNCTIONS = DEBUG_INJECTION_FUNCTIONS = new WeakMap();\n }\n\n function inject(type, ...args) {\n (0, _debug.assert)('a string type must be provided to inject', typeof type === 'string');\n let calledAsDecorator = (0, _decorator.isElementDescriptor)(args);\n let source, namespace;\n let name = calledAsDecorator ? undefined : args[0];\n let options = calledAsDecorator ? undefined : args[1];\n\n if (_canaryFeatures.EMBER_MODULE_UNIFICATION) {\n source = options ? options.source : undefined;\n namespace = undefined;\n\n if (name !== undefined) {\n let namespaceDelimiterOffset = name.indexOf('::');\n\n if (namespaceDelimiterOffset !== -1) {\n namespace = name.slice(0, namespaceDelimiterOffset);\n name = name.slice(namespaceDelimiterOffset + 2);\n }\n }\n }\n\n let getInjection = function (propertyName) {\n let owner = (0, _owner.getOwner)(this) || this.container; // fallback to `container` for backwards compat\n\n (0, _debug.assert)(\"Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.\", Boolean(owner));\n return owner.lookup(type + \":\" + (name || propertyName), {\n source,\n namespace\n });\n };\n\n if (_env.DEBUG) {\n DEBUG_INJECTION_FUNCTIONS.set(getInjection, {\n namespace,\n source,\n type,\n name\n });\n }\n\n let decorator = (0, _computed.computed)({\n get: getInjection,\n\n set(keyName, value) {\n (0, _properties.defineProperty)(this, keyName, null, value);\n }\n\n });\n\n if (calledAsDecorator) {\n (0, _debug.assert)('Native decorators are not enabled without the EMBER_NATIVE_DECORATOR_SUPPORT flag. If you are using inject in a classic class, add parenthesis to it: inject()', Boolean(_canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT));\n return decorator(args[0], args[1], args[2]);\n } else {\n return decorator;\n }\n }\n});","enifed(\"@ember/-internals/metal/lib/is_blank\", [\"exports\", \"@ember/-internals/metal/lib/is_empty\"], function (_exports, _is_empty) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = isBlank;\n\n /**\n @module @ember/utils\n */\n\n /**\n A value is blank if it is empty or a whitespace string.\n \n ```javascript\n import { isBlank } from '@ember/utils';\n \n isBlank(); // true\n isBlank(null); // true\n isBlank(undefined); // true\n isBlank(''); // true\n isBlank([]); // true\n isBlank('\\n\\t'); // true\n isBlank(' '); // true\n isBlank({}); // false\n isBlank('\\n\\t Hello'); // false\n isBlank('Hello world'); // false\n isBlank([1,2,3]); // false\n ```\n \n @method isBlank\n @static\n @for @ember/utils\n @param {Object} obj Value to test\n @return {Boolean}\n @since 1.5.0\n @public\n */\n function isBlank(obj) {\n return (0, _is_empty.default)(obj) || typeof obj === 'string' && /\\S/.test(obj) === false;\n }\n});","enifed(\"@ember/-internals/metal/lib/is_empty\", [\"exports\", \"@ember/-internals/metal/lib/property_get\"], function (_exports, _property_get) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = isEmpty;\n\n /**\n @module @ember/utils\n */\n\n /**\n Verifies that a value is `null` or `undefined`, an empty string, or an empty\n array.\n \n Constrains the rules on `isNone` by returning true for empty strings and\n empty arrays.\n \n If the value is an object with a `size` property of type number, it is used\n to check emptiness.\n \n ```javascript\n isEmpty(); // true\n isEmpty(null); // true\n isEmpty(undefined); // true\n isEmpty(''); // true\n isEmpty([]); // true\n isEmpty({ size: 0}); // true\n isEmpty({}); // false\n isEmpty('Adam Hawkins'); // false\n isEmpty([0,1,2]); // false\n isEmpty('\\n\\t'); // false\n isEmpty(' '); // false\n isEmpty({ size: 1 }) // false\n isEmpty({ size: () => 0 }) // false\n ```\n \n @method isEmpty\n @static\n @for @ember/utils\n @param {Object} obj Value to test\n @return {Boolean}\n @public\n */\n function isEmpty(obj) {\n let none = obj === null || obj === undefined;\n\n if (none) {\n return none;\n }\n\n if (typeof obj.size === 'number') {\n return !obj.size;\n }\n\n let objectType = typeof obj;\n\n if (objectType === 'object') {\n let size = (0, _property_get.get)(obj, 'size');\n\n if (typeof size === 'number') {\n return !size;\n }\n }\n\n if (typeof obj.length === 'number' && objectType !== 'function') {\n return !obj.length;\n }\n\n if (objectType === 'object') {\n let length = (0, _property_get.get)(obj, 'length');\n\n if (typeof length === 'number') {\n return !length;\n }\n }\n\n return false;\n }\n});","enifed(\"@ember/-internals/metal/lib/is_none\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = isNone;\n\n /**\n @module @ember/utils\n */\n\n /**\n Returns true if the passed value is null or undefined. This avoids errors\n from JSLint complaining about use of ==, which can be technically\n confusing.\n \n ```javascript\n isNone(); // true\n isNone(null); // true\n isNone(undefined); // true\n isNone(''); // false\n isNone([]); // false\n isNone(function() {}); // false\n ```\n \n @method isNone\n @static\n @for @ember/utils\n @param {Object} obj Value to test\n @return {Boolean}\n @public\n */\n function isNone(obj) {\n return obj === null || obj === undefined;\n }\n});","enifed(\"@ember/-internals/metal/lib/is_present\", [\"exports\", \"@ember/-internals/metal/lib/is_blank\"], function (_exports, _is_blank) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = isPresent;\n\n /**\n @module @ember/utils\n */\n\n /**\n A value is present if it not `isBlank`.\n \n ```javascript\n isPresent(); // false\n isPresent(null); // false\n isPresent(undefined); // false\n isPresent(''); // false\n isPresent(' '); // false\n isPresent('\\n\\t'); // false\n isPresent([]); // false\n isPresent({ length: 0 }); // false\n isPresent(false); // true\n isPresent(true); // true\n isPresent('string'); // true\n isPresent(0); // true\n isPresent(function() {}); // true\n isPresent({}); // true\n isPresent('\\n\\t Hello'); // true\n isPresent([1, 2, 3]); // true\n ```\n \n @method isPresent\n @static\n @for @ember/utils\n @param {Object} obj Value to test\n @return {Boolean}\n @since 1.8.0\n @public\n */\n function isPresent(obj) {\n return !(0, _is_blank.default)(obj);\n }\n});","enifed(\"@ember/-internals/metal/lib/libraries\", [\"exports\", \"@ember/canary-features\", \"@ember/debug\", \"@glimmer/env\", \"ember/version\", \"@ember/-internals/metal/lib/property_get\"], function (_exports, _canaryFeatures, _debug, _env, _version, _property_get) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = _exports.Libraries = void 0;\n\n /**\n @module ember\n */\n\n /**\n Helper class that allows you to register your library with Ember.\n \n Singleton created at `Ember.libraries`.\n \n @class Libraries\n @constructor\n @private\n */\n class Libraries {\n constructor() {\n this._registry = [];\n this._coreLibIndex = 0;\n }\n\n _getLibraryByName(name) {\n let libs = this._registry;\n let count = libs.length;\n\n for (let i = 0; i < count; i++) {\n if (libs[i].name === name) {\n return libs[i];\n }\n }\n\n return undefined;\n }\n\n register(name, version, isCoreLibrary) {\n let index = this._registry.length;\n\n if (!this._getLibraryByName(name)) {\n if (isCoreLibrary) {\n index = this._coreLibIndex++;\n }\n\n this._registry.splice(index, 0, {\n name,\n version\n });\n } else {\n (0, _debug.warn)(\"Library \\\"\" + name + \"\\\" is already registered with Ember.\", false, {\n id: 'ember-metal.libraries-register'\n });\n }\n }\n\n registerCoreLibrary(name, version) {\n this.register(name, version, true);\n }\n\n deRegister(name) {\n let lib = this._getLibraryByName(name);\n\n let index;\n\n if (lib) {\n index = this._registry.indexOf(lib);\n\n this._registry.splice(index, 1);\n }\n }\n\n }\n\n _exports.Libraries = Libraries;\n\n if (_canaryFeatures.EMBER_LIBRARIES_ISREGISTERED) {\n Libraries.prototype.isRegistered = function (name) {\n return Boolean(this._getLibraryByName(name));\n };\n }\n\n if (_env.DEBUG) {\n Libraries.prototype.logVersions = function () {\n let libs = this._registry;\n let nameLengths = libs.map(item => (0, _property_get.get)(item, 'name.length'));\n let maxNameLength = Math.max.apply(null, nameLengths);\n (0, _debug.debug)('-------------------------------');\n\n for (let i = 0; i < libs.length; i++) {\n let lib = libs[i];\n let spaces = new Array(maxNameLength - lib.name.length + 1).join(' ');\n (0, _debug.debug)([lib.name, spaces, ' : ', lib.version].join(''));\n }\n\n (0, _debug.debug)('-------------------------------');\n };\n }\n\n const LIBRARIES = new Libraries();\n LIBRARIES.registerCoreLibrary('Ember', _version.default);\n var _default = LIBRARIES;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/metal/lib/mixin\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/utils\", \"@ember/debug\", \"@ember/deprecated-features\", \"@ember/polyfills\", \"@glimmer/env\", \"@ember/-internals/metal/lib/computed\", \"@ember/-internals/metal/lib/decorator\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/events\", \"@ember/-internals/metal/lib/expand_properties\", \"@ember/-internals/metal/lib/namespace_search\", \"@ember/-internals/metal/lib/observer\", \"@ember/-internals/metal/lib/properties\"], function (_exports, _meta, _utils, _debug, _deprecatedFeatures, _polyfills, _env, _computed, _decorator, _descriptor_map, _events, _expand_properties, _namespace_search, _observer, _properties) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.applyMixin = applyMixin;\n _exports.mixin = mixin;\n _exports.observer = observer;\n _exports.aliasMethod = _exports.Mixin = _exports.default = void 0;\n\n /**\n @module @ember/object\n */\n const a_concat = Array.prototype.concat;\n const {\n isArray\n } = Array;\n\n function isMethod(obj) {\n return 'function' === typeof obj && obj.isMethod !== false && obj !== Boolean && obj !== Object && obj !== Number && obj !== Array && obj !== Date && obj !== String;\n }\n\n function isAccessor(desc) {\n return typeof desc.get === 'function' || typeof desc.set === 'function';\n }\n\n function extractAccessors(properties) {\n if (properties !== undefined) {\n let descriptors = (0, _utils.getOwnPropertyDescriptors)(properties);\n let keys = Object.keys(descriptors);\n let hasAccessors = keys.some(key => isAccessor(descriptors[key]));\n\n if (hasAccessors) {\n let extracted = {};\n keys.forEach(key => {\n let descriptor = descriptors[key];\n\n if (isAccessor(descriptor)) {\n extracted[key] = (0, _decorator.nativeDescDecorator)(descriptor);\n } else {\n extracted[key] = properties[key];\n }\n });\n return extracted;\n }\n }\n\n return properties;\n }\n\n const CONTINUE = {};\n\n function mixinProperties(mixinsMeta, mixin) {\n if (mixin instanceof Mixin) {\n if (mixinsMeta.hasMixin(mixin)) {\n return CONTINUE;\n }\n\n mixinsMeta.addMixin(mixin);\n return mixin.properties;\n } else {\n return mixin; // apply anonymous mixin properties\n }\n }\n\n function concatenatedMixinProperties(concatProp, props, values, base) {\n // reset before adding each new mixin to pickup concats from previous\n let concats = values[concatProp] || base[concatProp];\n\n if (props[concatProp]) {\n concats = concats ? a_concat.call(concats, props[concatProp]) : props[concatProp];\n }\n\n return concats;\n }\n\n function giveDecoratorSuper(meta, key, decorator, values, descs, base) {\n let property = (0, _descriptor_map.descriptorForDecorator)(decorator);\n let superProperty;\n\n if (!(property instanceof _computed.ComputedProperty) || property._getter === undefined) {\n return decorator;\n } // Computed properties override methods, and do not call super to them\n\n\n if (values[key] === undefined) {\n // Find the original descriptor in a parent mixin\n superProperty = (0, _descriptor_map.descriptorForDecorator)(descs[key]);\n } // If we didn't find the original descriptor in a parent mixin, find\n // it on the original object.\n\n\n if (!superProperty) {\n superProperty = (0, _descriptor_map.descriptorForProperty)(base, key, meta);\n }\n\n if (superProperty === undefined || !(superProperty instanceof _computed.ComputedProperty)) {\n return decorator;\n }\n\n let get = (0, _utils.wrap)(property._getter, superProperty._getter);\n let set;\n\n if (superProperty._setter) {\n if (property._setter) {\n set = (0, _utils.wrap)(property._setter, superProperty._setter);\n } else {\n // If the super property has a setter, we default to using it no matter what.\n // This is clearly very broken and weird, but it's what was here so we have\n // to keep it until the next major at least.\n //\n // TODO: Add a deprecation here.\n set = superProperty._setter;\n }\n } else {\n set = property._setter;\n } // only create a new CP if we must\n\n\n if (get !== property._getter || set !== property._setter) {\n // Since multiple mixins may inherit from the same parent, we need\n // to clone the computed property so that other mixins do not receive\n // the wrapped version.\n let newProperty = Object.create(property);\n newProperty._getter = get;\n newProperty._setter = set;\n return (0, _decorator.makeComputedDecorator)(newProperty, _computed.ComputedProperty);\n }\n\n return decorator;\n }\n\n function giveMethodSuper(obj, key, method, values, descs) {\n // Methods overwrite computed properties, and do not call super to them.\n if (descs[key] !== undefined) {\n return method;\n } // Find the original method in a parent mixin\n\n\n let superMethod = values[key]; // If we didn't find the original value in a parent mixin, find it in\n // the original object\n\n if (superMethod === undefined && (0, _descriptor_map.descriptorForProperty)(obj, key) === undefined) {\n superMethod = obj[key];\n } // Only wrap the new method if the original method was a function\n\n\n if (typeof superMethod === 'function') {\n return (0, _utils.wrap)(method, superMethod);\n }\n\n return method;\n }\n\n function applyConcatenatedProperties(obj, key, value, values) {\n let baseValue = values[key] || obj[key];\n let ret = (0, _utils.makeArray)(baseValue).concat((0, _utils.makeArray)(value));\n\n if (_env.DEBUG) {\n // it is possible to use concatenatedProperties with strings (which cannot be frozen)\n // only freeze objects...\n if (typeof ret === 'object' && ret !== null) {\n // prevent mutating `concatenatedProperties` array after it is applied\n Object.freeze(ret);\n }\n }\n\n return ret;\n }\n\n function applyMergedProperties(obj, key, value, values) {\n let baseValue = values[key] || obj[key];\n (0, _debug.assert)(\"You passed in `\" + JSON.stringify(value) + \"` as the value for `\" + key + \"` but `\" + key + \"` cannot be an Array\", !isArray(value));\n\n if (!baseValue) {\n return value;\n }\n\n let newBase = (0, _polyfills.assign)({}, baseValue);\n let hasFunction = false;\n\n for (let prop in value) {\n if (!value.hasOwnProperty(prop)) {\n continue;\n }\n\n let propValue = value[prop];\n\n if (isMethod(propValue)) {\n // TODO: support for Computed Properties, etc?\n hasFunction = true;\n newBase[prop] = giveMethodSuper(obj, prop, propValue, baseValue, {});\n } else {\n newBase[prop] = propValue;\n }\n }\n\n if (hasFunction) {\n newBase._super = _utils.ROOT;\n }\n\n return newBase;\n }\n\n function addNormalizedProperty(base, key, value, meta, descs, values, concats, mergings) {\n if ((0, _descriptor_map.isClassicDecorator)(value)) {\n // Wrap descriptor function to implement _super() if needed\n descs[key] = giveDecoratorSuper(meta, key, value, values, descs, base);\n values[key] = undefined;\n } else {\n if (concats && concats.indexOf(key) >= 0 || key === 'concatenatedProperties' || key === 'mergedProperties') {\n value = applyConcatenatedProperties(base, key, value, values);\n } else if (mergings && mergings.indexOf(key) > -1) {\n value = applyMergedProperties(base, key, value, values);\n } else if (isMethod(value)) {\n value = giveMethodSuper(base, key, value, values, descs);\n }\n\n descs[key] = undefined;\n values[key] = value;\n }\n }\n\n function mergeMixins(mixins, meta, descs, values, base, keys) {\n let currentMixin, props, key, concats, mergings;\n\n function removeKeys(keyName) {\n delete descs[keyName];\n delete values[keyName];\n }\n\n for (let i = 0; i < mixins.length; i++) {\n currentMixin = mixins[i];\n (0, _debug.assert)(\"Expected hash or Mixin instance, got \" + Object.prototype.toString.call(currentMixin), typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');\n props = mixinProperties(meta, currentMixin);\n\n if (props === CONTINUE) {\n continue;\n }\n\n if (props) {\n // remove willMergeMixin after 3.4 as it was used for _actions\n if (base.willMergeMixin) {\n base.willMergeMixin(props);\n }\n\n concats = concatenatedMixinProperties('concatenatedProperties', props, values, base);\n mergings = concatenatedMixinProperties('mergedProperties', props, values, base);\n\n for (key in props) {\n if (!props.hasOwnProperty(key)) {\n continue;\n }\n\n keys.push(key);\n addNormalizedProperty(base, key, props[key], meta, descs, values, concats, mergings);\n } // manually copy toString() because some JS engines do not enumerate it\n\n\n if (props.hasOwnProperty('toString')) {\n base.toString = props.toString;\n }\n } else if (currentMixin.mixins) {\n mergeMixins(currentMixin.mixins, meta, descs, values, base, keys);\n\n if (currentMixin._without) {\n currentMixin._without.forEach(removeKeys);\n }\n }\n }\n }\n\n let followMethodAlias;\n\n if (_deprecatedFeatures.ALIAS_METHOD) {\n followMethodAlias = function (obj, alias, descs, values) {\n let altKey = alias.methodName;\n let possibleDesc;\n let desc = descs[altKey];\n let value = values[altKey];\n\n if (desc !== undefined || value !== undefined) {// do nothing\n } else if ((possibleDesc = (0, _descriptor_map.descriptorForProperty)(obj, altKey)) !== undefined) {\n desc = possibleDesc;\n value = undefined;\n } else {\n desc = undefined;\n value = obj[altKey];\n }\n\n return {\n desc,\n value\n };\n };\n }\n\n function updateObserversAndListeners(obj, key, paths, updateMethod) {\n if (paths) {\n for (let i = 0; i < paths.length; i++) {\n updateMethod(obj, paths[i], null, key);\n }\n }\n }\n\n function replaceObserversAndListeners(obj, key, prev, next) {\n if (typeof prev === 'function') {\n updateObserversAndListeners(obj, key, (0, _utils.getObservers)(prev), _observer.removeObserver);\n updateObserversAndListeners(obj, key, (0, _utils.getListeners)(prev), _events.removeListener);\n }\n\n if (typeof next === 'function') {\n updateObserversAndListeners(obj, key, (0, _utils.getObservers)(next), _observer.addObserver);\n updateObserversAndListeners(obj, key, (0, _utils.getListeners)(next), _events.addListener);\n }\n }\n\n function applyMixin(obj, mixins) {\n let descs = {};\n let values = {};\n let meta = (0, _meta.meta)(obj);\n let keys = [];\n let key, value, desc;\n obj._super = _utils.ROOT; // Go through all mixins and hashes passed in, and:\n //\n // * Handle concatenated properties\n // * Handle merged properties\n // * Set up _super wrapping if necessary\n // * Set up computed property descriptors\n // * Copying `toString` in broken browsers\n\n mergeMixins(mixins, meta, descs, values, obj, keys);\n\n for (let i = 0; i < keys.length; i++) {\n key = keys[i];\n\n if (key === 'constructor' || !values.hasOwnProperty(key)) {\n continue;\n }\n\n desc = descs[key];\n value = values[key];\n\n if (_deprecatedFeatures.ALIAS_METHOD) {\n while (value && value instanceof AliasImpl) {\n let followed = followMethodAlias(obj, value, descs, values);\n desc = followed.desc;\n value = followed.value;\n }\n }\n\n if (desc === undefined && value === undefined) {\n continue;\n }\n\n if ((0, _descriptor_map.descriptorForProperty)(obj, key) !== undefined) {\n replaceObserversAndListeners(obj, key, null, value);\n } else {\n replaceObserversAndListeners(obj, key, obj[key], value);\n }\n\n (0, _properties.defineProperty)(obj, key, desc, value, meta);\n }\n\n return obj;\n }\n /**\n @method mixin\n @param obj\n @param mixins*\n @return obj\n @private\n */\n\n\n function mixin(obj, ...args) {\n applyMixin(obj, args);\n return obj;\n }\n /**\n The `Mixin` class allows you to create mixins, whose properties can be\n added to other classes. For instance,\n \n ```javascript\n import Mixin from '@ember/object/mixin';\n \n const EditableMixin = Mixin.create({\n edit() {\n console.log('starting to edit');\n this.set('isEditing', true);\n },\n isEditing: false\n });\n ```\n \n ```javascript\n import EmberObject from '@ember/object';\n import EditableMixin from '../mixins/editable';\n \n // Mix mixins into classes by passing them as the first arguments to\n // `.extend.`\n const Comment = EmberObject.extend(EditableMixin, {\n post: null\n });\n \n let comment = Comment.create({\n post: somePost\n });\n \n comment.edit(); // outputs 'starting to edit'\n ```\n \n Note that Mixins are created with `Mixin.create`, not\n `Mixin.extend`.\n \n Note that mixins extend a constructor's prototype so arrays and object literals\n defined as properties will be shared amongst objects that implement the mixin.\n If you want to define a property in a mixin that is not shared, you can define\n it either as a computed property or have it be created on initialization of the object.\n \n ```javascript\n // filters array will be shared amongst any object implementing mixin\n import Mixin from '@ember/object/mixin';\n import { A } from '@ember/array';\n \n const FilterableMixin = Mixin.create({\n filters: A()\n });\n ```\n \n ```javascript\n import Mixin from '@ember/object/mixin';\n import { A } from '@ember/array';\n import { computed } from '@ember/object';\n \n // filters will be a separate array for every object implementing the mixin\n const FilterableMixin = Mixin.create({\n filters: computed(function() {\n return A();\n })\n });\n ```\n \n ```javascript\n import Mixin from '@ember/object/mixin';\n import { A } from '@ember/array';\n \n // filters will be created as a separate array during the object's initialization\n const Filterable = Mixin.create({\n filters: null,\n \n init() {\n this._super(...arguments);\n this.set(\"filters\", A());\n }\n });\n ```\n \n @class Mixin\n @public\n */\n\n\n class Mixin {\n constructor(mixins, properties) {\n this.properties = extractAccessors(properties);\n this.mixins = buildMixinsArray(mixins);\n this.ownerConstructor = undefined;\n this._without = undefined;\n\n if (_env.DEBUG) {\n this[_utils.NAME_KEY] = undefined;\n /*\n In debug builds, we seal mixins to help avoid performance pitfalls.\n In IE11 there is a quirk that prevents sealed objects from being added\n to a WeakMap. Unfortunately, the mixin system currently relies on\n weak maps in `guidFor`, so we need to prime the guid cache weak map.\n */\n\n (0, _utils.guidFor)(this);\n Object.seal(this);\n }\n }\n /**\n @method create\n @for @ember/object/mixin\n @static\n @param arguments*\n @public\n */\n\n\n static create(...args) {\n // ES6TODO: this relies on a global state?\n (0, _namespace_search.setUnprocessedMixins)();\n let M = this;\n return new M(args, undefined);\n } // returns the mixins currently applied to the specified object\n // TODO: Make `mixin`\n\n\n static mixins(obj) {\n let meta = (0, _meta.peekMeta)(obj);\n let ret = [];\n\n if (meta === null) {\n return ret;\n }\n\n meta.forEachMixins(currentMixin => {\n // skip primitive mixins since these are always anonymous\n if (!currentMixin.properties) {\n ret.push(currentMixin);\n }\n });\n return ret;\n }\n /**\n @method reopen\n @param arguments*\n @private\n */\n\n\n reopen(...args) {\n if (args.length === 0) {\n return;\n }\n\n if (this.properties) {\n let currentMixin = new Mixin(undefined, this.properties);\n this.properties = undefined;\n this.mixins = [currentMixin];\n } else if (!this.mixins) {\n this.mixins = [];\n }\n\n this.mixins = this.mixins.concat(buildMixinsArray(args));\n return this;\n }\n /**\n @method apply\n @param obj\n @return applied object\n @private\n */\n\n\n apply(obj) {\n return applyMixin(obj, [this]);\n }\n\n applyPartial(obj) {\n return applyMixin(obj, [this]);\n }\n /**\n @method detect\n @param obj\n @return {Boolean}\n @private\n */\n\n\n detect(obj) {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n\n if (obj instanceof Mixin) {\n return _detect(obj, this);\n }\n\n let meta = (0, _meta.peekMeta)(obj);\n\n if (meta === null) {\n return false;\n }\n\n return meta.hasMixin(this);\n }\n\n without(...args) {\n let ret = new Mixin([this]);\n ret._without = args;\n return ret;\n }\n\n keys() {\n return _keys(this);\n }\n\n toString() {\n return '(unknown mixin)';\n }\n\n }\n\n _exports.Mixin = _exports.default = Mixin;\n\n function buildMixinsArray(mixins) {\n let length = mixins && mixins.length || 0;\n let m = undefined;\n\n if (length > 0) {\n m = new Array(length);\n\n for (let i = 0; i < length; i++) {\n let x = mixins[i];\n (0, _debug.assert)(\"Expected hash or Mixin instance, got \" + Object.prototype.toString.call(x), typeof x === 'object' && x !== null && Object.prototype.toString.call(x) !== '[object Array]');\n\n if (x instanceof Mixin) {\n m[i] = x;\n } else {\n m[i] = new Mixin(undefined, x);\n }\n }\n }\n\n return m;\n }\n\n Mixin.prototype.toString = _namespace_search.classToString;\n\n if (_env.DEBUG) {\n Mixin.prototype[_utils.NAME_KEY] = undefined;\n Object.seal(Mixin.prototype);\n }\n\n function _detect(curMixin, targetMixin, seen = new Set()) {\n if (seen.has(curMixin)) {\n return false;\n }\n\n seen.add(curMixin);\n\n if (curMixin === targetMixin) {\n return true;\n }\n\n let mixins = curMixin.mixins;\n\n if (mixins) {\n return mixins.some(mixin => _detect(mixin, targetMixin, seen));\n }\n\n return false;\n }\n\n function _keys(mixin, ret = new Set(), seen = new Set()) {\n if (seen.has(mixin)) {\n return;\n }\n\n seen.add(mixin);\n\n if (mixin.properties) {\n let props = Object.keys(mixin.properties);\n\n for (let i = 0; i < props.length; i++) {\n ret.add(props[i]);\n }\n } else if (mixin.mixins) {\n mixin.mixins.forEach(x => _keys(x, ret, seen));\n }\n\n return ret;\n }\n\n let AliasImpl;\n\n if (_deprecatedFeatures.ALIAS_METHOD) {\n AliasImpl = class AliasImpl {\n constructor(methodName) {\n this.methodName = methodName;\n }\n\n };\n }\n /**\n Makes a method available via an additional name.\n \n ```app/utils/person.js\n import EmberObject, {\n aliasMethod\n } from '@ember/object';\n \n export default EmberObject.extend({\n name() {\n return 'Tomhuda Katzdale';\n },\n moniker: aliasMethod('name')\n });\n ```\n \n ```javascript\n let goodGuy = Person.create();\n \n goodGuy.name(); // 'Tomhuda Katzdale'\n goodGuy.moniker(); // 'Tomhuda Katzdale'\n ```\n \n @method aliasMethod\n @static\n @deprecated Use a shared utility method instead\n @for @ember/object\n @param {String} methodName name of the method to alias\n @public\n */\n\n\n let aliasMethod;\n _exports.aliasMethod = aliasMethod;\n\n if (_deprecatedFeatures.ALIAS_METHOD) {\n _exports.aliasMethod = aliasMethod = function aliasMethod(methodName) {\n (0, _debug.deprecate)(\"You attempted to alias '\" + methodName + \", but aliasMethod has been deprecated. Consider extracting the method into a shared utility function.\", false, {\n id: 'object.alias-method',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_object-alias-method'\n });\n return new AliasImpl(methodName);\n };\n } // ..........................................................\n // OBSERVER HELPER\n //\n\n /**\n Specify a method that observes property changes.\n \n ```javascript\n import EmberObject from '@ember/object';\n import { observer } from '@ember/object';\n \n export default EmberObject.extend({\n valueObserver: observer('value', function() {\n // Executes whenever the \"value\" property changes\n })\n });\n ```\n \n Also available as `Function.prototype.observes` if prototype extensions are\n enabled.\n \n @method observer\n @for @ember/object\n @param {String} propertyNames*\n @param {Function} func\n @return func\n @public\n @static\n */\n\n\n function observer(...args) {\n let func = args.pop();\n let _paths = args;\n (0, _debug.assert)('observer called without a function', typeof func === 'function');\n (0, _debug.assert)('observer called without valid path', _paths.length > 0 && _paths.every(p => typeof p === 'string' && Boolean(p.length)));\n let paths = [];\n\n let addWatchedProperty = path => paths.push(path);\n\n for (let i = 0; i < _paths.length; ++i) {\n (0, _expand_properties.default)(_paths[i], addWatchedProperty);\n }\n\n (0, _utils.setObservers)(func, paths);\n return func;\n }\n});","enifed(\"@ember/-internals/metal/lib/namespace_search\", [\"exports\", \"@ember/-internals/environment\", \"@ember/-internals/utils\"], function (_exports, _environment, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.addNamespace = addNamespace;\n _exports.removeNamespace = removeNamespace;\n _exports.findNamespaces = findNamespaces;\n _exports.findNamespace = findNamespace;\n _exports.processNamespace = processNamespace;\n _exports.processAllNamespaces = processAllNamespaces;\n _exports.classToString = classToString;\n _exports.isSearchDisabled = isSearchDisabled;\n _exports.setSearchDisabled = setSearchDisabled;\n _exports.setUnprocessedMixins = setUnprocessedMixins;\n _exports.NAMESPACES_BY_ID = _exports.NAMESPACES = void 0;\n // TODO, this only depends on context, otherwise it could be in utils\n // move into its own package\n // it is needed by Mixin for classToString\n // maybe move it into environment\n const hasOwnProperty = Object.prototype.hasOwnProperty;\n let searchDisabled = false;\n const flags = {\n _set: 0,\n _unprocessedNamespaces: false,\n\n get unprocessedNamespaces() {\n return this._unprocessedNamespaces;\n },\n\n set unprocessedNamespaces(v) {\n this._set++;\n this._unprocessedNamespaces = v;\n }\n\n };\n let unprocessedMixins = false;\n const NAMESPACES = [];\n _exports.NAMESPACES = NAMESPACES;\n const NAMESPACES_BY_ID = Object.create(null);\n _exports.NAMESPACES_BY_ID = NAMESPACES_BY_ID;\n\n function addNamespace(namespace) {\n flags.unprocessedNamespaces = true;\n NAMESPACES.push(namespace);\n }\n\n function removeNamespace(namespace) {\n let name = (0, _utils.getName)(namespace);\n delete NAMESPACES_BY_ID[name];\n NAMESPACES.splice(NAMESPACES.indexOf(namespace), 1);\n\n if (name in _environment.context.lookup && namespace === _environment.context.lookup[name]) {\n _environment.context.lookup[name] = undefined;\n }\n }\n\n function findNamespaces() {\n if (!flags.unprocessedNamespaces) {\n return;\n }\n\n let lookup = _environment.context.lookup;\n let keys = Object.keys(lookup);\n\n for (let i = 0; i < keys.length; i++) {\n let key = keys[i]; // Only process entities that start with uppercase A-Z\n\n if (!isUppercase(key.charCodeAt(0))) {\n continue;\n }\n\n let obj = tryIsNamespace(lookup, key);\n\n if (obj) {\n (0, _utils.setName)(obj, key);\n }\n }\n }\n\n function findNamespace(name) {\n if (!searchDisabled) {\n processAllNamespaces();\n }\n\n return NAMESPACES_BY_ID[name];\n }\n\n function processNamespace(namespace) {\n _processNamespace([namespace.toString()], namespace, new Set());\n }\n\n function processAllNamespaces() {\n let unprocessedNamespaces = flags.unprocessedNamespaces;\n\n if (unprocessedNamespaces) {\n findNamespaces();\n flags.unprocessedNamespaces = false;\n }\n\n if (unprocessedNamespaces || unprocessedMixins) {\n let namespaces = NAMESPACES;\n\n for (let i = 0; i < namespaces.length; i++) {\n processNamespace(namespaces[i]);\n }\n\n unprocessedMixins = false;\n }\n }\n\n function classToString() {\n let name = (0, _utils.getName)(this);\n\n if (name !== void 0) {\n return name;\n }\n\n name = calculateToString(this);\n (0, _utils.setName)(this, name);\n return name;\n }\n\n function isSearchDisabled() {\n return searchDisabled;\n }\n\n function setSearchDisabled(flag) {\n searchDisabled = Boolean(flag);\n }\n\n function setUnprocessedMixins() {\n unprocessedMixins = true;\n }\n\n function _processNamespace(paths, root, seen) {\n let idx = paths.length;\n let id = paths.join('.');\n NAMESPACES_BY_ID[id] = root;\n (0, _utils.setName)(root, id); // Loop over all of the keys in the namespace, looking for classes\n\n for (let key in root) {\n if (!hasOwnProperty.call(root, key)) {\n continue;\n }\n\n let obj = root[key]; // If we are processing the `Ember` namespace, for example, the\n // `paths` will start with `[\"Ember\"]`. Every iteration through\n // the loop will update the **second** element of this list with\n // the key, so processing `Ember.View` will make the Array\n // `['Ember', 'View']`.\n\n paths[idx] = key; // If we have found an unprocessed class\n\n if (obj && obj.toString === classToString && (0, _utils.getName)(obj) === void 0) {\n // Replace the class' `toString` with the dot-separated path\n (0, _utils.setName)(obj, paths.join('.')); // Support nested namespaces\n } else if (obj && obj.isNamespace) {\n // Skip aliased namespaces\n if (seen.has(obj)) {\n continue;\n }\n\n seen.add(obj); // Process the child namespace\n\n _processNamespace(paths, obj, seen);\n }\n }\n\n paths.length = idx; // cut out last item\n }\n\n function isUppercase(code) {\n return code >= 65 && code <= 90 // A\n ; // Z\n }\n\n function tryIsNamespace(lookup, prop) {\n try {\n let obj = lookup[prop];\n return (obj !== null && typeof obj === 'object' || typeof obj === 'function') && obj.isNamespace && obj;\n } catch (e) {// continue\n }\n }\n\n function calculateToString(target) {\n let str;\n\n if (!searchDisabled) {\n processAllNamespaces();\n str = (0, _utils.getName)(target);\n\n if (str !== void 0) {\n return str;\n }\n\n let superclass = target;\n\n do {\n superclass = Object.getPrototypeOf(superclass);\n\n if (superclass === Function.prototype || superclass === Object.prototype) {\n break;\n }\n\n str = (0, _utils.getName)(target);\n\n if (str !== void 0) {\n str = \"(subclass of \" + str + \")\";\n break;\n }\n } while (str === void 0);\n }\n\n return str || '(unknown)';\n }\n});","enifed(\"@ember/-internals/metal/lib/observer\", [\"exports\", \"@ember/-internals/metal/lib/change_event\", \"@ember/-internals/metal/lib/events\", \"@ember/-internals/metal/lib/watching\"], function (_exports, _change_event, _events, _watching) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.addObserver = addObserver;\n _exports.removeObserver = removeObserver;\n\n /**\n @module @ember/object\n */\n\n /**\n @method addObserver\n @static\n @for @ember/object/observers\n @param obj\n @param {String} path\n @param {Object|Function} target\n @param {Function|String} [method]\n @public\n */\n function addObserver(obj, path, target, method) {\n (0, _events.addListener)(obj, (0, _change_event.default)(path), target, method);\n (0, _watching.watch)(obj, path);\n }\n /**\n @method removeObserver\n @static\n @for @ember/object/observers\n @param obj\n @param {String} path\n @param {Object|Function} target\n @param {Function|String} [method]\n @public\n */\n\n\n function removeObserver(obj, path, target, method) {\n (0, _watching.unwatch)(obj, path);\n (0, _events.removeListener)(obj, (0, _change_event.default)(path), target, method);\n }\n});","enifed(\"@ember/-internals/metal/lib/observer_set\", [\"exports\", \"@ember/-internals/metal/lib/events\"], function (_exports, _events) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n ObserverSet is a data structure used to keep track of observers\n that have been deferred.\n \n It ensures that observers are called in the same order that they\n were initially triggered.\n \n It also ensures that observers for any object-key pairs are called\n only once, even if they were triggered multiple times while\n deferred. In this case, the order that the observer is called in\n will depend on the first time the observer was triggered.\n \n @private\n @class ObserverSet\n */\n class ObserverSet {\n constructor() {\n this.added = new Map();\n this.queue = [];\n }\n\n add(object, key, event) {\n let keys = this.added.get(object);\n\n if (keys === undefined) {\n keys = new Set();\n this.added.set(object, keys);\n }\n\n if (!keys.has(key)) {\n this.queue.push(object, key, event);\n keys.add(key);\n }\n }\n\n flush() {\n // The queue is saved off to support nested flushes.\n let queue = this.queue;\n this.added.clear();\n this.queue = [];\n\n for (let i = 0; i < queue.length; i += 3) {\n let object = queue[i];\n let key = queue[i + 1];\n let event = queue[i + 2];\n\n if (object.isDestroying || object.isDestroyed) {\n continue;\n }\n\n (0, _events.sendEvent)(object, event, [object, key]);\n }\n }\n\n }\n\n _exports.default = ObserverSet;\n});","enifed(\"@ember/-internals/metal/lib/path_cache\", [\"exports\", \"@ember/-internals/utils\"], function (_exports, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isPath = isPath;\n const firstDotIndexCache = new _utils.Cache(1000, key => key.indexOf('.'));\n\n function isPath(path) {\n return typeof path === 'string' && firstDotIndexCache.get(path) !== -1;\n }\n});","enifed(\"@ember/-internals/metal/lib/properties\", [\"exports\", \"@ember/-internals/meta\", \"@ember/debug\", \"@glimmer/env\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/property_events\"], function (_exports, _meta, _debug, _env, _descriptor_map, _property_events) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.MANDATORY_SETTER_FUNCTION = MANDATORY_SETTER_FUNCTION;\n _exports.DEFAULT_GETTER_FUNCTION = DEFAULT_GETTER_FUNCTION;\n _exports.INHERITING_GETTER_FUNCTION = INHERITING_GETTER_FUNCTION;\n _exports.defineProperty = defineProperty;\n\n /**\n @module @ember/object\n */\n // ..........................................................\n // DEFINING PROPERTIES API\n //\n function MANDATORY_SETTER_FUNCTION(name) {\n function SETTER_FUNCTION(value) {\n let m = (0, _meta.peekMeta)(this);\n\n if (m.isInitializing() || m.isPrototypeMeta(this)) {\n m.writeValues(name, value);\n } else {\n (0, _debug.assert)(\"You must use set() to set the `\" + name + \"` property (of \" + this + \") to `\" + value + \"`.\", false);\n }\n }\n\n return Object.assign(SETTER_FUNCTION, {\n isMandatorySetter: true\n });\n }\n\n function DEFAULT_GETTER_FUNCTION(name) {\n return function GETTER_FUNCTION() {\n let meta = (0, _meta.peekMeta)(this);\n\n if (meta !== null) {\n return meta.peekValues(name);\n }\n };\n }\n\n function INHERITING_GETTER_FUNCTION(name) {\n function IGETTER_FUNCTION() {\n let meta = (0, _meta.peekMeta)(this);\n let val;\n\n if (meta !== null) {\n val = meta.readInheritedValue('values', name);\n\n if (val === _meta.UNDEFINED) {\n let proto = Object.getPrototypeOf(this);\n return proto === null ? undefined : proto[name];\n }\n }\n\n return val;\n }\n\n return Object.assign(IGETTER_FUNCTION, {\n isInheritingGetter: true\n });\n }\n /**\n NOTE: This is a low-level method used by other parts of the API. You almost\n never want to call this method directly. Instead you should use\n `mixin()` to define new properties.\n \n Defines a property on an object. This method works much like the ES5\n `Object.defineProperty()` method except that it can also accept computed\n properties and other special descriptors.\n \n Normally this method takes only three parameters. However if you pass an\n instance of `Descriptor` as the third param then you can pass an\n optional value as the fourth parameter. This is often more efficient than\n creating new descriptor hashes for each property.\n \n ## Examples\n \n ```javascript\n import { defineProperty, computed } from '@ember/object';\n \n // ES5 compatible mode\n defineProperty(contact, 'firstName', {\n writable: true,\n configurable: false,\n enumerable: true,\n value: 'Charles'\n });\n \n // define a simple property\n defineProperty(contact, 'lastName', undefined, 'Jolley');\n \n // define a computed property\n defineProperty(contact, 'fullName', computed('firstName', 'lastName', function() {\n return this.firstName+' '+this.lastName;\n }));\n ```\n \n @public\n @method defineProperty\n @static\n @for @ember/object\n @param {Object} obj the object to define this property on. This may be a prototype.\n @param {String} keyName the name of the property\n @param {Descriptor} [desc] an instance of `Descriptor` (typically a\n computed property) or an ES5 descriptor.\n You must provide this or `data` but not both.\n @param {*} [data] something other than a descriptor, that will\n become the explicit value of this property.\n */\n\n\n function defineProperty(obj, keyName, desc, data, meta) {\n if (meta === undefined) {\n meta = (0, _meta.meta)(obj);\n }\n\n let watching = meta.peekWatching(keyName) > 0;\n let previousDesc = (0, _descriptor_map.descriptorForProperty)(obj, keyName, meta);\n let wasDescriptor = previousDesc !== undefined;\n\n if (wasDescriptor) {\n previousDesc.teardown(obj, keyName, meta);\n } // used to track if the the property being defined be enumerable\n\n\n let enumerable = true; // Ember.NativeArray is a normal Ember.Mixin that we mix into `Array.prototype` when prototype extensions are enabled\n // mutating a native object prototype like this should _not_ result in enumerable properties being added (or we have significant\n // issues with things like deep equality checks from test frameworks, or things like jQuery.extend(true, [], [])).\n //\n // this is a hack, and we should stop mutating the array prototype by default 😫\n\n if (obj === Array.prototype) {\n enumerable = false;\n }\n\n let value;\n\n if ((0, _descriptor_map.isClassicDecorator)(desc)) {\n let propertyDesc;\n\n if (_env.DEBUG) {\n propertyDesc = desc(obj, keyName, undefined, meta, true);\n } else {\n propertyDesc = desc(obj, keyName, undefined, meta);\n }\n\n Object.defineProperty(obj, keyName, propertyDesc); // pass the decorator function forward for backwards compat\n\n value = desc;\n } else if (desc === undefined || desc === null) {\n value = data;\n\n if (_env.DEBUG && watching) {\n meta.writeValues(keyName, data);\n let defaultDescriptor = {\n configurable: true,\n enumerable,\n set: MANDATORY_SETTER_FUNCTION(keyName),\n get: DEFAULT_GETTER_FUNCTION(keyName)\n };\n Object.defineProperty(obj, keyName, defaultDescriptor);\n } else if (wasDescriptor || enumerable === false) {\n Object.defineProperty(obj, keyName, {\n configurable: true,\n enumerable,\n writable: true,\n value\n });\n } else {\n obj[keyName] = data;\n }\n } else {\n value = desc; // fallback to ES5\n\n Object.defineProperty(obj, keyName, desc);\n } // if key is being watched, override chains that\n // were initialized with the prototype\n\n\n if (watching) {\n (0, _property_events.overrideChains)(obj, keyName, meta);\n } // The `value` passed to the `didDefineProperty` hook is\n // either the descriptor or data, whichever was passed.\n\n\n if (typeof obj.didDefineProperty === 'function') {\n obj.didDefineProperty(obj, keyName, value);\n }\n }\n});","enifed(\"@ember/-internals/metal/lib/property_events\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/utils\", \"@glimmer/env\", \"@ember/-internals/metal/lib/change_event\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/events\", \"@ember/-internals/metal/lib/observer_set\", \"@ember/-internals/metal/lib/tags\", \"@ember/-internals/metal/lib/transaction\"], function (_exports, _meta2, _utils, _env, _change_event, _descriptor_map, _events, _observer_set, _tags, _transaction) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.notifyPropertyChange = notifyPropertyChange;\n _exports.overrideChains = overrideChains;\n _exports.beginPropertyChanges = beginPropertyChanges;\n _exports.endPropertyChanges = endPropertyChanges;\n _exports.changeProperties = changeProperties;\n _exports.PROPERTY_DID_CHANGE = void 0;\n\n /**\n @module ember\n @private\n */\n const PROPERTY_DID_CHANGE = (0, _utils.symbol)('PROPERTY_DID_CHANGE');\n _exports.PROPERTY_DID_CHANGE = PROPERTY_DID_CHANGE;\n const observerSet = new _observer_set.default();\n let deferred = 0;\n /**\n This function is called just after an object property has changed.\n It will notify any observers and clear caches among other things.\n \n Normally you will not need to call this method directly but if for some\n reason you can't directly watch a property you can invoke this method\n manually.\n \n @method notifyPropertyChange\n @for @ember/object\n @param {Object} obj The object with the property that will change\n @param {String} keyName The property key (or path) that will change.\n @param {Meta} meta The objects meta.\n @return {void}\n @since 3.1.0\n @public\n */\n\n function notifyPropertyChange(obj, keyName, _meta) {\n let meta = _meta === undefined ? (0, _meta2.peekMeta)(obj) : _meta;\n\n if (meta !== null && (meta.isInitializing() || meta.isPrototypeMeta(obj))) {\n return;\n }\n\n let possibleDesc = (0, _descriptor_map.descriptorForProperty)(obj, keyName, meta);\n\n if (possibleDesc !== undefined && typeof possibleDesc.didChange === 'function') {\n possibleDesc.didChange(obj, keyName);\n }\n\n if (meta !== null && meta.peekWatching(keyName) > 0) {\n dependentKeysDidChange(obj, keyName, meta);\n chainsDidChange(obj, keyName, meta);\n notifyObservers(obj, keyName, meta);\n }\n\n if (PROPERTY_DID_CHANGE in obj) {\n obj[PROPERTY_DID_CHANGE](keyName);\n }\n\n if (meta !== null) {\n if (meta.isSourceDestroying()) {\n return;\n }\n\n (0, _tags.markObjectAsDirty)(obj, keyName, meta);\n }\n\n if (_env.DEBUG) {\n (0, _transaction.assertNotRendered)(obj, keyName);\n }\n }\n\n const SEEN_MAP = new Map();\n let IS_TOP_SEEN_MAP = true; // called whenever a property has just changed to update dependent keys\n\n function dependentKeysDidChange(obj, depKey, meta) {\n if (meta.isSourceDestroying() || !meta.hasDeps(depKey)) {\n return;\n }\n\n let seen = SEEN_MAP;\n let isTop = IS_TOP_SEEN_MAP;\n\n if (isTop) {\n IS_TOP_SEEN_MAP = false;\n }\n\n iterDeps(notifyPropertyChange, obj, depKey, seen, meta);\n\n if (isTop) {\n SEEN_MAP.clear();\n IS_TOP_SEEN_MAP = true;\n }\n }\n\n function iterDeps(method, obj, depKey, seen, meta) {\n let current = seen.get(obj);\n\n if (current === undefined) {\n current = new Set();\n seen.set(obj, current);\n }\n\n if (current.has(depKey)) {\n return;\n }\n\n let possibleDesc;\n meta.forEachInDeps(depKey, key => {\n possibleDesc = (0, _descriptor_map.descriptorForProperty)(obj, key, meta);\n\n if (possibleDesc !== undefined && possibleDesc._suspended === obj) {\n return;\n }\n\n method(obj, key, meta);\n });\n }\n\n function chainsDidChange(_obj, keyName, meta) {\n let chainWatchers = meta.readableChainWatchers();\n\n if (chainWatchers !== undefined) {\n chainWatchers.notify(keyName, true, notifyPropertyChange);\n }\n }\n\n function overrideChains(_obj, keyName, meta) {\n let chainWatchers = meta.readableChainWatchers();\n\n if (chainWatchers !== undefined) {\n chainWatchers.revalidate(keyName);\n }\n }\n /**\n @method beginPropertyChanges\n @chainable\n @private\n */\n\n\n function beginPropertyChanges() {\n deferred++;\n }\n /**\n @method endPropertyChanges\n @private\n */\n\n\n function endPropertyChanges() {\n deferred--;\n\n if (deferred <= 0) {\n observerSet.flush();\n }\n }\n /**\n Make a series of property changes together in an\n exception-safe way.\n \n ```javascript\n Ember.changeProperties(function() {\n obj1.set('foo', mayBlowUpWhenSet);\n obj2.set('bar', baz);\n });\n ```\n \n @method changeProperties\n @param {Function} callback\n @private\n */\n\n\n function changeProperties(callback) {\n beginPropertyChanges();\n\n try {\n callback();\n } finally {\n endPropertyChanges();\n }\n }\n\n function notifyObservers(obj, keyName, meta) {\n if (meta.isSourceDestroying()) {\n return;\n }\n\n let eventName = (0, _change_event.default)(keyName);\n\n if (deferred > 0) {\n observerSet.add(obj, keyName, eventName);\n } else {\n (0, _events.sendEvent)(obj, eventName, [obj, keyName]);\n }\n }\n});","enifed(\"@ember/-internals/metal/lib/property_get\", [\"exports\", \"@ember/-internals/utils\", \"@ember/canary-features\", \"@ember/debug\", \"@glimmer/env\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/path_cache\", \"@ember/-internals/metal/lib/tags\", \"@ember/-internals/metal/lib/tracked\"], function (_exports, _utils, _canaryFeatures, _debug, _env, _descriptor_map, _path_cache, _tags, _tracked) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.get = get;\n _exports._getPath = _getPath;\n _exports.getWithDefault = getWithDefault;\n _exports.default = _exports.getPossibleMandatoryProxyValue = _exports.PROXY_CONTENT = void 0;\n\n /**\n @module @ember/object\n */\n const PROXY_CONTENT = (0, _utils.symbol)('PROXY_CONTENT');\n _exports.PROXY_CONTENT = PROXY_CONTENT;\n let getPossibleMandatoryProxyValue;\n _exports.getPossibleMandatoryProxyValue = getPossibleMandatoryProxyValue;\n\n if (_env.DEBUG && _utils.HAS_NATIVE_PROXY) {\n _exports.getPossibleMandatoryProxyValue = getPossibleMandatoryProxyValue = function getPossibleMandatoryProxyValue(obj, keyName) {\n let content = obj[PROXY_CONTENT];\n\n if (content === undefined) {\n return obj[keyName];\n } else {\n /* global Reflect */\n return Reflect.get(content, keyName, obj);\n }\n };\n } // ..........................................................\n // GET AND SET\n //\n // If we are on a platform that supports accessors we can use those.\n // Otherwise simulate accessors by looking up the property directly on the\n // object.\n\n /**\n Gets the value of a property on an object. If the property is computed,\n the function will be invoked. If the property is not defined but the\n object implements the `unknownProperty` method then that will be invoked.\n \n ```javascript\n import { get } from '@ember/object';\n get(obj, \"name\");\n ```\n \n If you plan to run on IE8 and older browsers then you should use this\n method anytime you want to retrieve a property on an object that you don't\n know for sure is private. (Properties beginning with an underscore '_'\n are considered private.)\n \n On all newer browsers, you only need to use this method to retrieve\n properties if the property might not be defined on the object and you want\n to respect the `unknownProperty` handler. Otherwise you can ignore this\n method.\n \n Note that if the object itself is `undefined`, this method will throw\n an error.\n \n @method get\n @for @ember/object\n @static\n @param {Object} obj The object to retrieve from.\n @param {String} keyName The property key to retrieve\n @return {Object} the property value or `null`.\n @public\n */\n\n\n function get(obj, keyName) {\n (0, _debug.assert)(\"Get must be called with two arguments; an object and a property key\", arguments.length === 2);\n (0, _debug.assert)(\"Cannot call get with '\" + keyName + \"' on an undefined object.\", obj !== undefined && obj !== null);\n (0, _debug.assert)(\"The key provided to get must be a string or number, you passed \" + keyName, typeof keyName === 'string' || typeof keyName === 'number' && !isNaN(keyName));\n (0, _debug.assert)(\"'this' in paths is not supported\", typeof keyName !== 'string' || keyName.lastIndexOf('this.', 0) !== 0);\n let type = typeof obj;\n let isObject = type === 'object';\n let isFunction = type === 'function';\n let isObjectLike = isObject || isFunction;\n\n if ((0, _path_cache.isPath)(keyName)) {\n return isObjectLike ? _getPath(obj, keyName) : undefined;\n }\n\n let value;\n\n if (isObjectLike) {\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n let tracker = (0, _tracked.getCurrentTracker)();\n if (tracker) tracker.add((0, _tags.tagForProperty)(obj, keyName));\n }\n\n let descriptor = (0, _descriptor_map.descriptorForProperty)(obj, keyName);\n\n if (descriptor !== undefined) {\n return descriptor.get(obj, keyName);\n }\n\n if (_env.DEBUG && _utils.HAS_NATIVE_PROXY) {\n value = getPossibleMandatoryProxyValue(obj, keyName);\n } else {\n value = obj[keyName];\n }\n } else {\n value = obj[keyName];\n }\n\n if (value === undefined) {\n if (isObject && !(keyName in obj) && typeof obj.unknownProperty === 'function') {\n return obj.unknownProperty(keyName);\n }\n }\n\n return value;\n }\n\n function _getPath(root, path) {\n let obj = root;\n let parts = typeof path === 'string' ? path.split('.') : path;\n\n for (let i = 0; i < parts.length; i++) {\n if (obj === undefined || obj === null || obj.isDestroyed) {\n return undefined;\n }\n\n obj = get(obj, parts[i]);\n }\n\n return obj;\n }\n /**\n Retrieves the value of a property from an Object, or a default value in the\n case that the property returns `undefined`.\n \n ```javascript\n import { getWithDefault } from '@ember/object';\n getWithDefault(person, 'lastName', 'Doe');\n ```\n \n @method getWithDefault\n @for @ember/object\n @static\n @param {Object} obj The object to retrieve from.\n @param {String} keyName The name of the property to retrieve\n @param {Object} defaultValue The value to return if the property value is undefined\n @return {Object} The property value or the defaultValue.\n @public\n */\n\n\n function getWithDefault(root, key, defaultValue) {\n let value = get(root, key);\n\n if (value === undefined) {\n return defaultValue;\n }\n\n return value;\n }\n\n var _default = get;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/metal/lib/property_set\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/utils\", \"@ember/debug\", \"@ember/error\", \"@glimmer/env\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/path_cache\", \"@ember/-internals/metal/lib/property_events\", \"@ember/-internals/metal/lib/property_get\"], function (_exports, _meta, _utils, _debug, _error, _env, _descriptor_map, _path_cache, _property_events, _property_get) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.set = set;\n _exports.trySet = trySet;\n let setWithMandatorySetter;\n let makeEnumerable;\n /**\n @module @ember/object\n */\n\n /**\n Sets the value of a property on an object, respecting computed properties\n and notifying observers and other listeners of the change.\n If the specified property is not defined on the object and the object\n implements the `setUnknownProperty` method, then instead of setting the\n value of the property on the object, its `setUnknownProperty` handler\n will be invoked with the two parameters `keyName` and `value`.\n \n ```javascript\n import { set } from '@ember/object';\n set(obj, \"name\", value);\n ```\n \n @method set\n @static\n @for @ember/object\n @param {Object} obj The object to modify.\n @param {String} keyName The property key to set\n @param {Object} value The value to set\n @return {Object} the passed value.\n @public\n */\n\n function set(obj, keyName, value, tolerant) {\n (0, _debug.assert)(\"Set must be called with three or four arguments; an object, a property key, a value and tolerant true/false\", arguments.length === 3 || arguments.length === 4);\n (0, _debug.assert)(\"Cannot call set with '\" + keyName + \"' on an undefined object.\", obj && typeof obj === 'object' || typeof obj === 'function');\n (0, _debug.assert)(\"The key provided to set must be a string or number, you passed \" + keyName, typeof keyName === 'string' || typeof keyName === 'number' && !isNaN(keyName));\n (0, _debug.assert)(\"'this' in paths is not supported\", typeof keyName !== 'string' || keyName.lastIndexOf('this.', 0) !== 0);\n\n if (obj.isDestroyed) {\n (0, _debug.assert)(\"calling set on destroyed object: \" + (0, _utils.toString)(obj) + \".\" + keyName + \" = \" + (0, _utils.toString)(value), tolerant);\n return;\n }\n\n if ((0, _path_cache.isPath)(keyName)) {\n return setPath(obj, keyName, value, tolerant);\n }\n\n let meta = (0, _meta.peekMeta)(obj);\n let descriptor = (0, _descriptor_map.descriptorForProperty)(obj, keyName, meta);\n\n if (descriptor !== undefined) {\n descriptor.set(obj, keyName, value);\n return value;\n }\n\n let currentValue;\n\n if (_env.DEBUG && _utils.HAS_NATIVE_PROXY) {\n currentValue = (0, _property_get.getPossibleMandatoryProxyValue)(obj, keyName);\n } else {\n currentValue = obj[keyName];\n }\n\n if (currentValue === undefined && 'object' === typeof obj && !(keyName in obj) && typeof obj.setUnknownProperty === 'function') {\n /* unknown property */\n obj.setUnknownProperty(keyName, value);\n } else {\n if (_env.DEBUG) {\n setWithMandatorySetter(meta, obj, keyName, value);\n } else {\n obj[keyName] = value;\n }\n\n if (currentValue !== value) {\n (0, _property_events.notifyPropertyChange)(obj, keyName, meta);\n }\n }\n\n return value;\n }\n\n if (_env.DEBUG) {\n setWithMandatorySetter = (meta, obj, keyName, value) => {\n if (meta !== null && meta.peekWatching(keyName) > 0) {\n makeEnumerable(obj, keyName);\n meta.writeValue(obj, keyName, value);\n } else {\n obj[keyName] = value;\n }\n };\n\n makeEnumerable = (obj, key) => {\n let desc = (0, _utils.lookupDescriptor)(obj, key);\n\n if (desc !== null && desc.set !== undefined && desc.set.isMandatorySetter) {\n desc.enumerable = true;\n Object.defineProperty(obj, key, desc);\n }\n };\n }\n\n function setPath(root, path, value, tolerant) {\n let parts = path.split('.');\n let keyName = parts.pop();\n (0, _debug.assert)('Property set failed: You passed an empty path', keyName.trim().length > 0);\n let newRoot = (0, _property_get._getPath)(root, parts);\n\n if (newRoot !== null && newRoot !== undefined) {\n return set(newRoot, keyName, value);\n } else if (!tolerant) {\n throw new _error.default(\"Property set failed: object in path \\\"\" + parts.join('.') + \"\\\" could not be found.\");\n }\n }\n /**\n Error-tolerant form of `set`. Will not blow up if any part of the\n chain is `undefined`, `null`, or destroyed.\n \n This is primarily used when syncing bindings, which may try to update after\n an object has been destroyed.\n \n ```javascript\n import { trySet } from '@ember/object';\n \n let obj = { name: \"Zoey\" };\n trySet(obj, \"contacts.twitter\", \"@emberjs\");\n ```\n \n @method trySet\n @static\n @for @ember/object\n @param {Object} root The object to modify.\n @param {String} path The property path to set\n @param {Object} value The value to set\n @public\n */\n\n\n function trySet(root, path, value) {\n return set(root, path, value, true);\n }\n});","enifed(\"@ember/-internals/metal/lib/set_properties\", [\"exports\", \"@ember/-internals/metal/lib/property_events\", \"@ember/-internals/metal/lib/property_set\"], function (_exports, _property_events, _property_set) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = setProperties;\n\n /**\n @module @ember/object\n */\n\n /**\n Set a list of properties on an object. These properties are set inside\n a single `beginPropertyChanges` and `endPropertyChanges` batch, so\n observers will be buffered.\n \n ```javascript\n import EmberObject from '@ember/object';\n let anObject = EmberObject.create();\n \n anObject.setProperties({\n firstName: 'Stanley',\n lastName: 'Stuart',\n age: 21\n });\n ```\n \n @method setProperties\n @static\n @for @ember/object\n @param obj\n @param {Object} properties\n @return properties\n @public\n */\n function setProperties(obj, properties) {\n if (properties === null || typeof properties !== 'object') {\n return properties;\n }\n\n (0, _property_events.changeProperties)(() => {\n let props = Object.keys(properties);\n let propertyName;\n\n for (let i = 0; i < props.length; i++) {\n propertyName = props[i];\n (0, _property_set.set)(obj, propertyName, properties[propertyName]);\n }\n });\n return properties;\n }\n});","enifed(\"@ember/-internals/metal/lib/tags\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/utils\", \"@ember/canary-features\", \"@ember/runloop\", \"@glimmer/reference\"], function (_exports, _meta2, _utils, _canaryFeatures, _runloop, _reference) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.tagForProperty = tagForProperty;\n _exports.tagFor = tagFor;\n _exports.markObjectAsDirty = markObjectAsDirty;\n _exports.ensureRunloop = ensureRunloop;\n _exports.update = _exports.dirty = void 0;\n\n function makeTag() {\n return _reference.DirtyableTag.create();\n }\n\n function tagForProperty(object, propertyKey, _meta) {\n let objectType = typeof object;\n\n if (objectType !== 'function' && (objectType !== 'object' || object === null)) {\n return _reference.CONSTANT_TAG;\n }\n\n let meta = _meta === undefined ? (0, _meta2.meta)(object) : _meta;\n\n if ((0, _utils.isProxy)(object)) {\n return tagFor(object, meta);\n }\n\n let tags = meta.writableTags();\n let tag = tags[propertyKey];\n\n if (tag) {\n return tag;\n }\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n let pair = (0, _reference.combine)([makeTag(), _reference.UpdatableTag.create(_reference.CONSTANT_TAG)]);\n return tags[propertyKey] = pair;\n } else {\n return tags[propertyKey] = makeTag();\n }\n }\n\n function tagFor(object, _meta) {\n if (typeof object === 'object' && object !== null) {\n let meta = _meta === undefined ? (0, _meta2.meta)(object) : _meta;\n return meta.writableTag(makeTag);\n } else {\n return _reference.CONSTANT_TAG;\n }\n }\n\n let dirty;\n _exports.dirty = dirty;\n let update;\n _exports.update = update;\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n _exports.dirty = dirty = tag => {\n tag.inner.first.inner.dirty();\n };\n\n _exports.update = update = (outer, inner) => {\n outer.inner.second.inner.update(inner);\n };\n } else {\n _exports.dirty = dirty = tag => {\n tag.inner.dirty();\n };\n }\n\n function markObjectAsDirty(obj, propertyKey, meta) {\n let objectTag = meta.readableTag();\n\n if (objectTag !== undefined) {\n if ((0, _utils.isProxy)(obj)) {\n objectTag.inner.first.inner.dirty();\n } else {\n objectTag.inner.dirty();\n }\n }\n\n let tags = meta.readableTags();\n let propertyTag = tags !== undefined ? tags[propertyKey] : undefined;\n\n if (propertyTag !== undefined) {\n dirty(propertyTag);\n }\n\n if (objectTag !== undefined || propertyTag !== undefined) {\n ensureRunloop();\n }\n }\n\n function ensureRunloop() {\n _runloop.backburner.ensureInstance();\n }\n});","enifed(\"@ember/-internals/metal/lib/tracked\", [\"exports\", \"@ember/-internals/utils\", \"@ember/canary-features\", \"@ember/debug\", \"@glimmer/env\", \"@glimmer/reference\", \"@ember/-internals/metal/lib/decorator\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/tags\"], function (_exports, _utils, _canaryFeatures, _debug, _env, _reference, _decorator, _descriptor_map, _tags) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.tracked = tracked;\n _exports.getCurrentTracker = getCurrentTracker;\n _exports.setCurrentTracker = setCurrentTracker;\n _exports.setPropertyDidChange = setPropertyDidChange;\n _exports.UntrackedPropertyError = _exports.Tracker = void 0;\n // For some reason TS can't infer that these two functions are compatible-ish,\n // so we need to corece the type\n let symbol = _utils.HAS_NATIVE_SYMBOL ? Symbol : _utils.symbol;\n /**\n An object that that tracks @tracked properties that were consumed.\n \n @private\n */\n\n class Tracker {\n constructor() {\n this.tags = new Set();\n this.last = null;\n }\n\n add(tag) {\n this.tags.add(tag);\n this.last = tag;\n }\n\n get size() {\n return this.tags.size;\n }\n\n combine() {\n if (this.tags.size === 0) {\n return _reference.CONSTANT_TAG;\n } else if (this.tags.size === 1) {\n return this.last;\n } else {\n let tags = [];\n this.tags.forEach(tag => tags.push(tag));\n return (0, _reference.combine)(tags);\n }\n }\n\n }\n\n _exports.Tracker = Tracker;\n\n function tracked(...args) {\n (0, _debug.assert)(\"@tracked can only be used directly as a native decorator. If you're using tracked in classic classes, add parenthesis to call it like a function: tracked()\", !((0, _decorator.isElementDescriptor)(args.slice(0, 3)) && args.length === 5 && args[4] === true));\n\n if (!(0, _decorator.isElementDescriptor)(args)) {\n let propertyDesc = args[0];\n (0, _debug.assert)(\"tracked() may only receive an options object containing 'value' or 'initializer', received \" + propertyDesc, args.length === 0 || typeof propertyDesc === 'object' && propertyDesc !== null);\n\n if (_env.DEBUG && propertyDesc) {\n let keys = Object.keys(propertyDesc);\n (0, _debug.assert)(\"The options object passed to tracked() may only contain a 'value' or 'initializer' property, not both. Received: [\" + keys + \"]\", keys.length <= 1 && (keys[0] === undefined || keys[0] === 'value' || keys[0] === 'undefined'));\n (0, _debug.assert)(\"The initializer passed to tracked must be a function. Received \" + propertyDesc.initializer, !('initializer' in propertyDesc) || typeof propertyDesc.initializer === 'function');\n }\n\n let initializer = propertyDesc ? propertyDesc.initializer : undefined;\n let value = propertyDesc ? propertyDesc.value : undefined;\n\n let decorator = function (target, key, _desc, _meta, isClassicDecorator) {\n (0, _debug.assert)(\"You attempted to set a default value for \" + key + \" with the @tracked({ value: 'default' }) syntax. You can only use this syntax with classic classes. For native classes, you can use class initializers: @tracked field = 'default';\", isClassicDecorator);\n let fieldDesc = {\n initializer: initializer || (() => value)\n };\n return descriptorForField([target, key, fieldDesc]);\n };\n\n (0, _descriptor_map.setClassicDecorator)(decorator);\n return decorator;\n }\n\n (0, _debug.assert)('Native decorators are not enabled without the EMBER_NATIVE_DECORATOR_SUPPORT flag', Boolean(_canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT));\n return descriptorForField(args);\n }\n\n if (_env.DEBUG) {\n // Normally this isn't a classic decorator, but we want to throw a helpful\n // error in development so we need it to treat it like one\n (0, _descriptor_map.setClassicDecorator)(tracked);\n }\n\n function descriptorForField([_target, key, desc]) {\n (0, _debug.assert)(\"You attempted to use @tracked on \" + key + \", but that element is not a class field. @tracked is only usable on class fields. Native getters and setters will autotrack add any tracked fields they encounter, so there is no need mark getters and setters with @tracked.\", !desc || !desc.value && !desc.get && !desc.set);\n let initializer = desc ? desc.initializer : undefined;\n let secretKey = symbol(key);\n return {\n enumerable: true,\n configurable: true,\n\n get() {\n if (CURRENT_TRACKER) CURRENT_TRACKER.add((0, _tags.tagForProperty)(this, key)); // If the field has never been initialized, we should initialize it\n\n if (!(secretKey in this)) {\n this[secretKey] = typeof initializer === 'function' ? initializer.call(this) : undefined;\n }\n\n return this[secretKey];\n },\n\n set(newValue) {\n (0, _tags.tagFor)(this).inner['dirty']();\n (0, _tags.dirty)((0, _tags.tagForProperty)(this, key));\n this[secretKey] = newValue;\n propertyDidChange();\n }\n\n };\n }\n /**\n @private\n \n Whenever a tracked computed property is entered, the current tracker is\n saved off and a new tracker is replaced.\n \n Any tracked properties consumed are added to the current tracker.\n \n When a tracked computed property is exited, the tracker's tags are\n combined and added to the parent tracker.\n \n The consequence is that each tracked computed property has a tag\n that corresponds to the tracked properties consumed inside of\n itself, including child tracked computed properties.\n */\n\n\n let CURRENT_TRACKER = null;\n\n function getCurrentTracker() {\n return CURRENT_TRACKER;\n }\n\n function setCurrentTracker(tracker = new Tracker()) {\n return CURRENT_TRACKER = tracker;\n }\n\n let propertyDidChange = _tags.ensureRunloop;\n\n function setPropertyDidChange(cb) {\n propertyDidChange = cb;\n }\n\n class UntrackedPropertyError extends Error {\n constructor(target, key, message) {\n super(message);\n this.target = target;\n this.key = key;\n }\n\n static for(obj, key) {\n return new UntrackedPropertyError(obj, key, \"The property '\" + key + \"' on \" + obj + \" was changed after being rendered. If you want to change a property used in a template after the component has rendered, mark the property as a tracked property with the @tracked decorator.\");\n }\n\n }\n\n _exports.UntrackedPropertyError = UntrackedPropertyError;\n});","enifed(\"@ember/-internals/metal/lib/transaction\", [\"exports\", \"@ember/debug\", \"@glimmer/env\"], function (_exports, _debug, _env) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.assertNotRendered = _exports.didRender = _exports.default = void 0;\n let runInTransaction;\n _exports.default = runInTransaction;\n let didRender;\n _exports.didRender = didRender;\n let assertNotRendered; // detect-backtracking-rerender by default is debug build only\n\n _exports.assertNotRendered = assertNotRendered;\n\n if (_env.DEBUG) {\n // there are 2 states\n // DEBUG\n // tracks lastRef and lastRenderedIn per rendered object and key during a transaction\n // release everything via normal weakmap semantics by just derefencing the weakmap\n // RELEASE\n // tracks transactionId per rendered object and key during a transaction\n // release everything via normal weakmap semantics by just derefencing the weakmap\n class TransactionRunner {\n constructor() {\n this.transactionId = 0;\n this.inTransaction = false;\n this.shouldReflush = false;\n this.weakMap = new WeakMap();\n\n if (_env.DEBUG) {\n // track templates\n this.debugStack = undefined;\n }\n }\n\n runInTransaction(context, methodName) {\n this.before(context);\n\n try {\n context[methodName]();\n } finally {\n this.after();\n }\n\n return this.shouldReflush;\n }\n\n didRender(object, key, reference) {\n if (!this.inTransaction) {\n return;\n }\n\n if (_env.DEBUG) {\n this.setKey(object, key, {\n lastRef: reference,\n lastRenderedIn: this.debugStack.peek()\n });\n } else {\n this.setKey(object, key, this.transactionId);\n }\n }\n\n assertNotRendered(object, key) {\n if (!this.inTransaction) {\n return;\n }\n\n if (this.hasRendered(object, key)) {\n if (_env.DEBUG) {\n let {\n lastRef,\n lastRenderedIn\n } = this.getKey(object, key);\n let currentlyIn = this.debugStack.peek();\n let parts = [];\n let label;\n\n if (lastRef !== undefined) {\n while (lastRef && lastRef.propertyKey) {\n parts.unshift(lastRef.propertyKey);\n lastRef = lastRef.parentReference;\n }\n\n label = parts.join('.');\n } else {\n label = 'the same value';\n }\n\n (0, _debug.assert)(\"You modified \\\"\" + label + \"\\\" twice on \" + object + \" in a single render. It was rendered in \" + lastRenderedIn + \" and modified in \" + currentlyIn + \". This was unreliable and slow in Ember 1.x and is no longer supported. See https://github.com/emberjs/ember.js/issues/13948 for more details.\", false);\n }\n\n this.shouldReflush = true;\n }\n }\n\n hasRendered(object, key) {\n if (!this.inTransaction) {\n return false;\n }\n\n if (_env.DEBUG) {\n return this.getKey(object, key) !== undefined;\n }\n\n return this.getKey(object, key) === this.transactionId;\n }\n\n before(context) {\n this.inTransaction = true;\n this.shouldReflush = false;\n\n if (_env.DEBUG) {\n this.debugStack = context.env.debugStack;\n }\n }\n\n after() {\n this.transactionId++;\n this.inTransaction = false;\n\n if (_env.DEBUG) {\n this.debugStack = undefined;\n }\n\n this.clearObjectMap();\n }\n\n createMap(object) {\n let map = Object.create(null);\n this.weakMap.set(object, map);\n return map;\n }\n\n getOrCreateMap(object) {\n let map = this.weakMap.get(object);\n\n if (map === undefined) {\n map = this.createMap(object);\n }\n\n return map;\n }\n\n setKey(object, key, value) {\n let map = this.getOrCreateMap(object);\n map[key] = value;\n }\n\n getKey(object, key) {\n let map = this.weakMap.get(object);\n\n if (map !== undefined) {\n return map[key];\n }\n }\n\n clearObjectMap() {\n this.weakMap = new WeakMap();\n }\n\n }\n\n let runner = new TransactionRunner();\n\n _exports.default = runInTransaction = (...args) => runner.runInTransaction(...args);\n\n _exports.didRender = didRender = (...args) => runner.didRender(...args);\n\n _exports.assertNotRendered = assertNotRendered = (...args) => runner.assertNotRendered(...args);\n } else {\n // in production do nothing to detect reflushes\n _exports.default = runInTransaction = (context, methodName) => {\n context[methodName]();\n return false;\n };\n }\n});","enifed(\"@ember/-internals/metal/lib/watch_key\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/utils\", \"@glimmer/env\", \"@ember/-internals/metal/lib/descriptor_map\", \"@ember/-internals/metal/lib/properties\"], function (_exports, _meta2, _utils, _env, _descriptor_map, _properties) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.watchKey = watchKey;\n _exports.unwatchKey = unwatchKey;\n let handleMandatorySetter;\n\n function watchKey(obj, keyName, _meta) {\n let meta = _meta === undefined ? (0, _meta2.meta)(obj) : _meta;\n let count = meta.peekWatching(keyName);\n meta.writeWatching(keyName, count + 1);\n\n if (count === 0) {\n // activate watching first time\n let possibleDesc = (0, _descriptor_map.descriptorForProperty)(obj, keyName, meta);\n\n if (possibleDesc !== undefined && possibleDesc.willWatch !== undefined) {\n possibleDesc.willWatch(obj, keyName, meta);\n }\n\n if (typeof obj.willWatchProperty === 'function') {\n obj.willWatchProperty(keyName);\n }\n\n if (_env.DEBUG) {\n // NOTE: this is dropped for prod + minified builds\n handleMandatorySetter(meta, obj, keyName);\n }\n }\n }\n\n if (_env.DEBUG) {\n let hasOwnProperty = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key);\n\n let propertyIsEnumerable = (obj, key) => Object.prototype.propertyIsEnumerable.call(obj, key); // Future traveler, although this code looks scary. It merely exists in\n // development to aid in development asertions. Production builds of\n // ember strip this entire block out\n\n\n handleMandatorySetter = function handleMandatorySetter(m, obj, keyName) {\n let descriptor = (0, _utils.lookupDescriptor)(obj, keyName);\n let hasDescriptor = descriptor !== null;\n let possibleDesc = hasDescriptor && descriptor.value;\n\n if ((0, _descriptor_map.isClassicDecorator)(possibleDesc)) {\n return;\n }\n\n let configurable = hasDescriptor ? descriptor.configurable : true;\n let isWritable = hasDescriptor ? descriptor.writable : true;\n let hasValue = hasDescriptor ? 'value' in descriptor : true; // this x in Y deopts, so keeping it in this function is better;\n\n if (configurable && isWritable && hasValue && keyName in obj) {\n let desc = {\n configurable: true,\n set: (0, _properties.MANDATORY_SETTER_FUNCTION)(keyName),\n enumerable: propertyIsEnumerable(obj, keyName),\n get: undefined\n };\n\n if (hasOwnProperty(obj, keyName)) {\n m.writeValues(keyName, obj[keyName]);\n desc.get = (0, _properties.DEFAULT_GETTER_FUNCTION)(keyName);\n } else {\n desc.get = (0, _properties.INHERITING_GETTER_FUNCTION)(keyName);\n }\n\n Object.defineProperty(obj, keyName, desc);\n }\n };\n }\n\n function unwatchKey(obj, keyName, _meta) {\n let meta = _meta === undefined ? (0, _meta2.peekMeta)(obj) : _meta; // do nothing of this object has already been destroyed\n\n if (meta === null || meta.isSourceDestroyed()) {\n return;\n }\n\n let count = meta.peekWatching(keyName);\n\n if (count === 1) {\n meta.writeWatching(keyName, 0);\n let possibleDesc = (0, _descriptor_map.descriptorForProperty)(obj, keyName, meta);\n let isDescriptor = possibleDesc !== undefined;\n\n if (isDescriptor && possibleDesc.didUnwatch !== undefined) {\n possibleDesc.didUnwatch(obj, keyName, meta);\n }\n\n if (typeof obj.didUnwatchProperty === 'function') {\n obj.didUnwatchProperty(keyName);\n }\n\n if (_env.DEBUG) {\n // It is true, the following code looks quite WAT. But have no fear, It\n // exists purely to improve development ergonomics and is removed from\n // ember.min.js and ember.prod.js builds.\n //\n // Some further context: Once a property is watched by ember, bypassing `set`\n // for mutation, will bypass observation. This code exists to assert when\n // that occurs, and attempt to provide more helpful feedback. The alternative\n // is tricky to debug partially observable properties.\n if (!isDescriptor && keyName in obj) {\n let maybeMandatoryDescriptor = (0, _utils.lookupDescriptor)(obj, keyName);\n\n if (maybeMandatoryDescriptor && maybeMandatoryDescriptor.set && maybeMandatoryDescriptor.set.isMandatorySetter) {\n if (maybeMandatoryDescriptor.get && maybeMandatoryDescriptor.get.isInheritingGetter) {\n let possibleValue = meta.readInheritedValue('values', keyName);\n\n if (possibleValue === _meta2.UNDEFINED) {\n delete obj[keyName];\n return;\n }\n }\n\n Object.defineProperty(obj, keyName, {\n configurable: true,\n enumerable: Object.prototype.propertyIsEnumerable.call(obj, keyName),\n writable: true,\n value: meta.peekValues(keyName)\n });\n meta.deleteFromValues(keyName);\n }\n }\n }\n } else if (count > 1) {\n meta.writeWatching(keyName, count - 1);\n }\n }\n});","enifed(\"@ember/-internals/metal/lib/watch_path\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/metal/lib/chains\"], function (_exports, _meta, _chains) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.watchPath = watchPath;\n _exports.unwatchPath = unwatchPath;\n\n function watchPath(obj, keyPath, meta) {\n let m = meta === undefined ? (0, _meta.meta)(obj) : meta;\n let counter = m.peekWatching(keyPath);\n m.writeWatching(keyPath, counter + 1);\n\n if (counter === 0) {\n // activate watching first time\n m.writableChains(_chains.makeChainNode).add(keyPath);\n }\n }\n\n function unwatchPath(obj, keyPath, meta) {\n let m = meta === undefined ? (0, _meta.peekMeta)(obj) : meta;\n\n if (m === null) {\n return;\n }\n\n let counter = m.peekWatching(keyPath);\n\n if (counter > 0) {\n m.writeWatching(keyPath, counter - 1);\n\n if (counter === 1) {\n m.writableChains(_chains.makeChainNode).remove(keyPath);\n }\n }\n }\n});","enifed(\"@ember/-internals/metal/lib/watching\", [\"exports\", \"@ember/-internals/meta\", \"@ember/-internals/metal/lib/path_cache\", \"@ember/-internals/metal/lib/watch_key\", \"@ember/-internals/metal/lib/watch_path\"], function (_exports, _meta, _path_cache, _watch_key, _watch_path) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.watch = watch;\n _exports.isWatching = isWatching;\n _exports.watcherCount = watcherCount;\n _exports.unwatch = unwatch;\n\n /**\n @module ember\n */\n\n /**\n Starts watching a property on an object. Whenever the property changes,\n invokes `Ember.notifyPropertyChange`. This is the primitive used by observers\n and dependent keys; usually you will never call this method directly but instead\n use higher level methods like `addObserver()`.\n \n @private\n @method watch\n @for Ember\n @param obj\n @param {String} keyPath\n @param {Object} meta\n */\n function watch(obj, keyPath, meta) {\n if ((0, _path_cache.isPath)(keyPath)) {\n (0, _watch_path.watchPath)(obj, keyPath, meta);\n } else {\n (0, _watch_key.watchKey)(obj, keyPath, meta);\n }\n }\n\n function isWatching(obj, key) {\n return watcherCount(obj, key) > 0;\n }\n\n function watcherCount(obj, key) {\n let meta = (0, _meta.peekMeta)(obj);\n return meta !== null && meta.peekWatching(key) || 0;\n }\n /**\n Stops watching a property on an object. Usually you will never call this method directly but instead\n use higher level methods like `removeObserver()`.\n \n @private\n @method unwatch\n @for Ember\n @param obj\n @param {String} keyPath\n @param {Object} meta\n */\n\n\n function unwatch(obj, keyPath, meta) {\n if ((0, _path_cache.isPath)(keyPath)) {\n (0, _watch_path.unwatchPath)(obj, keyPath, meta);\n } else {\n (0, _watch_key.unwatchKey)(obj, keyPath, meta);\n }\n }\n});","enifed(\"@ember/-internals/metal/tests/accessors/get_path_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n let obj;\n (0, _internalTestHelpers.moduleFor)('get with path', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n obj = {\n foo: {\n bar: {\n baz: {\n biff: 'BIFF'\n }\n }\n },\n foothis: {\n bar: {\n baz: {\n biff: 'BIFF'\n }\n }\n },\n falseValue: false,\n emptyString: '',\n Wuz: {\n nar: 'foo'\n },\n nullValue: null\n };\n }\n\n teardown() {\n obj = undefined;\n } // ..........................................................\n // LOCAL PATHS\n //\n\n\n ['@test [obj, foo] -> obj.foo'](assert) {\n assert.deepEqual((0, _metal.get)(obj, 'foo'), obj.foo);\n }\n\n ['@test [obj, foo.bar] -> obj.foo.bar'](assert) {\n assert.deepEqual((0, _metal.get)(obj, 'foo.bar'), obj.foo.bar);\n }\n\n ['@test [obj, foothis.bar] -> obj.foothis.bar'](assert) {\n assert.deepEqual((0, _metal.get)(obj, 'foothis.bar'), obj.foothis.bar);\n }\n\n ['@test [obj, falseValue.notDefined] -> (undefined)'](assert) {\n assert.strictEqual((0, _metal.get)(obj, 'falseValue.notDefined'), undefined);\n }\n\n ['@test [obj, emptyString.length] -> 0'](assert) {\n assert.strictEqual((0, _metal.get)(obj, 'emptyString.length'), 0);\n }\n\n ['@test [obj, nullValue.notDefined] -> (undefined)'](assert) {\n assert.strictEqual((0, _metal.get)(obj, 'nullValue.notDefined'), undefined);\n } // ..........................................................\n // GLOBAL PATHS TREATED LOCAL WITH GET\n //\n\n\n ['@test [obj, Wuz] -> obj.Wuz'](assert) {\n assert.deepEqual((0, _metal.get)(obj, 'Wuz'), obj.Wuz);\n }\n\n ['@test [obj, Wuz.nar] -> obj.Wuz.nar'](assert) {\n assert.deepEqual((0, _metal.get)(obj, 'Wuz.nar'), obj.Wuz.nar);\n }\n\n ['@test [obj, Foo] -> (undefined)'](assert) {\n assert.strictEqual((0, _metal.get)(obj, 'Foo'), undefined);\n }\n\n ['@test [obj, Foo.bar] -> (undefined)'](assert) {\n assert.strictEqual((0, _metal.get)(obj, 'Foo.bar'), undefined);\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/accessors/get_properties_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('getProperties', class extends _internalTestHelpers.AbstractTestCase {\n ['@test can retrieve a hash of properties from an object via an argument list or array of property names'](assert) {\n let obj = {\n firstName: 'Steve',\n lastName: 'Jobs',\n companyName: 'Apple, Inc.'\n };\n assert.deepEqual((0, _metal.getProperties)(obj, 'firstName', 'lastName'), {\n firstName: 'Steve',\n lastName: 'Jobs'\n });\n assert.deepEqual((0, _metal.getProperties)(obj, 'firstName', 'lastName'), {\n firstName: 'Steve',\n lastName: 'Jobs'\n });\n assert.deepEqual((0, _metal.getProperties)(obj, 'lastName'), {\n lastName: 'Jobs'\n });\n assert.deepEqual((0, _metal.getProperties)(obj), {});\n assert.deepEqual((0, _metal.getProperties)(obj, ['firstName', 'lastName']), {\n firstName: 'Steve',\n lastName: 'Jobs'\n });\n assert.deepEqual((0, _metal.getProperties)(obj, ['firstName']), {\n firstName: 'Steve'\n });\n assert.deepEqual((0, _metal.getProperties)(obj, []), {});\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/accessors/get_test\", [\"@ember/-internals/environment\", \"@ember/-internals/runtime\", \"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/runloop\"], function (_environment, _runtime, _metal, _internalTestHelpers, _runloop) {\n \"use strict\";\n\n function aget(x, y) {\n return x[y];\n }\n\n (0, _internalTestHelpers.moduleFor)('get', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should get arbitrary properties on an object'](assert) {\n let obj = {\n string: 'string',\n number: 23,\n boolTrue: true,\n boolFalse: false,\n nullValue: null\n };\n\n for (let key in obj) {\n if (!obj.hasOwnProperty(key)) {\n continue;\n }\n\n assert.equal((0, _metal.get)(obj, key), obj[key], key);\n }\n }\n\n ['@test should retrieve a number key on an object'](assert) {\n let obj = {\n 1: 'first'\n };\n assert.equal((0, _metal.get)(obj, 1), 'first');\n }\n\n ['@test should retrieve an array index'](assert) {\n let arr = ['first', 'second'];\n assert.equal((0, _metal.get)(arr, 0), 'first');\n assert.equal((0, _metal.get)(arr, 1), 'second');\n }\n\n ['@test should retrieve an empty string key on an object'](assert) {\n let obj = {\n '': 'empty-string'\n };\n assert.equal((0, _metal.get)(obj, ''), 'empty-string');\n }\n\n ['@test should return undefined when passed an empty string if that key does not exist on an object'](assert) {\n let obj = {\n tomster: true\n };\n assert.equal((0, _metal.get)(obj, ''), undefined);\n }\n\n ['@test should not access a property more than once'](assert) {\n let count = 0;\n let obj = {\n get id() {\n return ++count;\n }\n\n };\n (0, _metal.get)(obj, 'id');\n assert.equal(count, 1);\n }\n\n ['@test should call unknownProperty on watched values if the value is undefined using getFromEmberMetal()/set()'](assert) {\n let obj = {\n unknownProperty(key) {\n assert.equal(key, 'foo', 'should pass key');\n return 'FOO';\n }\n\n };\n assert.equal((0, _metal.get)(obj, 'foo'), 'FOO', 'should return value from unknown');\n }\n\n ['@test should call unknownProperty on watched values if the value is undefined using accessors'](assert) {\n if (_environment.ENV.USES_ACCESSORS) {\n let obj = {\n unknownProperty(key) {\n assert.equal(key, 'foo', 'should pass key');\n return 'FOO';\n }\n\n };\n assert.equal(aget(obj, 'foo'), 'FOO', 'should return value from unknown');\n } else {\n assert.ok('SKIPPING ACCESSORS');\n }\n }\n\n ['@test get works with paths correctly'](assert) {\n let func = function () {};\n\n func.bar = 'awesome';\n\n let destroyedObj = _runtime.Object.create({\n bar: 'great'\n });\n\n (0, _runloop.run)(() => destroyedObj.destroy());\n assert.equal((0, _metal.get)({\n foo: null\n }, 'foo.bar'), undefined);\n assert.equal((0, _metal.get)({\n foo: {\n bar: 'hello'\n }\n }, 'foo.bar.length'), 5);\n assert.equal((0, _metal.get)({\n foo: func\n }, 'foo.bar'), 'awesome');\n assert.equal((0, _metal.get)({\n foo: func\n }, 'foo.bar.length'), 7);\n assert.equal((0, _metal.get)({}, 'foo.bar.length'), undefined);\n assert.equal((0, _metal.get)(function () {}, 'foo.bar.length'), undefined);\n assert.equal((0, _metal.get)('', 'foo.bar.length'), undefined);\n assert.equal((0, _metal.get)({\n foo: destroyedObj\n }, 'foo.bar'), undefined);\n }\n\n ['@test warn on attempts to call get with no arguments']() {\n expectAssertion(function () {\n (0, _metal.get)('aProperty');\n }, /Get must be called with two arguments;/i);\n }\n\n ['@test warn on attempts to call get with only one argument']() {\n expectAssertion(function () {\n (0, _metal.get)('aProperty');\n }, /Get must be called with two arguments;/i);\n }\n\n ['@test warn on attempts to call get with more then two arguments']() {\n expectAssertion(function () {\n (0, _metal.get)({}, 'aProperty', true);\n }, /Get must be called with two arguments;/i);\n }\n\n ['@test warn on attempts to get a property of undefined']() {\n expectAssertion(function () {\n (0, _metal.get)(undefined, 'aProperty');\n }, /Cannot call get with 'aProperty' on an undefined object/i);\n }\n\n ['@test warn on attempts to get a property path of undefined']() {\n expectAssertion(function () {\n (0, _metal.get)(undefined, 'aProperty.on.aPath');\n }, /Cannot call get with 'aProperty.on.aPath' on an undefined object/);\n }\n\n ['@test warn on attempts to get a property of null']() {\n expectAssertion(function () {\n (0, _metal.get)(null, 'aProperty');\n }, /Cannot call get with 'aProperty' on an undefined object/);\n }\n\n ['@test warn on attempts to get a property path of null']() {\n expectAssertion(function () {\n (0, _metal.get)(null, 'aProperty.on.aPath');\n }, /Cannot call get with 'aProperty.on.aPath' on an undefined object/);\n }\n\n ['@test warn on attempts to use get with an unsupported property path']() {\n let obj = {};\n expectAssertion(() => (0, _metal.get)(obj, null), /The key provided to get must be a string or number, you passed null/);\n expectAssertion(() => (0, _metal.get)(obj, NaN), /The key provided to get must be a string or number, you passed NaN/);\n expectAssertion(() => (0, _metal.get)(obj, undefined), /The key provided to get must be a string or number, you passed undefined/);\n expectAssertion(() => (0, _metal.get)(obj, false), /The key provided to get must be a string or number, you passed false/);\n } // ..........................................................\n // BUGS\n //\n\n\n ['@test (regression) watched properties on unmodified inherited objects should still return their original value'](assert) {\n let MyMixin = _metal.Mixin.create({\n someProperty: 'foo',\n propertyDidChange: (0, _metal.observer)('someProperty', () => {})\n });\n\n let baseObject = MyMixin.apply({});\n let theRealObject = Object.create(baseObject);\n assert.equal((0, _metal.get)(theRealObject, 'someProperty'), 'foo', 'should return the set value, not false');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('getWithDefault', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should get arbitrary properties on an object'](assert) {\n let obj = {\n string: 'string',\n number: 23,\n boolTrue: true,\n boolFalse: false,\n nullValue: null\n };\n\n for (let key in obj) {\n if (!obj.hasOwnProperty(key)) {\n continue;\n }\n\n assert.equal((0, _metal.getWithDefault)(obj, key, 'fail'), obj[key], key);\n }\n\n obj = {\n undef: undefined\n };\n assert.equal((0, _metal.getWithDefault)(obj, 'undef', 'default'), 'default', 'explicit undefined retrieves the default');\n assert.equal((0, _metal.getWithDefault)(obj, 'not-present', 'default'), 'default', 'non-present key retrieves the default');\n }\n\n ['@test should call unknownProperty if defined and value is undefined'](assert) {\n let obj = {\n count: 0,\n\n unknownProperty(key) {\n assert.equal(key, 'foo', 'should pass key');\n this.count++;\n return 'FOO';\n }\n\n };\n assert.equal((0, _metal.get)(obj, 'foo'), 'FOO', 'should return value from unknown');\n assert.equal(obj.count, 1, 'should have invoked');\n }\n\n ['@test if unknownProperty is present, it is called using getFromEmberMetal()/set()'](assert) {\n let obj = {\n unknownProperty(key) {\n if (key === 'foo') {\n assert.equal(key, 'foo', 'should pass key');\n return 'FOO';\n }\n }\n\n };\n assert.equal((0, _metal.getWithDefault)(obj, 'foo', 'fail'), 'FOO', 'should return value from unknownProperty');\n assert.equal((0, _metal.getWithDefault)(obj, 'bar', 'default'), 'default', 'should convert undefined from unknownProperty into default');\n }\n\n ['@test if unknownProperty is present, it is called using accessors'](assert) {\n if (_environment.ENV.USES_ACCESSORS) {\n let obj = {\n unknownProperty(key) {\n if (key === 'foo') {\n assert.equal(key, 'foo', 'should pass key');\n return 'FOO';\n }\n }\n\n };\n assert.equal(aget(obj, 'foo', 'fail'), 'FOO', 'should return value from unknownProperty');\n assert.equal(aget(obj, 'bar', 'default'), 'default', 'should convert undefined from unknownProperty into default');\n } else {\n assert.ok('SKIPPING ACCESSORS');\n }\n } // ..........................................................\n // BUGS\n //\n\n\n ['@test (regression) watched properties on unmodified inherited objects should still return their original value'](assert) {\n let MyMixin = _metal.Mixin.create({\n someProperty: 'foo',\n propertyDidChange: (0, _metal.observer)('someProperty', () => {\n /* nothing to do */\n })\n });\n\n let baseObject = MyMixin.apply({});\n let theRealObject = Object.create(baseObject);\n assert.equal((0, _metal.getWithDefault)(theRealObject, 'someProperty', 'fail'), 'foo', 'should return the set value, not false');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/accessors/mandatory_setters_test\", [\"@glimmer/env\", \"@ember/-internals/metal\", \"@ember/-internals/meta\", \"internal-test-helpers\"], function (_env, _metal, _meta, _internalTestHelpers) {\n \"use strict\";\n\n function hasMandatorySetter(object, property) {\n try {\n return Object.getOwnPropertyDescriptor(object, property).set.isMandatorySetter === true;\n } catch (e) {\n return false;\n }\n }\n\n function hasMetaValue(object, property) {\n return (0, _meta.meta)(object).peekValues(property) !== undefined;\n }\n\n if (_env.DEBUG) {\n (0, _internalTestHelpers.moduleFor)('mandory-setters', class extends _internalTestHelpers.AbstractTestCase {\n ['@test does not assert if property is not being watched'](assert) {\n let obj = {\n someProp: null,\n\n toString() {\n return 'custom-object';\n }\n\n };\n obj.someProp = 'blastix';\n assert.equal((0, _metal.get)(obj, 'someProp'), 'blastix');\n }\n\n ['@test should not setup mandatory-setter if property is not writable'](assert) {\n assert.expect(6);\n let obj = {};\n Object.defineProperty(obj, 'a', {\n value: true\n });\n Object.defineProperty(obj, 'b', {\n value: false\n });\n Object.defineProperty(obj, 'c', {\n value: undefined\n });\n Object.defineProperty(obj, 'd', {\n value: undefined,\n writable: false\n });\n Object.defineProperty(obj, 'e', {\n value: undefined,\n configurable: false\n });\n Object.defineProperty(obj, 'f', {\n value: undefined,\n configurable: true\n });\n (0, _metal.watch)(obj, 'a');\n (0, _metal.watch)(obj, 'b');\n (0, _metal.watch)(obj, 'c');\n (0, _metal.watch)(obj, 'd');\n (0, _metal.watch)(obj, 'e');\n (0, _metal.watch)(obj, 'f');\n assert.ok(!hasMandatorySetter(obj, 'a'), 'mandatory-setter should not be installed');\n assert.ok(!hasMandatorySetter(obj, 'b'), 'mandatory-setter should not be installed');\n assert.ok(!hasMandatorySetter(obj, 'c'), 'mandatory-setter should not be installed');\n assert.ok(!hasMandatorySetter(obj, 'd'), 'mandatory-setter should not be installed');\n assert.ok(!hasMandatorySetter(obj, 'e'), 'mandatory-setter should not be installed');\n assert.ok(!hasMandatorySetter(obj, 'f'), 'mandatory-setter should not be installed');\n }\n\n ['@test should not teardown non mandatory-setter descriptor'](assert) {\n assert.expect(1);\n let obj = {\n get a() {\n return 'hi';\n }\n\n };\n (0, _metal.watch)(obj, 'a');\n (0, _metal.unwatch)(obj, 'a');\n assert.equal(obj.a, 'hi');\n }\n\n ['@test should not confuse non descriptor watched gets'](assert) {\n assert.expect(2);\n let obj = {\n get a() {\n return 'hi';\n }\n\n };\n (0, _metal.watch)(obj, 'a');\n assert.equal((0, _metal.get)(obj, 'a'), 'hi');\n assert.equal(obj.a, 'hi');\n }\n\n ['@test should not setup mandatory-setter if setter is already setup on property'](assert) {\n assert.expect(2);\n let obj = {\n someProp: null\n };\n Object.defineProperty(obj, 'someProp', {\n get() {\n return null;\n },\n\n set(value) {\n assert.equal(value, 'foo-bar', 'custom setter was called');\n }\n\n });\n (0, _metal.watch)(obj, 'someProp');\n assert.ok(!hasMandatorySetter(obj, 'someProp'), 'mandatory-setter should not be installed');\n obj.someProp = 'foo-bar';\n }\n\n ['@test watched ES5 setter should not be smashed by mandatory setter'](assert) {\n let value;\n let obj = {\n get foo() {\n return value;\n },\n\n set foo(_value) {\n value = _value;\n }\n\n };\n (0, _metal.watch)(obj, 'foo');\n (0, _metal.set)(obj, 'foo', 2);\n assert.equal(value, 2);\n }\n\n ['@test should not setup mandatory-setter if setter is already setup on property in parent prototype'](assert) {\n assert.expect(2);\n\n function Foo() {}\n\n Object.defineProperty(Foo.prototype, 'someProp', {\n get() {\n return null;\n },\n\n set(value) {\n assert.equal(value, 'foo-bar', 'custom setter was called');\n }\n\n });\n let obj = new Foo();\n (0, _metal.watch)(obj, 'someProp');\n assert.ok(!hasMandatorySetter(obj, 'someProp'), 'mandatory-setter should not be installed');\n obj.someProp = 'foo-bar';\n }\n\n ['@test should not setup mandatory-setter if setter is already setup on property in grandparent prototype'](assert) {\n assert.expect(2);\n\n function Foo() {}\n\n Object.defineProperty(Foo.prototype, 'someProp', {\n get() {\n return null;\n },\n\n set(value) {\n assert.equal(value, 'foo-bar', 'custom setter was called');\n }\n\n });\n\n function Bar() {}\n\n Bar.prototype = Object.create(Foo.prototype);\n Bar.prototype.constructor = Bar;\n let obj = new Bar();\n (0, _metal.watch)(obj, 'someProp');\n assert.ok(!hasMandatorySetter(obj, 'someProp'), 'mandatory-setter should not be installed');\n obj.someProp = 'foo-bar';\n }\n\n ['@test should not setup mandatory-setter if setter is already setup on property in great grandparent prototype'](assert) {\n assert.expect(2);\n\n function Foo() {}\n\n Object.defineProperty(Foo.prototype, 'someProp', {\n get() {\n return null;\n },\n\n set(value) {\n assert.equal(value, 'foo-bar', 'custom setter was called');\n }\n\n });\n\n function Bar() {}\n\n Bar.prototype = Object.create(Foo.prototype);\n Bar.prototype.constructor = Bar;\n\n function Qux() {}\n\n Qux.prototype = Object.create(Bar.prototype);\n Qux.prototype.constructor = Qux;\n let obj = new Qux();\n (0, _metal.watch)(obj, 'someProp');\n assert.ok(!hasMandatorySetter(obj, 'someProp'), 'mandatory-setter should not be installed');\n obj.someProp = 'foo-bar';\n }\n\n ['@test should assert if set without set when property is being watched']() {\n let obj = {\n someProp: null,\n\n toString() {\n return 'custom-object';\n }\n\n };\n (0, _metal.watch)(obj, 'someProp');\n expectAssertion(function () {\n obj.someProp = 'foo-bar';\n }, 'You must use set() to set the `someProp` property (of custom-object) to `foo-bar`.');\n }\n\n ['@test should not assert if set with set when property is being watched'](assert) {\n let obj = {\n someProp: null,\n\n toString() {\n return 'custom-object';\n }\n\n };\n (0, _metal.watch)(obj, 'someProp');\n (0, _metal.set)(obj, 'someProp', 'foo-bar');\n assert.equal((0, _metal.get)(obj, 'someProp'), 'foo-bar');\n }\n\n ['@test does not setup mandatory-setter if non-configurable'](assert) {\n let obj = {\n someProp: null,\n\n toString() {\n return 'custom-object';\n }\n\n };\n Object.defineProperty(obj, 'someProp', {\n configurable: false,\n enumerable: true,\n value: 'blastix'\n });\n (0, _metal.watch)(obj, 'someProp');\n assert.ok(!hasMandatorySetter(obj, 'someProp'), 'blastix');\n }\n\n ['@test ensure after watch the property is restored (and the value is no-longer stored in meta) [non-enumerable]'](assert) {\n let obj = {\n someProp: null,\n\n toString() {\n return 'custom-object';\n }\n\n };\n Object.defineProperty(obj, 'someProp', {\n configurable: true,\n enumerable: false,\n value: 'blastix'\n });\n (0, _metal.watch)(obj, 'someProp');\n assert.equal(hasMandatorySetter(obj, 'someProp'), true, 'should have a mandatory setter');\n let descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n assert.equal(descriptor.enumerable, false, 'property should remain non-enumerable');\n assert.equal(descriptor.configurable, true, 'property should remain configurable');\n assert.equal(obj.someProp, 'blastix', 'expected value to be the getter');\n assert.equal(descriptor.value, undefined, 'expected existing value to NOT remain');\n assert.ok(hasMetaValue(obj, 'someProp'), 'someProp is stored in meta.values');\n (0, _metal.unwatch)(obj, 'someProp');\n assert.ok(!hasMetaValue(obj, 'someProp'), 'someProp is no longer stored in meta.values');\n descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n assert.equal(hasMandatorySetter(obj, 'someProp'), false, 'should no longer have a mandatory setter');\n assert.equal(descriptor.enumerable, false, 'property should remain non-enumerable');\n assert.equal(descriptor.configurable, true, 'property should remain configurable');\n assert.equal(obj.someProp, 'blastix', 'expected value to be the getter');\n assert.equal(descriptor.value, 'blastix', 'expected existing value to remain');\n obj.someProp = 'new value'; // make sure the descriptor remains correct (nothing funky, like a redefined, happened in the setter);\n\n descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n assert.equal(descriptor.enumerable, false, 'property should remain non-enumerable');\n assert.equal(descriptor.configurable, true, 'property should remain configurable');\n assert.equal(descriptor.value, 'new value', 'expected existing value to NOT remain');\n assert.equal(obj.someProp, 'new value', 'expected value to be the getter');\n assert.equal(obj.someProp, 'new value');\n }\n\n ['@test ensure after watch the property is restored (and the value is no-longer stored in meta) [enumerable]'](assert) {\n let obj = {\n someProp: null,\n\n toString() {\n return 'custom-object';\n }\n\n };\n Object.defineProperty(obj, 'someProp', {\n configurable: true,\n enumerable: true,\n value: 'blastix'\n });\n (0, _metal.watch)(obj, 'someProp');\n assert.equal(hasMandatorySetter(obj, 'someProp'), true, 'should have a mandatory setter');\n let descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n assert.equal(descriptor.enumerable, true, 'property should remain enumerable');\n assert.equal(descriptor.configurable, true, 'property should remain configurable');\n assert.equal(obj.someProp, 'blastix', 'expected value to be the getter');\n assert.equal(descriptor.value, undefined, 'expected existing value to NOT remain');\n assert.ok(hasMetaValue(obj, 'someProp'), 'someProp is stored in meta.values');\n (0, _metal.unwatch)(obj, 'someProp');\n assert.ok(!hasMetaValue(obj, 'someProp'), 'someProp is no longer stored in meta.values');\n descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n assert.equal(hasMandatorySetter(obj, 'someProp'), false, 'should no longer have a mandatory setter');\n assert.equal(descriptor.enumerable, true, 'property should remain enumerable');\n assert.equal(descriptor.configurable, true, 'property should remain configurable');\n assert.equal(obj.someProp, 'blastix', 'expected value to be the getter');\n assert.equal(descriptor.value, 'blastix', 'expected existing value to remain');\n obj.someProp = 'new value'; // make sure the descriptor remains correct (nothing funky, like a redefined, happened in the setter);\n\n descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n assert.equal(descriptor.enumerable, true, 'property should remain enumerable');\n assert.equal(descriptor.configurable, true, 'property should remain configurable');\n assert.equal(descriptor.value, 'new value', 'expected existing value to NOT remain');\n assert.equal(obj.someProp, 'new value');\n }\n\n ['@test sets up mandatory-setter if property comes from prototype'](assert) {\n assert.expect(2);\n let obj = {\n someProp: null,\n\n toString() {\n return 'custom-object';\n }\n\n };\n let obj2 = Object.create(obj);\n (0, _metal.watch)(obj2, 'someProp');\n assert.ok(hasMandatorySetter(obj2, 'someProp'), 'mandatory setter has been setup');\n expectAssertion(function () {\n obj2.someProp = 'foo-bar';\n }, 'You must use set() to set the `someProp` property (of custom-object) to `foo-bar`.');\n }\n\n ['@test inheritance remains live'](assert) {\n function Parent() {}\n\n Parent.prototype.food = 'chips';\n let child = new Parent();\n assert.equal(child.food, 'chips');\n (0, _metal.watch)(child, 'food');\n assert.equal(child.food, 'chips');\n Parent.prototype.food = 'icecreame';\n assert.equal(child.food, 'icecreame');\n (0, _metal.unwatch)(child, 'food');\n assert.equal(child.food, 'icecreame');\n Parent.prototype.food = 'chips';\n assert.equal(child.food, 'chips');\n }\n\n ['@test inheritance remains live and preserves this'](assert) {\n function Parent(food) {\n this._food = food;\n }\n\n Object.defineProperty(Parent.prototype, 'food', {\n get() {\n return this._food;\n }\n\n });\n let child = new Parent('chips');\n assert.equal(child.food, 'chips');\n (0, _metal.watch)(child, 'food');\n assert.equal(child.food, 'chips');\n child._food = 'icecreame';\n assert.equal(child.food, 'icecreame');\n (0, _metal.unwatch)(child, 'food');\n assert.equal(child.food, 'icecreame');\n let foodDesc = Object.getOwnPropertyDescriptor(Parent.prototype, 'food');\n assert.ok(!foodDesc.configurable, 'Parent.prototype.food desc should be non configable');\n assert.ok(!foodDesc.enumerable, 'Parent.prototype.food desc should be non enumerable');\n assert.equal(foodDesc.get.call({\n _food: 'hi'\n }), 'hi');\n assert.equal(foodDesc.set, undefined);\n assert.equal(child.food, 'icecreame');\n }\n\n });\n }\n});","enifed(\"@ember/-internals/metal/tests/accessors/set_path_test\", [\"@ember/-internals/environment\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_environment, _metal, _internalTestHelpers) {\n \"use strict\";\n\n let originalLookup = _environment.context.lookup;\n let lookup;\n let obj;\n\n function commonSetup() {\n _environment.context.lookup = lookup = {};\n obj = {\n foo: {\n bar: {\n baz: {\n biff: 'BIFF'\n }\n }\n }\n };\n }\n\n function commonTeardown() {\n _environment.context.lookup = originalLookup;\n obj = null;\n }\n\n (0, _internalTestHelpers.moduleFor)('set with path', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n commonSetup();\n }\n\n teardown() {\n commonTeardown();\n }\n\n ['@test [Foo, bar] -> Foo.bar'](assert) {\n lookup.Foo = {\n toString() {\n return 'Foo';\n }\n\n }; // Behave like an Ember.Namespace\n\n (0, _metal.set)(lookup.Foo, 'bar', 'baz');\n assert.equal((0, _metal.get)(lookup.Foo, 'bar'), 'baz');\n } // ..........................................................\n //\n // LOCAL PATHS\n\n\n ['@test [obj, foo] -> obj.foo'](assert) {\n (0, _metal.set)(obj, 'foo', 'BAM');\n assert.equal((0, _metal.get)(obj, 'foo'), 'BAM');\n }\n\n ['@test [obj, foo.bar] -> obj.foo.bar'](assert) {\n (0, _metal.set)(obj, 'foo.bar', 'BAM');\n assert.equal((0, _metal.get)(obj, 'foo.bar'), 'BAM');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('set with path - deprecated', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n commonSetup();\n }\n\n teardown() {\n commonTeardown();\n } // ..........................................................\n // DEPRECATED\n //\n\n\n ['@test [obj, bla.bla] gives a proper exception message'](assert) {\n let exceptionMessage = 'Property set failed: object in path \"bla\" could not be found.';\n\n try {\n (0, _metal.set)(obj, 'bla.bla', 'BAM');\n } catch (ex) {\n assert.equal(ex.message, exceptionMessage);\n }\n }\n\n ['@test [obj, foo.baz.bat] -> EXCEPTION'](assert) {\n assert.throws(() => (0, _metal.set)(obj, 'foo.baz.bat', 'BAM'));\n }\n\n ['@test [obj, foo.baz.bat] -> EXCEPTION'](assert) {\n (0, _metal.trySet)(obj, 'foo.baz.bat', 'BAM');\n assert.ok(true, 'does not raise');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/accessors/set_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('set', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should set arbitrary properties on an object'](assert) {\n let obj = {\n string: 'string',\n number: 23,\n boolTrue: true,\n boolFalse: false,\n nullValue: null,\n undefinedValue: undefined\n };\n let newObj = {};\n\n for (let key in obj) {\n if (!obj.hasOwnProperty(key)) {\n continue;\n }\n\n assert.equal((0, _metal.set)(newObj, key, obj[key]), obj[key], 'should return value');\n assert.ok(key in newObj, 'should have key');\n assert.ok(newObj.hasOwnProperty(key), 'should have key');\n assert.equal((0, _metal.get)(newObj, key), obj[key], 'should set value');\n }\n }\n\n ['@test should set a number key on an object'](assert) {\n let obj = {};\n (0, _metal.set)(obj, 1, 'first');\n assert.equal(obj[1], 'first');\n }\n\n ['@test should set an array index'](assert) {\n let arr = ['first', 'second'];\n (0, _metal.set)(arr, 1, 'lol');\n assert.deepEqual(arr, ['first', 'lol']);\n }\n\n ['@test should call setUnknownProperty if defined and value is undefined'](assert) {\n let obj = {\n count: 0,\n\n unknownProperty() {\n assert.ok(false, 'should not invoke unknownProperty if setUnknownProperty is defined');\n },\n\n setUnknownProperty(key, value) {\n assert.equal(key, 'foo', 'should pass key');\n assert.equal(value, 'BAR', 'should pass key');\n this.count++;\n return 'FOO';\n }\n\n };\n assert.equal((0, _metal.set)(obj, 'foo', 'BAR'), 'BAR', 'should return set value');\n assert.equal(obj.count, 1, 'should have invoked');\n }\n\n ['@test warn on attempts to call set with undefined as object']() {\n expectAssertion(() => (0, _metal.set)(undefined, 'aProperty', 'BAM'), /Cannot call set with 'aProperty' on an undefined object./);\n }\n\n ['@test warn on attempts to call set with null as object']() {\n expectAssertion(() => (0, _metal.set)(null, 'aProperty', 'BAM'), /Cannot call set with 'aProperty' on an undefined object./);\n }\n\n ['@test warn on attempts to use set with an unsupported property path']() {\n let obj = {};\n expectAssertion(() => (0, _metal.set)(obj, null, 42), /The key provided to set must be a string or number, you passed null/);\n expectAssertion(() => (0, _metal.set)(obj, NaN, 42), /The key provided to set must be a string or number, you passed NaN/);\n expectAssertion(() => (0, _metal.set)(obj, undefined, 42), /The key provided to set must be a string or number, you passed undefined/);\n expectAssertion(() => (0, _metal.set)(obj, false, 42), /The key provided to set must be a string or number, you passed false/);\n }\n\n ['@test warn on attempts of calling set on a destroyed object']() {\n let obj = {\n isDestroyed: true\n };\n expectAssertion(() => (0, _metal.set)(obj, 'favoriteFood', 'hot dogs'), 'calling set on destroyed object: [object Object].favoriteFood = hot dogs');\n }\n\n ['@test does not trigger auto-run assertion for objects that have not been tagged'](assert) {\n let obj = {};\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(obj.foo, 'bar');\n }\n\n ['@test does not warn on attempts of calling set on a destroyed object with `trySet`'](assert) {\n let obj = {\n isDestroyed: true\n };\n (0, _metal.trySet)(obj, 'favoriteFood', 'hot dogs');\n assert.equal(obj.favoriteFood, undefined, 'does not set and does not error');\n }\n\n ['@test should work with native setters'](assert) {\n let count = 0;\n\n class Foo {\n constructor() {\n this.__foo = '';\n }\n\n get foo() {\n return this.__foo;\n }\n\n set foo(value) {\n count++;\n this.__foo = \"computed \" + value;\n }\n\n }\n\n let obj = new Foo();\n assert.equal((0, _metal.set)(obj, 'foo', 'bar'), 'bar', 'should return set value');\n assert.equal(count, 1, 'should have native setter');\n assert.equal((0, _metal.get)(obj, 'foo'), 'computed bar', 'should return new value');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/alias_test\", [\"@ember/-internals/metal\", \"@ember/-internals/meta\", \"internal-test-helpers\"], function (_metal, _meta, _internalTestHelpers) {\n \"use strict\";\n\n let obj, count;\n\n function incrementCount() {\n count++;\n }\n\n (0, _internalTestHelpers.moduleFor)('@ember/-internals/metal/alias', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = {\n foo: {\n faz: 'FOO'\n }\n };\n count = 0;\n }\n\n afterEach() {\n obj = null;\n }\n\n ['@test should proxy get to alt key'](assert) {\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.alias)('foo.faz'));\n assert.equal((0, _metal.get)(obj, 'bar'), 'FOO');\n }\n\n ['@test should proxy set to alt key'](assert) {\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.alias)('foo.faz'));\n (0, _metal.set)(obj, 'bar', 'BAR');\n assert.equal((0, _metal.get)(obj, 'foo.faz'), 'BAR');\n }\n\n ['@test old dependent keys should not trigger property changes'](assert) {\n let obj1 = Object.create(null);\n (0, _metal.defineProperty)(obj1, 'foo', null, null);\n (0, _metal.defineProperty)(obj1, 'bar', (0, _metal.alias)('foo'));\n (0, _metal.defineProperty)(obj1, 'baz', (0, _metal.alias)('foo'));\n (0, _metal.defineProperty)(obj1, 'baz', (0, _metal.alias)('bar')); // redefine baz\n\n (0, _metal.addObserver)(obj1, 'baz', incrementCount);\n (0, _metal.set)(obj1, 'foo', 'FOO');\n assert.equal(count, 1);\n (0, _metal.removeObserver)(obj1, 'baz', incrementCount);\n (0, _metal.set)(obj1, 'foo', 'OOF');\n assert.equal(count, 1);\n }\n\n [\"@test inheriting an observer of the alias from the prototype then\\n redefining the alias on the instance to another property dependent on same key\\n does not call the observer twice\"](assert) {\n let obj1 = Object.create(null);\n obj1.incrementCount = incrementCount;\n (0, _meta.meta)(obj1).proto = obj1;\n (0, _metal.defineProperty)(obj1, 'foo', null, null);\n (0, _metal.defineProperty)(obj1, 'bar', (0, _metal.alias)('foo'));\n (0, _metal.defineProperty)(obj1, 'baz', (0, _metal.alias)('foo'));\n (0, _metal.addObserver)(obj1, 'baz', null, 'incrementCount');\n let obj2 = Object.create(obj1);\n (0, _metal.defineProperty)(obj2, 'baz', (0, _metal.alias)('bar')); // override baz\n\n (0, _metal.set)(obj2, 'foo', 'FOO');\n assert.equal(count, 1);\n (0, _metal.removeObserver)(obj2, 'baz', null, 'incrementCount');\n (0, _metal.set)(obj2, 'foo', 'OOF');\n assert.equal(count, 1);\n }\n\n ['@test an observer of the alias works if added after defining the alias'](assert) {\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.alias)('foo.faz'));\n (0, _metal.addObserver)(obj, 'bar', incrementCount);\n assert.ok((0, _metal.isWatching)(obj, 'foo.faz'));\n (0, _metal.set)(obj, 'foo.faz', 'BAR');\n assert.equal(count, 1);\n }\n\n ['@test an observer of the alias works if added before defining the alias'](assert) {\n (0, _metal.addObserver)(obj, 'bar', incrementCount);\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.alias)('foo.faz'));\n assert.ok((0, _metal.isWatching)(obj, 'foo.faz'));\n (0, _metal.set)(obj, 'foo.faz', 'BAR');\n assert.equal(count, 1);\n }\n\n ['@test object with alias is dirtied if interior object of alias is set after consumption'](assert) {\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.alias)('foo.faz'));\n (0, _metal.get)(obj, 'bar');\n let tag = (0, _metal.tagFor)(obj);\n let tagValue = tag.value();\n (0, _metal.set)(obj, 'foo.faz', 'BAR');\n assert.ok(!tag.validate(tagValue), 'setting the aliased key should dirty the object');\n }\n\n ['@test setting alias on self should fail assertion']() {\n expectAssertion(() => (0, _metal.defineProperty)(obj, 'bar', (0, _metal.alias)('bar')), \"Setting alias 'bar' on self\");\n }\n\n ['@test destroyed alias does not disturb watch count'](assert) {\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.alias)('foo.faz'));\n assert.equal((0, _metal.get)(obj, 'bar'), 'FOO');\n assert.ok((0, _metal.isWatching)(obj, 'foo.faz'));\n (0, _metal.defineProperty)(obj, 'bar', null);\n assert.notOk((0, _metal.isWatching)(obj, 'foo.faz'));\n }\n\n ['@test setting on oneWay alias does not disturb watch count'](assert) {\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.alias)('foo.faz').oneWay());\n assert.equal((0, _metal.get)(obj, 'bar'), 'FOO');\n assert.ok((0, _metal.isWatching)(obj, 'foo.faz'));\n (0, _metal.set)(obj, 'bar', null);\n assert.notOk((0, _metal.isWatching)(obj, 'foo.faz'));\n }\n\n ['@test redefined alias with observer does not disturb watch count'](assert) {\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.alias)('foo.faz').oneWay());\n assert.equal((0, _metal.get)(obj, 'bar'), 'FOO');\n assert.ok((0, _metal.isWatching)(obj, 'foo.faz'));\n (0, _metal.addObserver)(obj, 'bar', incrementCount);\n assert.equal(count, 0);\n (0, _metal.set)(obj, 'bar', null);\n assert.equal(count, 1);\n assert.notOk((0, _metal.isWatching)(obj, 'foo.faz'));\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.alias)('foo.faz'));\n assert.equal(count, 1);\n assert.ok((0, _metal.isWatching)(obj, 'foo.faz'));\n (0, _metal.set)(obj, 'foo.faz', 'great');\n assert.equal(count, 2);\n }\n\n ['@test property tags are bumped when the source changes [GH#17243]'](assert) {\n function assertPropertyTagChanged(obj, keyName, callback) {\n let tag = (0, _metal.tagForProperty)(obj, keyName);\n let before = tag.value();\n callback();\n let after = tag.value();\n assert.notEqual(after, before, \"tagForProperty \" + keyName + \" should change\");\n }\n\n function assertPropertyTagUnchanged(obj, keyName, callback) {\n let tag = (0, _metal.tagForProperty)(obj, keyName);\n let before = tag.value();\n callback();\n let after = tag.value();\n assert.equal(after, before, \"tagForProperty \" + keyName + \" should not change\");\n }\n\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.alias)('foo.faz'));\n assertPropertyTagUnchanged(obj, 'bar', () => {\n assert.equal((0, _metal.get)(obj, 'bar'), 'FOO');\n });\n assertPropertyTagChanged(obj, 'bar', () => {\n (0, _metal.set)(obj, 'foo.faz', 'BAR');\n });\n assertPropertyTagUnchanged(obj, 'bar', () => {\n assert.equal((0, _metal.get)(obj, 'bar'), 'BAR');\n });\n assertPropertyTagUnchanged(obj, 'bar', () => {\n // trigger willWatch, then didUnwatch\n (0, _metal.addObserver)(obj, 'bar', incrementCount);\n (0, _metal.removeObserver)(obj, 'bar', incrementCount);\n });\n assertPropertyTagChanged(obj, 'bar', () => {\n (0, _metal.set)(obj, 'foo.faz', 'FOO');\n });\n assertPropertyTagUnchanged(obj, 'bar', () => {\n assert.equal((0, _metal.get)(obj, 'bar'), 'FOO');\n });\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/chains_test\", [\"@ember/-internals/metal\", \"@ember/-internals/meta\", \"internal-test-helpers\"], function (_metal, _meta, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Chains', class extends _internalTestHelpers.AbstractTestCase {\n ['@test finishChains should properly copy chains from prototypes to instances'](assert) {\n function didChange() {}\n\n let obj = {};\n (0, _metal.addObserver)(obj, 'foo.bar', null, didChange);\n let childObj = Object.create(obj);\n let parentMeta = (0, _meta.meta)(obj);\n let childMeta = (0, _meta.meta)(childObj);\n (0, _metal.finishChains)(childMeta);\n assert.ok(parentMeta.readableChains() !== childMeta.readableChains(), 'The chains object is copied');\n }\n\n ['@test does not observe primitive values'](assert) {\n let obj = {\n foo: {\n bar: 'STRING'\n }\n };\n (0, _metal.addObserver)(obj, 'foo.bar.baz', null, function () {});\n let meta = (0, _meta.peekMeta)(obj);\n assert.notOk(meta._object);\n }\n\n ['@test observer and CP chains'](assert) {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)('qux.[]', function () {}));\n (0, _metal.defineProperty)(obj, 'qux', (0, _metal.computed)(function () {})); // create DK chains\n\n (0, _metal.get)(obj, 'foo'); // create observer chain\n\n (0, _metal.addObserver)(obj, 'qux.length', function () {});\n /*\n +-----+\n | qux | root CP\n +-----+\n ^\n +------+-----+\n | |\n +--------+ +----+\n | length | | [] | chainWatchers\n +--------+ +----+\n observer CP(foo, 'qux.[]')\n */\n // invalidate qux\n\n (0, _metal.notifyPropertyChange)(obj, 'qux'); // CP chain is blown away\n\n /*\n +-----+\n | qux | root CP\n +-----+\n ^\n +------+xxxxxx\n | x\n +--------+ xxxxxx\n | length | x [] x chainWatchers\n +--------+ xxxxxx\n observer CP(foo, 'qux.[]')\n */\n\n (0, _metal.get)(obj, 'qux'); // CP chain re-recreated\n\n assert.ok(true, 'no crash');\n }\n\n ['@test checks cache correctly'](assert) {\n let obj = {};\n let parentChainNode = new _metal.ChainNode(null, null, obj);\n let chainNode = new _metal.ChainNode(parentChainNode, 'foo');\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)(function () {\n return undefined;\n }));\n (0, _metal.get)(obj, 'foo');\n assert.strictEqual(chainNode.value(), undefined);\n }\n\n ['@test chains are watched correctly'](assert) {\n let obj = {\n foo: {\n bar: {\n baz: 1\n }\n }\n };\n (0, _metal.watch)(obj, 'foo.bar.baz');\n assert.equal((0, _metal.watcherCount)(obj, 'foo'), 1);\n assert.equal((0, _metal.watcherCount)(obj, 'foo.bar'), 0);\n assert.equal((0, _metal.watcherCount)(obj, 'foo.bar.baz'), 1);\n assert.equal((0, _metal.watcherCount)(obj.foo, 'bar'), 1);\n assert.equal((0, _metal.watcherCount)(obj.foo, 'bar.baz'), 0);\n assert.equal((0, _metal.watcherCount)(obj.foo.bar, 'baz'), 1);\n (0, _metal.unwatch)(obj, 'foo.bar.baz');\n assert.equal((0, _metal.watcherCount)(obj, 'foo'), 0);\n assert.equal((0, _metal.watcherCount)(obj, 'foo.bar'), 0);\n assert.equal((0, _metal.watcherCount)(obj, 'foo.bar.baz'), 0);\n assert.equal((0, _metal.watcherCount)(obj.foo, 'bar'), 0);\n assert.equal((0, _metal.watcherCount)(obj.foo, 'bar.baz'), 0);\n assert.equal((0, _metal.watcherCount)(obj.foo.bar, 'baz'), 0);\n }\n\n ['@test chains with single character keys are watched correctly'](assert) {\n let obj = {\n a: {\n b: {\n c: 1\n }\n }\n };\n (0, _metal.watch)(obj, 'a.b.c');\n assert.equal((0, _metal.watcherCount)(obj, 'a'), 1);\n assert.equal((0, _metal.watcherCount)(obj, 'a.b'), 0);\n assert.equal((0, _metal.watcherCount)(obj, 'a.b.c'), 1);\n assert.equal((0, _metal.watcherCount)(obj.a, 'b'), 1);\n assert.equal((0, _metal.watcherCount)(obj.a, 'b.c'), 0);\n assert.equal((0, _metal.watcherCount)(obj.a.b, 'c'), 1);\n (0, _metal.unwatch)(obj, 'a.b.c');\n assert.equal((0, _metal.watcherCount)(obj, 'a'), 0);\n assert.equal((0, _metal.watcherCount)(obj, 'a.b'), 0);\n assert.equal((0, _metal.watcherCount)(obj, 'a.b.c'), 0);\n assert.equal((0, _metal.watcherCount)(obj.a, 'b'), 0);\n assert.equal((0, _metal.watcherCount)(obj.a, 'b.c'), 0);\n assert.equal((0, _metal.watcherCount)(obj.a.b, 'c'), 0);\n }\n\n ['@test writable chains is not defined more than once'](assert) {\n assert.expect(0);\n\n class Base {\n constructor() {\n (0, _metal.finishChains)((0, _meta.meta)(this));\n }\n\n didChange() {}\n\n }\n\n Base.prototype.foo = {\n bar: {\n baz: {\n value: 123\n }\n }\n }; // Define a standard computed property, which will eventually setup dependencies\n\n (0, _metal.defineProperty)(Base.prototype, 'bar', (0, _metal.computed)('foo.bar', {\n get() {\n return this.foo.bar;\n }\n\n })); // Define some aliases, which will proxy chains along\n\n (0, _metal.defineProperty)(Base.prototype, 'baz', (0, _metal.alias)('bar.baz'));\n (0, _metal.defineProperty)(Base.prototype, 'value', (0, _metal.alias)('baz.value')); // Define an observer, which will eagerly attempt to setup chains and watch\n // their values. This follows the aliases eagerly, and forces the first\n // computed to actually set up its values/dependencies for chains. If\n // writableChains was not already defined, this results in multiple root\n // chain nodes being defined on the same object meta.\n\n (0, _metal.addObserver)(Base.prototype, 'value', null, 'didChange');\n\n class Child extends Base {}\n\n let childObj = new Child();\n (0, _metal.set)(childObj, 'foo.bar', {\n baz: {\n value: 456\n }\n });\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/computed_decorator_test\", [\"@ember/-internals/runtime\", \"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/canary-features\"], function (_runtime, _metal, _internalTestHelpers, _canaryFeatures) {\n \"use strict\";\n\n function _initializerDefineProperty(target, property, descriptor, context) {\n if (!descriptor) return;\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n });\n }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n var desc = {};\n Object.keys(descriptor).forEach(function (key) {\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n\n if ('value' in desc || desc.initializer) {\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0) {\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n\n function _initializerWarningHelper(descriptor, context) {\n throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.');\n }\n\n if (_canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT) {\n (0, _internalTestHelpers.moduleFor)('computed - decorator - compatibility', class extends _internalTestHelpers.AbstractTestCase {\n ['@test computed can be used to compose new decorators'](assert) {\n var _class, _descriptor, _temp;\n\n let firstName = 'Diana';\n let firstNameAlias = (0, _metal.computed)('firstName', {\n get() {\n return this.firstName;\n }\n\n });\n let Class1 = (_class = (_temp = class Class1 {\n constructor() {\n this.firstName = firstName;\n\n _initializerDefineProperty(this, \"otherFirstName\", _descriptor, this);\n }\n\n }, _temp), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"otherFirstName\", [firstNameAlias], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n\n let Class2 = _runtime.Object.extend({\n firstName,\n otherFirstName: firstNameAlias\n });\n\n let obj1 = new Class1();\n let obj2 = Class2.create();\n assert.equal(firstName, obj1.otherFirstName);\n assert.equal(firstName, obj2.otherFirstName);\n }\n\n ['@test decorator can still have a configuration object'](assert) {\n var _dec, _class3, _descriptor2, _temp2;\n\n let Foo = (_dec = (0, _metal.computed)('foo', {\n get() {\n return this.bar;\n }\n\n }), (_class3 = (_temp2 = class Foo {\n constructor() {\n this.bar = 'something';\n this.foo = 'else';\n\n _initializerDefineProperty(this, \"baz\", _descriptor2, this);\n }\n\n }, _temp2), _descriptor2 = _applyDecoratedDescriptor(_class3.prototype, \"baz\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class3));\n let obj1 = new Foo();\n assert.equal('something', obj1.baz);\n }\n\n ['@test it works with functions'](assert) {\n var _dec2, _class5, _descriptor3, _temp3;\n\n assert.expect(2);\n let Foo = (_dec2 = (0, _metal.computed)('first', 'last', function () {\n assert.equal(this.first, 'rob');\n assert.equal(this.last, 'jackson');\n }), (_class5 = (_temp3 = class Foo {\n constructor() {\n this.first = 'rob';\n this.last = 'jackson';\n\n _initializerDefineProperty(this, \"fullName\", _descriptor3, this);\n }\n\n }, _temp3), _descriptor3 = _applyDecoratedDescriptor(_class5.prototype, \"fullName\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class5));\n let obj = new Foo();\n (0, _metal.get)(obj, 'fullName');\n }\n\n ['@test computed property can be defined and accessed on a class constructor'](assert) {\n var _class7, _class8, _temp4;\n\n let count = 0;\n let Obj = (_class7 = (_temp4 = _class8 = class Obj {\n static get foo() {\n count++;\n return this.bar;\n }\n\n }, _class8.bar = 123, _temp4), _applyDecoratedDescriptor(_class7, \"foo\", [_metal.computed], Object.getOwnPropertyDescriptor(_class7, \"foo\"), _class7), _class7);\n assert.equal(Obj.foo, 123, 'should return value');\n Obj.foo;\n assert.equal(count, 1, 'should only call getter once');\n }\n\n ['@test it works with computed desc'](assert) {\n var _dec3, _class9, _descriptor4, _temp5;\n\n assert.expect(4);\n let expectedName = 'rob jackson';\n let expectedFirst = 'rob';\n let expectedLast = 'jackson';\n let Foo = (_dec3 = (0, _metal.computed)('first', 'last', {\n get() {\n assert.equal(this.first, expectedFirst, 'getter: first name matches');\n assert.equal(this.last, expectedLast, 'getter: last name matches');\n return this.first + \" \" + this.last;\n },\n\n set(key, name) {\n assert.equal(name, expectedName, 'setter: name matches');\n let [first, last] = name.split(' ');\n (0, _metal.setProperties)(this, {\n first,\n last\n });\n return name;\n }\n\n }), (_class9 = (_temp5 = class Foo {\n constructor() {\n this.first = 'rob';\n this.last = 'jackson';\n\n _initializerDefineProperty(this, \"fullName\", _descriptor4, this);\n }\n\n }, _temp5), _descriptor4 = _applyDecoratedDescriptor(_class9.prototype, \"fullName\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class9));\n let obj = new Foo();\n (0, _metal.get)(obj, 'fullName');\n expectedName = 'yehuda katz';\n expectedFirst = 'yehuda';\n expectedLast = 'katz';\n (0, _metal.set)(obj, 'fullName', 'yehuda katz');\n assert.strictEqual((0, _metal.get)(obj, 'fullName'), expectedName, 'return value of getter is new value of property');\n }\n\n ['@test it throws if it receives a desc and decorates a getter/setter']() {\n expectAssertion(() => {\n var _dec4, _class11, _temp6;\n\n let Foo = (_dec4 = (0, _metal.computed)('bar', {\n get() {\n return this.bar;\n }\n\n }), (_class11 = (_temp6 = class Foo {\n constructor() {\n this.bar = void 0;\n }\n\n set foo(value) {\n (0, _metal.set)(this, 'bar', value);\n }\n\n }, _temp6), _applyDecoratedDescriptor(_class11.prototype, \"foo\", [_dec4], Object.getOwnPropertyDescriptor(_class11.prototype, \"foo\"), _class11.prototype), _class11));\n new Foo();\n }, /Attempted to apply a computed property that already has a getter\\/setter to a foo, but it is a method or an accessor./);\n }\n\n ['@test it throws if a CP is passed to it']() {\n expectAssertion(() => {\n var _dec5, _class13, _descriptor5, _temp7;\n\n let Foo = (_dec5 = (0, _metal.computed)('bar', (0, _metal.computed)({\n get() {\n return this._foo;\n }\n\n })), (_class13 = (_temp7 = class Foo {\n constructor() {\n this.bar = void 0;\n\n _initializerDefineProperty(this, \"foo\", _descriptor5, this);\n }\n\n }, _temp7), _descriptor5 = _applyDecoratedDescriptor(_class13.prototype, \"foo\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class13));\n new Foo();\n }, 'You attempted to pass a computed property instance to computed(). Computed property instances are decorator functions, and cannot be passed to computed() because they cannot be turned into decorators twice');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('computed - decorator - usage tests', class extends _internalTestHelpers.AbstractTestCase {\n ['@test computed property asserts the presence of a getter']() {\n expectAssertion(() => {\n var _dec6, _class15;\n\n let TestObj = (_dec6 = (0, _metal.computed)(), (_class15 = class TestObj {\n nonGetter() {\n return true;\n }\n\n }, _applyDecoratedDescriptor(_class15.prototype, \"nonGetter\", [_dec6], Object.getOwnPropertyDescriptor(_class15.prototype, \"nonGetter\"), _class15.prototype), _class15));\n new TestObj();\n }, /Try converting it to a getter/);\n }\n\n ['@test computed property works with a getter'](assert) {\n var _class16;\n\n let TestObj = (_class16 = class TestObj {\n get someGetter() {\n return true;\n }\n\n }, _applyDecoratedDescriptor(_class16.prototype, \"someGetter\", [_metal.computed], Object.getOwnPropertyDescriptor(_class16.prototype, \"someGetter\"), _class16.prototype), _class16);\n let instance = new TestObj();\n assert.ok(instance.someGetter);\n }\n\n ['@test computed property with dependent key and getter'](assert) {\n var _dec7, _class17, _temp8;\n\n let TestObj = (_dec7 = (0, _metal.computed)('other'), (_class17 = (_temp8 = class TestObj {\n constructor() {\n this.other = true;\n }\n\n get someGetter() {\n return \"\" + this.other;\n }\n\n }, _temp8), _applyDecoratedDescriptor(_class17.prototype, \"someGetter\", [_dec7], Object.getOwnPropertyDescriptor(_class17.prototype, \"someGetter\"), _class17.prototype), _class17));\n let instance = new TestObj();\n assert.equal(instance.someGetter, 'true');\n (0, _metal.set)(instance, 'other', false);\n assert.equal(instance.someGetter, 'false');\n }\n\n ['@test computed property can be accessed without `get`'](assert) {\n var _dec8, _class19;\n\n let count = 0;\n let Obj = (_dec8 = (0, _metal.computed)(), (_class19 = class Obj {\n get foo() {\n count++;\n return \"computed foo\";\n }\n\n }, _applyDecoratedDescriptor(_class19.prototype, \"foo\", [_dec8], Object.getOwnPropertyDescriptor(_class19.prototype, \"foo\"), _class19.prototype), _class19));\n let obj = new Obj();\n assert.equal(obj.foo, 'computed foo', 'should return value');\n assert.equal(count, 1, 'should have invoked computed property');\n }\n\n ['@test defining computed property should invoke property on get'](assert) {\n var _dec9, _class20;\n\n let count = 0;\n let Obj = (_dec9 = (0, _metal.computed)(), (_class20 = class Obj {\n get foo() {\n count++;\n return \"computed foo\";\n }\n\n }, _applyDecoratedDescriptor(_class20.prototype, \"foo\", [_dec9], Object.getOwnPropertyDescriptor(_class20.prototype, \"foo\"), _class20.prototype), _class20));\n let obj = new Obj();\n assert.equal(obj.foo, 'computed foo', 'should return value');\n assert.equal(count, 1, 'should have invoked computed property');\n }\n\n ['@test setter is invoked with correct parameters'](assert) {\n var _dec10, _class21, _temp9;\n\n let count = 0;\n let Obj = (_dec10 = (0, _metal.computed)(), (_class21 = (_temp9 = class Obj {\n constructor() {\n this.__foo = 'not set';\n }\n\n get foo() {\n return this.__foo;\n }\n\n set foo(value) {\n count++;\n this.__foo = \"computed \" + value;\n }\n\n }, _temp9), _applyDecoratedDescriptor(_class21.prototype, \"foo\", [_dec10], Object.getOwnPropertyDescriptor(_class21.prototype, \"foo\"), _class21.prototype), _class21));\n let obj = new Obj();\n assert.equal((0, _metal.set)(obj, 'foo', 'bar'), 'bar', 'should return set value with set()');\n assert.equal(count, 1, 'should have invoked computed property');\n assert.equal((0, _metal.get)(obj, 'foo'), 'computed bar', 'should return new value with get()');\n }\n\n ['@test when not returning from setter, getter is called'](assert) {\n var _dec11, _class23, _temp10;\n\n let count = 0;\n let Obj = (_dec11 = (0, _metal.computed)(), (_class23 = (_temp10 = class Obj {\n constructor() {\n this.__foo = 'not set';\n }\n\n get foo() {\n count++;\n return this.__foo;\n }\n\n set foo(value) {\n this.__foo = \"computed \" + value;\n }\n\n }, _temp10), _applyDecoratedDescriptor(_class23.prototype, \"foo\", [_dec11], Object.getOwnPropertyDescriptor(_class23.prototype, \"foo\"), _class23.prototype), _class23));\n let obj = new Obj();\n assert.equal((0, _metal.set)(obj, 'foo', 'bar'), 'bar', 'should return set value with set()');\n assert.equal(count, 1, 'should have invoked getter');\n }\n\n ['@test when returning from setter, getter is not called'](assert) {\n var _dec12, _class25, _temp11;\n\n let count = 0;\n let Obj = (_dec12 = (0, _metal.computed)(), (_class25 = (_temp11 = class Obj {\n constructor() {\n this.__foo = 'not set';\n }\n\n get foo() {\n count++;\n return this.__foo;\n }\n\n set foo(value) {\n this.__foo = \"computed \" + value;\n return this.__foo;\n }\n\n }, _temp11), _applyDecoratedDescriptor(_class25.prototype, \"foo\", [_dec12], Object.getOwnPropertyDescriptor(_class25.prototype, \"foo\"), _class25.prototype), _class25));\n let obj = new Obj();\n assert.equal((0, _metal.set)(obj, 'foo', 'bar'), 'bar', 'should return set value with set()');\n assert.equal(count, 0, 'should not have invoked getter');\n }\n\n ['@test throws if a value is decorated twice']() {\n expectAssertion(() => {\n var _class27;\n\n let Obj = (_class27 = class Obj {\n get foo() {\n return this._foo;\n }\n\n }, _applyDecoratedDescriptor(_class27.prototype, \"foo\", [_metal.computed, _metal.computed], Object.getOwnPropertyDescriptor(_class27.prototype, \"foo\"), _class27.prototype), _class27);\n new Obj();\n }, \"Only one computed property decorator can be applied to a class field or accessor, but 'foo' was decorated twice. You may have added the decorator to both a getter and setter, which is unecessary.\");\n }\n\n });\n } else {\n (0, _internalTestHelpers.moduleFor)('computed - decorator - disabled', class extends _internalTestHelpers.AbstractTestCase {\n ['@test using a native decorator throws if the feature flag is disabled']() {\n expectAssertion(() => {\n var _dec13, _class28, _descriptor6, _temp12;\n\n let Foo = (_dec13 = (0, _metal.computed)('foo', {\n get() {\n return this.bar;\n }\n\n }), (_class28 = (_temp12 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"baz\", _descriptor6, this);\n }\n\n }, _temp12), _descriptor6 = _applyDecoratedDescriptor(_class28.prototype, \"baz\", [_dec13], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class28));\n new Foo();\n }, 'Native decorators are not enabled without the EMBER_NATIVE_DECORATOR_SUPPORT flag');\n }\n\n });\n }\n});","enifed(\"@ember/-internals/metal/tests/computed_test\", [\"@ember/-internals/runtime\", \"@ember/-internals/metal\", \"@ember/-internals/meta\", \"internal-test-helpers\"], function (_runtime, _metal, _meta, _internalTestHelpers) {\n \"use strict\";\n\n let obj, count;\n (0, _internalTestHelpers.moduleFor)('computed', class extends _internalTestHelpers.AbstractTestCase {\n ['@test isComputed is true for computed property on a factory'](assert) {\n let Obj = _runtime.Object.extend({\n foo: (0, _metal.computed)(function () {})\n });\n\n Obj.proto(); // ensure the prototype is \"collapsed\" / merged\n\n assert.ok((0, _metal.isComputed)(Obj.prototype, 'foo'));\n }\n\n ['@test isComputed is true for computed property on an instance'](assert) {\n let obj = _runtime.Object.extend({\n foo: (0, _metal.computed)(function () {})\n }).create();\n\n assert.ok((0, _metal.isComputed)(obj, 'foo'));\n }\n\n ['@test computed property should be an instance of descriptor'](assert) {\n assert.ok((0, _metal.isClassicDecorator)((0, _metal.computed)(function () {})));\n }\n\n ['@test computed properties assert the presence of a getter or setter function']() {\n expectAssertion(function () {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'someProp', (0, _metal.computed)('nogetternorsetter', {}));\n }, 'Computed properties must receive a getter or a setter, you passed none.');\n }\n\n ['@test computed properties check for the presence of a function or configuration object']() {\n expectAssertion(function () {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'someProp', (0, _metal.computed)('nolastargument'));\n }, 'Attempted to use @computed on someProp, but it did not have a getter or a setter. You must either pass a get a function or getter/setter to @computed directly (e.g. `@computed({ get() { ... } })`) or apply @computed directly to a getter/setter');\n } // non valid properties are stripped away in the process of creating a computed property descriptor\n\n\n ['@test computed properties defined with an object only allow `get` and `set` keys']() {\n expectAssertion(function () {\n let obj = _runtime.Object.extend({\n someProp: (0, _metal.computed)({\n get() {},\n\n set() {},\n\n other() {}\n\n })\n });\n\n obj.create().someProp;\n }, 'Config object passed to computed can only contain `get` and `set` keys.');\n }\n\n ['@test computed property can be accessed without `get`'](assert) {\n let obj = {};\n let count = 0;\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)(function (key) {\n count++;\n return 'computed ' + key;\n }));\n assert.equal(obj.foo, 'computed foo', 'should return value');\n assert.equal(count, 1, 'should have invoked computed property');\n }\n\n ['@test defining computed property should invoke property on get'](assert) {\n let obj = {};\n let count = 0;\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)(function (key) {\n count++;\n return 'computed ' + key;\n }));\n assert.equal((0, _metal.get)(obj, 'foo'), 'computed foo', 'should return value');\n assert.equal(count, 1, 'should have invoked computed property');\n }\n\n ['@test computed property can be defined and accessed on a class constructor'](assert) {\n let count = 0;\n\n let Obj = _runtime.Object.extend();\n\n Obj.reopenClass({\n bar: 123,\n foo: (0, _metal.computed)(function () {\n count++;\n return this.bar;\n })\n });\n assert.equal(Obj.foo, 123, 'should return value');\n Obj.foo;\n assert.equal(count, 1, 'should only call getter once');\n }\n\n ['@test can override volatile computed property'](assert) {\n let obj = {};\n expectDeprecation(() => {\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)(function () {}).volatile());\n }, 'Setting a computed property as volatile has been deprecated. Instead, consider using a native getter with native class syntax.');\n expectDeprecation(() => {\n (0, _metal.set)(obj, 'foo', 'boom');\n }, /The \\[object Object\\]#foo computed property was just overriden./);\n assert.equal(obj.foo, 'boom');\n }\n\n ['@test defining computed property should invoke property on set'](assert) {\n let obj = {};\n let count = 0;\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)({\n get(key) {\n return this['__' + key];\n },\n\n set(key, value) {\n count++;\n this['__' + key] = 'computed ' + value;\n return this['__' + key];\n }\n\n }));\n assert.equal((0, _metal.set)(obj, 'foo', 'bar'), 'bar', 'should return set value');\n assert.equal(count, 1, 'should have invoked computed property');\n assert.equal((0, _metal.get)(obj, 'foo'), 'computed bar', 'should return new value');\n } // this should be a unit test elsewhere\n // computed is more integration-like, and this test asserts on implementation details.\n // ['@test defining a computed property with a dependent key ending with @each is expanded to []'](\n // assert\n // ) {\n // let cp = computed('blazo.@each', function() {});\n // assert.deepEqual(cp._dependentKeys, ['blazo.[]']);\n // cp = computed('qux', 'zoopa.@each', function() {});\n // assert.deepEqual(cp._dependentKeys, ['qux', 'zoopa.[]']);\n // }\n\n\n ['@test defining a computed property with a dependent key more than one level deep beyond @each is not supported']() {\n expectNoWarning(() => {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'someProp', (0, _metal.computed)('todos', () => {}));\n });\n expectNoWarning(() => {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'someProp', (0, _metal.computed)('todos.@each.owner', () => {}));\n });\n expectWarning(() => {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'someProp', (0, _metal.computed)('todos.@each.owner.name', () => {}));\n }, /You used the key \"todos\\.@each\\.owner\\.name\" which is invalid\\. /);\n expectWarning(() => {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'someProp', (0, _metal.computed)('todos.@each.owner.@each.name', () => {}));\n }, /You used the key \"todos\\.@each\\.owner\\.@each\\.name\" which is invalid\\. /);\n }\n\n });\n let objA, objB;\n (0, _internalTestHelpers.moduleFor)('computed should inherit through prototype', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n objA = {\n __foo: 'FOO'\n };\n (0, _metal.defineProperty)(objA, 'foo', (0, _metal.computed)({\n get(key) {\n return this['__' + key];\n },\n\n set(key, value) {\n this['__' + key] = 'computed ' + value;\n return this['__' + key];\n }\n\n }));\n objB = Object.create(objA);\n objB.__foo = 'FOO'; // make a copy;\n }\n\n afterEach() {\n objA = objB = null;\n }\n\n ['@test using get() and set()'](assert) {\n assert.equal((0, _metal.get)(objA, 'foo'), 'FOO', 'should get FOO from A');\n assert.equal((0, _metal.get)(objB, 'foo'), 'FOO', 'should get FOO from B');\n (0, _metal.set)(objA, 'foo', 'BIFF');\n assert.equal((0, _metal.get)(objA, 'foo'), 'computed BIFF', 'should change A');\n assert.equal((0, _metal.get)(objB, 'foo'), 'FOO', 'should NOT change B');\n (0, _metal.set)(objB, 'foo', 'bar');\n assert.equal((0, _metal.get)(objB, 'foo'), 'computed bar', 'should change B');\n assert.equal((0, _metal.get)(objA, 'foo'), 'computed BIFF', 'should NOT change A');\n (0, _metal.set)(objA, 'foo', 'BAZ');\n assert.equal((0, _metal.get)(objA, 'foo'), 'computed BAZ', 'should change A');\n assert.equal((0, _metal.get)(objB, 'foo'), 'computed bar', 'should NOT change B');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('redefining computed property to normal', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n objA = {\n __foo: 'FOO'\n };\n (0, _metal.defineProperty)(objA, 'foo', (0, _metal.computed)({\n get(key) {\n return this['__' + key];\n },\n\n set(key, value) {\n this['__' + key] = 'computed ' + value;\n return this['__' + key];\n }\n\n }));\n objB = Object.create(objA);\n (0, _metal.defineProperty)(objB, 'foo'); // make this just a normal property.\n }\n\n afterEach() {\n objA = objB = null;\n }\n\n ['@test using get() and set()'](assert) {\n assert.equal((0, _metal.get)(objA, 'foo'), 'FOO', 'should get FOO from A');\n assert.equal((0, _metal.get)(objB, 'foo'), undefined, 'should get undefined from B');\n (0, _metal.set)(objA, 'foo', 'BIFF');\n assert.equal((0, _metal.get)(objA, 'foo'), 'computed BIFF', 'should change A');\n assert.equal((0, _metal.get)(objB, 'foo'), undefined, 'should NOT change B');\n (0, _metal.set)(objB, 'foo', 'bar');\n assert.equal((0, _metal.get)(objB, 'foo'), 'bar', 'should change B');\n assert.equal((0, _metal.get)(objA, 'foo'), 'computed BIFF', 'should NOT change A');\n (0, _metal.set)(objA, 'foo', 'BAZ');\n assert.equal((0, _metal.get)(objA, 'foo'), 'computed BAZ', 'should change A');\n assert.equal((0, _metal.get)(objB, 'foo'), 'bar', 'should NOT change B');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('redefining computed property to another property', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n objA = {\n __foo: 'FOO'\n };\n (0, _metal.defineProperty)(objA, 'foo', (0, _metal.computed)({\n get(key) {\n return this['__' + key];\n },\n\n set(key, value) {\n this['__' + key] = 'A ' + value;\n return this['__' + key];\n }\n\n }));\n objB = Object.create(objA);\n objB.__foo = 'FOO';\n (0, _metal.defineProperty)(objB, 'foo', (0, _metal.computed)({\n get(key) {\n return this['__' + key];\n },\n\n set(key, value) {\n this['__' + key] = 'B ' + value;\n return this['__' + key];\n }\n\n }));\n }\n\n afterEach() {\n objA = objB = null;\n }\n\n ['@test using get() and set()'](assert) {\n assert.equal((0, _metal.get)(objA, 'foo'), 'FOO', 'should get FOO from A');\n assert.equal((0, _metal.get)(objB, 'foo'), 'FOO', 'should get FOO from B');\n (0, _metal.set)(objA, 'foo', 'BIFF');\n assert.equal((0, _metal.get)(objA, 'foo'), 'A BIFF', 'should change A');\n assert.equal((0, _metal.get)(objB, 'foo'), 'FOO', 'should NOT change B');\n (0, _metal.set)(objB, 'foo', 'bar');\n assert.equal((0, _metal.get)(objB, 'foo'), 'B bar', 'should change B');\n assert.equal((0, _metal.get)(objA, 'foo'), 'A BIFF', 'should NOT change A');\n (0, _metal.set)(objA, 'foo', 'BAZ');\n assert.equal((0, _metal.get)(objA, 'foo'), 'A BAZ', 'should change A');\n assert.equal((0, _metal.get)(objB, 'foo'), 'B bar', 'should NOT change B');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('computed - metadata', class extends _internalTestHelpers.AbstractTestCase {\n ['@test can set metadata on a computed property'](assert) {\n let computedProperty = (0, _metal.computed)(function () {});\n computedProperty.meta({\n key: 'keyValue'\n });\n assert.equal(computedProperty.meta().key, 'keyValue', 'saves passed meta hash to the _meta property');\n }\n\n ['@test meta should return an empty hash if no meta is set'](assert) {\n let computedProperty = (0, _metal.computed)(function () {});\n assert.deepEqual(computedProperty.meta(), {}, 'returned value is an empty hash');\n }\n\n }); // ..........................................................\n // CACHEABLE\n //\n\n (0, _internalTestHelpers.moduleFor)('computed - cacheable', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = {};\n count = 0;\n\n let func = function () {\n count++;\n return 'bar ' + count;\n };\n\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)({\n get: func,\n set: func\n }));\n }\n\n afterEach() {\n obj = count = null;\n }\n\n ['@test cacheable should cache'](assert) {\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 1', 'first get');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 1', 'second get');\n assert.equal(count, 1, 'should only invoke once');\n }\n\n ['@test modifying a cacheable property should update cache'](assert) {\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 1', 'first get');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 1', 'second get');\n assert.equal((0, _metal.set)(obj, 'foo', 'baz'), 'baz', 'setting');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 2', 'third get');\n assert.equal(count, 2, 'should not invoke again');\n }\n\n ['@test inherited property should not pick up cache'](assert) {\n let objB = Object.create(obj);\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 1', 'obj first get');\n assert.equal((0, _metal.get)(objB, 'foo'), 'bar 2', 'objB first get');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 1', 'obj second get');\n assert.equal((0, _metal.get)(objB, 'foo'), 'bar 2', 'objB second get');\n (0, _metal.set)(obj, 'foo', 'baz'); // modify A\n\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 3', 'obj third get');\n assert.equal((0, _metal.get)(objB, 'foo'), 'bar 2', 'objB third get');\n }\n\n ['@test getCachedValueFor should return the cached value'](assert) {\n assert.equal((0, _metal.getCachedValueFor)(obj, 'foo'), undefined, 'should not yet be a cached value');\n (0, _metal.get)(obj, 'foo');\n assert.equal((0, _metal.getCachedValueFor)(obj, 'foo'), 'bar 1', 'should retrieve cached value');\n }\n\n ['@test getCachedValueFor should return falsy cached values'](assert) {\n (0, _metal.defineProperty)(obj, 'falsy', (0, _metal.computed)(function () {\n return false;\n }));\n assert.equal((0, _metal.getCachedValueFor)(obj, 'falsy'), undefined, 'should not yet be a cached value');\n (0, _metal.get)(obj, 'falsy');\n assert.equal((0, _metal.getCachedValueFor)(obj, 'falsy'), false, 'should retrieve cached value');\n }\n\n ['@test setting a cached computed property passes the old value as the third argument'](assert) {\n let obj = {\n foo: 0\n };\n let receivedOldValue;\n (0, _metal.defineProperty)(obj, 'plusOne', (0, _metal.computed)('foo', {\n get() {},\n\n set(key, value, oldValue) {\n receivedOldValue = oldValue;\n return value;\n }\n\n }));\n (0, _metal.set)(obj, 'plusOne', 1);\n assert.strictEqual(receivedOldValue, undefined, 'oldValue should be undefined');\n (0, _metal.set)(obj, 'plusOne', 2);\n assert.strictEqual(receivedOldValue, 1, 'oldValue should be 1');\n (0, _metal.set)(obj, 'plusOne', 3);\n assert.strictEqual(receivedOldValue, 2, 'oldValue should be 2');\n }\n\n }); // ..........................................................\n // DEPENDENT KEYS\n //\n\n (0, _internalTestHelpers.moduleFor)('computed - dependentkey', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = {\n bar: 'baz'\n };\n count = 0;\n\n let getterAndSetter = function () {\n count++;\n (0, _metal.get)(this, 'bar');\n return 'bar ' + count;\n };\n\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)('bar', {\n get: getterAndSetter,\n set: getterAndSetter\n }));\n }\n\n afterEach() {\n obj = count = null;\n }\n\n ['@test should lazily watch dependent keys on set'](assert) {\n assert.equal((0, _metal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal((0, _metal.isWatching)(obj, 'bar'), true, 'lazily watching dependent key');\n }\n\n ['@test should lazily watch dependent keys on get'](assert) {\n assert.equal((0, _metal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n (0, _metal.get)(obj, 'foo');\n assert.equal((0, _metal.isWatching)(obj, 'bar'), true, 'lazily watching dependent key');\n }\n\n ['@test local dependent key should invalidate cache'](assert) {\n assert.equal((0, _metal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 1', 'get once');\n assert.equal((0, _metal.isWatching)(obj, 'bar'), true, 'lazily setup watching dependent key');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 1', 'cached retrieve');\n (0, _metal.set)(obj, 'bar', 'BIFF'); // should invalidate foo\n\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 2', 'should recache');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 2', 'cached retrieve');\n }\n\n ['@test should invalidate multiple nested dependent keys'](assert) {\n let count = 0;\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.computed)('baz', function () {\n count++;\n (0, _metal.get)(this, 'baz');\n return 'baz ' + count;\n }));\n assert.equal((0, _metal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n assert.equal((0, _metal.isWatching)(obj, 'baz'), false, 'precond not watching dependent key');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 1', 'get once');\n assert.equal((0, _metal.isWatching)(obj, 'bar'), true, 'lazily setup watching dependent key');\n assert.equal((0, _metal.isWatching)(obj, 'baz'), true, 'lazily setup watching dependent key');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 1', 'cached retrieve');\n (0, _metal.set)(obj, 'baz', 'BIFF'); // should invalidate bar -> foo\n\n assert.equal((0, _metal.isWatching)(obj, 'bar'), false, 'should not be watching dependent key after cache cleared');\n assert.equal((0, _metal.isWatching)(obj, 'baz'), false, 'should not be watching dependent key after cache cleared');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 2', 'should recache');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 2', 'cached retrieve');\n assert.equal((0, _metal.isWatching)(obj, 'bar'), true, 'lazily setup watching dependent key');\n assert.equal((0, _metal.isWatching)(obj, 'baz'), true, 'lazily setup watching dependent key');\n }\n\n ['@test circular keys should not blow up'](assert) {\n let func = function () {\n count++;\n return 'bar ' + count;\n };\n\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.computed)('foo', {\n get: func,\n set: func\n }));\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)('bar', function () {\n count++;\n return 'foo ' + count;\n }));\n assert.equal((0, _metal.get)(obj, 'foo'), 'foo 1', 'get once');\n assert.equal((0, _metal.get)(obj, 'foo'), 'foo 1', 'cached retrieve');\n (0, _metal.set)(obj, 'bar', 'BIFF'); // should invalidate bar -> foo -> bar\n\n assert.equal((0, _metal.get)(obj, 'foo'), 'foo 3', 'should recache');\n assert.equal((0, _metal.get)(obj, 'foo'), 'foo 3', 'cached retrieve');\n }\n\n ['@test redefining a property should undo old dependent keys'](assert) {\n assert.equal((0, _metal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar 1');\n assert.equal((0, _metal.isWatching)(obj, 'bar'), true, 'lazily watching dependent key');\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)('baz', function () {\n count++;\n return 'baz ' + count;\n }));\n assert.equal((0, _metal.isWatching)(obj, 'bar'), false, 'after redefining should not be watching dependent key');\n assert.equal((0, _metal.get)(obj, 'foo'), 'baz 2');\n (0, _metal.set)(obj, 'bar', 'BIFF'); // should not kill cache\n\n assert.equal((0, _metal.get)(obj, 'foo'), 'baz 2');\n (0, _metal.set)(obj, 'baz', 'BOP');\n assert.equal((0, _metal.get)(obj, 'foo'), 'baz 3');\n }\n\n ['@test can watch multiple dependent keys specified declaratively via brace expansion'](assert) {\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)('qux.{bar,baz}', function () {\n count++;\n return 'foo ' + count;\n }));\n assert.equal((0, _metal.get)(obj, 'foo'), 'foo 1', 'get once');\n assert.equal((0, _metal.get)(obj, 'foo'), 'foo 1', 'cached retrieve');\n (0, _metal.set)(obj, 'qux', {});\n (0, _metal.set)(obj, 'qux.bar', 'bar'); // invalidate foo\n\n assert.equal((0, _metal.get)(obj, 'foo'), 'foo 2', 'foo invalidated from bar');\n (0, _metal.set)(obj, 'qux.baz', 'baz'); // invalidate foo\n\n assert.equal((0, _metal.get)(obj, 'foo'), 'foo 3', 'foo invalidated from baz');\n (0, _metal.set)(obj, 'qux.quux', 'quux'); // do not invalidate foo\n\n assert.equal((0, _metal.get)(obj, 'foo'), 'foo 3', 'foo not invalidated by quux');\n }\n\n ['@test throws assertion if brace expansion notation has spaces']() {\n expectAssertion(function () {\n (0, _metal.defineProperty)(obj, 'roo', (0, _metal.computed)('fee.{bar, baz,bop , }', function () {\n count++;\n return 'roo ' + count;\n }));\n }, /cannot contain spaces/);\n }\n\n ['@test throws an assertion if an uncached `get` is called after object is destroyed'](assert) {\n assert.equal((0, _metal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n let meta = (0, _meta.meta)(obj);\n meta.destroy();\n\n obj.toString = () => '';\n\n expectAssertion(() => {\n (0, _metal.get)(obj, 'foo');\n }, 'Cannot modify dependent keys for `foo` on `` after it has been destroyed.');\n assert.equal((0, _metal.isWatching)(obj, 'bar'), false, 'deps were not updated');\n }\n\n }); // ..........................................................\n // CHAINED DEPENDENT KEYS\n //\n\n let func;\n (0, _internalTestHelpers.moduleFor)('computed - dependentkey with chained properties', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = {\n foo: {\n bar: {\n baz: {\n biff: 'BIFF'\n }\n }\n }\n };\n count = 0;\n\n func = function () {\n count++;\n return (0, _metal.get)(obj, 'foo.bar.baz.biff') + ' ' + count;\n };\n }\n\n afterEach() {\n obj = count = func = null;\n }\n\n ['@test depending on simple chain'](assert) {\n // assign computed property\n (0, _metal.defineProperty)(obj, 'prop', (0, _metal.computed)('foo.bar.baz.biff', func));\n assert.equal((0, _metal.get)(obj, 'prop'), 'BIFF 1');\n (0, _metal.set)((0, _metal.get)(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n assert.equal((0, _metal.get)(obj, 'prop'), 'BUZZ 2');\n assert.equal((0, _metal.get)(obj, 'prop'), 'BUZZ 2');\n (0, _metal.set)((0, _metal.get)(obj, 'foo.bar'), 'baz', {\n biff: 'BLOB'\n });\n assert.equal((0, _metal.get)(obj, 'prop'), 'BLOB 3');\n assert.equal((0, _metal.get)(obj, 'prop'), 'BLOB 3');\n (0, _metal.set)((0, _metal.get)(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n assert.equal((0, _metal.get)(obj, 'prop'), 'BUZZ 4');\n assert.equal((0, _metal.get)(obj, 'prop'), 'BUZZ 4');\n (0, _metal.set)((0, _metal.get)(obj, 'foo'), 'bar', {\n baz: {\n biff: 'BOOM'\n }\n });\n assert.equal((0, _metal.get)(obj, 'prop'), 'BOOM 5');\n assert.equal((0, _metal.get)(obj, 'prop'), 'BOOM 5');\n (0, _metal.set)((0, _metal.get)(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n assert.equal((0, _metal.get)(obj, 'prop'), 'BUZZ 6');\n assert.equal((0, _metal.get)(obj, 'prop'), 'BUZZ 6');\n (0, _metal.set)(obj, 'foo', {\n bar: {\n baz: {\n biff: 'BLARG'\n }\n }\n });\n assert.equal((0, _metal.get)(obj, 'prop'), 'BLARG 7');\n assert.equal((0, _metal.get)(obj, 'prop'), 'BLARG 7');\n (0, _metal.set)((0, _metal.get)(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n assert.equal((0, _metal.get)(obj, 'prop'), 'BUZZ 8');\n assert.equal((0, _metal.get)(obj, 'prop'), 'BUZZ 8');\n (0, _metal.defineProperty)(obj, 'prop');\n (0, _metal.set)(obj, 'prop', 'NONE');\n assert.equal((0, _metal.get)(obj, 'prop'), 'NONE');\n (0, _metal.set)(obj, 'foo', {\n bar: {\n baz: {\n biff: 'BLARG'\n }\n }\n });\n assert.equal((0, _metal.get)(obj, 'prop'), 'NONE'); // should do nothing\n\n assert.equal(count, 8, 'should be not have invoked computed again');\n }\n\n ['@test chained dependent keys should evaluate computed properties lazily'](assert) {\n (0, _metal.defineProperty)(obj.foo.bar, 'b', (0, _metal.computed)(func));\n (0, _metal.defineProperty)(obj.foo, 'c', (0, _metal.computed)('bar.b', function () {}));\n assert.equal(count, 0, 'b should not run');\n }\n\n }); // ..........................................................\n // improved-cp-syntax\n //\n\n (0, _internalTestHelpers.moduleFor)('computed - improved cp syntax', class extends _internalTestHelpers.AbstractTestCase {\n ['@test setter and getters are passed using an object'](assert) {\n let testObj = _runtime.Object.extend({\n a: '1',\n b: '2',\n aInt: (0, _metal.computed)('a', {\n get(keyName) {\n assert.equal(keyName, 'aInt', 'getter receives the keyName');\n return parseInt(this.get('a'));\n },\n\n set(keyName, value, oldValue) {\n assert.equal(keyName, 'aInt', 'setter receives the keyName');\n assert.equal(value, 123, 'setter receives the new value');\n assert.equal(oldValue, 1, 'setter receives the old value');\n this.set('a', String(value)); // side effect\n\n return parseInt(this.get('a'));\n }\n\n })\n }).create();\n\n assert.ok(testObj.get('aInt') === 1, 'getter works');\n testObj.set('aInt', 123);\n assert.ok(testObj.get('a') === '123', 'setter works');\n assert.ok(testObj.get('aInt') === 123, 'cp has been updated too');\n }\n\n ['@test setter can be omited'](assert) {\n let testObj = _runtime.Object.extend({\n a: '1',\n b: '2',\n aInt: (0, _metal.computed)('a', {\n get(keyName) {\n assert.equal(keyName, 'aInt', 'getter receives the keyName');\n return parseInt(this.get('a'));\n }\n\n })\n }).create();\n\n assert.ok(testObj.get('aInt') === 1, 'getter works');\n assert.ok(testObj.get('a') === '1');\n expectDeprecation(() => {\n testObj.set('aInt', '123');\n }, /The <\\(unknown\\):ember\\d*>#aInt computed property was just overriden/);\n assert.ok(testObj.get('aInt') === '123', 'cp has been updated too');\n }\n\n ['@test getter can be omited'](assert) {\n let testObj = _runtime.Object.extend({\n com: (0, _metal.computed)({\n set(key, value) {\n return value;\n }\n\n })\n }).create();\n\n assert.ok(testObj.get('com') === undefined);\n testObj.set('com', '123');\n assert.ok(testObj.get('com') === '123', 'cp has been updated');\n }\n\n ['@test the return value of the setter gets cached'](assert) {\n let testObj = _runtime.Object.extend({\n a: '1',\n sampleCP: (0, _metal.computed)('a', {\n get() {\n assert.ok(false, 'The getter should not be invoked');\n return 'get-value';\n },\n\n set() {\n return 'set-value';\n }\n\n })\n }).create();\n\n testObj.set('sampleCP', 'abcd');\n assert.ok(testObj.get('sampleCP') === 'set-value', 'The return value of the CP was cached');\n }\n\n }); // ..........................................................\n // BUGS\n //\n\n (0, _internalTestHelpers.moduleFor)('computed edge cases', class extends _internalTestHelpers.AbstractTestCase {\n ['@test adding a computed property should show up in key iteration'](assert) {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)(function () {}));\n let found = [];\n\n for (let key in obj) {\n found.push(key);\n }\n\n assert.ok(found.indexOf('foo') >= 0, 'should find computed property in iteration found=' + found);\n assert.ok('foo' in obj, 'foo in obj should pass');\n }\n\n [\"@test when setting a value after it had been retrieved empty don't pass function UNDEFINED as oldValue\"](assert) {\n let obj = {};\n let oldValueIsNoFunction = true;\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)({\n get() {},\n\n set(key, value, oldValue) {\n if (typeof oldValue === 'function') {\n oldValueIsNoFunction = false;\n }\n\n return undefined;\n }\n\n }));\n (0, _metal.get)(obj, 'foo');\n (0, _metal.set)(obj, 'foo', undefined);\n assert.ok(oldValueIsNoFunction);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('computed - setter', class extends _internalTestHelpers.AbstractTestCase {\n ['@test setting a watched computed property'](assert) {\n let obj = {\n firstName: 'Yehuda',\n lastName: 'Katz'\n };\n (0, _metal.defineProperty)(obj, 'fullName', (0, _metal.computed)('firstName', 'lastName', {\n get() {\n return (0, _metal.get)(this, 'firstName') + ' ' + (0, _metal.get)(this, 'lastName');\n },\n\n set(key, value) {\n let values = value.split(' ');\n (0, _metal.set)(this, 'firstName', values[0]);\n (0, _metal.set)(this, 'lastName', values[1]);\n return value;\n }\n\n }));\n let fullNameDidChange = 0;\n let firstNameDidChange = 0;\n let lastNameDidChange = 0;\n (0, _metal.addObserver)(obj, 'fullName', function () {\n fullNameDidChange++;\n });\n (0, _metal.addObserver)(obj, 'firstName', function () {\n firstNameDidChange++;\n });\n (0, _metal.addObserver)(obj, 'lastName', function () {\n lastNameDidChange++;\n });\n assert.equal((0, _metal.get)(obj, 'fullName'), 'Yehuda Katz');\n (0, _metal.set)(obj, 'fullName', 'Yehuda Katz');\n (0, _metal.set)(obj, 'fullName', 'Kris Selden');\n assert.equal((0, _metal.get)(obj, 'fullName'), 'Kris Selden');\n assert.equal((0, _metal.get)(obj, 'firstName'), 'Kris');\n assert.equal((0, _metal.get)(obj, 'lastName'), 'Selden');\n assert.equal(fullNameDidChange, 1);\n assert.equal(firstNameDidChange, 1);\n assert.equal(lastNameDidChange, 1);\n }\n\n ['@test setting a cached computed property that modifies the value you give it'](assert) {\n let obj = {\n foo: 0\n };\n (0, _metal.defineProperty)(obj, 'plusOne', (0, _metal.computed)('foo', {\n get() {\n return (0, _metal.get)(this, 'foo') + 1;\n },\n\n set(key, value) {\n (0, _metal.set)(this, 'foo', value);\n return value + 1;\n }\n\n }));\n let plusOneDidChange = 0;\n (0, _metal.addObserver)(obj, 'plusOne', function () {\n plusOneDidChange++;\n });\n assert.equal((0, _metal.get)(obj, 'plusOne'), 1);\n (0, _metal.set)(obj, 'plusOne', 1);\n assert.equal((0, _metal.get)(obj, 'plusOne'), 2);\n (0, _metal.set)(obj, 'plusOne', 1);\n assert.equal((0, _metal.get)(obj, 'plusOne'), 2);\n assert.equal(plusOneDidChange, 1);\n (0, _metal.set)(obj, 'foo', 5);\n assert.equal((0, _metal.get)(obj, 'plusOne'), 6);\n assert.equal(plusOneDidChange, 2);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('computed - default setter', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test when setting a value on a computed property that doesn't handle sets\"](assert) {\n let obj = {};\n let observerFired = false;\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)(function () {\n return 'foo';\n }));\n (0, _metal.addObserver)(obj, 'foo', null, () => observerFired = true);\n expectDeprecation(() => {\n (0, _metal.set)(obj, 'foo', 'bar');\n }, /The \\[object Object\\]#foo computed property was just overriden./);\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar', 'The set value is properly returned');\n assert.ok(typeof obj.foo === 'string', 'The computed property was removed');\n assert.ok(observerFired, 'The observer was still notified');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('computed - readOnly', class extends _internalTestHelpers.AbstractTestCase {\n ['@test is chainable'](assert) {\n let cp = (0, _metal.computed)(function () {});\n let readOnlyCp = cp.readOnly();\n assert.equal(cp, readOnlyCp);\n }\n\n ['@test throws assertion if called over a CP with a setter defined with the new syntax']() {\n expectAssertion(() => {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'someProp', (0, _metal.computed)({\n get() {},\n\n set() {}\n\n }).readOnly());\n }, /Computed properties that define a setter using the new syntax cannot be read-only/);\n }\n\n ['@test protects against setting'](assert) {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.computed)(function () {\n return 'barValue';\n }).readOnly());\n assert.equal((0, _metal.get)(obj, 'bar'), 'barValue');\n assert.throws(() => {\n (0, _metal.set)(obj, 'bar', 'newBar');\n }, /Cannot set read\\-only property \"bar\" on object:/);\n assert.equal((0, _metal.get)(obj, 'bar'), 'barValue');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/events_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/props/events_test', class extends _internalTestHelpers.AbstractTestCase {\n ['@test listener should receive event - removing should remove'](assert) {\n let obj = {};\n let count = 0;\n\n function F() {\n count++;\n }\n\n (0, _metal.addListener)(obj, 'event!', F);\n assert.equal(count, 0, 'nothing yet');\n (0, _metal.sendEvent)(obj, 'event!');\n assert.equal(count, 1, 'received event');\n (0, _metal.removeListener)(obj, 'event!', F);\n count = 0;\n (0, _metal.sendEvent)(obj, 'event!');\n assert.equal(count, 0, 'received event');\n }\n\n ['@test listeners should be inherited'](assert) {\n let count = 0;\n let obj = {\n func() {\n count++;\n }\n\n };\n (0, _metal.addListener)(obj, 'event!', null, 'func');\n let obj2 = Object.create(obj);\n assert.equal(count, 0, 'nothing yet');\n (0, _metal.sendEvent)(obj2, 'event!');\n assert.equal(count, 1, 'received event');\n (0, _metal.removeListener)(obj2, 'event!', null, 'func');\n count = 0;\n (0, _metal.sendEvent)(obj2, 'event!');\n assert.equal(count, 0, 'did not receive event');\n (0, _metal.sendEvent)(obj, 'event!');\n assert.equal(count, 1, 'should still invoke on parent');\n }\n\n ['@test adding a listener more than once should only invoke once'](assert) {\n let count = 0;\n let obj = {\n func() {\n count++;\n }\n\n };\n (0, _metal.addListener)(obj, 'event!', null, 'func');\n (0, _metal.addListener)(obj, 'event!', null, 'func');\n (0, _metal.sendEvent)(obj, 'event!');\n assert.equal(count, 1, 'should only invoke once');\n }\n\n ['@test adding a listener with a target should invoke with target'](assert) {\n let obj = {};\n let target;\n target = {\n count: 0,\n\n method() {\n this.count++;\n }\n\n };\n (0, _metal.addListener)(obj, 'event!', target, target.method);\n (0, _metal.sendEvent)(obj, 'event!');\n assert.equal(target.count, 1, 'should invoke');\n }\n\n ['@test adding a listener with string method should lookup method on event delivery'](assert) {\n let obj = {};\n let target;\n target = {\n count: 0,\n\n method() {}\n\n };\n (0, _metal.addListener)(obj, 'event!', target, 'method');\n (0, _metal.sendEvent)(obj, 'event!');\n assert.equal(target.count, 0, 'should invoke but do nothing');\n\n target.method = function () {\n this.count++;\n };\n\n (0, _metal.sendEvent)(obj, 'event!');\n assert.equal(target.count, 1, 'should invoke now');\n }\n\n ['@test calling sendEvent with extra params should be passed to listeners'](assert) {\n let obj = {};\n let params = null;\n (0, _metal.addListener)(obj, 'event!', function () {\n params = Array.prototype.slice.call(arguments);\n });\n (0, _metal.sendEvent)(obj, 'event!', ['foo', 'bar']);\n assert.deepEqual(params, ['foo', 'bar'], 'params should be saved');\n }\n\n ['@test hasListeners tells you if there are listeners for a given event'](assert) {\n let obj = {};\n\n function F() {}\n\n function F2() {}\n\n assert.equal((0, _metal.hasListeners)(obj, 'event!'), false, 'no listeners at first');\n (0, _metal.addListener)(obj, 'event!', F);\n (0, _metal.addListener)(obj, 'event!', F2);\n assert.equal((0, _metal.hasListeners)(obj, 'event!'), true, 'has listeners');\n (0, _metal.removeListener)(obj, 'event!', F);\n assert.equal((0, _metal.hasListeners)(obj, 'event!'), true, 'has listeners');\n (0, _metal.removeListener)(obj, 'event!', F2);\n assert.equal((0, _metal.hasListeners)(obj, 'event!'), false, 'has no more listeners');\n (0, _metal.addListener)(obj, 'event!', F);\n assert.equal((0, _metal.hasListeners)(obj, 'event!'), true, 'has listeners');\n }\n\n ['@test calling removeListener without method should remove all listeners'](assert) {\n expectDeprecation(() => {\n let obj = {};\n\n function F() {}\n\n function F2() {}\n\n assert.equal((0, _metal.hasListeners)(obj, 'event!'), false, 'no listeners at first');\n (0, _metal.addListener)(obj, 'event!', F);\n (0, _metal.addListener)(obj, 'event!', F2);\n assert.equal((0, _metal.hasListeners)(obj, 'event!'), true, 'has listeners');\n (0, _metal.removeListener)(obj, 'event!');\n assert.equal((0, _metal.hasListeners)(obj, 'event!'), false, 'has no more listeners');\n }, /The remove all functionality of removeListener and removeObserver has been deprecated/);\n }\n\n ['@test a listener can be added as part of a mixin'](assert) {\n let triggered = 0;\n\n let MyMixin = _metal.Mixin.create({\n foo1: (0, _metal.on)('bar', function () {\n triggered++;\n }),\n foo2: (0, _metal.on)('bar', function () {\n triggered++;\n })\n });\n\n let obj = {};\n MyMixin.apply(obj);\n (0, _metal.sendEvent)(obj, 'bar');\n assert.equal(triggered, 2, 'should invoke listeners');\n }\n\n [\"@test 'on' asserts for invalid arguments\"]() {\n expectAssertion(() => {\n _metal.Mixin.create({\n foo1: (0, _metal.on)('bar')\n });\n }, 'on expects function as last argument');\n expectAssertion(() => {\n _metal.Mixin.create({\n foo1: (0, _metal.on)(function () {})\n });\n }, 'on called without valid event names');\n }\n\n ['@test a listener added as part of a mixin may be overridden'](assert) {\n let triggered = 0;\n\n let FirstMixin = _metal.Mixin.create({\n foo: (0, _metal.on)('bar', function () {\n triggered++;\n })\n });\n\n let SecondMixin = _metal.Mixin.create({\n foo: (0, _metal.on)('baz', function () {\n triggered++;\n })\n });\n\n let obj = {};\n FirstMixin.apply(obj);\n SecondMixin.apply(obj);\n (0, _metal.sendEvent)(obj, 'bar');\n assert.equal(triggered, 0, 'should not invoke from overridden property');\n (0, _metal.sendEvent)(obj, 'baz');\n assert.equal(triggered, 1, 'should invoke from subclass property');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/expand_properties_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n let foundProperties = [];\n\n function addProperty(property) {\n foundProperties.push(property);\n }\n\n (0, _internalTestHelpers.moduleFor)('Property Brace Expansion Test', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n foundProperties = [];\n }\n\n ['@test Properties without expansions are unaffected'](assert) {\n assert.expect(1);\n (0, _metal.expandProperties)('a', addProperty);\n (0, _metal.expandProperties)('a.b', addProperty);\n (0, _metal.expandProperties)('a.b.[]', addProperty);\n (0, _metal.expandProperties)('a.b.@each.c', addProperty);\n assert.deepEqual(['a', 'a.b', 'a.b.[]', 'a.b.@each.c'].sort(), foundProperties.sort());\n }\n\n ['@test A single expansion at the end expands properly'](assert) {\n assert.expect(1);\n (0, _metal.expandProperties)('a.b.{c,d}', addProperty);\n assert.deepEqual(['a.b.c', 'a.b.d'].sort(), foundProperties.sort());\n }\n\n ['@test A property with only a brace expansion expands correctly'](assert) {\n assert.expect(1);\n (0, _metal.expandProperties)('{a,b,c}', addProperty);\n let expected = ['a', 'b', 'c'];\n assert.deepEqual(expected.sort(), foundProperties.sort());\n }\n\n ['@test Expansions with single properties only expand once'](assert) {\n assert.expect(1);\n (0, _metal.expandProperties)('a.b.{c}.d.{e}', addProperty);\n assert.deepEqual(['a.b.c.d.e'], foundProperties);\n }\n\n ['@test A single brace expansion expands correctly'](assert) {\n assert.expect(1);\n (0, _metal.expandProperties)('a.{b,c,d}.e', addProperty);\n let expected = ['a.b.e', 'a.c.e', 'a.d.e'];\n assert.deepEqual(expected.sort(), foundProperties.sort());\n }\n\n ['@test Multiple brace expansions work correctly'](assert) {\n assert.expect(1);\n (0, _metal.expandProperties)('{a,b,c}.d.{e,f}.g', addProperty);\n let expected = ['a.d.e.g', 'a.d.f.g', 'b.d.e.g', 'b.d.f.g', 'c.d.e.g', 'c.d.f.g'];\n assert.deepEqual(expected.sort(), foundProperties.sort());\n }\n\n ['@test A property with only brace expansions expands correctly'](assert) {\n assert.expect(1);\n (0, _metal.expandProperties)('{a,b,c}.{d}.{e,f}', addProperty);\n let expected = ['a.d.e', 'a.d.f', 'b.d.e', 'b.d.f', 'c.d.e', 'c.d.f'];\n assert.deepEqual(expected.sort(), foundProperties.sort());\n }\n\n ['@test Nested brace expansions are not allowed']() {\n let nestedBraceProperties = ['a.{b.{c,d}}', 'a.{{b}.c}', 'a.{b,c}.{d.{e,f}.g', 'a.{b.{c}', 'a.{b,c}}', 'model.{bar,baz'];\n nestedBraceProperties.forEach(invalidProperties => {\n expectAssertion(() => (0, _metal.expandProperties)(invalidProperties, addProperty));\n }, /Brace expanded properties have to be balanced and cannot be nested/);\n }\n\n ['@test A property with no braces does not expand'](assert) {\n assert.expect(1);\n (0, _metal.expandProperties)('a,b,c.d.e,f', addProperty);\n assert.deepEqual(foundProperties, ['a,b,c.d.e,f']);\n }\n\n ['@test A pattern must be a string'](assert) {\n assert.expect(1);\n expectAssertion(() => {\n (0, _metal.expandProperties)([1, 2], addProperty);\n }, /A computed property key must be a string/);\n }\n\n ['@test A pattern must not contain a space'](assert) {\n assert.expect(1);\n expectAssertion(function () {\n (0, _metal.expandProperties)('{a, b}', addProperty);\n }, /Brace expanded properties cannot contain spaces, e.g. \"user.{firstName, lastName}\" should be \"user.{firstName,lastName}\"/);\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/injected_property_test\", [\"@ember/-internals/owner\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_owner, _metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('inject', class extends _internalTestHelpers.AbstractTestCase {\n ['@test injected properties should be descriptors'](assert) {\n assert.ok((0, _metal.isClassicDecorator)((0, _metal.inject)('type')));\n }\n\n ['@test injected properties should be overridable'](assert) {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.inject)('type'));\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar', 'should return the overridden value');\n }\n\n ['@test getting on an object without an owner or container should fail assertion']() {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.inject)('type', 'name'));\n expectAssertion(function () {\n (0, _metal.get)(obj, 'foo');\n }, /Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container./);\n }\n\n ['@test getting on an object without an owner but with a container should not fail'](assert) {\n let obj = {\n container: {\n lookup(key) {\n assert.ok(true, 'should call container.lookup');\n return key;\n }\n\n }\n };\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.inject)('type', 'name'));\n assert.equal((0, _metal.get)(obj, 'foo'), 'type:name', 'should return the value of container.lookup');\n }\n\n ['@test getting should return a lookup on the container'](assert) {\n assert.expect(2);\n let obj = {};\n (0, _owner.setOwner)(obj, {\n lookup(key) {\n assert.ok(true, 'should call container.lookup');\n return key;\n }\n\n });\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.inject)('type', 'name'));\n assert.equal((0, _metal.get)(obj, 'foo'), 'type:name', 'should return the value of container.lookup');\n }\n\n ['@test omitting the lookup name should default to the property name'](assert) {\n let obj = {};\n (0, _owner.setOwner)(obj, {\n lookup(key) {\n return key;\n }\n\n });\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.inject)('type'));\n assert.equal((0, _metal.get)(obj, 'foo'), 'type:foo', 'should lookup the type using the property name');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/is_blank_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('isBlank', class extends _internalTestHelpers.AbstractTestCase {\n ['@test isBlank'](assert) {\n let string = 'string';\n\n let fn = function () {};\n\n let object = {\n length: 0\n };\n assert.equal(true, (0, _metal.isBlank)(null), 'for null');\n assert.equal(true, (0, _metal.isBlank)(undefined), 'for undefined');\n assert.equal(true, (0, _metal.isBlank)(''), 'for an empty String');\n assert.equal(true, (0, _metal.isBlank)(' '), 'for a whitespace String');\n assert.equal(true, (0, _metal.isBlank)('\\n\\t'), 'for another whitespace String');\n assert.equal(false, (0, _metal.isBlank)('\\n\\t Hi'), 'for a String with whitespaces');\n assert.equal(false, (0, _metal.isBlank)(true), 'for true');\n assert.equal(false, (0, _metal.isBlank)(false), 'for false');\n assert.equal(false, (0, _metal.isBlank)(string), 'for a String');\n assert.equal(false, (0, _metal.isBlank)(fn), 'for a Function');\n assert.equal(false, (0, _metal.isBlank)(0), 'for 0');\n assert.equal(true, (0, _metal.isBlank)([]), 'for an empty Array');\n assert.equal(false, (0, _metal.isBlank)({}), 'for an empty Object');\n assert.equal(true, (0, _metal.isBlank)(object), \"for an Object that has zero 'length'\");\n assert.equal(false, (0, _metal.isBlank)([1, 2, 3]), 'for a non-empty array');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/is_empty_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('isEmpty', class extends _internalTestHelpers.AbstractTestCase {\n ['@test isEmpty'](assert) {\n let string = 'string';\n\n let fn = function () {};\n\n let object = {\n length: 0\n };\n assert.equal(true, (0, _metal.isEmpty)(null), 'for null');\n assert.equal(true, (0, _metal.isEmpty)(undefined), 'for undefined');\n assert.equal(true, (0, _metal.isEmpty)(''), 'for an empty String');\n assert.equal(false, (0, _metal.isEmpty)(' '), 'for a whitespace String');\n assert.equal(false, (0, _metal.isEmpty)('\\n\\t'), 'for another whitespace String');\n assert.equal(false, (0, _metal.isEmpty)(true), 'for true');\n assert.equal(false, (0, _metal.isEmpty)(false), 'for false');\n assert.equal(false, (0, _metal.isEmpty)(string), 'for a String');\n assert.equal(false, (0, _metal.isEmpty)(fn), 'for a Function');\n assert.equal(false, (0, _metal.isEmpty)(0), 'for 0');\n assert.equal(true, (0, _metal.isEmpty)([]), 'for an empty Array');\n assert.equal(false, (0, _metal.isEmpty)({}), 'for an empty Object');\n assert.equal(true, (0, _metal.isEmpty)(object), \"for an Object that has zero 'length'\");\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/is_none_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('isNone', class extends _internalTestHelpers.AbstractTestCase {\n ['@test isNone'](assert) {\n let string = 'string';\n\n let fn = function () {};\n\n assert.equal(true, (0, _metal.isNone)(null), 'for null');\n assert.equal(true, (0, _metal.isNone)(undefined), 'for undefined');\n assert.equal(false, (0, _metal.isNone)(''), 'for an empty String');\n assert.equal(false, (0, _metal.isNone)(true), 'for true');\n assert.equal(false, (0, _metal.isNone)(false), 'for false');\n assert.equal(false, (0, _metal.isNone)(string), 'for a String');\n assert.equal(false, (0, _metal.isNone)(fn), 'for a Function');\n assert.equal(false, (0, _metal.isNone)(0), 'for 0');\n assert.equal(false, (0, _metal.isNone)([]), 'for an empty Array');\n assert.equal(false, (0, _metal.isNone)({}), 'for an empty Object');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/is_present_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('isPresent', class extends _internalTestHelpers.AbstractTestCase {\n ['@test isPresent'](assert) {\n let string = 'string';\n\n let fn = function () {};\n\n let object = {\n length: 0\n };\n assert.equal(false, (0, _metal.isPresent)(), 'for no params');\n assert.equal(false, (0, _metal.isPresent)(null), 'for null');\n assert.equal(false, (0, _metal.isPresent)(undefined), 'for undefined');\n assert.equal(false, (0, _metal.isPresent)(''), 'for an empty String');\n assert.equal(false, (0, _metal.isPresent)(' '), 'for a whitespace String');\n assert.equal(false, (0, _metal.isPresent)('\\n\\t'), 'for another whitespace String');\n assert.equal(true, (0, _metal.isPresent)('\\n\\t Hi'), 'for a String with whitespaces');\n assert.equal(true, (0, _metal.isPresent)(true), 'for true');\n assert.equal(true, (0, _metal.isPresent)(false), 'for false');\n assert.equal(true, (0, _metal.isPresent)(string), 'for a String');\n assert.equal(true, (0, _metal.isPresent)(fn), 'for a Function');\n assert.equal(true, (0, _metal.isPresent)(0), 'for 0');\n assert.equal(false, (0, _metal.isPresent)([]), 'for an empty Array');\n assert.equal(true, (0, _metal.isPresent)({}), 'for an empty Object');\n assert.equal(false, (0, _metal.isPresent)(object), \"for an Object that has zero 'length'\");\n assert.equal(true, (0, _metal.isPresent)([1, 2, 3]), 'for a non-empty array');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/libraries_test\", [\"@ember/debug\", \"@ember/-internals/metal\", \"@ember/canary-features\", \"internal-test-helpers\"], function (_debug, _metal, _canaryFeatures, _internalTestHelpers) {\n \"use strict\";\n\n /* globals EmberDev */\n let libs, registry;\n let originalWarn = (0, _debug.getDebugFunction)('warn');\n\n function noop() {}\n\n (0, _internalTestHelpers.moduleFor)('Libraries registry', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n libs = new _metal.Libraries();\n registry = libs._registry;\n }\n\n afterEach() {\n libs = null;\n registry = null;\n (0, _debug.setDebugFunction)('warn', originalWarn);\n }\n\n ['@test core libraries come before other libraries'](assert) {\n assert.expect(2);\n libs.register('my-lib', '2.0.0a');\n libs.registerCoreLibrary('DS', '1.0.0-beta.2');\n assert.equal(registry[0].name, 'DS');\n assert.equal(registry[1].name, 'my-lib');\n }\n\n ['@test only the first registration of a library is stored'](assert) {\n assert.expect(3); // overwrite warn to supress the double registration warning (see https://github.com/emberjs/ember.js/issues/16391)\n\n (0, _debug.setDebugFunction)('warn', noop);\n libs.register('magic', 1.23);\n libs.register('magic', 2.23);\n assert.equal(registry[0].name, 'magic');\n assert.equal(registry[0].version, 1.23);\n assert.equal(registry.length, 1);\n }\n\n ['@test isRegistered returns correct value'](assert) {\n if (_canaryFeatures.EMBER_LIBRARIES_ISREGISTERED) {\n assert.expect(3);\n assert.equal(libs.isRegistered('magic'), false);\n libs.register('magic', 1.23);\n assert.equal(libs.isRegistered('magic'), true);\n libs.deRegister('magic');\n assert.equal(libs.isRegistered('magic'), false);\n } else {\n assert.expect(0);\n }\n }\n\n ['@test attempting to register a library that is already registered warns you'](assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n assert.expect(1);\n libs.register('magic', 1.23);\n (0, _debug.setDebugFunction)('warn', function (msg, test) {\n if (!test) {\n assert.equal(msg, 'Library \"magic\" is already registered with Ember.');\n }\n }); // Should warn us\n\n libs.register('magic', 2.23);\n }\n\n ['@test libraries can be de-registered'](assert) {\n assert.expect(2);\n libs.register('lib1', '1.0.0b');\n libs.register('lib2', '1.0.0b');\n libs.register('lib3', '1.0.0b');\n libs.deRegister('lib1');\n libs.deRegister('lib3');\n assert.equal(registry[0].name, 'lib2');\n assert.equal(registry.length, 1);\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/main_test\", [\"ember/version\", \"internal-test-helpers\"], function (_version, _internalTestHelpers) {\n \"use strict\";\n\n // From https://github.com/semver/semver.org/issues/59 & https://regex101.com/r/vW1jA8/6\n const SEMVER_REGEX = /^((?:0|(?:[1-9]\\d*)))\\.((?:0|(?:[1-9]\\d*)))\\.((?:0|(?:[1-9]\\d*)))(?:-([0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*))?(?:\\+([0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*))?$/;\n (0, _internalTestHelpers.moduleFor)('@ember/-internals/metal/core/main', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Ember.VERSION is in alignment with SemVer v2.0.0'](assert) {\n assert.ok(SEMVER_REGEX.test(_version.default), \"Ember.VERSION (\" + _version.default + \")is valid SemVer v2.0.0\");\n }\n\n ['@test SEMVER_REGEX properly validates and invalidates version numbers'](assert) {\n function validateVersionString(versionString, expectedResult) {\n assert.equal(SEMVER_REGEX.test(versionString), expectedResult);\n } // Positive test cases\n\n\n validateVersionString('1.11.3', true);\n validateVersionString('1.0.0-beta.16.1', true);\n validateVersionString('1.12.1+canary.aba1412', true);\n validateVersionString('2.0.0-beta.1+canary.bb344775', true);\n validateVersionString('3.1.0-foobarBaz+30d70bd3', true); // Negative test cases\n\n validateVersionString('1.11.3.aba18a', false);\n validateVersionString('1.11', false);\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/accessor_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Mixin Accessors', class extends _internalTestHelpers.AbstractTestCase {\n ['@test works with getters'](assert) {\n let count = 0;\n\n let MixinA = _metal.Mixin.create({\n get prop() {\n return count++;\n }\n\n });\n\n let obj = {};\n MixinA.apply(obj);\n assert.equal(obj.prop, 0, 'getter defined correctly');\n assert.equal(obj.prop, 1, 'getter defined correctly');\n }\n\n ['@test works with setters'](assert) {\n let MixinA = _metal.Mixin.create({\n set prop(value) {\n this._prop = value + 1;\n }\n\n });\n\n let obj = {};\n MixinA.apply(obj);\n obj.prop = 0;\n assert.equal(obj._prop, 1, 'setter defined correctly');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/alias_method_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n function validateAliasMethod(assert, obj) {\n assert.equal(obj.fooMethod(), 'FOO', 'obj.fooMethod()');\n assert.equal(obj.barMethod(), 'FOO', 'obj.barMethod should be a copy of foo');\n }\n\n (0, _internalTestHelpers.moduleFor)('aliasMethod', class extends _internalTestHelpers.AbstractTestCase {\n ['@test methods of another name are aliased when the mixin is applied'](assert) {\n expectDeprecation(() => {\n let MyMixin = _metal.Mixin.create({\n fooMethod() {\n return 'FOO';\n },\n\n barMethod: (0, _metal.aliasMethod)('fooMethod')\n });\n\n let obj = MyMixin.apply({});\n validateAliasMethod(assert, obj);\n }, /aliasMethod has been deprecated. Consider extracting the method into a shared utility function/);\n }\n\n ['@test should follow aliasMethods all the way down'](assert) {\n expectDeprecation(() => {\n let MyMixin = _metal.Mixin.create({\n bar: (0, _metal.aliasMethod)('foo'),\n\n // put first to break ordered iteration\n baz() {\n return 'baz';\n },\n\n foo: (0, _metal.aliasMethod)('baz')\n });\n\n let obj = MyMixin.apply({});\n assert.equal((0, _metal.get)(obj, 'bar')(), 'baz', 'should have followed aliasMethods');\n }, /aliasMethod has been deprecated. Consider extracting the method into a shared utility function/);\n }\n\n ['@test should alias methods from other dependent mixins'](assert) {\n expectDeprecation(() => {\n let BaseMixin = _metal.Mixin.create({\n fooMethod() {\n return 'FOO';\n }\n\n });\n\n let MyMixin = _metal.Mixin.create(BaseMixin, {\n barMethod: (0, _metal.aliasMethod)('fooMethod')\n });\n\n let obj = MyMixin.apply({});\n validateAliasMethod(assert, obj);\n }, /aliasMethod has been deprecated. Consider extracting the method into a shared utility function/);\n }\n\n ['@test should alias methods from other mixins applied at same time'](assert) {\n expectDeprecation(() => {\n let BaseMixin = _metal.Mixin.create({\n fooMethod() {\n return 'FOO';\n }\n\n });\n\n let MyMixin = _metal.Mixin.create({\n barMethod: (0, _metal.aliasMethod)('fooMethod')\n });\n\n let obj = (0, _metal.mixin)({}, BaseMixin, MyMixin);\n validateAliasMethod(assert, obj);\n }, /aliasMethod has been deprecated. Consider extracting the method into a shared utility function/);\n }\n\n ['@test should alias methods from mixins already applied on object'](assert) {\n expectDeprecation(() => {\n let BaseMixin = _metal.Mixin.create({\n quxMethod() {\n return 'qux';\n }\n\n });\n\n let MyMixin = _metal.Mixin.create({\n bar: (0, _metal.aliasMethod)('foo'),\n barMethod: (0, _metal.aliasMethod)('fooMethod')\n });\n\n let obj = {\n fooMethod() {\n return 'FOO';\n }\n\n };\n BaseMixin.apply(obj);\n MyMixin.apply(obj);\n validateAliasMethod(assert, obj);\n }, /aliasMethod has been deprecated. Consider extracting the method into a shared utility function/);\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/apply_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n function K() {}\n\n (0, _internalTestHelpers.moduleFor)('Mixin.apply', class extends _internalTestHelpers.AbstractTestCase {\n ['@test using apply() should apply properties'](assert) {\n let MixinA = _metal.Mixin.create({\n foo: 'FOO',\n baz: K\n });\n\n let obj = {};\n (0, _metal.mixin)(obj, MixinA);\n assert.equal((0, _metal.get)(obj, 'foo'), 'FOO', 'should apply foo');\n assert.equal((0, _metal.get)(obj, 'baz'), K, 'should apply foo');\n }\n\n ['@test applying anonymous properties'](assert) {\n let obj = {};\n (0, _metal.mixin)(obj, {\n foo: 'FOO',\n baz: K\n });\n assert.equal((0, _metal.get)(obj, 'foo'), 'FOO', 'should apply foo');\n assert.equal((0, _metal.get)(obj, 'baz'), K, 'should apply foo');\n }\n\n ['@test applying null values']() {\n expectAssertion(() => (0, _metal.mixin)({}, null));\n }\n\n ['@test applying a property with an undefined value'](assert) {\n let obj = {\n tagName: ''\n };\n (0, _metal.mixin)(obj, {\n tagName: undefined\n });\n assert.strictEqual((0, _metal.get)(obj, 'tagName'), '');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/computed_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n function K() {\n return this;\n }\n\n (0, _internalTestHelpers.moduleFor)('Mixin Computed Properties', class extends _internalTestHelpers.AbstractTestCase {\n ['@test overriding computed properties'](assert) {\n let MixinA, MixinB, MixinC, MixinD;\n let obj;\n window.testStarted = true;\n MixinA = _metal.Mixin.create({\n aProp: (0, _metal.computed)(function () {\n return 'A';\n })\n });\n MixinB = _metal.Mixin.create(MixinA, {\n aProp: (0, _metal.computed)(function () {\n return this._super(...arguments) + 'B';\n })\n });\n MixinC = _metal.Mixin.create(MixinA, {\n aProp: (0, _metal.computed)(function () {\n return this._super(...arguments) + 'C';\n })\n });\n MixinD = _metal.Mixin.create({\n aProp: (0, _metal.computed)(function () {\n return this._super(...arguments) + 'D';\n })\n });\n obj = {};\n MixinB.apply(obj);\n assert.equal((0, _metal.get)(obj, 'aProp'), 'AB', 'should expose super for B');\n obj = {};\n MixinC.apply(obj);\n assert.equal((0, _metal.get)(obj, 'aProp'), 'AC', 'should expose super for C');\n obj = {};\n MixinA.apply(obj);\n MixinD.apply(obj);\n assert.equal((0, _metal.get)(obj, 'aProp'), 'AD', 'should define super for D');\n obj = {};\n (0, _metal.defineProperty)(obj, 'aProp', (0, _metal.computed)(function () {\n return 'obj';\n }));\n MixinD.apply(obj);\n assert.equal((0, _metal.get)(obj, 'aProp'), 'objD', 'should preserve original computed property');\n }\n\n ['@test calling set on overridden computed properties'](assert) {\n let SuperMixin, SubMixin;\n let obj;\n let superGetOccurred = false;\n let superSetOccurred = false;\n SuperMixin = _metal.Mixin.create({\n aProp: (0, _metal.computed)({\n get() {\n superGetOccurred = true;\n },\n\n set() {\n superSetOccurred = true;\n }\n\n })\n });\n SubMixin = _metal.Mixin.create(SuperMixin, {\n aProp: (0, _metal.computed)({\n get() {\n return this._super(...arguments);\n },\n\n set() {\n return this._super(...arguments);\n }\n\n })\n });\n obj = {};\n SubMixin.apply(obj);\n (0, _metal.set)(obj, 'aProp', 'set thyself');\n assert.ok(superSetOccurred, 'should pass set to _super');\n superSetOccurred = false; // reset the set assertion\n\n obj = {};\n SubMixin.apply(obj);\n (0, _metal.get)(obj, 'aProp');\n assert.ok(superGetOccurred, 'should pass get to _super');\n (0, _metal.set)(obj, 'aProp', 'set thyself');\n assert.ok(superSetOccurred, 'should pass set to _super after getting');\n }\n\n ['@test setter behavior works properly when overriding computed properties'](assert) {\n let obj = {};\n\n let MixinA = _metal.Mixin.create({\n cpWithSetter2: (0, _metal.computed)(K),\n cpWithSetter3: (0, _metal.computed)(K),\n cpWithoutSetter: (0, _metal.computed)(K)\n });\n\n let cpWasCalled = false;\n\n let MixinB = _metal.Mixin.create({\n cpWithSetter2: (0, _metal.computed)({\n get: K,\n\n set() {\n cpWasCalled = true;\n }\n\n }),\n cpWithSetter3: (0, _metal.computed)({\n get: K,\n\n set() {\n cpWasCalled = true;\n }\n\n }),\n cpWithoutSetter: (0, _metal.computed)(function () {\n cpWasCalled = true;\n })\n });\n\n MixinA.apply(obj);\n MixinB.apply(obj);\n (0, _metal.set)(obj, 'cpWithSetter2', 'test');\n assert.ok(cpWasCalled, 'The computed property setter was called when defined with two args');\n cpWasCalled = false;\n (0, _metal.set)(obj, 'cpWithSetter3', 'test');\n assert.ok(cpWasCalled, 'The computed property setter was called when defined with three args');\n cpWasCalled = false;\n expectDeprecation(() => {\n (0, _metal.set)(obj, 'cpWithoutSetter', 'test');\n }, /The \\[object Object\\]#cpWithoutSetter computed property was just overriden./);\n assert.equal((0, _metal.get)(obj, 'cpWithoutSetter'), 'test', 'The default setter was called, the value is correct');\n assert.ok(!cpWasCalled, 'The default setter was called, not the CP itself');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/concatenated_properties_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Mixin concatenatedProperties', class extends _internalTestHelpers.AbstractTestCase {\n ['@test defining concatenated properties should concat future version'](assert) {\n let MixinA = _metal.Mixin.create({\n concatenatedProperties: ['foo'],\n foo: ['a', 'b', 'c']\n });\n\n let MixinB = _metal.Mixin.create({\n foo: ['d', 'e', 'f']\n });\n\n let obj = (0, _metal.mixin)({}, MixinA, MixinB);\n assert.deepEqual((0, _metal.get)(obj, 'foo'), ['a', 'b', 'c', 'd', 'e', 'f']);\n }\n\n ['@test defining concatenated properties should concat future version'](assert) {\n let MixinA = _metal.Mixin.create({\n concatenatedProperties: null\n });\n\n let MixinB = _metal.Mixin.create({\n concatenatedProperties: null\n });\n\n let obj = (0, _metal.mixin)({}, MixinA, MixinB);\n assert.deepEqual(obj.concatenatedProperties, []);\n }\n\n ['@test concatenatedProperties should be concatenated'](assert) {\n let MixinA = _metal.Mixin.create({\n concatenatedProperties: ['foo'],\n foo: ['a', 'b', 'c']\n });\n\n let MixinB = _metal.Mixin.create({\n concatenatedProperties: 'bar',\n foo: ['d', 'e', 'f'],\n bar: [1, 2, 3]\n });\n\n let MixinC = _metal.Mixin.create({\n bar: [4, 5, 6]\n });\n\n let obj = (0, _metal.mixin)({}, MixinA, MixinB, MixinC);\n assert.deepEqual((0, _metal.get)(obj, 'concatenatedProperties'), ['foo', 'bar'], 'get concatenatedProperties');\n assert.deepEqual((0, _metal.get)(obj, 'foo'), ['a', 'b', 'c', 'd', 'e', 'f'], 'get foo');\n assert.deepEqual((0, _metal.get)(obj, 'bar'), [1, 2, 3, 4, 5, 6], 'get bar');\n }\n\n ['@test adding a prop that is not an array should make array'](assert) {\n let MixinA = _metal.Mixin.create({\n concatenatedProperties: ['foo'],\n foo: [1, 2, 3]\n });\n\n let MixinB = _metal.Mixin.create({\n foo: 4\n });\n\n let obj = (0, _metal.mixin)({}, MixinA, MixinB);\n assert.deepEqual((0, _metal.get)(obj, 'foo'), [1, 2, 3, 4]);\n }\n\n ['@test adding a prop that is not an array should make array'](assert) {\n let MixinA = _metal.Mixin.create({\n concatenatedProperties: ['foo'],\n foo: 'bar'\n });\n\n let obj = (0, _metal.mixin)({}, MixinA);\n assert.deepEqual((0, _metal.get)(obj, 'foo'), ['bar']);\n }\n\n ['@test adding a non-concatenable property that already has a defined value should result in an array with both values'](assert) {\n let mixinA = _metal.Mixin.create({\n foo: 1\n });\n\n let mixinB = _metal.Mixin.create({\n concatenatedProperties: ['foo'],\n foo: 2\n });\n\n let obj = (0, _metal.mixin)({}, mixinA, mixinB);\n assert.deepEqual((0, _metal.get)(obj, 'foo'), [1, 2]);\n }\n\n ['@test adding a concatenable property that already has a defined value should result in a concatenated value'](assert) {\n let mixinA = _metal.Mixin.create({\n foobar: 'foo'\n });\n\n let mixinB = _metal.Mixin.create({\n concatenatedProperties: ['foobar'],\n foobar: 'bar'\n });\n\n let obj = (0, _metal.mixin)({}, mixinA, mixinB);\n assert.deepEqual((0, _metal.get)(obj, 'foobar'), ['foo', 'bar']);\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/detect_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Mixin.detect', class extends _internalTestHelpers.AbstractTestCase {\n ['@test detect() finds a directly applied mixin'](assert) {\n let MixinA = _metal.Mixin.create();\n\n let obj = {};\n assert.equal(MixinA.detect(obj), false, 'MixinA.detect(obj) before apply()');\n MixinA.apply(obj);\n assert.equal(MixinA.detect(obj), true, 'MixinA.detect(obj) after apply()');\n }\n\n ['@test detect() finds nested mixins'](assert) {\n let MixinA = _metal.Mixin.create({});\n\n let MixinB = _metal.Mixin.create(MixinA);\n\n let obj = {};\n assert.equal(MixinA.detect(obj), false, 'MixinA.detect(obj) before apply()');\n MixinB.apply(obj);\n assert.equal(MixinA.detect(obj), true, 'MixinA.detect(obj) after apply()');\n }\n\n ['@test detect() finds mixins on other mixins'](assert) {\n let MixinA = _metal.Mixin.create({});\n\n let MixinB = _metal.Mixin.create(MixinA);\n\n assert.equal(MixinA.detect(MixinB), true, 'MixinA is part of MixinB');\n assert.equal(MixinB.detect(MixinA), false, 'MixinB is not part of MixinA');\n }\n\n ['@test detect handles null values'](assert) {\n let MixinA = _metal.Mixin.create();\n\n assert.equal(MixinA.detect(null), false);\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/introspection_test\", [\"@ember/-internals/utils\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_utils, _metal, _internalTestHelpers) {\n \"use strict\";\n\n // NOTE: A previous iteration differentiated between public and private props\n // as well as methods vs props. We are just keeping these for testing; the\n // current impl doesn't care about the differences as much...\n const PrivateProperty = _metal.Mixin.create({\n _foo: '_FOO'\n });\n\n const PublicProperty = _metal.Mixin.create({\n foo: 'FOO'\n });\n\n const PrivateMethod = _metal.Mixin.create({\n _fooMethod() {}\n\n });\n\n const PublicMethod = _metal.Mixin.create({\n fooMethod() {}\n\n });\n\n const BarProperties = _metal.Mixin.create({\n _bar: '_BAR',\n bar: 'bar'\n });\n\n const BarMethods = _metal.Mixin.create({\n _barMethod() {},\n\n barMethod() {}\n\n });\n\n const Combined = _metal.Mixin.create(BarProperties, BarMethods);\n\n let obj;\n (0, _internalTestHelpers.moduleFor)('Basic introspection', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = {};\n (0, _metal.mixin)(obj, PrivateProperty, PublicProperty, PrivateMethod, PublicMethod, Combined);\n }\n\n ['@test Ember.mixins()'](assert) {\n function mapGuids(ary) {\n return ary.map(x => (0, _utils.guidFor)(x));\n }\n\n assert.deepEqual(mapGuids(_metal.Mixin.mixins(obj)), mapGuids([PrivateProperty, PublicProperty, PrivateMethod, PublicMethod, Combined, BarProperties, BarMethods]), 'should return included mixins');\n }\n\n ['@test setting a NAME_KEY on a mixin does not error'](assert) {\n assert.expect(0);\n\n let instance = _metal.Mixin.create();\n\n instance[_utils.NAME_KEY] = 'My special name!';\n }\n\n ['@test setting a NAME_KEY on a mixin instance does not error'](assert) {\n assert.expect(0);\n\n _metal.Mixin.create({\n [_utils.NAME_KEY]: 'My special name'\n });\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/merged_properties_test\", [\"@ember/-internals/runtime\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_runtime, _metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Mixin mergedProperties', class extends _internalTestHelpers.AbstractTestCase {\n ['@test defining mergedProperties should merge future version'](assert) {\n let MixinA = _metal.Mixin.create({\n mergedProperties: ['foo'],\n foo: {\n a: true,\n b: true,\n c: true\n }\n });\n\n let MixinB = _metal.Mixin.create({\n foo: {\n d: true,\n e: true,\n f: true\n }\n });\n\n let obj = (0, _metal.mixin)({}, MixinA, MixinB);\n assert.deepEqual((0, _metal.get)(obj, 'foo'), {\n a: true,\n b: true,\n c: true,\n d: true,\n e: true,\n f: true\n });\n }\n\n ['@test defining mergedProperties on future mixin should merged into past'](assert) {\n let MixinA = _metal.Mixin.create({\n foo: {\n a: true,\n b: true,\n c: true\n }\n });\n\n let MixinB = _metal.Mixin.create({\n mergedProperties: ['foo'],\n foo: {\n d: true,\n e: true,\n f: true\n }\n });\n\n let obj = (0, _metal.mixin)({}, MixinA, MixinB);\n assert.deepEqual((0, _metal.get)(obj, 'foo'), {\n a: true,\n b: true,\n c: true,\n d: true,\n e: true,\n f: true\n });\n }\n\n ['@test defining mergedProperties with null properties should keep properties null'](assert) {\n let MixinA = _metal.Mixin.create({\n mergedProperties: ['foo'],\n foo: null\n });\n\n let MixinB = _metal.Mixin.create({\n foo: null\n });\n\n let obj = (0, _metal.mixin)({}, MixinA, MixinB);\n assert.equal((0, _metal.get)(obj, 'foo'), null);\n }\n\n [\"@test mergedProperties' properties can get overwritten\"](assert) {\n let MixinA = _metal.Mixin.create({\n mergedProperties: ['foo'],\n foo: {\n a: 1\n }\n });\n\n let MixinB = _metal.Mixin.create({\n foo: {\n a: 2\n }\n });\n\n let obj = (0, _metal.mixin)({}, MixinA, MixinB);\n assert.deepEqual((0, _metal.get)(obj, 'foo'), {\n a: 2\n });\n }\n\n ['@test mergedProperties should be concatenated'](assert) {\n let MixinA = _metal.Mixin.create({\n mergedProperties: ['foo'],\n foo: {\n a: true,\n b: true,\n c: true\n }\n });\n\n let MixinB = _metal.Mixin.create({\n mergedProperties: 'bar',\n foo: {\n d: true,\n e: true,\n f: true\n },\n bar: {\n a: true,\n l: true\n }\n });\n\n let MixinC = _metal.Mixin.create({\n bar: {\n e: true,\n x: true\n }\n });\n\n let obj = (0, _metal.mixin)({}, MixinA, MixinB, MixinC);\n assert.deepEqual((0, _metal.get)(obj, 'mergedProperties'), ['foo', 'bar'], 'get mergedProperties');\n assert.deepEqual((0, _metal.get)(obj, 'foo'), {\n a: true,\n b: true,\n c: true,\n d: true,\n e: true,\n f: true\n }, 'get foo');\n assert.deepEqual((0, _metal.get)(obj, 'bar'), {\n a: true,\n l: true,\n e: true,\n x: true\n }, 'get bar');\n }\n\n ['@test mergedProperties should exist even if not explicitly set on create'](assert) {\n let AnObj = _runtime.Object.extend({\n mergedProperties: ['options'],\n options: {\n a: 'a',\n b: {\n c: 'ccc'\n }\n }\n });\n\n let obj = AnObj.create({\n options: {\n a: 'A'\n }\n });\n assert.equal((0, _metal.get)(obj, 'options').a, 'A');\n assert.equal((0, _metal.get)(obj, 'options').b.c, 'ccc');\n }\n\n ['@test defining mergedProperties at create time should not modify the prototype'](assert) {\n let AnObj = _runtime.Object.extend({\n mergedProperties: ['options'],\n options: {\n a: 1\n }\n });\n\n let objA = AnObj.create({\n options: {\n a: 2\n }\n });\n let objB = AnObj.create({\n options: {\n a: 3\n }\n });\n assert.equal((0, _metal.get)(objA, 'options').a, 2);\n assert.equal((0, _metal.get)(objB, 'options').a, 3);\n }\n\n [\"@test mergedProperties' overwriting methods can call _super\"](assert) {\n assert.expect(4);\n\n let MixinA = _metal.Mixin.create({\n mergedProperties: ['foo'],\n foo: {\n meth(a) {\n assert.equal(a, 'WOOT', \"_super successfully called MixinA's `foo.meth` method\");\n return 'WAT';\n }\n\n }\n });\n\n let MixinB = _metal.Mixin.create({\n foo: {\n meth() {\n assert.ok(true, \"MixinB's `foo.meth` method called\");\n return this._super(...arguments);\n }\n\n }\n });\n\n let MixinC = _metal.Mixin.create({\n foo: {\n meth(a) {\n assert.ok(true, \"MixinC's `foo.meth` method called\");\n return this._super(a);\n }\n\n }\n });\n\n let obj = (0, _metal.mixin)({}, MixinA, MixinB, MixinC);\n assert.equal(obj.foo.meth('WOOT'), 'WAT');\n }\n\n ['@test Merging an Array should raise an error'](assert) {\n assert.expect(1);\n\n let MixinA = _metal.Mixin.create({\n mergedProperties: ['foo'],\n foo: {\n a: true,\n b: true,\n c: true\n }\n });\n\n let MixinB = _metal.Mixin.create({\n foo: ['a']\n });\n\n expectAssertion(() => {\n (0, _metal.mixin)({}, MixinA, MixinB);\n }, 'You passed in `[\"a\"]` as the value for `foo` but `foo` cannot be an Array');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/method_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Mixin Methods', class extends _internalTestHelpers.AbstractTestCase {\n ['@test defining simple methods'](assert) {\n let MixinA, obj, props;\n props = {\n publicMethod() {\n return 'publicMethod';\n },\n\n _privateMethod() {\n return 'privateMethod';\n }\n\n };\n MixinA = _metal.Mixin.create(props);\n obj = {};\n MixinA.apply(obj); // but should be defined\n\n assert.equal(props.publicMethod(), 'publicMethod', 'publicMethod is func');\n assert.equal(props._privateMethod(), 'privateMethod', 'privateMethod is func');\n }\n\n ['@test overriding public methods'](assert) {\n let MixinA, MixinB, MixinD, MixinF, obj;\n MixinA = _metal.Mixin.create({\n publicMethod() {\n return 'A';\n }\n\n });\n MixinB = _metal.Mixin.create(MixinA, {\n publicMethod() {\n return this._super(...arguments) + 'B';\n }\n\n });\n MixinD = _metal.Mixin.create(MixinA, {\n publicMethod() {\n return this._super(...arguments) + 'D';\n }\n\n });\n MixinF = _metal.Mixin.create({\n publicMethod() {\n return this._super(...arguments) + 'F';\n }\n\n });\n obj = {};\n MixinB.apply(obj);\n assert.equal(obj.publicMethod(), 'AB', 'should define super for A and B');\n obj = {};\n MixinD.apply(obj);\n assert.equal(obj.publicMethod(), 'AD', 'should define super for A and B');\n obj = {};\n MixinA.apply(obj);\n MixinF.apply(obj);\n assert.equal(obj.publicMethod(), 'AF', 'should define super for A and F');\n obj = {\n publicMethod() {\n return 'obj';\n }\n\n };\n MixinF.apply(obj);\n assert.equal(obj.publicMethod(), 'objF', 'should define super for F');\n }\n\n ['@test overriding inherited objects'](assert) {\n let cnt = 0;\n\n let MixinA = _metal.Mixin.create({\n foo() {\n cnt++;\n }\n\n });\n\n let MixinB = _metal.Mixin.create({\n foo() {\n this._super(...arguments);\n\n cnt++;\n }\n\n });\n\n let objA = {};\n MixinA.apply(objA);\n let objB = Object.create(objA);\n MixinB.apply(objB);\n cnt = 0;\n objB.foo();\n assert.equal(cnt, 2, 'should invoke both methods');\n cnt = 0;\n objA.foo();\n assert.equal(cnt, 1, 'should not screw w/ parent obj');\n }\n\n ['@test Including the same mixin more than once will only run once'](assert) {\n let cnt = 0;\n\n let MixinA = _metal.Mixin.create({\n foo() {\n cnt++;\n }\n\n });\n\n let MixinB = _metal.Mixin.create(MixinA, {\n foo() {\n this._super(...arguments);\n }\n\n });\n\n let MixinC = _metal.Mixin.create(MixinA, {\n foo() {\n this._super(...arguments);\n }\n\n });\n\n let MixinD = _metal.Mixin.create(MixinB, MixinC, MixinA, {\n foo() {\n this._super(...arguments);\n }\n\n });\n\n let obj = {};\n MixinD.apply(obj);\n MixinA.apply(obj); // try to apply again..\n\n cnt = 0;\n obj.foo();\n assert.equal(cnt, 1, 'should invoke MixinA.foo one time');\n }\n\n ['@test _super from a single mixin with no superclass does not error'](assert) {\n let MixinA = _metal.Mixin.create({\n foo() {\n this._super(...arguments);\n }\n\n });\n\n let obj = {};\n MixinA.apply(obj);\n obj.foo();\n assert.ok(true);\n }\n\n ['@test _super from a first-of-two mixins with no superclass function does not error'](assert) {\n // _super was previously calling itself in the second assertion.\n // Use remaining count of calls to ensure it doesn't loop indefinitely.\n let remaining = 3;\n\n let MixinA = _metal.Mixin.create({\n foo() {\n if (remaining-- > 0) {\n this._super(...arguments);\n }\n }\n\n });\n\n let MixinB = _metal.Mixin.create({\n foo() {\n this._super(...arguments);\n }\n\n });\n\n let obj = {};\n MixinA.apply(obj);\n MixinB.apply(obj);\n obj.foo();\n assert.ok(true);\n }\n\n }); // ..........................................................\n // CONFLICTS\n //\n\n (0, _internalTestHelpers.moduleFor)('Method Conflicts', class extends _internalTestHelpers.AbstractTestCase {\n ['@test overriding toString'](assert) {\n let MixinA = _metal.Mixin.create({\n toString() {\n return 'FOO';\n }\n\n });\n\n let obj = {};\n MixinA.apply(obj);\n assert.equal(obj.toString(), 'FOO', 'should override toString w/o error');\n obj = {};\n (0, _metal.mixin)(obj, {\n toString() {\n return 'FOO';\n }\n\n });\n assert.equal(obj.toString(), 'FOO', 'should override toString w/o error');\n }\n\n }); // ..........................................................\n // BUGS\n //\n\n (0, _internalTestHelpers.moduleFor)('system/mixin/method_test BUGS', class extends _internalTestHelpers.AbstractTestCase {\n ['@test applying several mixins at once with sup already defined causes infinite loop'](assert) {\n let cnt = 0;\n\n let MixinA = _metal.Mixin.create({\n foo() {\n cnt++;\n }\n\n });\n\n let MixinB = _metal.Mixin.create({\n foo() {\n this._super(...arguments);\n\n cnt++;\n }\n\n });\n\n let MixinC = _metal.Mixin.create({\n foo() {\n this._super(...arguments);\n\n cnt++;\n }\n\n });\n\n let obj = {};\n (0, _metal.mixin)(obj, MixinA); // sup already exists\n\n (0, _metal.mixin)(obj, MixinB, MixinC); // must be more than one mixin\n\n cnt = 0;\n obj.foo();\n assert.equal(cnt, 3, 'should invoke all 3 methods');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/observer_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Mixin observer', class extends _internalTestHelpers.AbstractTestCase {\n ['@test global observer helper'](assert) {\n let MyMixin = _metal.Mixin.create({\n count: 0,\n foo: (0, _metal.observer)('bar', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let obj = (0, _metal.mixin)({}, MyMixin);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj, 'bar', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n ['@test global observer helper takes multiple params'](assert) {\n let MyMixin = _metal.Mixin.create({\n count: 0,\n foo: (0, _metal.observer)('bar', 'baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let obj = (0, _metal.mixin)({}, MyMixin);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj, 'bar', 'BAZ');\n (0, _metal.set)(obj, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 2, 'should invoke observer after change');\n }\n\n ['@test replacing observer should remove old observer'](assert) {\n let MyMixin = _metal.Mixin.create({\n count: 0,\n foo: (0, _metal.observer)('bar', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let Mixin2 = _metal.Mixin.create({\n foo: (0, _metal.observer)('baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 10);\n })\n });\n\n let obj = (0, _metal.mixin)({}, MyMixin, Mixin2);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj, 'bar', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer after change');\n (0, _metal.set)(obj, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 10, 'should invoke observer after change');\n }\n\n ['@test observing chain with property before'](assert) {\n let obj2 = {\n baz: 'baz'\n };\n\n let MyMixin = _metal.Mixin.create({\n count: 0,\n bar: obj2,\n foo: (0, _metal.observer)('bar.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let obj = (0, _metal.mixin)({}, MyMixin);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj2, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n ['@test observing chain with property after'](assert) {\n let obj2 = {\n baz: 'baz'\n };\n\n let MyMixin = _metal.Mixin.create({\n count: 0,\n foo: (0, _metal.observer)('bar.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n }),\n bar: obj2\n });\n\n let obj = (0, _metal.mixin)({}, MyMixin);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj2, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n ['@test observing chain with property in mixin applied later'](assert) {\n let obj2 = {\n baz: 'baz'\n };\n\n let MyMixin = _metal.Mixin.create({\n count: 0,\n foo: (0, _metal.observer)('bar.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let MyMixin2 = _metal.Mixin.create({\n bar: obj2\n });\n\n let obj = (0, _metal.mixin)({}, MyMixin);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n MyMixin2.apply(obj);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj2, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n ['@test observing chain with existing property'](assert) {\n let obj2 = {\n baz: 'baz'\n };\n\n let MyMixin = _metal.Mixin.create({\n count: 0,\n foo: (0, _metal.observer)('bar.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let obj = (0, _metal.mixin)({\n bar: obj2\n }, MyMixin);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj2, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n ['@test observing chain with property in mixin before'](assert) {\n let obj2 = {\n baz: 'baz'\n };\n\n let MyMixin2 = _metal.Mixin.create({\n bar: obj2\n });\n\n let MyMixin = _metal.Mixin.create({\n count: 0,\n foo: (0, _metal.observer)('bar.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let obj = (0, _metal.mixin)({}, MyMixin2, MyMixin);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj2, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n ['@test observing chain with property in mixin after'](assert) {\n let obj2 = {\n baz: 'baz'\n };\n\n let MyMixin2 = _metal.Mixin.create({\n bar: obj2\n });\n\n let MyMixin = _metal.Mixin.create({\n count: 0,\n foo: (0, _metal.observer)('bar.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let obj = (0, _metal.mixin)({}, MyMixin, MyMixin2);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj2, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n ['@test observing chain with overridden property'](assert) {\n let obj2 = {\n baz: 'baz'\n };\n let obj3 = {\n baz: 'foo'\n };\n\n let MyMixin2 = _metal.Mixin.create({\n bar: obj3\n });\n\n let MyMixin = _metal.Mixin.create({\n count: 0,\n foo: (0, _metal.observer)('bar.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let obj = (0, _metal.mixin)({\n bar: obj2\n }, MyMixin, MyMixin2);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n assert.equal((0, _metal.isWatching)(obj2, 'baz'), false, 'should not be watching baz');\n assert.equal((0, _metal.isWatching)(obj3, 'baz'), true, 'should be watching baz');\n (0, _metal.set)(obj2, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer after change');\n (0, _metal.set)(obj3, 'baz', 'BEAR');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/reopen_test\", [\"@ember/-internals/runtime\", \"@ember/-internals/metal\", \"@ember/runloop\", \"internal-test-helpers\"], function (_runtime, _metal, _runloop, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Mixin#reopen', class extends _internalTestHelpers.AbstractTestCase {\n ['@test using reopen() to add more properties to a simple'](assert) {\n let MixinA = _metal.Mixin.create({\n foo: 'FOO',\n baz: 'BAZ'\n });\n\n MixinA.reopen({\n bar: 'BAR',\n foo: 'FOO2'\n });\n let obj = {};\n MixinA.apply(obj);\n assert.equal((0, _metal.get)(obj, 'foo'), 'FOO2', 'mixin() should override');\n assert.equal((0, _metal.get)(obj, 'baz'), 'BAZ', 'preserve MixinA props');\n assert.equal((0, _metal.get)(obj, 'bar'), 'BAR', 'include MixinB props');\n }\n\n ['@test using reopen() and calling _super where there is not a super function does not cause infinite recursion'](assert) {\n let Taco = _runtime.Object.extend({\n createBreakfast() {\n // There is no original createBreakfast function.\n // Calling the wrapped _super function here\n // used to end in an infinite call loop\n this._super(...arguments);\n\n return 'Breakfast!';\n }\n\n });\n\n Taco.reopen({\n createBreakfast() {\n return this._super(...arguments);\n }\n\n });\n let taco = Taco.create();\n let result;\n (0, _runloop.run)(() => {\n try {\n result = taco.createBreakfast();\n } catch (e) {\n result = 'Your breakfast was interrupted by an infinite stack error.';\n }\n });\n assert.equal(result, 'Breakfast!');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/mixin/without_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('without', class extends _internalTestHelpers.AbstractTestCase {\n ['@test without should create a new mixin excluding named properties'](assert) {\n let MixinA = _metal.Mixin.create({\n foo: 'FOO',\n bar: 'BAR'\n });\n\n let MixinB = MixinA.without('bar');\n let obj = {};\n MixinB.apply(obj);\n assert.equal(obj.foo, 'FOO', 'should defined foo');\n assert.equal(obj.bar, undefined, 'should not define bar');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/namespace_search_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('NamespaceSearch', class extends _internalTestHelpers.AbstractTestCase {\n ['@test classToString: null as this inside class must not throw error'](assert) {\n let mixin = _metal.Mixin.create();\n\n assert.equal(mixin.toString(), '(unknown)', 'this = null should be handled on Mixin.toString() call');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/native_desc_decorator_test\", [\"@ember/-internals/runtime\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_runtime, _metal, _internalTestHelpers) {\n \"use strict\";\n\n let classes = [class {\n static module(title) {\n return title + \": using defineProperty on an object directly\";\n }\n\n constructor() {\n this.object = {};\n }\n\n install(key, desc, assert) {\n let {\n object\n } = this;\n (0, _metal.defineProperty)(object, key, desc);\n assert.ok(object.hasOwnProperty(key));\n }\n\n set(key, value) {\n this.object[key] = value;\n }\n\n finalize() {\n return this.object;\n }\n\n source() {\n return this.object;\n }\n\n }, class {\n static module(title) {\n return title + \": using defineProperty on a prototype\";\n }\n\n constructor() {\n this.proto = {};\n }\n\n install(key, desc, assert) {\n let {\n proto\n } = this;\n (0, _metal.defineProperty)(proto, key, desc);\n assert.ok(proto.hasOwnProperty(key));\n }\n\n set(key, value) {\n this.proto[key] = value;\n }\n\n finalize() {\n return Object.create(this.proto);\n }\n\n source() {\n return this.proto;\n }\n\n }, class {\n static module(title) {\n return title + \": in EmberObject.extend()\";\n }\n\n constructor() {\n this.klass = null;\n this.props = {};\n }\n\n install(key, desc) {\n this.props[key] = desc;\n }\n\n set(key, value) {\n this.props[key] = value;\n }\n\n finalize() {\n this.klass = _runtime.Object.extend(this.props);\n return this.klass.create();\n }\n\n source() {\n return this.klass.prototype;\n }\n\n }, class {\n static module(title) {\n return title + \": in EmberObject.extend() through a mixin\";\n }\n\n constructor() {\n this.klass = null;\n this.props = {};\n }\n\n install(key, desc) {\n this.props[key] = desc;\n }\n\n set(key, value) {\n this.props[key] = value;\n }\n\n finalize() {\n this.klass = _runtime.Object.extend(_metal.Mixin.create(this.props));\n return this.klass.create();\n }\n\n source() {\n return this.klass.prototype;\n }\n\n }, class {\n static module(title) {\n return title + \": inherited from another EmberObject super class\";\n }\n\n constructor() {\n this.superklass = null;\n this.props = {};\n }\n\n install(key, desc) {\n this.props[key] = desc;\n }\n\n set(key, value) {\n this.props[key] = value;\n }\n\n finalize() {\n this.superklass = _runtime.Object.extend(this.props);\n return this.superklass.extend().create();\n }\n\n source() {\n return this.superklass.prototype;\n }\n\n }];\n classes.forEach(TestClass => {\n (0, _internalTestHelpers.moduleFor)(TestClass.module('@ember/-internals/metal/nativeDescDecorator'), class extends _internalTestHelpers.AbstractTestCase {\n ['@test defining a configurable property'](assert) {\n let factory = new TestClass(assert);\n factory.install('foo', (0, _metal.nativeDescDecorator)({\n configurable: true,\n value: 'bar'\n }), assert);\n let obj = factory.finalize();\n assert.equal(obj.foo, 'bar');\n let source = factory.source();\n delete source.foo;\n assert.strictEqual(obj.foo, undefined);\n Object.defineProperty(source, 'foo', {\n configurable: true,\n value: 'baz'\n });\n assert.equal(obj.foo, 'baz');\n }\n\n ['@test defining a non-configurable property'](assert) {\n let factory = new TestClass(assert);\n factory.install('foo', (0, _metal.nativeDescDecorator)({\n configurable: false,\n value: 'bar'\n }), assert);\n let obj = factory.finalize();\n assert.equal(obj.foo, 'bar');\n let source = factory.source();\n assert.throws(() => delete source.foo, TypeError);\n assert.throws(() => Object.defineProperty(source, 'foo', {\n configurable: true,\n value: 'baz'\n }), TypeError);\n assert.equal(obj.foo, 'bar');\n }\n\n ['@test defining an enumerable property'](assert) {\n let factory = new TestClass(assert);\n factory.install('foo', (0, _metal.nativeDescDecorator)({\n enumerable: true,\n value: 'bar'\n }), assert);\n let obj = factory.finalize();\n assert.equal(obj.foo, 'bar');\n let source = factory.source();\n assert.ok(Object.keys(source).indexOf('foo') !== -1);\n }\n\n ['@test defining a non-enumerable property'](assert) {\n let factory = new TestClass(assert);\n factory.install('foo', (0, _metal.nativeDescDecorator)({\n enumerable: false,\n value: 'bar'\n }), assert);\n let obj = factory.finalize();\n assert.equal(obj.foo, 'bar');\n let source = factory.source();\n assert.ok(Object.keys(source).indexOf('foo') === -1);\n }\n\n ['@test defining a writable property'](assert) {\n let factory = new TestClass(assert);\n factory.install('foo', (0, _metal.nativeDescDecorator)({\n writable: true,\n value: 'bar'\n }), assert);\n let obj = factory.finalize();\n assert.equal(obj.foo, 'bar');\n let source = factory.source();\n source.foo = 'baz';\n assert.equal(obj.foo, 'baz');\n obj.foo = 'bat';\n assert.equal(obj.foo, 'bat');\n }\n\n ['@test defining a non-writable property'](assert) {\n let factory = new TestClass(assert);\n factory.install('foo', (0, _metal.nativeDescDecorator)({\n writable: false,\n value: 'bar'\n }), assert);\n let obj = factory.finalize();\n assert.equal(obj.foo, 'bar');\n let source = factory.source();\n assert.throws(() => source.foo = 'baz', TypeError);\n assert.throws(() => obj.foo = 'baz', TypeError);\n assert.equal(obj.foo, 'bar');\n }\n\n ['@test defining a getter'](assert) {\n let factory = new TestClass(assert);\n factory.install('foo', (0, _metal.nativeDescDecorator)({\n get: function () {\n return this.__foo__;\n }\n }), assert);\n factory.set('__foo__', 'bar');\n let obj = factory.finalize();\n assert.equal(obj.foo, 'bar');\n obj.__foo__ = 'baz';\n assert.equal(obj.foo, 'baz');\n }\n\n ['@test defining a setter'](assert) {\n let factory = new TestClass(assert);\n factory.install('foo', (0, _metal.nativeDescDecorator)({\n set: function (value) {\n this.__foo__ = value;\n }\n }), assert);\n factory.set('__foo__', 'bar');\n let obj = factory.finalize();\n assert.equal(obj.__foo__, 'bar');\n obj.foo = 'baz';\n assert.equal(obj.__foo__, 'baz');\n }\n\n ['@test combining multiple setter and getters'](assert) {\n let factory = new TestClass(assert);\n factory.install('foo', (0, _metal.nativeDescDecorator)({\n get: function () {\n return this.__foo__;\n },\n set: function (value) {\n this.__foo__ = value;\n }\n }), assert);\n factory.set('__foo__', 'foo');\n factory.install('bar', (0, _metal.nativeDescDecorator)({\n get: function () {\n return this.__bar__;\n },\n set: function (value) {\n this.__bar__ = value;\n }\n }), assert);\n factory.set('__bar__', 'bar');\n factory.install('fooBar', (0, _metal.nativeDescDecorator)({\n get: function () {\n return this.foo + '-' + this.bar;\n }\n }), assert);\n let obj = factory.finalize();\n assert.equal(obj.fooBar, 'foo-bar');\n obj.foo = 'FOO';\n assert.equal(obj.fooBar, 'FOO-bar');\n obj.__bar__ = 'BAR';\n assert.equal(obj.fooBar, 'FOO-BAR');\n assert.throws(() => obj.fooBar = 'foobar', TypeError);\n assert.equal(obj.fooBar, 'FOO-BAR');\n }\n\n });\n });\n});","enifed(\"@ember/-internals/metal/tests/observer_test\", [\"@ember/-internals/environment\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_environment, _metal, _internalTestHelpers) {\n \"use strict\";\n\n function K() {} // ..........................................................\n // ADD OBSERVER\n //\n\n\n (0, _internalTestHelpers.moduleFor)('addObserver', class extends _internalTestHelpers.AbstractTestCase {\n ['@test observer should assert to invalid input']() {\n expectAssertion(() => {\n (0, _metal.observer)(() => {});\n }, 'observer called without valid path');\n expectAssertion(() => {\n (0, _metal.observer)(null);\n }, 'observer called without a function');\n }\n\n ['@test observer should fire when property is modified'](assert) {\n let obj = {};\n let count = 0;\n (0, _metal.addObserver)(obj, 'foo', function () {\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar', 'should invoke AFTER value changed');\n count++;\n });\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(count, 1, 'should have invoked observer');\n }\n\n ['@test observer should fire when dependent property is modified'](assert) {\n let obj = {\n bar: 'bar'\n };\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)('bar', function () {\n return (0, _metal.get)(this, 'bar').toUpperCase();\n }));\n (0, _metal.get)(obj, 'foo');\n let count = 0;\n (0, _metal.addObserver)(obj, 'foo', function () {\n assert.equal((0, _metal.get)(obj, 'foo'), 'BAZ', 'should have invoked after prop change');\n count++;\n });\n (0, _metal.set)(obj, 'bar', 'baz');\n assert.equal(count, 1, 'should have invoked observer');\n }\n\n ['@test observer should continue to fire after dependent properties are accessed'](assert) {\n let observerCount = 0;\n let obj = {};\n (0, _metal.defineProperty)(obj, 'prop', (0, _metal.computed)(function () {\n return Math.random();\n }));\n (0, _metal.defineProperty)(obj, 'anotherProp', (0, _metal.computed)('prop', function () {\n return (0, _metal.get)(this, 'prop') + Math.random();\n }));\n (0, _metal.addObserver)(obj, 'prop', function () {\n observerCount++;\n });\n (0, _metal.get)(obj, 'anotherProp');\n\n for (let i = 0; i < 10; i++) {\n (0, _metal.notifyPropertyChange)(obj, 'prop');\n }\n\n assert.equal(observerCount, 10, 'should continue to fire indefinitely');\n }\n\n ['@test observer added declaratively via brace expansion should fire when property changes'](assert) {\n if (_environment.ENV.EXTEND_PROTOTYPES.Function) {\n let obj = {};\n let count = 0;\n (0, _metal.mixin)(obj, {\n observeFooAndBar: function () {\n count++;\n }.observes('{foo,bar}')\n });\n (0, _metal.set)(obj, 'foo', 'foo');\n assert.equal(count, 1, 'observer specified via brace expansion invoked on property change');\n (0, _metal.set)(obj, 'bar', 'bar');\n assert.equal(count, 2, 'observer specified via brace expansion invoked on property change');\n (0, _metal.set)(obj, 'baz', 'baz');\n assert.equal(count, 2, 'observer not invoked on unspecified property');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test observer specified declaratively via brace expansion should fire when dependent property changes'](assert) {\n if (_environment.ENV.EXTEND_PROTOTYPES.Function) {\n let obj = {\n baz: 'Initial'\n };\n let count = 0;\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)('bar', function () {\n return (0, _metal.get)(this, 'bar').toLowerCase();\n }));\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.computed)('baz', function () {\n return (0, _metal.get)(this, 'baz').toUpperCase();\n }));\n (0, _metal.mixin)(obj, {\n fooAndBarWatcher: function () {\n count++;\n }.observes('{foo,bar}')\n });\n (0, _metal.get)(obj, 'foo');\n (0, _metal.set)(obj, 'baz', 'Baz'); // fire once for foo, once for bar\n\n assert.equal(count, 2, 'observer specified via brace expansion invoked on dependent property change');\n (0, _metal.set)(obj, 'quux', 'Quux');\n assert.equal(count, 2, 'observer not fired on unspecified property');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test observers watching multiple properties via brace expansion should fire when the properties change'](assert) {\n let obj = {};\n let count = 0;\n (0, _metal.mixin)(obj, {\n observeFooAndBar: (0, _metal.observer)('{foo,bar}', function () {\n count++;\n })\n });\n (0, _metal.set)(obj, 'foo', 'foo');\n assert.equal(count, 1, 'observer specified via brace expansion invoked on property change');\n (0, _metal.set)(obj, 'bar', 'bar');\n assert.equal(count, 2, 'observer specified via brace expansion invoked on property change');\n (0, _metal.set)(obj, 'baz', 'baz');\n assert.equal(count, 2, 'observer not invoked on unspecified property');\n }\n\n ['@test observers watching multiple properties via brace expansion should fire when dependent properties change'](assert) {\n let obj = {\n baz: 'Initial'\n };\n let count = 0;\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)('bar', function () {\n return (0, _metal.get)(this, 'bar').toLowerCase();\n }));\n (0, _metal.defineProperty)(obj, 'bar', (0, _metal.computed)('baz', function () {\n return (0, _metal.get)(this, 'baz').toUpperCase();\n }));\n (0, _metal.mixin)(obj, {\n fooAndBarWatcher: (0, _metal.observer)('{foo,bar}', function () {\n count++;\n })\n });\n (0, _metal.get)(obj, 'foo');\n (0, _metal.set)(obj, 'baz', 'Baz'); // fire once for foo, once for bar\n\n assert.equal(count, 2, 'observer specified via brace expansion invoked on dependent property change');\n (0, _metal.set)(obj, 'quux', 'Quux');\n assert.equal(count, 2, 'observer not fired on unspecified property');\n }\n\n ['@test nested observers should fire in order'](assert) {\n let obj = {\n foo: 'foo',\n bar: 'bar'\n };\n let fooCount = 0;\n let barCount = 0;\n (0, _metal.addObserver)(obj, 'foo', function () {\n fooCount++;\n });\n (0, _metal.addObserver)(obj, 'bar', function () {\n (0, _metal.set)(obj, 'foo', 'BAZ');\n assert.equal(fooCount, 1, 'fooCount should have fired already');\n barCount++;\n });\n (0, _metal.set)(obj, 'bar', 'BIFF');\n assert.equal(barCount, 1, 'barCount should have fired');\n assert.equal(fooCount, 1, 'foo should have fired');\n }\n\n ['@test removing an chain observer on change should not fail'](assert) {\n let foo = {\n bar: 'bar'\n };\n let obj1 = {\n foo: foo\n };\n let obj2 = {\n foo: foo\n };\n let obj3 = {\n foo: foo\n };\n let obj4 = {\n foo: foo\n };\n let count1 = 0;\n let count2 = 0;\n let count3 = 0;\n let count4 = 0;\n\n function observer1() {\n count1++;\n }\n\n function observer2() {\n count2++;\n }\n\n function observer3() {\n count3++;\n (0, _metal.removeObserver)(obj1, 'foo.bar', observer1);\n (0, _metal.removeObserver)(obj2, 'foo.bar', observer2);\n (0, _metal.removeObserver)(obj4, 'foo.bar', observer4);\n }\n\n function observer4() {\n count4++;\n }\n\n (0, _metal.addObserver)(obj1, 'foo.bar', observer1);\n (0, _metal.addObserver)(obj2, 'foo.bar', observer2);\n (0, _metal.addObserver)(obj3, 'foo.bar', observer3);\n (0, _metal.addObserver)(obj4, 'foo.bar', observer4);\n (0, _metal.set)(foo, 'bar', 'baz');\n assert.equal(count1, 1, 'observer1 fired');\n assert.equal(count2, 1, 'observer2 fired');\n assert.equal(count3, 1, 'observer3 fired');\n assert.equal(count4, 0, 'observer4 did not fire');\n }\n\n ['@test deferring property change notifications'](assert) {\n let obj = {\n foo: 'foo'\n };\n let fooCount = 0;\n (0, _metal.addObserver)(obj, 'foo', function () {\n fooCount++;\n });\n (0, _metal.beginPropertyChanges)();\n (0, _metal.set)(obj, 'foo', 'BIFF');\n (0, _metal.set)(obj, 'foo', 'BAZ');\n (0, _metal.endPropertyChanges)();\n assert.equal(fooCount, 1, 'foo should have fired once');\n }\n\n ['@test deferring property change notifications safely despite exceptions'](assert) {\n let obj = {\n foo: 'foo'\n };\n let fooCount = 0;\n let exc = new Error('Something unexpected happened!');\n assert.expect(2);\n (0, _metal.addObserver)(obj, 'foo', function () {\n fooCount++;\n });\n\n try {\n (0, _metal.changeProperties)(function () {\n (0, _metal.set)(obj, 'foo', 'BIFF');\n (0, _metal.set)(obj, 'foo', 'BAZ');\n throw exc;\n });\n } catch (err) {\n if (err !== exc) {\n throw err;\n }\n }\n\n assert.equal(fooCount, 1, 'foo should have fired once');\n (0, _metal.changeProperties)(function () {\n (0, _metal.set)(obj, 'foo', 'BIFF2');\n (0, _metal.set)(obj, 'foo', 'BAZ2');\n });\n assert.equal(fooCount, 2, 'foo should have fired again once');\n }\n\n ['@test addObserver should propagate through prototype'](assert) {\n let obj = {\n foo: 'foo',\n count: 0\n };\n let obj2;\n (0, _metal.addObserver)(obj, 'foo', function () {\n this.count++;\n });\n obj2 = Object.create(obj);\n (0, _metal.set)(obj2, 'foo', 'bar');\n assert.equal(obj2.count, 1, 'should have invoked observer on inherited');\n assert.equal(obj.count, 0, 'should not have invoked observer on parent');\n obj2.count = 0;\n (0, _metal.set)(obj, 'foo', 'baz');\n assert.equal(obj.count, 0, 'should not have invoked observer on parent');\n assert.equal(obj2.count, 0, 'should not have invoked observer on inherited');\n }\n\n ['@test addObserver should respect targets with methods'](assert) {\n let observed = {\n foo: 'foo'\n };\n let target1 = {\n count: 0,\n\n didChange(obj, keyName) {\n let value = (0, _metal.get)(obj, keyName);\n assert.equal(this, target1, 'should invoke with this');\n assert.equal(obj, observed, 'param1 should be observed object');\n assert.equal(keyName, 'foo', 'param2 should be keyName');\n assert.equal(value, 'BAZ', 'param3 should new value');\n this.count++;\n }\n\n };\n let target2 = {\n count: 0,\n\n didChange(obj, keyName) {\n let value = (0, _metal.get)(obj, keyName);\n assert.equal(this, target2, 'should invoke with this');\n assert.equal(obj, observed, 'param1 should be observed object');\n assert.equal(keyName, 'foo', 'param2 should be keyName');\n assert.equal(value, 'BAZ', 'param3 should new value');\n this.count++;\n }\n\n };\n (0, _metal.addObserver)(observed, 'foo', target1, 'didChange');\n (0, _metal.addObserver)(observed, 'foo', target2, target2.didChange);\n (0, _metal.set)(observed, 'foo', 'BAZ');\n assert.equal(target1.count, 1, 'target1 observer should have fired');\n assert.equal(target2.count, 1, 'target2 observer should have fired');\n }\n\n ['@test addObserver should allow multiple objects to observe a property'](assert) {\n let observed = {\n foo: 'foo'\n };\n let target1 = {\n count: 0,\n\n didChange() {\n this.count++;\n }\n\n };\n let target2 = {\n count: 0,\n\n didChange() {\n this.count++;\n }\n\n };\n (0, _metal.addObserver)(observed, 'foo', target1, 'didChange');\n (0, _metal.addObserver)(observed, 'foo', target2, 'didChange');\n (0, _metal.set)(observed, 'foo', 'BAZ');\n assert.equal(target1.count, 1, 'target1 observer should have fired');\n assert.equal(target2.count, 1, 'target2 observer should have fired');\n }\n\n }); // ..........................................................\n // REMOVE OBSERVER\n //\n\n (0, _internalTestHelpers.moduleFor)('removeObserver', class extends _internalTestHelpers.AbstractTestCase {\n ['@test removing observer should stop firing'](assert) {\n let obj = {};\n let count = 0;\n\n function F() {\n count++;\n }\n\n (0, _metal.addObserver)(obj, 'foo', F);\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(count, 1, 'should have invoked observer');\n (0, _metal.removeObserver)(obj, 'foo', F);\n (0, _metal.set)(obj, 'foo', 'baz');\n assert.equal(count, 1, \"removed observer shouldn't fire\");\n }\n\n ['@test local observers can be removed'](assert) {\n let barObserved = 0;\n\n let MyMixin = _metal.Mixin.create({\n foo1: (0, _metal.observer)('bar', function () {\n barObserved++;\n }),\n foo2: (0, _metal.observer)('bar', function () {\n barObserved++;\n })\n });\n\n let obj = {};\n MyMixin.apply(obj);\n (0, _metal.set)(obj, 'bar', 'HI!');\n assert.equal(barObserved, 2, 'precond - observers should be fired');\n (0, _metal.removeObserver)(obj, 'bar', null, 'foo1');\n barObserved = 0;\n (0, _metal.set)(obj, 'bar', 'HI AGAIN!');\n assert.equal(barObserved, 1, 'removed observers should not be called');\n }\n\n ['@test removeObserver should respect targets with methods'](assert) {\n let observed = {\n foo: 'foo'\n };\n let target1 = {\n count: 0,\n\n didChange() {\n this.count++;\n }\n\n };\n let target2 = {\n count: 0,\n\n didChange() {\n this.count++;\n }\n\n };\n (0, _metal.addObserver)(observed, 'foo', target1, 'didChange');\n (0, _metal.addObserver)(observed, 'foo', target2, target2.didChange);\n (0, _metal.set)(observed, 'foo', 'BAZ');\n assert.equal(target1.count, 1, 'target1 observer should have fired');\n assert.equal(target2.count, 1, 'target2 observer should have fired');\n (0, _metal.removeObserver)(observed, 'foo', target1, 'didChange');\n (0, _metal.removeObserver)(observed, 'foo', target2, target2.didChange);\n target1.count = target2.count = 0;\n (0, _metal.set)(observed, 'foo', 'BAZ');\n assert.equal(target1.count, 0, 'target1 observer should not fire again');\n assert.equal(target2.count, 0, 'target2 observer should not fire again');\n }\n\n }); // ..........................................................\n // CHAINED OBSERVERS\n //\n\n let obj, count;\n (0, _internalTestHelpers.moduleFor)('addObserver - dependentkey with chained properties', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = {\n foo: {\n bar: {\n baz: {\n biff: 'BIFF'\n }\n }\n },\n Capital: {\n foo: {\n bar: {\n baz: {\n biff: 'BIFF'\n }\n }\n }\n }\n };\n count = 0;\n }\n\n afterEach() {\n obj = count = null;\n }\n\n ['@test depending on a chain with a computed property'](assert) {\n (0, _metal.defineProperty)(obj, 'computed', (0, _metal.computed)(function () {\n return {\n foo: 'bar'\n };\n }));\n let changed = 0;\n (0, _metal.addObserver)(obj, 'computed.foo', function () {\n changed++;\n });\n assert.equal((0, _metal.getCachedValueFor)(obj, 'computed'), undefined, 'addObserver should not compute CP');\n (0, _metal.set)(obj, 'computed.foo', 'baz');\n assert.equal(changed, 1, 'should fire observer');\n }\n\n ['@test depending on a simple chain'](assert) {\n let val;\n (0, _metal.addObserver)(obj, 'foo.bar.baz.biff', function (target, key) {\n val = (0, _metal.get)(target, key);\n count++;\n });\n (0, _metal.set)((0, _metal.get)(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n assert.equal(val, 'BUZZ');\n assert.equal(count, 1);\n (0, _metal.set)((0, _metal.get)(obj, 'foo.bar'), 'baz', {\n biff: 'BLARG'\n });\n assert.equal(val, 'BLARG');\n assert.equal(count, 2);\n (0, _metal.set)((0, _metal.get)(obj, 'foo'), 'bar', {\n baz: {\n biff: 'BOOM'\n }\n });\n assert.equal(val, 'BOOM');\n assert.equal(count, 3);\n (0, _metal.set)(obj, 'foo', {\n bar: {\n baz: {\n biff: 'BLARG'\n }\n }\n });\n assert.equal(val, 'BLARG');\n assert.equal(count, 4);\n (0, _metal.set)((0, _metal.get)(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n assert.equal(val, 'BUZZ');\n assert.equal(count, 5);\n let foo = (0, _metal.get)(obj, 'foo');\n (0, _metal.set)(obj, 'foo', 'BOO');\n assert.equal(val, undefined);\n assert.equal(count, 6);\n (0, _metal.set)(foo.bar.baz, 'biff', 'BOOM');\n assert.equal(count, 6, 'should be not have invoked observer');\n }\n\n ['@test depending on a chain with a capitalized first key'](assert) {\n let val;\n (0, _metal.addObserver)(obj, 'Capital.foo.bar.baz.biff', function (target, key) {\n val = (0, _metal.get)(obj, key);\n count++;\n });\n (0, _metal.set)((0, _metal.get)(obj, 'Capital.foo.bar.baz'), 'biff', 'BUZZ');\n assert.equal(val, 'BUZZ');\n assert.equal(count, 1);\n (0, _metal.set)((0, _metal.get)(obj, 'Capital.foo.bar'), 'baz', {\n biff: 'BLARG'\n });\n assert.equal(val, 'BLARG');\n assert.equal(count, 2);\n (0, _metal.set)((0, _metal.get)(obj, 'Capital.foo'), 'bar', {\n baz: {\n biff: 'BOOM'\n }\n });\n assert.equal(val, 'BOOM');\n assert.equal(count, 3);\n (0, _metal.set)(obj, 'Capital.foo', {\n bar: {\n baz: {\n biff: 'BLARG'\n }\n }\n });\n assert.equal(val, 'BLARG');\n assert.equal(count, 4);\n (0, _metal.set)((0, _metal.get)(obj, 'Capital.foo.bar.baz'), 'biff', 'BUZZ');\n assert.equal(val, 'BUZZ');\n assert.equal(count, 5);\n let foo = (0, _metal.get)(obj, 'foo');\n (0, _metal.set)(obj, 'Capital.foo', 'BOO');\n assert.equal(val, undefined);\n assert.equal(count, 6);\n (0, _metal.set)(foo.bar.baz, 'biff', 'BOOM');\n assert.equal(count, 6, 'should be not have invoked observer');\n }\n\n }); // ..........................................................\n // SETTING IDENTICAL VALUES\n //\n\n (0, _internalTestHelpers.moduleFor)('props/observer_test - setting identical values', class extends _internalTestHelpers.AbstractTestCase {\n ['@test setting simple prop should not trigger'](assert) {\n let obj = {\n foo: 'bar'\n };\n let count = 0;\n (0, _metal.addObserver)(obj, 'foo', function () {\n count++;\n });\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(count, 0, 'should not trigger observer');\n (0, _metal.set)(obj, 'foo', 'baz');\n assert.equal(count, 1, 'should trigger observer');\n (0, _metal.set)(obj, 'foo', 'baz');\n assert.equal(count, 1, 'should not trigger observer again');\n } // The issue here is when a computed property is directly set with a value, then has a\n // dependent key change (which triggers a cache expiration and recomputation), observers will\n // not be fired if the CP setter is called with the last set value.\n\n\n ['@test setting a cached computed property whose value has changed should trigger'](assert) {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)('baz', {\n get: function () {\n return (0, _metal.get)(this, 'baz');\n },\n set: function (key, value) {\n return value;\n }\n }));\n let count = 0;\n (0, _metal.addObserver)(obj, 'foo', function () {\n count++;\n });\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(count, 1);\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar');\n (0, _metal.set)(obj, 'baz', 'qux');\n assert.equal(count, 2);\n assert.equal((0, _metal.get)(obj, 'foo'), 'qux');\n (0, _metal.get)(obj, 'foo');\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(count, 3);\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('changeProperties', class extends _internalTestHelpers.AbstractTestCase {\n ['@test observers added/removed during changeProperties should do the right thing.'](assert) {\n let obj = {\n foo: 0\n };\n\n function Observer() {\n this.didChangeCount = 0;\n }\n\n Observer.prototype = {\n add() {\n (0, _metal.addObserver)(obj, 'foo', this, 'didChange');\n },\n\n remove() {\n (0, _metal.removeObserver)(obj, 'foo', this, 'didChange');\n },\n\n didChange() {\n this.didChangeCount++;\n }\n\n };\n let addedBeforeFirstChangeObserver = new Observer();\n let addedAfterFirstChangeObserver = new Observer();\n let addedAfterLastChangeObserver = new Observer();\n let removedBeforeFirstChangeObserver = new Observer();\n let removedBeforeLastChangeObserver = new Observer();\n let removedAfterLastChangeObserver = new Observer();\n removedBeforeFirstChangeObserver.add();\n removedBeforeLastChangeObserver.add();\n removedAfterLastChangeObserver.add();\n (0, _metal.changeProperties)(function () {\n removedBeforeFirstChangeObserver.remove();\n addedBeforeFirstChangeObserver.add();\n (0, _metal.set)(obj, 'foo', 1);\n assert.equal(addedBeforeFirstChangeObserver.didChangeCount, 0, 'addObserver called before the first change is deferred');\n addedAfterFirstChangeObserver.add();\n removedBeforeLastChangeObserver.remove();\n (0, _metal.set)(obj, 'foo', 2);\n assert.equal(addedAfterFirstChangeObserver.didChangeCount, 0, 'addObserver called after the first change is deferred');\n addedAfterLastChangeObserver.add();\n removedAfterLastChangeObserver.remove();\n });\n assert.equal(removedBeforeFirstChangeObserver.didChangeCount, 0, 'removeObserver called before the first change sees none');\n assert.equal(addedBeforeFirstChangeObserver.didChangeCount, 1, 'addObserver called before the first change sees only 1');\n assert.equal(addedAfterFirstChangeObserver.didChangeCount, 1, 'addObserver called after the first change sees 1');\n assert.equal(addedAfterLastChangeObserver.didChangeCount, 1, 'addObserver called after the last change sees 1');\n assert.equal(removedBeforeLastChangeObserver.didChangeCount, 0, 'removeObserver called before the last change sees none');\n assert.equal(removedAfterLastChangeObserver.didChangeCount, 0, 'removeObserver called after the last change sees none');\n }\n\n ['@test calling changeProperties while executing deferred observers works correctly'](assert) {\n let obj = {\n foo: 0\n };\n let fooDidChange = 0;\n (0, _metal.addObserver)(obj, 'foo', () => {\n fooDidChange++;\n (0, _metal.changeProperties)(() => {});\n });\n (0, _metal.changeProperties)(() => {\n (0, _metal.set)(obj, 'foo', 1);\n });\n assert.equal(fooDidChange, 1);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Keys behavior with observers', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should not leak properties on the prototype'](assert) {\n function Beer() {}\n\n Beer.prototype.type = 'ipa';\n let beer = new Beer();\n (0, _metal.addObserver)(beer, 'type', K);\n assert.deepEqual(Object.keys(beer), []);\n (0, _metal.removeObserver)(beer, 'type', K);\n }\n\n ['@test observing a non existent property'](assert) {\n function Beer() {}\n\n Beer.prototype.type = 'ipa';\n let beer = new Beer();\n (0, _metal.addObserver)(beer, 'brand', K);\n assert.deepEqual(Object.keys(beer), []);\n (0, _metal.set)(beer, 'brand', 'Corona');\n assert.deepEqual(Object.keys(beer), ['brand']);\n (0, _metal.removeObserver)(beer, 'brand', K);\n }\n\n ['@test with observers switched on and off'](assert) {\n function Beer() {}\n\n Beer.prototype.type = 'ipa';\n let beer = new Beer();\n (0, _metal.addObserver)(beer, 'type', K);\n (0, _metal.removeObserver)(beer, 'type', K);\n assert.deepEqual(Object.keys(beer), []);\n }\n\n ['@test observers switched on and off with setter in between'](assert) {\n function Beer() {}\n\n Beer.prototype.type = 'ipa';\n let beer = new Beer();\n (0, _metal.addObserver)(beer, 'type', K);\n (0, _metal.set)(beer, 'type', 'ale');\n (0, _metal.removeObserver)(beer, 'type', K);\n assert.deepEqual(Object.keys(beer), ['type']);\n }\n\n ['@test observer switched on and off and then setter'](assert) {\n function Beer() {}\n\n Beer.prototype.type = 'ipa';\n let beer = new Beer();\n (0, _metal.addObserver)(beer, 'type', K);\n (0, _metal.removeObserver)(beer, 'type', K);\n (0, _metal.set)(beer, 'type', 'ale');\n assert.deepEqual(Object.keys(beer), ['type']);\n }\n\n ['@test observers switched on and off with setter in between (observed property is not shadowing)'](assert) {\n function Beer() {}\n\n let beer = new Beer();\n (0, _metal.set)(beer, 'type', 'ale');\n assert.deepEqual(Object.keys(beer), ['type'], 'only set');\n let otherBeer = new Beer();\n (0, _metal.addObserver)(otherBeer, 'type', K);\n (0, _metal.set)(otherBeer, 'type', 'ale');\n assert.deepEqual(Object.keys(otherBeer), ['type'], 'addObserver -> set');\n let yetAnotherBeer = new Beer();\n (0, _metal.addObserver)(yetAnotherBeer, 'type', K);\n (0, _metal.set)(yetAnotherBeer, 'type', 'ale');\n (0, _metal.addObserver)(beer, 'type', K);\n (0, _metal.removeObserver)(beer, 'type', K);\n assert.deepEqual(Object.keys(yetAnotherBeer), ['type'], 'addObserver -> set -> removeObserver');\n let itsMyLastBeer = new Beer();\n (0, _metal.set)(itsMyLastBeer, 'type', 'ale');\n (0, _metal.addObserver)(beer, 'type', K);\n (0, _metal.removeObserver)(beer, 'type', K);\n assert.deepEqual(Object.keys(itsMyLastBeer), ['type'], 'set -> removeObserver');\n }\n\n ['@test observers switched on and off with setter in between (observed property is shadowing one on the prototype)'](assert) {\n function Beer() {}\n\n Beer.prototype.type = 'ipa';\n let beer = new Beer();\n (0, _metal.set)(beer, 'type', 'ale');\n assert.deepEqual(Object.keys(beer), ['type'], 'after set');\n let otherBeer = new Beer();\n (0, _metal.addObserver)(otherBeer, 'type', K);\n (0, _metal.set)(otherBeer, 'type', 'ale');\n assert.deepEqual(Object.keys(otherBeer), ['type'], 'addObserver -> set');\n let yetAnotherBeer = new Beer();\n (0, _metal.addObserver)(yetAnotherBeer, 'type', K);\n (0, _metal.set)(yetAnotherBeer, 'type', 'ale');\n (0, _metal.addObserver)(beer, 'type', K);\n (0, _metal.removeObserver)(beer, 'type', K);\n assert.deepEqual(Object.keys(yetAnotherBeer), ['type'], 'addObserver -> set -> removeObserver');\n let itsMyLastBeer = new Beer();\n (0, _metal.set)(itsMyLastBeer, 'type', 'ale');\n (0, _metal.addObserver)(beer, 'type', K);\n (0, _metal.removeObserver)(beer, 'type', K);\n assert.deepEqual(Object.keys(itsMyLastBeer), ['type'], 'set -> removeObserver');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/performance_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n /*\n This test file is designed to capture performance regressions related to\n deferred computation. Things like run loops, computed properties, and bindings\n should run the minimum amount of times to achieve best performance, so any\n bugs that cause them to get evaluated more than necessary should be put here.\n */\n (0, _internalTestHelpers.moduleFor)('Computed Properties - Number of times evaluated', class extends _internalTestHelpers.AbstractTestCase {\n ['@test computed properties that depend on multiple properties should run only once per run loop'](assert) {\n let obj = {\n a: 'a',\n b: 'b',\n c: 'c'\n };\n let cpCount = 0;\n let obsCount = 0;\n (0, _metal.defineProperty)(obj, 'abc', (0, _metal.computed)('a', 'b', 'c', function (key) {\n cpCount++;\n return 'computed ' + key;\n }));\n (0, _metal.get)(obj, 'abc');\n cpCount = 0;\n (0, _metal.addObserver)(obj, 'abc', function () {\n obsCount++;\n });\n (0, _metal.beginPropertyChanges)();\n (0, _metal.set)(obj, 'a', 'aa');\n (0, _metal.set)(obj, 'b', 'bb');\n (0, _metal.set)(obj, 'c', 'cc');\n (0, _metal.endPropertyChanges)();\n (0, _metal.get)(obj, 'abc');\n assert.equal(cpCount, 1, 'The computed property is only invoked once');\n assert.equal(obsCount, 1, 'The observer is only invoked once');\n }\n\n ['@test computed properties are not executed if they are the last segment of an observer chain pain'](assert) {\n let foo = {\n bar: {\n baz: {}\n }\n };\n let count = 0;\n (0, _metal.defineProperty)(foo.bar.baz, 'bam', (0, _metal.computed)(function () {\n count++;\n }));\n (0, _metal.addObserver)(foo, 'bar.baz.bam', function () {});\n (0, _metal.notifyPropertyChange)((0, _metal.get)(foo, 'bar.baz'), 'bam');\n assert.equal(count, 0, 'should not have recomputed property');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/properties_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('defineProperty', class extends _internalTestHelpers.AbstractTestCase {\n ['@test toString'](assert) {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'toString', undefined, function () {\n return 'FOO';\n });\n assert.equal(obj.toString(), 'FOO', 'should replace toString');\n }\n\n ['@test for data properties, didDefineProperty hook should be called if implemented'](assert) {\n assert.expect(2);\n let obj = {\n didDefineProperty(obj, keyName, value) {\n assert.equal(keyName, 'foo', 'key name should be foo');\n assert.equal(value, 'bar', 'value should be bar');\n }\n\n };\n (0, _metal.defineProperty)(obj, 'foo', undefined, 'bar');\n }\n\n ['@test for computed properties, didDefineProperty hook should be called if implemented'](assert) {\n assert.expect(2);\n let computedProperty = (0, _metal.computed)(function () {\n return this;\n });\n let obj = {\n didDefineProperty(obj, keyName, value) {\n assert.equal(keyName, 'foo', 'key name should be foo');\n assert.strictEqual(value, computedProperty, 'value should be passed as computed property');\n }\n\n };\n (0, _metal.defineProperty)(obj, 'foo', computedProperty);\n }\n\n ['@test for descriptor properties, didDefineProperty hook should be called if implemented'](assert) {\n assert.expect(2);\n let descriptor = {\n writable: true,\n configurable: false,\n enumerable: true,\n value: 42\n };\n let obj = {\n didDefineProperty(obj, keyName, value) {\n assert.equal(keyName, 'answer', 'key name should be answer');\n assert.strictEqual(value, descriptor, 'value should be passed as descriptor');\n }\n\n };\n (0, _metal.defineProperty)(obj, 'answer', descriptor);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Ember.deprecateProperty', class extends _internalTestHelpers.AbstractTestCase {\n ['@test enables access to deprecated property and returns the value of the new property'](assert) {\n assert.expect(3);\n let obj = {\n foo: 'bar'\n };\n (0, _metal.deprecateProperty)(obj, 'baz', 'foo', {\n id: 'baz-deprecation',\n until: 'some.version'\n });\n expectDeprecation();\n assert.equal(obj.baz, obj.foo, 'baz and foo are equal');\n obj.foo = 'blammo';\n assert.equal(obj.baz, obj.foo, 'baz and foo are equal');\n }\n\n ['@test deprecatedKey is not enumerable'](assert) {\n assert.expect(2);\n let obj = {\n foo: 'bar',\n blammo: 'whammy'\n };\n (0, _metal.deprecateProperty)(obj, 'baz', 'foo', {\n id: 'baz-deprecation',\n until: 'some.version'\n });\n\n for (let prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n assert.notEqual(prop, 'baz');\n }\n }\n }\n\n ['@test enables setter to deprecated property and updates the value of the new property'](assert) {\n assert.expect(3);\n let obj = {\n foo: 'bar'\n };\n (0, _metal.deprecateProperty)(obj, 'baz', 'foo', {\n id: 'baz-deprecation',\n until: 'some.version'\n });\n expectDeprecation();\n obj.baz = 'bloop';\n assert.equal(obj.foo, 'bloop', 'updating baz updates foo');\n assert.equal(obj.baz, obj.foo, 'baz and foo are equal');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/property_did_change_hook\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('PROPERTY_DID_CHANGE', class extends _internalTestHelpers.AbstractTestCase {\n ['@test alias and cp'](assert) {\n let counts = {};\n let obj = {\n child: {},\n\n [_metal.PROPERTY_DID_CHANGE](keyName) {\n counts[keyName] = (counts[keyName] || 0) + 1;\n }\n\n };\n (0, _metal.defineProperty)(obj, 'cost', (0, _metal.alias)('child.cost'));\n (0, _metal.defineProperty)(obj, 'tax', (0, _metal.alias)('child.tax'));\n (0, _metal.defineProperty)(obj, 'total', (0, _metal.computed)('cost', 'tax', {\n get() {\n return (0, _metal.get)(this, 'cost') + (0, _metal.get)(this, 'tax');\n }\n\n }));\n assert.ok(!(0, _metal.isWatching)(obj, 'child.cost'), 'precond alias target `child.cost` is not watched');\n assert.equal((0, _metal.get)(obj, 'cost'), undefined); // this is how PROPERTY_DID_CHANGE will get notified\n\n assert.ok((0, _metal.isWatching)(obj, 'child.cost'), 'alias target `child.cost` is watched after consumption');\n assert.ok(!(0, _metal.isWatching)(obj, 'child.tax'), 'precond alias target `child.tax` is not watched');\n assert.equal((0, _metal.get)(obj, 'tax'), undefined); // this is how PROPERTY_DID_CHANGE will get notified\n\n assert.ok((0, _metal.isWatching)(obj, 'child.tax'), 'alias target `child.cost` is watched after consumption'); // increments the watching count on the alias itself to 1\n\n assert.ok(isNaN((0, _metal.get)(obj, 'total')), 'total is initialized'); // decrements the watching count on the alias itself to 0\n\n (0, _metal.set)(obj, 'child', {\n cost: 399.0,\n tax: 32.93\n }); // this should have called PROPERTY_DID_CHANGE for all of them\n\n assert.equal(counts['cost'], 1, 'PROPERTY_DID_CHANGE called with cost');\n assert.equal(counts['tax'], 1, 'PROPERTY_DID_CHANGE called with tax');\n assert.equal(counts['total'], 1, 'PROPERTY_DID_CHANGE called with total'); // we should still have a dependency installed\n\n assert.ok((0, _metal.isWatching)(obj, 'child.cost'), 'watching child.cost');\n assert.ok((0, _metal.isWatching)(obj, 'child.tax'), 'watching child.tax');\n (0, _metal.set)(obj, 'child', {\n cost: 100.0,\n tax: 10.0\n });\n assert.equal(counts['cost'], 2, 'PROPERTY_DID_CHANGE called with cost');\n assert.equal(counts['tax'], 2, 'PROPERTY_DID_CHANGE called with tax');\n assert.equal(counts['total'], 1, 'PROPERTY_DID_CHANGE called with total');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/property_events_test\", [\"@ember/-internals/meta\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_meta, _metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('notifyPropertyChange', class extends _internalTestHelpers.AbstractTestCase {\n ['@test notifies property changes on instances'](assert) {\n class Foo {\n [_metal.PROPERTY_DID_CHANGE](prop) {\n assert.equal(prop, 'bar', 'property change notified');\n }\n\n }\n\n let foo = new Foo();\n (0, _metal.notifyPropertyChange)(foo, 'bar');\n }\n\n ['@test notifies property changes on instances with meta'](assert) {\n class Foo {\n [_metal.PROPERTY_DID_CHANGE](prop) {\n assert.equal(prop, 'bar', 'property change notified');\n }\n\n }\n\n let foo = new Foo();\n (0, _meta.meta)(foo); // setup meta\n\n (0, _metal.notifyPropertyChange)(foo, 'bar');\n }\n\n ['@test does not notify on class prototypes with meta'](assert) {\n assert.expect(0);\n\n class Foo {\n [_metal.PROPERTY_DID_CHANGE](prop) {\n assert.equal(prop, 'bar', 'property change notified');\n }\n\n }\n\n let foo = new Foo();\n (0, _meta.meta)(foo.constructor.prototype); // setup meta for prototype\n\n (0, _metal.notifyPropertyChange)(foo.constructor.prototype, 'bar');\n }\n\n ['@test does not notify on non-class prototypes with meta'](assert) {\n assert.expect(0);\n let foo = {\n [_metal.PROPERTY_DID_CHANGE](prop) {\n assert.equal(prop, 'baz', 'property change notified');\n }\n\n };\n let bar = Object.create(foo);\n (0, _meta.meta)(foo); // setup meta for prototype\n\n (0, _meta.meta)(bar); // setup meta for instance, switch prototype\n\n (0, _metal.notifyPropertyChange)(foo, 'baz');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/set_properties_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('setProperties', class extends _internalTestHelpers.AbstractTestCase {\n ['@test supports setting multiple attributes at once'](assert) {\n assert.deepEqual((0, _metal.setProperties)(null, null), null, 'noop for null properties and null object');\n assert.deepEqual((0, _metal.setProperties)(undefined, undefined), undefined, 'noop for undefined properties and undefined object');\n assert.deepEqual((0, _metal.setProperties)({}), undefined, 'noop for no properties');\n assert.deepEqual((0, _metal.setProperties)({}, undefined), undefined, 'noop for undefined');\n assert.deepEqual((0, _metal.setProperties)({}, null), null, 'noop for null');\n assert.deepEqual((0, _metal.setProperties)({}, NaN), NaN, 'noop for NaN');\n assert.deepEqual((0, _metal.setProperties)({}, {}), {}, 'meh');\n let props = (0, _metal.setProperties)({}, {\n foo: undefined\n });\n assert.deepEqual(props, {\n foo: undefined\n }, 'Setting undefined value');\n assert.ok('foo' in props, 'Setting undefined value');\n assert.deepEqual(Object.keys(props), ['foo'], 'Setting undefined value');\n assert.deepEqual((0, _metal.setProperties)({}, {\n foo: 1\n }), {\n foo: 1\n }, 'Set a single property');\n assert.deepEqual((0, _metal.setProperties)({}, {\n foo: 1,\n bar: 1\n }), {\n foo: 1,\n bar: 1\n }, 'Set multiple properties');\n assert.deepEqual((0, _metal.setProperties)({\n foo: 2,\n baz: 2\n }, {\n foo: 1\n }), {\n foo: 1\n }, 'Set one of multiple properties');\n assert.deepEqual((0, _metal.setProperties)({\n foo: 2,\n baz: 2\n }, {\n bar: 2\n }), {\n bar: 2\n }, 'Set an additional, previously unset property');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/tracked/classic_classes_test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/metal/tests/tracked/support\", \"@ember/canary-features\"], function (_internalTestHelpers, _metal, _support, _canaryFeatures) {\n \"use strict\";\n\n function _initializerDefineProperty(target, property, descriptor, context) {\n if (!descriptor) return;\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n });\n }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n var desc = {};\n Object.keys(descriptor).forEach(function (key) {\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n\n if ('value' in desc || desc.initializer) {\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0) {\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n\n function _initializerWarningHelper(descriptor, context) {\n throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.');\n }\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n (0, _internalTestHelpers.moduleFor)('@tracked decorator - classic classes', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test validators for tracked getters with dependencies should invalidate when the dependencies invalidate\"](assert) {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'first', (0, _metal.tracked)());\n (0, _metal.defineProperty)(obj, 'last', (0, _metal.tracked)());\n (0, _metal.defineProperty)(obj, 'full', (0, _metal.nativeDescDecorator)({\n get() {\n return this.first + \" \" + this.last;\n },\n\n set(value) {\n let [first, last] = value.split(' ');\n this.first = first;\n this.last = last;\n }\n\n }));\n obj.first = 'Tom';\n obj.last = 'Dale';\n let tag = (0, _support.track)(() => obj.full);\n let snapshot = tag.value();\n assert.equal(obj.full, 'Tom Dale', 'The full name starts correct');\n assert.equal(tag.validate(snapshot), true);\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n obj.full = 'Melanie Sumner';\n assert.equal(tag.validate(snapshot), false);\n assert.equal(obj.full, 'Melanie Sumner');\n assert.equal(obj.first, 'Melanie');\n assert.equal(obj.last, 'Sumner');\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n }\n\n [\"@test can pass a default value to the tracked decorator\"](assert) {\n class Tracked {\n get full() {\n return this.first + \" \" + this.last;\n }\n\n }\n\n (0, _metal.defineProperty)(Tracked.prototype, 'first', (0, _metal.tracked)({\n value: 'Tom'\n }));\n (0, _metal.defineProperty)(Tracked.prototype, 'last', (0, _metal.tracked)({\n value: 'Dale'\n }));\n let obj = new Tracked();\n assert.equal(obj.full, 'Tom Dale', 'Default values are correctly assign');\n }\n\n [\"@test errors if used directly on a classic class\"]() {\n expectAssertion(() => {\n class Tracked {\n get full() {\n return this.first + \" \" + this.last;\n }\n\n }\n\n (0, _metal.defineProperty)(Tracked.prototype, 'first', _metal.tracked);\n }, \"@tracked can only be used directly as a native decorator. If you're using tracked in classic classes, add parenthesis to call it like a function: tracked()\");\n }\n\n [\"@test errors on any keys besides 'value', 'get', or 'set' being passed\"]() {\n expectAssertion(() => {\n class Tracked {\n get full() {\n return this.first + \" \" + this.last;\n }\n\n }\n\n (0, _metal.defineProperty)(Tracked.prototype, 'first', (0, _metal.tracked)({\n foo() {}\n\n }));\n }, \"The options object passed to tracked() may only contain a 'value' or 'initializer' property, not both. Received: [foo]\");\n }\n\n [\"@test errors if 'value' and 'get'/'set' are passed together\"]() {\n expectAssertion(() => {\n class Tracked {\n get full() {\n return this.first + \" \" + this.last;\n }\n\n }\n\n (0, _metal.defineProperty)(Tracked.prototype, 'first', (0, _metal.tracked)({\n value: 123,\n initializer: () => 123\n }));\n }, \"The options object passed to tracked() may only contain a 'value' or 'initializer' property, not both. Received: [value,initializer]\");\n }\n\n [\"@test errors on anything besides an options object being passed\"]() {\n expectAssertion(() => {\n class Tracked {\n get full() {\n return this.first + \" \" + this.last;\n }\n\n }\n\n (0, _metal.defineProperty)(Tracked.prototype, 'first', (0, _metal.tracked)(null));\n }, \"tracked() may only receive an options object containing 'value' or 'initializer', received null\");\n }\n\n });\n\n if (_canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT) {\n (0, _internalTestHelpers.moduleFor)('@tracked decorator - native decorator behavior', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test errors if options are passed to native decorator\"]() {\n expectAssertion(() => {\n var _dec, _class, _descriptor, _temp;\n\n let Tracked = (_dec = (0, _metal.tracked)(), (_class = (_temp = class Tracked {\n constructor() {\n _initializerDefineProperty(this, \"first\", _descriptor, this);\n }\n\n get full() {\n return this.first + \" \" + this.last;\n }\n\n }, _temp), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"first\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class));\n new Tracked();\n }, \"You attempted to set a default value for first with the @tracked({ value: 'default' }) syntax. You can only use this syntax with classic classes. For native classes, you can use class initializers: @tracked field = 'default';\");\n }\n\n [\"@test errors if options are passed to native decorator (GH#17764)\"](assert) {\n var _class3, _descriptor2, _temp2;\n\n let Tracked = (_class3 = (_temp2 = class Tracked {\n constructor() {\n _initializerDefineProperty(this, \"value\", _descriptor2, this);\n }\n\n }, _temp2), _descriptor2 = _applyDecoratedDescriptor(_class3.prototype, \"value\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class3);\n let obj = new Tracked();\n assert.strictEqual(obj.value, undefined, 'uninitilized value defaults to undefined');\n }\n\n });\n } else {\n (0, _internalTestHelpers.moduleFor)('@tracked decorator - native decorator behavior', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test errors if used as a native decorator\"]() {\n expectAssertion(() => {\n var _class5, _descriptor3, _temp3;\n\n let Tracked = (_class5 = (_temp3 = class Tracked {\n constructor() {\n _initializerDefineProperty(this, \"first\", _descriptor3, this);\n }\n\n }, _temp3), _descriptor3 = _applyDecoratedDescriptor(_class5.prototype, \"first\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class5);\n new Tracked();\n }, 'Native decorators are not enabled without the EMBER_NATIVE_DECORATOR_SUPPORT flag');\n }\n\n });\n }\n }\n});","enifed(\"@ember/-internals/metal/tests/tracked/get_test\", [\"@ember/canary-features\", \"internal-test-helpers\", \"@ember/-internals/metal\"], function (_canaryFeatures, _internalTestHelpers, _metal) {\n \"use strict\";\n\n function _initializerDefineProperty(target, property, descriptor, context) {\n if (!descriptor) return;\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n });\n }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n var desc = {};\n Object.keys(descriptor).forEach(function (key) {\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n\n if ('value' in desc || desc.initializer) {\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0) {\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n\n function _initializerWarningHelper(descriptor, context) {\n throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.');\n }\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES && _canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT) {\n let createObj = function () {\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _temp;\n\n let Obj = (_class = (_temp = class Obj {\n constructor() {\n _initializerDefineProperty(this, \"string\", _descriptor, this);\n\n _initializerDefineProperty(this, \"number\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"boolTrue\", _descriptor3, this);\n\n _initializerDefineProperty(this, \"boolFalse\", _descriptor4, this);\n\n _initializerDefineProperty(this, \"nullValue\", _descriptor5, this);\n }\n\n }, _temp), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"string\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return 'string';\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"number\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return 23;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"boolTrue\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return true;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"boolFalse\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return false;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"nullValue\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n })), _class);\n return new Obj();\n };\n\n (0, _internalTestHelpers.moduleFor)('@tracked decorator: get', class extends _internalTestHelpers.AbstractTestCase {\n '@test should get arbitrary properties on an object'() {\n let obj = createObj();\n\n for (let key in obj) {\n this.assert.equal((0, _metal.get)(obj, key), obj[key], key);\n }\n }\n\n '@test should get a @tracked path'() {\n var _class3, _descriptor6, _temp2, _class5, _descriptor7, _temp3, _class7, _descriptor8, _temp4;\n\n let Key = (_class3 = (_temp2 = class Key {\n constructor() {\n _initializerDefineProperty(this, \"value\", _descriptor6, this);\n }\n\n }, _temp2), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, \"value\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return 'value';\n }\n }), _class3);\n let Path = (_class5 = (_temp3 = class Path {\n constructor() {\n _initializerDefineProperty(this, \"key\", _descriptor7, this);\n }\n\n }, _temp3), _descriptor7 = _applyDecoratedDescriptor(_class5.prototype, \"key\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return new Key();\n }\n }), _class5);\n let Obj = (_class7 = (_temp4 = class Obj {\n constructor() {\n _initializerDefineProperty(this, \"path\", _descriptor8, this);\n }\n\n }, _temp4), _descriptor8 = _applyDecoratedDescriptor(_class7.prototype, \"path\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return new Path();\n }\n }), _class7);\n let obj = new Obj();\n this.assert.equal((0, _metal.get)(obj, 'path.key.value'), 'value');\n }\n\n ['@test should get arbitrary properties on an object']() {\n var _class9, _descriptor9, _temp5;\n\n let obj = createObj();\n\n for (let key in obj) {\n this.assert.equal((0, _metal.getWithDefault)(obj, key, 'fail'), obj[key], key);\n }\n\n let Obj = (_class9 = (_temp5 = class Obj {\n constructor() {\n _initializerDefineProperty(this, \"undef\", _descriptor9, this);\n }\n\n }, _temp5), _descriptor9 = _applyDecoratedDescriptor(_class9.prototype, \"undef\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return undefined;\n }\n }), _class9);\n let obj2 = new Obj();\n this.assert.equal((0, _metal.getWithDefault)(obj2, 'undef', 'default'), 'default', 'explicit undefined retrieves the default');\n this.assert.equal((0, _metal.getWithDefault)(obj2, 'not-present', 'default'), 'default', 'non-present key retrieves the default');\n }\n\n });\n }\n});","enifed(\"@ember/-internals/metal/tests/tracked/set_test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/canary-features\"], function (_internalTestHelpers, _metal, _canaryFeatures) {\n \"use strict\";\n\n function _initializerDefineProperty(target, property, descriptor, context) {\n if (!descriptor) return;\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n });\n }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n var desc = {};\n Object.keys(descriptor).forEach(function (key) {\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n\n if ('value' in desc || desc.initializer) {\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0) {\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n\n function _initializerWarningHelper(descriptor, context) {\n throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.');\n }\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES && _canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT) {\n let createObj = () => {\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _temp;\n\n let Obj = (_class = (_temp = class Obj {\n constructor() {\n _initializerDefineProperty(this, \"string\", _descriptor, this);\n\n _initializerDefineProperty(this, \"number\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"boolTrue\", _descriptor3, this);\n\n _initializerDefineProperty(this, \"boolFalse\", _descriptor4, this);\n\n _initializerDefineProperty(this, \"nullValue\", _descriptor5, this);\n\n _initializerDefineProperty(this, \"undefinedValue\", _descriptor6, this);\n }\n\n }, _temp), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"string\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return 'string';\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"number\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return 23;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"boolTrue\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return true;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"boolFalse\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return false;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"nullValue\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"undefinedValue\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return undefined;\n }\n })), _class);\n return new Obj();\n };\n\n (0, _internalTestHelpers.moduleFor)('@tracked set', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should set arbitrary properties on an object'](assert) {\n var _class3, _descriptor7, _temp2;\n\n let obj = createObj();\n let Obj = (_class3 = (_temp2 = class Obj {\n constructor() {\n _initializerDefineProperty(this, \"undefinedValue\", _descriptor7, this);\n }\n\n }, _temp2), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, \"undefinedValue\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return 'emberjs';\n }\n }), _class3);\n let newObj = new Obj();\n\n for (let key in obj) {\n assert.equal((0, _metal.set)(newObj, key, obj[key]), obj[key], 'should return value');\n assert.equal((0, _metal.get)(newObj, key), obj[key], 'should set value');\n }\n }\n\n });\n }\n});","enifed(\"@ember/-internals/metal/tests/tracked/support\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.track = track;\n\n /**\n Creates an autotrack stack so we can test field changes as they flow through\n getters/setters, and through the system overall\n \n @private\n */\n function track(fn) {\n let parent = (0, _metal.getCurrentTracker)();\n let tracker = (0, _metal.setCurrentTracker)();\n fn();\n (0, _metal.setCurrentTracker)(parent);\n return tracker.combine();\n }\n});","enifed(\"@ember/-internals/metal/tests/tracked/validation_test\", [\"@ember/-internals/metal\", \"@ember/canary-features\", \"internal-test-helpers\", \"@ember/-internals/metal/tests/tracked/support\"], function (_metal, _canaryFeatures, _internalTestHelpers, _support) {\n \"use strict\";\n\n function _initializerDefineProperty(target, property, descriptor, context) {\n if (!descriptor) return;\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n });\n }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n var desc = {};\n Object.keys(descriptor).forEach(function (key) {\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n\n if ('value' in desc || desc.initializer) {\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0) {\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n\n function _initializerWarningHelper(descriptor, context) {\n throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.');\n }\n\n if (_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES && _canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT) {\n (0, _internalTestHelpers.moduleFor)('@tracked get validation', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test autotracking should work with tracked fields\"](assert) {\n var _class, _descriptor, _temp;\n\n let Tracked = (_class = (_temp = class Tracked {\n constructor(first) {\n _initializerDefineProperty(this, \"first\", _descriptor, this);\n\n this.first = first;\n }\n\n }, _temp), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"first\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return undefined;\n }\n }), _class);\n let obj = new Tracked('Tom', 'Dale');\n let tag = (0, _support.track)(() => obj.first);\n let snapshot = tag.value();\n assert.equal(obj.first, 'Tom', 'The full name starts correct');\n assert.equal(tag.validate(snapshot), true);\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n obj.first = 'Thomas';\n assert.equal(tag.validate(snapshot), false);\n assert.equal(obj.first, 'Thomas');\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n }\n\n [\"@test autotracking should work with native getters\"](assert) {\n var _class3, _descriptor2, _descriptor3, _temp2;\n\n let Tracked = (_class3 = (_temp2 = class Tracked {\n constructor(first, last) {\n _initializerDefineProperty(this, \"first\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"last\", _descriptor3, this);\n\n this.first = first;\n this.last = last;\n }\n\n get full() {\n return this.first + \" \" + this.last;\n }\n\n }, _temp2), (_descriptor2 = _applyDecoratedDescriptor(_class3.prototype, \"first\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return undefined;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class3.prototype, \"last\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return undefined;\n }\n })), _class3);\n let obj = new Tracked('Tom', 'Dale');\n let tag = (0, _support.track)(() => obj.full);\n let snapshot = tag.value();\n assert.equal(obj.full, 'Tom Dale', 'The full name starts correct');\n assert.equal(tag.validate(snapshot), true);\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n obj.first = 'Thomas';\n assert.equal(tag.validate(snapshot), false);\n assert.equal(obj.full, 'Thomas Dale');\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n }\n\n [\"@test autotracking should work with native setters\"](assert) {\n var _class5, _descriptor4, _descriptor5, _temp3;\n\n let Tracked = (_class5 = (_temp3 = class Tracked {\n constructor(first, last) {\n _initializerDefineProperty(this, \"first\", _descriptor4, this);\n\n _initializerDefineProperty(this, \"last\", _descriptor5, this);\n\n this.first = first;\n this.last = last;\n }\n\n get full() {\n return this.first + \" \" + this.last;\n }\n\n set full(value) {\n let [first, last] = value.split(' ');\n this.first = first;\n this.last = last;\n }\n\n }, _temp3), (_descriptor4 = _applyDecoratedDescriptor(_class5.prototype, \"first\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return undefined;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class5.prototype, \"last\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return undefined;\n }\n })), _class5);\n let obj = new Tracked('Tom', 'Dale');\n let tag = (0, _support.track)(() => obj.full);\n let snapshot = tag.value();\n assert.equal(obj.full, 'Tom Dale', 'The full name starts correct');\n assert.equal(tag.validate(snapshot), true);\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n obj.full = 'Melanie Sumner';\n assert.equal(tag.validate(snapshot), false);\n assert.equal(obj.full, 'Melanie Sumner');\n assert.equal(obj.first, 'Melanie');\n assert.equal(obj.last, 'Sumner');\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n }\n\n [\"@test interaction with Ember object model (tracked property depending on Ember property)\"](assert) {\n class Tracked {\n constructor(name) {\n this.name = name;\n }\n\n get full() {\n return (0, _metal.get)(this, 'name.first') + \" \" + (0, _metal.get)(this, 'name.last');\n }\n\n }\n\n let tom = {\n first: 'Tom',\n last: 'Dale'\n };\n let obj = new Tracked(tom);\n let tag = (0, _support.track)(() => obj.full);\n let snapshot = tag.value();\n assert.equal(obj.full, 'Tom Dale');\n assert.equal(tag.validate(snapshot), true);\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n (0, _metal.set)(tom, 'first', 'Thomas');\n assert.equal(tag.validate(snapshot), false, 'invalid after setting with Ember set');\n assert.equal(obj.full, 'Thomas Dale');\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n (0, _metal.set)(obj, 'name', {\n first: 'Ricardo',\n last: 'Mendes'\n });\n assert.equal(tag.validate(snapshot), false, 'invalid after setting with Ember set');\n assert.equal(obj.full, 'Ricardo Mendes');\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n }\n\n [\"@test interaction with Ember object model (Ember computed property depending on tracked property)\"](assert) {\n var _class7, _descriptor6, _descriptor7, _temp4;\n\n class EmberObject {\n constructor(name) {\n this.name = name;\n }\n\n }\n\n (0, _metal.defineProperty)(EmberObject.prototype, 'full', (0, _metal.computed)('name', function () {\n let name = (0, _metal.get)(this, 'name');\n return name.first + \" \" + name.last;\n }));\n let Name = (_class7 = (_temp4 = class Name {\n constructor(first, last) {\n _initializerDefineProperty(this, \"first\", _descriptor6, this);\n\n _initializerDefineProperty(this, \"last\", _descriptor7, this);\n\n this.first = first;\n this.last = last;\n }\n\n }, _temp4), (_descriptor6 = _applyDecoratedDescriptor(_class7.prototype, \"first\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class7.prototype, \"last\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class7);\n let tom = new Name('Tom', 'Dale');\n let obj = new EmberObject(tom);\n let tag = (0, _metal.tagForProperty)(obj, 'full');\n let snapshot = tag.value();\n let full = (0, _metal.get)(obj, 'full');\n assert.equal(full, 'Tom Dale');\n assert.equal(tag.validate(snapshot), true);\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n tom.first = 'Thomas';\n assert.equal(tag.validate(snapshot), false, 'invalid after setting with tracked properties');\n assert.equal((0, _metal.get)(obj, 'full'), 'Thomas Dale');\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n }\n\n ['@test interaction with the Ember object model (paths going through tracked properties)'](assert) {\n var _class9, _descriptor8, _temp5;\n\n let self;\n\n class EmberObject {\n constructor(contact) {\n this.contact = void 0;\n this.contact = contact;\n self = this;\n }\n\n }\n\n (0, _metal.defineProperty)(EmberObject.prototype, 'full', (0, _metal.computed)('contact.name.first', 'contact.name.last', function () {\n let contact = (0, _metal.get)(self, 'contact');\n return (0, _metal.get)(contact.name, 'first') + \" \" + (0, _metal.get)(contact.name, 'last');\n }));\n let Contact = (_class9 = (_temp5 = class Contact {\n constructor(name) {\n _initializerDefineProperty(this, \"name\", _descriptor8, this);\n\n this.name = name;\n }\n\n }, _temp5), _descriptor8 = _applyDecoratedDescriptor(_class9.prototype, \"name\", [_metal.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return undefined;\n }\n }), _class9);\n\n class EmberName {\n constructor(first, last) {\n this.first = void 0;\n this.last = void 0;\n this.first = first;\n this.last = last;\n }\n\n }\n\n let tom = new EmberName('Tom', 'Dale');\n let contact = new Contact(tom);\n let obj = new EmberObject(contact);\n let tag = (0, _metal.tagForProperty)(obj, 'full');\n let snapshot = tag.value();\n let full = (0, _metal.get)(obj, 'full');\n assert.equal(full, 'Tom Dale');\n assert.equal(tag.validate(snapshot), true);\n snapshot = tag.value();\n assert.equal(tag.validate(snapshot), true);\n (0, _metal.set)(tom, 'first', 'Thomas');\n assert.equal(tag.validate(snapshot), false, 'invalid after setting with Ember.set');\n assert.equal((0, _metal.get)(obj, 'full'), 'Thomas Dale');\n snapshot = tag.value();\n tom = contact.name = new EmberName('T', 'Dale');\n assert.equal(tag.validate(snapshot), false, 'invalid after setting with Ember.set');\n assert.equal((0, _metal.get)(obj, 'full'), 'T Dale');\n snapshot = tag.value();\n (0, _metal.set)(tom, 'first', 'Tizzle');\n assert.equal(tag.validate(snapshot), false, 'invalid after setting with Ember.set');\n assert.equal((0, _metal.get)(obj, 'full'), 'Tizzle Dale');\n }\n\n });\n }\n});","enifed(\"@ember/-internals/metal/tests/watching/is_watching_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n function testObserver(assert, setup, teardown, key = 'key') {\n let obj = {};\n assert.equal((0, _metal.isWatching)(obj, key), false, 'precond - isWatching is false by default');\n setup(obj, key, 'fn');\n assert.equal((0, _metal.isWatching)(obj, key), true, 'isWatching is true when observers are added');\n teardown(obj, key, 'fn');\n assert.equal((0, _metal.isWatching)(obj, key), false, 'isWatching is false after observers are removed');\n }\n\n (0, _internalTestHelpers.moduleFor)('isWatching', class extends _internalTestHelpers.AbstractTestCase {\n ['@test isWatching is true for regular local observers'](assert) {\n testObserver(assert, (obj, key, fn) => {\n _metal.Mixin.create({\n [fn]: (0, _metal.observer)(key, function () {})\n }).apply(obj);\n }, (obj, key, fn) => (0, _metal.removeObserver)(obj, key, obj, fn));\n }\n\n ['@test isWatching is true for nonlocal observers'](assert) {\n testObserver(assert, (obj, key, fn) => {\n (0, _metal.addObserver)(obj, key, obj, fn);\n }, (obj, key, fn) => (0, _metal.removeObserver)(obj, key, obj, fn));\n }\n\n ['@test isWatching is true for chained observers'](assert) {\n testObserver(assert, function (obj, key, fn) {\n (0, _metal.addObserver)(obj, key + '.bar', obj, fn);\n }, function (obj, key, fn) {\n (0, _metal.removeObserver)(obj, key + '.bar', obj, fn);\n });\n }\n\n ['@test isWatching is true for computed properties'](assert) {\n testObserver(assert, (obj, key, fn) => {\n (0, _metal.defineProperty)(obj, fn, (0, _metal.computed)(key, function () {}));\n (0, _metal.get)(obj, fn);\n }, (obj, key, fn) => (0, _metal.defineProperty)(obj, fn, null));\n }\n\n ['@test isWatching is true for chained computed properties'](assert) {\n testObserver(assert, (obj, key, fn) => {\n (0, _metal.defineProperty)(obj, fn, (0, _metal.computed)(key + '.bar', function () {}));\n (0, _metal.get)(obj, fn);\n }, (obj, key, fn) => (0, _metal.defineProperty)(obj, fn, null));\n } // can't watch length on Array - it is special...\n // But you should be able to watch a length property of an object\n\n\n [\"@test isWatching is true for 'length' property on object\"](assert) {\n testObserver(assert, (obj, key, fn) => {\n (0, _metal.defineProperty)(obj, 'length', null, '26.2 miles');\n (0, _metal.addObserver)(obj, 'length', obj, fn);\n }, (obj, key, fn) => (0, _metal.removeObserver)(obj, 'length', obj, fn), 'length');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/watching/unwatch_test\", [\"@ember/-internals/metal\", \"internal-test-helpers\"], function (_metal, _internalTestHelpers) {\n \"use strict\";\n\n let didCount;\n\n function addListeners(obj, keyPath) {\n (0, _metal.addListener)(obj, keyPath + ':change', () => didCount++);\n }\n\n (0, _internalTestHelpers.moduleFor)('unwatch', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n didCount = 0;\n }\n\n ['@test unwatching a computed property - regular get/set'](assert) {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)({\n get() {\n return this.__foo;\n },\n\n set(keyName, value) {\n this.__foo = value;\n return this.__foo;\n }\n\n }));\n addListeners(obj, 'foo');\n (0, _metal.watch)(obj, 'foo');\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(didCount, 1, 'should have invoked didCount');\n (0, _metal.unwatch)(obj, 'foo');\n didCount = 0;\n (0, _metal.set)(obj, 'foo', 'BAZ');\n assert.equal(didCount, 0, 'should NOT have invoked didCount');\n }\n\n ['@test unwatching a regular property - regular get/set'](assert) {\n let obj = {\n foo: 'BIFF'\n };\n addListeners(obj, 'foo');\n (0, _metal.watch)(obj, 'foo');\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(didCount, 1, 'should have invoked didCount');\n (0, _metal.unwatch)(obj, 'foo');\n didCount = 0;\n (0, _metal.set)(obj, 'foo', 'BAZ');\n assert.equal(didCount, 0, 'should NOT have invoked didCount');\n }\n\n ['@test unwatching should be nested'](assert) {\n let obj = {\n foo: 'BIFF'\n };\n addListeners(obj, 'foo');\n (0, _metal.watch)(obj, 'foo');\n (0, _metal.watch)(obj, 'foo');\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(didCount, 1, 'should have invoked didCount');\n (0, _metal.unwatch)(obj, 'foo');\n didCount = 0;\n (0, _metal.set)(obj, 'foo', 'BAZ');\n assert.equal(didCount, 1, 'should NOT have invoked didCount');\n (0, _metal.unwatch)(obj, 'foo');\n didCount = 0;\n (0, _metal.set)(obj, 'foo', 'BAZ');\n assert.equal(didCount, 0, 'should NOT have invoked didCount');\n }\n\n ['@test unwatching \"length\" property on an object'](assert) {\n let obj = {\n foo: 'RUN'\n };\n addListeners(obj, 'length'); // Can watch length when it is undefined\n\n (0, _metal.watch)(obj, 'length');\n (0, _metal.set)(obj, 'length', '10k');\n assert.equal(didCount, 1, 'should have invoked didCount'); // Should stop watching despite length now being defined (making object 'array-like')\n\n (0, _metal.unwatch)(obj, 'length');\n didCount = 0;\n (0, _metal.set)(obj, 'length', '5k');\n assert.equal(didCount, 0, 'should NOT have invoked didCount');\n }\n\n ['@test unwatching should not destroy non MANDATORY_SETTER descriptor'](assert) {\n let obj = {\n get foo() {\n return 'RUN';\n }\n\n };\n assert.equal(obj.foo, 'RUN', 'obj.foo');\n (0, _metal.watch)(obj, 'foo');\n assert.equal(obj.foo, 'RUN', 'obj.foo after watch');\n (0, _metal.unwatch)(obj, 'foo');\n assert.equal(obj.foo, 'RUN', 'obj.foo after unwatch');\n }\n\n });\n});","enifed(\"@ember/-internals/metal/tests/watching/watch_test\", [\"@ember/-internals/environment\", \"@ember/-internals/metal\", \"@ember/-internals/meta\", \"internal-test-helpers\"], function (_environment, _metal, _meta, _internalTestHelpers) {\n \"use strict\";\n\n let didCount, didKeys, originalLookup;\n\n function addListeners(obj, keyPath) {\n (0, _metal.addListener)(obj, keyPath + ':change', function () {\n didCount++;\n didKeys.push(keyPath);\n });\n }\n\n (0, _internalTestHelpers.moduleFor)('watch', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n didCount = 0;\n didKeys = [];\n originalLookup = _environment.context.lookup;\n _environment.context.lookup = {};\n }\n\n afterEach() {\n _environment.context.lookup = originalLookup;\n }\n\n ['@test watching a computed property'](assert) {\n let obj = {};\n (0, _metal.defineProperty)(obj, 'foo', (0, _metal.computed)({\n get() {\n return this.__foo;\n },\n\n set(keyName, value) {\n if (value !== undefined) {\n this.__foo = value;\n }\n\n return this.__foo;\n }\n\n }));\n addListeners(obj, 'foo');\n (0, _metal.watch)(obj, 'foo');\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(didCount, 1, 'should have invoked didCount');\n }\n\n ['@test watching a regular defined property'](assert) {\n let obj = {\n foo: 'baz'\n };\n addListeners(obj, 'foo');\n (0, _metal.watch)(obj, 'foo');\n assert.equal((0, _metal.get)(obj, 'foo'), 'baz', 'should have original prop');\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(didCount, 1, 'should have invoked didCount');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar', 'should get new value');\n assert.equal(obj.foo, 'bar', 'property should be accessible on obj');\n }\n\n ['@test watching a regular undefined property'](assert) {\n let obj = {};\n addListeners(obj, 'foo');\n (0, _metal.watch)(obj, 'foo');\n assert.equal('foo' in obj, false, 'precond undefined');\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal(didCount, 1, 'should have invoked didCount');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar', 'should get new value');\n assert.equal(obj.foo, 'bar', 'property should be accessible on obj');\n }\n\n ['@test watches should inherit'](assert) {\n let obj = {\n foo: 'baz'\n };\n let objB = Object.create(obj);\n addListeners(obj, 'foo');\n (0, _metal.watch)(obj, 'foo');\n assert.equal((0, _metal.get)(obj, 'foo'), 'baz', 'should have original prop');\n (0, _metal.set)(objB, 'foo', 'bar');\n (0, _metal.set)(obj, 'foo', 'baz');\n assert.equal(didCount, 1, 'should have invoked didCount once only');\n }\n\n ['@test watching an object THEN defining it should work also'](assert) {\n let obj = {};\n addListeners(obj, 'foo');\n (0, _metal.watch)(obj, 'foo');\n (0, _metal.defineProperty)(obj, 'foo');\n (0, _metal.set)(obj, 'foo', 'bar');\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar', 'should have set');\n assert.equal(didCount, 1, 'should have invoked didChange once');\n }\n\n ['@test watching a chain then defining the property'](assert) {\n let obj = {};\n let foo = {\n bar: 'bar'\n };\n addListeners(obj, 'foo.bar');\n addListeners(foo, 'bar');\n (0, _metal.watch)(obj, 'foo.bar');\n (0, _metal.defineProperty)(obj, 'foo', undefined, foo);\n (0, _metal.set)(foo, 'bar', 'baz');\n assert.deepEqual(didKeys, ['foo.bar', 'bar'], 'should have invoked didChange with bar, foo.bar');\n assert.equal(didCount, 2, 'should have invoked didChange twice');\n }\n\n ['@test watching a chain then defining the nested property'](assert) {\n let bar = {};\n let obj = {\n foo: bar\n };\n let baz = {\n baz: 'baz'\n };\n addListeners(obj, 'foo.bar.baz');\n addListeners(baz, 'baz');\n (0, _metal.watch)(obj, 'foo.bar.baz');\n (0, _metal.defineProperty)(bar, 'bar', undefined, baz);\n (0, _metal.set)(baz, 'baz', 'BOO');\n assert.deepEqual(didKeys, ['foo.bar.baz', 'baz'], 'should have invoked didChange with bar, foo.bar');\n assert.equal(didCount, 2, 'should have invoked didChange twice');\n }\n\n ['@test watching an object value then unwatching should restore old value'](assert) {\n let obj = {\n foo: {\n bar: {\n baz: {\n biff: 'BIFF'\n }\n }\n }\n };\n addListeners(obj, 'foo.bar.baz.biff');\n (0, _metal.watch)(obj, 'foo.bar.baz.biff');\n let foo = (0, _metal.get)(obj, 'foo');\n assert.equal((0, _metal.get)((0, _metal.get)((0, _metal.get)(foo, 'bar'), 'baz'), 'biff'), 'BIFF', 'biff should exist');\n (0, _metal.unwatch)(obj, 'foo.bar.baz.biff');\n assert.equal((0, _metal.get)((0, _metal.get)((0, _metal.get)(foo, 'bar'), 'baz'), 'biff'), 'BIFF', 'biff should exist');\n }\n\n ['@test when watching another object, destroy should remove chain watchers from the other object'](assert) {\n let objA = {};\n let objB = {\n foo: 'bar'\n };\n objA.b = objB;\n addListeners(objA, 'b.foo');\n (0, _metal.watch)(objA, 'b.foo');\n let meta_objB = (0, _meta.meta)(objB);\n let chainNode = (0, _meta.meta)(objA).readableChains().chains.b.chains.foo;\n assert.equal(meta_objB.peekWatching('foo'), 1, 'should be watching foo');\n assert.equal(meta_objB.readableChainWatchers().has('foo', chainNode), true, 'should have chain watcher');\n (0, _meta.deleteMeta)(objA);\n assert.equal(meta_objB.peekWatching('foo'), 0, 'should not be watching foo');\n assert.equal(meta_objB.readableChainWatchers().has('foo', chainNode), false, 'should not have chain watcher');\n } // TESTS for length property\n\n\n ['@test watching \"length\" property on an object'](assert) {\n let obj = {\n length: '26.2 miles'\n };\n addListeners(obj, 'length');\n (0, _metal.watch)(obj, 'length');\n assert.equal((0, _metal.get)(obj, 'length'), '26.2 miles', 'should have original prop');\n (0, _metal.set)(obj, 'length', '10k');\n assert.equal(didCount, 1, 'should have invoked didCount');\n assert.equal((0, _metal.get)(obj, 'length'), '10k', 'should get new value');\n assert.equal(obj.length, '10k', 'property should be accessible on obj');\n }\n\n ['@test watching \"length\" property on an array'](assert) {\n let arr = [];\n addListeners(arr, 'length');\n (0, _metal.watch)(arr, 'length');\n assert.equal((0, _metal.get)(arr, 'length'), 0, 'should have original prop');\n (0, _metal.set)(arr, 'length', '10');\n assert.equal(didCount, 1, 'should NOT have invoked didCount');\n assert.equal((0, _metal.get)(arr, 'length'), 10, 'should get new value');\n assert.equal(arr.length, 10, 'property should be accessible on arr');\n }\n\n ['@test watch + ES5 getter'](assert) {\n let parent = {\n b: 1\n };\n let child = {\n get b() {\n return parent.b;\n }\n\n };\n assert.equal(parent.b, 1, 'parent.b should be 1');\n assert.equal(child.b, 1, 'child.b should be 1');\n assert.equal((0, _metal.get)(child, 'b'), 1, 'get(child, \"b\") should be 1');\n (0, _metal.watch)(child, 'b');\n assert.equal(parent.b, 1, 'parent.b should be 1 (after watch)');\n assert.equal(child.b, 1, 'child.b should be 1 (after watch)');\n assert.equal((0, _metal.get)(child, 'b'), 1, 'get(child, \"b\") should be 1 (after watch)');\n }\n\n ['@test watch + set + no-descriptor'](assert) {\n let child = {};\n assert.equal(child.b, undefined, 'child.b ');\n assert.equal((0, _metal.get)(child, 'b'), undefined, 'get(child, \"b\")');\n (0, _metal.watch)(child, 'b');\n (0, _metal.set)(child, 'b', 1);\n assert.equal(child.b, 1, 'child.b (after watch)');\n assert.equal((0, _metal.get)(child, 'b'), 1, 'get(child, \"b\") (after watch)');\n }\n\n });\n});","enifed(\"@ember/-internals/owner/index\", [\"exports\", \"@ember/-internals/utils\"], function (_exports, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.getOwner = getOwner;\n _exports.setOwner = setOwner;\n _exports.OWNER = void 0;\n\n /**\n @module @ember/application\n */\n const OWNER = (0, _utils.symbol)('OWNER');\n /**\n Framework objects in an Ember application (components, services, routes, etc.)\n are created via a factory and dependency injection system. Each of these\n objects is the responsibility of an \"owner\", which handled its\n instantiation and manages its lifetime.\n \n `getOwner` fetches the owner object responsible for an instance. This can\n be used to lookup or resolve other class instances, or register new factories\n into the owner.\n \n For example, this component dynamically looks up a service based on the\n `audioType` passed as an attribute:\n \n ```app/components/play-audio.js\n import Component from '@ember/component';\n import { computed } from '@ember/object';\n import { getOwner } from '@ember/application';\n \n // Usage:\n //\n // {{play-audio audioType=model.audioType audioFile=model.file}}\n //\n export default Component.extend({\n audioService: computed('audioType', function() {\n let owner = getOwner(this);\n return owner.lookup(`service:${this.get('audioType')}`);\n }),\n \n click() {\n let player = this.get('audioService');\n player.play(this.get('audioFile'));\n }\n });\n ```\n \n @method getOwner\n @static\n @for @ember/application\n @param {Object} object An object with an owner.\n @return {Object} An owner object.\n @since 2.3.0\n @public\n */\n\n _exports.OWNER = OWNER;\n\n function getOwner(object) {\n return object[OWNER];\n }\n /**\n `setOwner` forces a new owner on a given object instance. This is primarily\n useful in some testing cases.\n \n @method setOwner\n @static\n @for @ember/application\n @param {Object} object An object instance.\n @param {Object} object The new owner object of the object instance.\n @since 2.3.0\n @public\n */\n\n\n function setOwner(object, owner) {\n object[OWNER] = owner;\n }\n});","enifed(\"@ember/-internals/routing/index\", [\"exports\", \"@ember/-internals/routing/lib/ext/controller\", \"@ember/-internals/routing/lib/location/api\", \"@ember/-internals/routing/lib/location/none_location\", \"@ember/-internals/routing/lib/location/hash_location\", \"@ember/-internals/routing/lib/location/history_location\", \"@ember/-internals/routing/lib/location/auto_location\", \"@ember/-internals/routing/lib/system/generate_controller\", \"@ember/-internals/routing/lib/system/controller_for\", \"@ember/-internals/routing/lib/system/dsl\", \"@ember/-internals/routing/lib/system/router\", \"@ember/-internals/routing/lib/system/route\", \"@ember/-internals/routing/lib/system/query_params\", \"@ember/-internals/routing/lib/services/routing\", \"@ember/-internals/routing/lib/services/router\", \"@ember/-internals/routing/lib/system/cache\"], function (_exports, _controller, _api, _none_location, _hash_location, _history_location, _auto_location, _generate_controller, _controller_for, _dsl, _router, _route, _query_params, _routing, _router2, _cache) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.generateControllerFactory = _exports.BucketCache = _exports.RouterService = _exports.RoutingService = _exports.QueryParams = _exports.Route = _exports.Router = _exports.RouterDSL = _exports.controllerFor = _exports.generateController = _exports.AutoLocation = _exports.HistoryLocation = _exports.HashLocation = _exports.NoneLocation = _exports.Location = void 0;\n _exports.Location = _api.default;\n _exports.NoneLocation = _none_location.default;\n _exports.HashLocation = _hash_location.default;\n _exports.HistoryLocation = _history_location.default;\n _exports.AutoLocation = _auto_location.default;\n _exports.generateController = _generate_controller.default;\n _exports.generateControllerFactory = _generate_controller.generateControllerFactory;\n _exports.controllerFor = _controller_for.default;\n _exports.RouterDSL = _dsl.default;\n _exports.Router = _router.default;\n _exports.Route = _route.default;\n _exports.QueryParams = _query_params.default;\n _exports.RoutingService = _routing.default;\n _exports.RouterService = _router2.default;\n _exports.BucketCache = _cache.default;\n});","enifed(\"@ember/-internals/routing/lib/ext/controller\", [\"exports\", \"@ember/-internals/metal\", \"@ember/controller/lib/controller_mixin\", \"@ember/-internals/routing/lib/utils\"], function (_exports, _metal, _controller_mixin, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n _controller_mixin.default.reopen({\n concatenatedProperties: ['queryParams'],\n\n /**\n Defines which query parameters the controller accepts.\n If you give the names `['category','page']` it will bind\n the values of these query parameters to the variables\n `this.category` and `this.page`.\n By default, Ember coerces query parameter values using `toggleProperty`.\n This behavior may lead to unexpected results.\n Available queryParam types: `boolean`, `number`, `array`.\n If query param type not specified, it will be `string`.\n To explicitly configure a query parameter property so it coerces as expected, you must define a type property:\n ```javascript\n queryParams: [{\n category: {\n type: 'boolean'\n }\n }]\n ```\n @for Ember.ControllerMixin\n @property queryParams\n @public\n */\n queryParams: null,\n\n /**\n This property is updated to various different callback functions depending on\n the current \"state\" of the backing route. It is used by\n `Controller.prototype._qpChanged`.\n The methods backing each state can be found in the `Route.prototype._qp` computed\n property return value (the `.states` property). The current values are listed here for\n the sanity of future travelers:\n * `inactive` - This state is used when this controller instance is not part of the active\n route hierarchy. Set in `Route.prototype._reset` (a `router.js` microlib hook) and\n `Route.prototype.actions.finalizeQueryParamChange`.\n * `active` - This state is used when this controller instance is part of the active\n route hierarchy. Set in `Route.prototype.actions.finalizeQueryParamChange`.\n * `allowOverrides` - This state is used in `Route.prototype.setup` (`route.js` microlib hook).\n @method _qpDelegate\n @private\n */\n _qpDelegate: null,\n\n /**\n During `Route#setup` observers are created to invoke this method\n when any of the query params declared in `Controller#queryParams` property\n are changed.\n When invoked this method uses the currently active query param update delegate\n (see `Controller.prototype._qpDelegate` for details) and invokes it with\n the QP key/value being changed.\n @method _qpChanged\n @private\n */\n _qpChanged(controller, _prop) {\n let prop = _prop.substr(0, _prop.length - 3);\n\n let delegate = controller._qpDelegate;\n let value = (0, _metal.get)(controller, prop);\n delegate(prop, value);\n },\n\n /**\n Transition the application into another route. The route may\n be either a single route or route path:\n ```javascript\n aController.transitionToRoute('blogPosts');\n aController.transitionToRoute('blogPosts.recentEntries');\n ```\n Optionally supply a model for the route in question. The model\n will be serialized into the URL using the `serialize` hook of\n the route:\n ```javascript\n aController.transitionToRoute('blogPost', aPost);\n ```\n If a literal is passed (such as a number or a string), it will\n be treated as an identifier instead. In this case, the `model`\n hook of the route will be triggered:\n ```javascript\n aController.transitionToRoute('blogPost', 1);\n ```\n Multiple models will be applied last to first recursively up the\n route tree.\n ```app/router.js\n Router.map(function() {\n this.route('blogPost', { path: ':blogPostId' }, function() {\n this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n });\n });\n ```\n ```javascript\n aController.transitionToRoute('blogComment', aPost, aComment);\n aController.transitionToRoute('blogComment', 1, 13);\n ```\n It is also possible to pass a URL (a string that starts with a\n `/`).\n ```javascript\n aController.transitionToRoute('/');\n aController.transitionToRoute('/blog/post/1/comment/13');\n aController.transitionToRoute('/blog/posts?sort=title');\n ```\n An options hash with a `queryParams` property may be provided as\n the final argument to add query parameters to the destination URL.\n ```javascript\n aController.transitionToRoute('blogPost', 1, {\n queryParams: { showComments: 'true' }\n });\n // if you just want to transition the query parameters without changing the route\n aController.transitionToRoute({ queryParams: { sort: 'date' } });\n ```\n See also [replaceRoute](/api/ember/release/classes/Ember.ControllerMixin/methods/replaceRoute?anchor=replaceRoute).\n @param {String} name the name of the route or a URL\n @param {...Object} models the model(s) or identifier(s) to be used\n while transitioning to the route.\n @param {Object} [options] optional hash with a queryParams property\n containing a mapping of query parameters\n @for Ember.ControllerMixin\n @method transitionToRoute\n @public\n */\n transitionToRoute(...args) {\n // target may be either another controller or a router\n let target = (0, _metal.get)(this, 'target');\n let method = target.transitionToRoute || target.transitionTo;\n return method.apply(target, (0, _utils.prefixRouteNameArg)(this, args));\n },\n\n /**\n Transition into another route while replacing the current URL, if possible.\n This will replace the current history entry instead of adding a new one.\n Beside that, it is identical to `transitionToRoute` in all other respects.\n ```javascript\n aController.replaceRoute('blogPosts');\n aController.replaceRoute('blogPosts.recentEntries');\n ```\n Optionally supply a model for the route in question. The model\n will be serialized into the URL using the `serialize` hook of\n the route:\n ```javascript\n aController.replaceRoute('blogPost', aPost);\n ```\n If a literal is passed (such as a number or a string), it will\n be treated as an identifier instead. In this case, the `model`\n hook of the route will be triggered:\n ```javascript\n aController.replaceRoute('blogPost', 1);\n ```\n Multiple models will be applied last to first recursively up the\n route tree.\n ```app/router.js\n Router.map(function() {\n this.route('blogPost', { path: ':blogPostId' }, function() {\n this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n });\n });\n ```\n ```\n aController.replaceRoute('blogComment', aPost, aComment);\n aController.replaceRoute('blogComment', 1, 13);\n ```\n It is also possible to pass a URL (a string that starts with a\n `/`).\n ```javascript\n aController.replaceRoute('/');\n aController.replaceRoute('/blog/post/1/comment/13');\n ```\n @param {String} name the name of the route or a URL\n @param {...Object} models the model(s) or identifier(s) to be used\n while transitioning to the route.\n @for Ember.ControllerMixin\n @method replaceRoute\n @public\n */\n replaceRoute(...args) {\n // target may be either another controller or a router\n let target = (0, _metal.get)(this, 'target');\n let method = target.replaceRoute || target.replaceWith;\n return method.apply(target, (0, _utils.prefixRouteNameArg)(this, args));\n }\n\n });\n\n var _default = _controller_mixin.default;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/routing/lib/location/api\", [\"exports\", \"@ember/-internals/browser-environment\", \"@ember/debug\"], function (_exports, _browserEnvironment, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/routing\n */\n\n /**\n Location returns an instance of the correct implementation of\n the `location` API.\n \n ## Implementations\n \n You can pass an implementation name (`hash`, `history`, `none`, `auto`) to force a\n particular implementation to be used in your application.\n \n See [HashLocation](/api/ember/release/classes/HashLocation).\n See [HistoryLocation](/api/ember/release/classes/HistoryLocation).\n See [NoneLocation](/api/ember/release/classes/NoneLocation).\n See [AutoLocation](/api/ember/release/classes/AutoLocation).\n \n ## Location API\n \n Each location implementation must provide the following methods:\n \n * implementation: returns the string name used to reference the implementation.\n * getURL: returns the current URL.\n * setURL(path): sets the current URL.\n * replaceURL(path): replace the current URL (optional).\n * onUpdateURL(callback): triggers the callback when the URL changes.\n * formatURL(url): formats `url` to be placed into `href` attribute.\n * detect() (optional): instructs the location to do any feature detection\n necessary. If the location needs to redirect to a different URL, it\n can cancel routing by setting the `cancelRouterSetup` property on itself\n to `false`.\n \n Calling setURL or replaceURL will not trigger onUpdateURL callbacks.\n \n ## Custom implementation\n \n Ember scans `app/locations/*` for extending the Location API.\n \n Example:\n \n ```javascript\n import HistoryLocation from '@ember/routing/history-location';\n \n export default class MyHistory {\n implementation: 'my-custom-history',\n constructor() {\n this._history = HistoryLocation.create(...arguments);\n }\n create() {\n return new this(...arguments);\n }\n pushState(path) {\n this._history.pushState(path);\n }\n }\n ```\n \n @class Location\n @private\n */\n var _default = {\n /**\n This is deprecated in favor of using the container to lookup the location\n implementation as desired.\n For example:\n ```javascript\n // Given a location registered as follows:\n container.register('location:history-test', HistoryTestLocation);\n // You could create a new instance via:\n container.lookup('location:history-test');\n ```\n @method create\n @param {Object} options\n @return {Object} an instance of an implementation of the `location` API\n @deprecated Use the container to lookup the location implementation that you\n need.\n @private\n */\n create(options) {\n let implementation = options && options.implementation;\n (0, _debug.assert)(\"Location.create: you must specify a 'implementation' option\", Boolean(implementation));\n let implementationClass = this.implementations[implementation];\n (0, _debug.assert)(\"Location.create: \" + implementation + \" is not a valid implementation\", Boolean(implementationClass));\n return implementationClass.create(...arguments);\n },\n\n implementations: {},\n _location: _browserEnvironment.location\n };\n _exports.default = _default;\n});","enifed(\"@ember/-internals/routing/lib/location/auto_location\", [\"exports\", \"@ember/-internals/browser-environment\", \"@ember/-internals/metal\", \"@ember/-internals/owner\", \"@ember/-internals/runtime\", \"@ember/-internals/utils\", \"@ember/debug\", \"@ember/-internals/routing/lib/location/util\"], function (_exports, _browserEnvironment, _metal, _owner, _runtime, _utils, _debug, _util) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.getHistoryPath = getHistoryPath;\n _exports.getHashPath = getHashPath;\n _exports.default = void 0;\n\n /**\n @module @ember/routing\n */\n\n /**\n AutoLocation will select the best location option based off browser\n support with the priority order: history, hash, none.\n \n Clean pushState paths accessed by hashchange-only browsers will be redirected\n to the hash-equivalent and vice versa so future transitions are consistent.\n \n Keep in mind that since some of your users will use `HistoryLocation`, your\n server must serve the Ember app at all the routes you define.\n \n Browsers that support the `history` API will use `HistoryLocation`, those that\n do not, but still support the `hashchange` event will use `HashLocation`, and\n in the rare case neither is supported will use `NoneLocation`.\n \n Example:\n \n ```app/router.js\n Router.map(function() {\n this.route('posts', function() {\n this.route('new');\n });\n });\n \n Router.reopen({\n location: 'auto'\n });\n ```\n \n This will result in a posts.new url of `/posts/new` for modern browsers that\n support the `history` api or `/#/posts/new` for older ones, like Internet\n Explorer 9 and below.\n \n When a user visits a link to your application, they will be automatically\n upgraded or downgraded to the appropriate `Location` class, with the URL\n transformed accordingly, if needed.\n \n Keep in mind that since some of your users will use `HistoryLocation`, your\n server must serve the Ember app at all the routes you define.\n \n @class AutoLocation\n @static\n @protected\n */\n class AutoLocation extends _runtime.Object {\n constructor() {\n super(...arguments);\n this.implementation = 'auto';\n }\n /**\n Called by the router to instruct the location to do any feature detection\n necessary. In the case of AutoLocation, we detect whether to use history\n or hash concrete implementations.\n @private\n */\n\n\n detect() {\n let rootURL = this.rootURL;\n (0, _debug.assert)('rootURL must end with a trailing forward slash e.g. \"/app/\"', rootURL.charAt(rootURL.length - 1) === '/');\n let implementation = detectImplementation({\n location: this.location,\n history: this.history,\n userAgent: this.userAgent,\n rootURL,\n documentMode: this.documentMode,\n global: this.global\n });\n\n if (implementation === false) {\n (0, _metal.set)(this, 'cancelRouterSetup', true);\n implementation = 'none';\n }\n\n let concrete = (0, _owner.getOwner)(this).lookup(\"location:\" + implementation);\n (0, _metal.set)(concrete, 'rootURL', rootURL);\n (0, _debug.assert)(\"Could not find location '\" + implementation + \"'.\", Boolean(concrete));\n (0, _metal.set)(this, 'concreteImplementation', concrete);\n }\n\n willDestroy() {\n let concreteImplementation = (0, _metal.get)(this, 'concreteImplementation');\n\n if (concreteImplementation) {\n concreteImplementation.destroy();\n }\n }\n\n }\n\n _exports.default = AutoLocation;\n AutoLocation.reopen({\n /**\n @private\n Will be pre-pended to path upon state change.\n @since 1.5.1\n @property rootURL\n @default '/'\n */\n rootURL: '/',\n initState: delegateToConcreteImplementation('initState'),\n getURL: delegateToConcreteImplementation('getURL'),\n setURL: delegateToConcreteImplementation('setURL'),\n replaceURL: delegateToConcreteImplementation('replaceURL'),\n onUpdateURL: delegateToConcreteImplementation('onUpdateURL'),\n formatURL: delegateToConcreteImplementation('formatURL'),\n\n /**\n @private\n The browser's `location` object. This is typically equivalent to\n `window.location`, but may be overridden for testing.\n @property location\n @default environment.location\n */\n location: _browserEnvironment.location,\n\n /**\n @private\n The browser's `history` object. This is typically equivalent to\n `window.history`, but may be overridden for testing.\n @since 1.5.1\n @property history\n @default environment.history\n */\n history: _browserEnvironment.history,\n\n /**\n @private\n The user agent's global variable. In browsers, this will be `window`.\n @since 1.11\n @property global\n @default window\n */\n global: _browserEnvironment.window,\n\n /**\n @private\n The browser's `userAgent`. This is typically equivalent to\n `navigator.userAgent`, but may be overridden for testing.\n @since 1.5.1\n @property userAgent\n @default environment.history\n */\n userAgent: _browserEnvironment.userAgent,\n\n /**\n @private\n This property is used by the router to know whether to cancel the routing\n setup process, which is needed while we redirect the browser.\n @since 1.5.1\n @property cancelRouterSetup\n @default false\n */\n cancelRouterSetup: false\n });\n\n function delegateToConcreteImplementation(methodName) {\n return function (...args) {\n let concreteImplementation = (0, _metal.get)(this, 'concreteImplementation');\n (0, _debug.assert)(\"AutoLocation's detect() method should be called before calling any other hooks.\", Boolean(concreteImplementation));\n return (0, _utils.tryInvoke)(concreteImplementation, methodName, args);\n };\n }\n\n function detectImplementation(options) {\n let {\n location,\n userAgent,\n history,\n documentMode,\n global,\n rootURL\n } = options;\n let implementation = 'none';\n let cancelRouterSetup = false;\n let currentPath = (0, _util.getFullPath)(location);\n\n if ((0, _util.supportsHistory)(userAgent, history)) {\n let historyPath = getHistoryPath(rootURL, location); // If the browser supports history and we have a history path, we can use\n // the history location with no redirects.\n\n if (currentPath === historyPath) {\n implementation = 'history';\n } else if (currentPath.substr(0, 2) === '/#') {\n history.replaceState({\n path: historyPath\n }, '', historyPath);\n implementation = 'history';\n } else {\n cancelRouterSetup = true;\n (0, _util.replacePath)(location, historyPath);\n }\n } else if ((0, _util.supportsHashChange)(documentMode, global)) {\n let hashPath = getHashPath(rootURL, location); // Be sure we're using a hashed path, otherwise let's switch over it to so\n // we start off clean and consistent. We'll count an index path with no\n // hash as \"good enough\" as well.\n\n if (currentPath === hashPath || currentPath === '/' && hashPath === '/#/') {\n implementation = 'hash';\n } else {\n // Our URL isn't in the expected hash-supported format, so we want to\n // cancel the router setup and replace the URL to start off clean\n cancelRouterSetup = true;\n (0, _util.replacePath)(location, hashPath);\n }\n }\n\n if (cancelRouterSetup) {\n return false;\n }\n\n return implementation;\n }\n /**\n @private\n \n Returns the current path as it should appear for HistoryLocation supported\n browsers. This may very well differ from the real current path (e.g. if it\n starts off as a hashed URL)\n */\n\n\n function getHistoryPath(rootURL, location) {\n let path = (0, _util.getPath)(location);\n let hash = (0, _util.getHash)(location);\n let query = (0, _util.getQuery)(location);\n let rootURLIndex = path.indexOf(rootURL);\n let routeHash, hashParts;\n (0, _debug.assert)(\"Path \" + path + \" does not start with the provided rootURL \" + rootURL, rootURLIndex === 0); // By convention, Ember.js routes using HashLocation are required to start\n // with `#/`. Anything else should NOT be considered a route and should\n // be passed straight through, without transformation.\n\n if (hash.substr(0, 2) === '#/') {\n // There could be extra hash segments after the route\n hashParts = hash.substr(1).split('#'); // The first one is always the route url\n\n routeHash = hashParts.shift(); // If the path already has a trailing slash, remove the one\n // from the hashed route so we don't double up.\n\n if (path.charAt(path.length - 1) === '/') {\n routeHash = routeHash.substr(1);\n } // This is the \"expected\" final order\n\n\n path += routeHash + query;\n\n if (hashParts.length) {\n path += \"#\" + hashParts.join('#');\n }\n } else {\n path += query + hash;\n }\n\n return path;\n }\n /**\n @private\n \n Returns the current path as it should appear for HashLocation supported\n browsers. This may very well differ from the real current path.\n \n @method _getHashPath\n */\n\n\n function getHashPath(rootURL, location) {\n let path = rootURL;\n let historyPath = getHistoryPath(rootURL, location);\n let routePath = historyPath.substr(rootURL.length);\n\n if (routePath !== '') {\n if (routePath[0] !== '/') {\n routePath = \"/\" + routePath;\n }\n\n path += \"#\" + routePath;\n }\n\n return path;\n }\n});","enifed(\"@ember/-internals/routing/lib/location/hash_location\", [\"exports\", \"@ember/-internals/metal\", \"@ember/runloop\", \"@ember/-internals/runtime\", \"@ember/-internals/routing/lib/location/util\"], function (_exports, _metal, _runloop, _runtime, _util) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/routing\n */\n\n /**\n `HashLocation` implements the location API using the browser's\n hash. At present, it relies on a `hashchange` event existing in the\n browser.\n \n Using `HashLocation` results in URLs with a `#` (hash sign) separating the\n server side URL portion of the URL from the portion that is used by Ember.\n \n Example:\n \n ```app/router.js\n Router.map(function() {\n this.route('posts', function() {\n this.route('new');\n });\n });\n \n Router.reopen({\n location: 'hash'\n });\n ```\n \n This will result in a posts.new url of `/#/posts/new`.\n \n @class HashLocation\n @extends EmberObject\n @protected\n */\n class HashLocation extends _runtime.Object {\n constructor() {\n super(...arguments);\n this.implementation = 'hash';\n }\n\n init() {\n (0, _metal.set)(this, 'location', (0, _metal.get)(this, '_location') || window.location);\n this._hashchangeHandler = undefined;\n }\n /**\n @private\n Returns normalized location.hash\n @since 1.5.1\n @method getHash\n */\n\n\n getHash() {\n return (0, _util.getHash)((0, _metal.get)(this, 'location'));\n }\n /**\n Returns the normalized URL, constructed from `location.hash`.\n e.g. `#/foo` => `/foo` as well as `#/foo#bar` => `/foo#bar`.\n By convention, hashed paths must begin with a forward slash, otherwise they\n are not treated as a path so we can distinguish intent.\n @private\n @method getURL\n */\n\n\n getURL() {\n let originalPath = this.getHash().substr(1);\n let outPath = originalPath;\n\n if (outPath[0] !== '/') {\n outPath = '/'; // Only add the # if the path isn't empty.\n // We do NOT want `/#` since the ampersand\n // is only included (conventionally) when\n // the location.hash has a value\n\n if (originalPath) {\n outPath += \"#\" + originalPath;\n }\n }\n\n return outPath;\n }\n /**\n Set the `location.hash` and remembers what was set. This prevents\n `onUpdateURL` callbacks from triggering when the hash was set by\n `HashLocation`.\n @private\n @method setURL\n @param path {String}\n */\n\n\n setURL(path) {\n (0, _metal.get)(this, 'location').hash = path;\n (0, _metal.set)(this, 'lastSetURL', path);\n }\n /**\n Uses location.replace to update the url without a page reload\n or history modification.\n @private\n @method replaceURL\n @param path {String}\n */\n\n\n replaceURL(path) {\n (0, _metal.get)(this, 'location').replace(\"#\" + path);\n (0, _metal.set)(this, 'lastSetURL', path);\n }\n /**\n Register a callback to be invoked when the hash changes. These\n callbacks will execute when the user presses the back or forward\n button, but not after `setURL` is invoked.\n @private\n @method onUpdateURL\n @param callback {Function}\n */\n\n\n onUpdateURL(callback) {\n this._removeEventListener();\n\n this._hashchangeHandler = (0, _runloop.bind)(this, function () {\n let path = this.getURL();\n\n if ((0, _metal.get)(this, 'lastSetURL') === path) {\n return;\n }\n\n (0, _metal.set)(this, 'lastSetURL', null);\n callback(path);\n });\n window.addEventListener('hashchange', this._hashchangeHandler);\n }\n /**\n Given a URL, formats it to be placed into the page as part\n of an element's `href` attribute.\n This is used, for example, when using the {{action}} helper\n to generate a URL based on an event.\n @private\n @method formatURL\n @param url {String}\n */\n\n\n formatURL(url) {\n return \"#\" + url;\n }\n /**\n Cleans up the HashLocation event listener.\n @private\n @method willDestroy\n */\n\n\n willDestroy() {\n this._removeEventListener();\n }\n\n _removeEventListener() {\n if (this._hashchangeHandler) {\n window.removeEventListener('hashchange', this._hashchangeHandler);\n }\n }\n\n }\n\n _exports.default = HashLocation;\n});","enifed(\"@ember/-internals/routing/lib/location/history_location\", [\"exports\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"@ember/-internals/routing/lib/location/util\"], function (_exports, _metal, _runtime, _util) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/routing\n */\n let popstateFired = false;\n\n function _uuid() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n let r, v;\n r = Math.random() * 16 | 0;\n v = c === 'x' ? r : r & 3 | 8;\n return v.toString(16);\n });\n }\n /**\n HistoryLocation implements the location API using the browser's\n history.pushState API.\n \n Using `HistoryLocation` results in URLs that are indistinguishable from a\n standard URL. This relies upon the browser's `history` API.\n \n Example:\n \n ```app/router.js\n Router.map(function() {\n this.route('posts', function() {\n this.route('new');\n });\n });\n \n Router.reopen({\n location: 'history'\n });\n ```\n \n This will result in a posts.new url of `/posts/new`.\n \n Keep in mind that your server must serve the Ember app at all the routes you\n define.\n \n @class HistoryLocation\n @extends EmberObject\n @protected\n */\n\n\n class HistoryLocation extends _runtime.Object {\n constructor() {\n super(...arguments);\n this.implementation = 'history';\n /**\n Will be pre-pended to path upon state change\n @property rootURL\n @default '/'\n @private\n */\n\n this.rootURL = '/';\n }\n /**\n @private\n Returns normalized location.hash\n @method getHash\n */\n\n\n getHash() {\n return (0, _util.getHash)((0, _metal.get)(this, 'location'));\n }\n\n init() {\n this._super(...arguments);\n\n let base = document.querySelector('base');\n let baseURL = '';\n\n if (base) {\n baseURL = base.getAttribute('href');\n }\n\n (0, _metal.set)(this, 'baseURL', baseURL);\n (0, _metal.set)(this, 'location', (0, _metal.get)(this, 'location') || window.location);\n this._popstateHandler = undefined;\n }\n /**\n Used to set state on first call to setURL\n @private\n @method initState\n */\n\n\n initState() {\n let history = (0, _metal.get)(this, 'history') || window.history;\n (0, _metal.set)(this, 'history', history);\n\n if (history && 'state' in history) {\n this.supportsHistory = true;\n }\n\n let state = this.getState();\n let path = this.formatURL(this.getURL());\n\n if (state && state.path === path) {\n // preserve existing state\n // used for webkit workaround, since there will be no initial popstate event\n this._previousURL = this.getURL();\n } else {\n this.replaceState(path);\n }\n }\n /**\n Returns the current `location.pathname` without `rootURL` or `baseURL`\n @private\n @method getURL\n @return url {String}\n */\n\n\n getURL() {\n let location = (0, _metal.get)(this, 'location');\n let path = location.pathname;\n let rootURL = (0, _metal.get)(this, 'rootURL');\n let baseURL = (0, _metal.get)(this, 'baseURL'); // remove trailing slashes if they exists\n\n rootURL = rootURL.replace(/\\/$/, '');\n baseURL = baseURL.replace(/\\/$/, ''); // remove baseURL and rootURL from start of path\n\n let url = path.replace(new RegExp(\"^\" + baseURL + \"(?=/|$)\"), '').replace(new RegExp(\"^\" + rootURL + \"(?=/|$)\"), '').replace(/\\/\\/$/g, '/'); // remove extra slashes\n\n let search = location.search || '';\n url += search + this.getHash();\n return url;\n }\n /**\n Uses `history.pushState` to update the url without a page reload.\n @private\n @method setURL\n @param path {String}\n */\n\n\n setURL(path) {\n let state = this.getState();\n path = this.formatURL(path);\n\n if (!state || state.path !== path) {\n this.pushState(path);\n }\n }\n /**\n Uses `history.replaceState` to update the url without a page reload\n or history modification.\n @private\n @method replaceURL\n @param path {String}\n */\n\n\n replaceURL(path) {\n let state = this.getState();\n path = this.formatURL(path);\n\n if (!state || state.path !== path) {\n this.replaceState(path);\n }\n }\n /**\n Get the current `history.state`. Checks for if a polyfill is\n required and if so fetches this._historyState. The state returned\n from getState may be null if an iframe has changed a window's\n history.\n The object returned will contain a `path` for the given state as well\n as a unique state `id`. The state index will allow the app to distinguish\n between two states with similar paths but should be unique from one another.\n @private\n @method getState\n @return state {Object}\n */\n\n\n getState() {\n if (this.supportsHistory) {\n return (0, _metal.get)(this, 'history').state;\n }\n\n return this._historyState;\n }\n /**\n Pushes a new state.\n @private\n @method pushState\n @param path {String}\n */\n\n\n pushState(path) {\n let state = {\n path,\n uuid: _uuid()\n };\n (0, _metal.get)(this, 'history').pushState(state, null, path);\n this._historyState = state; // used for webkit workaround\n\n this._previousURL = this.getURL();\n }\n /**\n Replaces the current state.\n @private\n @method replaceState\n @param path {String}\n */\n\n\n replaceState(path) {\n let state = {\n path,\n uuid: _uuid()\n };\n (0, _metal.get)(this, 'history').replaceState(state, null, path);\n this._historyState = state; // used for webkit workaround\n\n this._previousURL = this.getURL();\n }\n /**\n Register a callback to be invoked whenever the browser\n history changes, including using forward and back buttons.\n @private\n @method onUpdateURL\n @param callback {Function}\n */\n\n\n onUpdateURL(callback) {\n this._removeEventListener();\n\n this._popstateHandler = () => {\n // Ignore initial page load popstate event in Chrome\n if (!popstateFired) {\n popstateFired = true;\n\n if (this.getURL() === this._previousURL) {\n return;\n }\n }\n\n callback(this.getURL());\n };\n\n window.addEventListener('popstate', this._popstateHandler);\n }\n /**\n Used when using `{{action}}` helper. The url is always appended to the rootURL.\n @private\n @method formatURL\n @param url {String}\n @return formatted url {String}\n */\n\n\n formatURL(url) {\n let rootURL = (0, _metal.get)(this, 'rootURL');\n let baseURL = (0, _metal.get)(this, 'baseURL');\n\n if (url !== '') {\n // remove trailing slashes if they exists\n rootURL = rootURL.replace(/\\/$/, '');\n baseURL = baseURL.replace(/\\/$/, '');\n } else if (baseURL[0] === '/' && rootURL[0] === '/') {\n // if baseURL and rootURL both start with a slash\n // ... remove trailing slash from baseURL if it exists\n baseURL = baseURL.replace(/\\/$/, '');\n }\n\n return baseURL + rootURL + url;\n }\n /**\n Cleans up the HistoryLocation event listener.\n @private\n @method willDestroy\n */\n\n\n willDestroy() {\n this._removeEventListener();\n }\n\n _removeEventListener() {\n if (this._popstateHandler) {\n window.removeEventListener('popstate', this._popstateHandler);\n }\n }\n\n }\n\n _exports.default = HistoryLocation;\n});","enifed(\"@ember/-internals/routing/lib/location/none_location\", [\"exports\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"@ember/debug\"], function (_exports, _metal, _runtime, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/routing\n */\n\n /**\n NoneLocation does not interact with the browser. It is useful for\n testing, or when you need to manage state with your Router, but temporarily\n don't want it to muck with the URL (for example when you embed your\n application in a larger page).\n \n Using `NoneLocation` causes Ember to not store the applications URL state\n in the actual URL. This is generally used for testing purposes, and is one\n of the changes made when calling `App.setupForTesting()`.\n \n @class NoneLocation\n @extends EmberObject\n @protected\n */\n class NoneLocation extends _runtime.Object {\n constructor() {\n super(...arguments);\n this.implementation = 'none';\n }\n\n detect() {\n let rootURL = this.rootURL;\n (0, _debug.assert)('rootURL must end with a trailing forward slash e.g. \"/app/\"', rootURL.charAt(rootURL.length - 1) === '/');\n }\n /**\n Returns the current path without `rootURL`.\n @private\n @method getURL\n @return {String} path\n */\n\n\n getURL() {\n let path = (0, _metal.get)(this, 'path');\n let rootURL = (0, _metal.get)(this, 'rootURL'); // remove trailing slashes if they exists\n\n rootURL = rootURL.replace(/\\/$/, ''); // remove rootURL from url\n\n return path.replace(new RegExp(\"^\" + rootURL + \"(?=/|$)\"), '');\n }\n /**\n Set the path and remembers what was set. Using this method\n to change the path will not invoke the `updateURL` callback.\n @private\n @method setURL\n @param path {String}\n */\n\n\n setURL(path) {\n (0, _metal.set)(this, 'path', path);\n }\n /**\n Register a callback to be invoked when the path changes. These\n callbacks will execute when the user presses the back or forward\n button, but not after `setURL` is invoked.\n @private\n @method onUpdateURL\n @param callback {Function}\n */\n\n\n onUpdateURL(callback) {\n this.updateCallback = callback;\n }\n /**\n Sets the path and calls the `updateURL` callback.\n @private\n @method handleURL\n @param url {String}\n */\n\n\n handleURL(url) {\n (0, _metal.set)(this, 'path', url);\n this.updateCallback(url);\n }\n /**\n Given a URL, formats it to be placed into the page as part\n of an element's `href` attribute.\n This is used, for example, when using the {{action}} helper\n to generate a URL based on an event.\n @private\n @method formatURL\n @param url {String}\n @return {String} url\n */\n\n\n formatURL(url) {\n let rootURL = (0, _metal.get)(this, 'rootURL');\n\n if (url !== '') {\n // remove trailing slashes if they exists\n rootURL = rootURL.replace(/\\/$/, '');\n }\n\n return rootURL + url;\n }\n\n }\n\n _exports.default = NoneLocation;\n NoneLocation.reopen({\n path: '',\n\n /**\n Will be pre-pended to path.\n @private\n @property rootURL\n @default '/'\n */\n rootURL: '/'\n });\n});","enifed(\"@ember/-internals/routing/lib/location/util\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.getPath = getPath;\n _exports.getQuery = getQuery;\n _exports.getHash = getHash;\n _exports.getFullPath = getFullPath;\n _exports.getOrigin = getOrigin;\n _exports.supportsHashChange = supportsHashChange;\n _exports.supportsHistory = supportsHistory;\n _exports.replacePath = replacePath;\n\n /**\n @private\n \n Returns the current `location.pathname`, normalized for IE inconsistencies.\n */\n function getPath(location) {\n let pathname = location.pathname; // Various versions of IE/Opera don't always return a leading slash\n\n if (pathname[0] !== '/') {\n pathname = \"/\" + pathname;\n }\n\n return pathname;\n }\n /**\n @private\n \n Returns the current `location.search`.\n */\n\n\n function getQuery(location) {\n return location.search;\n }\n /**\n @private\n \n Returns the hash or empty string\n */\n\n\n function getHash(location) {\n if (location.hash !== undefined) {\n return location.hash.substr(0);\n }\n\n return '';\n }\n\n function getFullPath(location) {\n return getPath(location) + getQuery(location) + getHash(location);\n }\n\n function getOrigin(location) {\n let origin = location.origin; // Older browsers, especially IE, don't have origin\n\n if (!origin) {\n origin = location.protocol + \"//\" + location.hostname;\n\n if (location.port) {\n origin += \":\" + location.port;\n }\n }\n\n return origin;\n }\n /*\n `documentMode` only exist in Internet Explorer, and it's tested because IE8 running in\n IE7 compatibility mode claims to support `onhashchange` but actually does not.\n \n `global` is an object that may have an `onhashchange` property.\n \n @private\n @function supportsHashChange\n */\n\n\n function supportsHashChange(documentMode, global) {\n return global && 'onhashchange' in global && (documentMode === undefined || documentMode > 7);\n }\n /*\n `userAgent` is a user agent string. We use user agent testing here, because\n the stock Android browser is known to have buggy versions of the History API,\n in some Android versions.\n \n @private\n @function supportsHistory\n */\n\n\n function supportsHistory(userAgent, history) {\n // Boosted from Modernizr: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js\n // The stock browser on Android 2.2 & 2.3, and 4.0.x returns positive on history support\n // Unfortunately support is really buggy and there is no clean way to detect\n // these bugs, so we fall back to a user agent sniff :(\n // We only want Android 2 and 4.0, stock browser, and not Chrome which identifies\n // itself as 'Mobile Safari' as well, nor Windows Phone.\n if ((userAgent.indexOf('Android 2.') !== -1 || userAgent.indexOf('Android 4.0') !== -1) && userAgent.indexOf('Mobile Safari') !== -1 && userAgent.indexOf('Chrome') === -1 && userAgent.indexOf('Windows Phone') === -1) {\n return false;\n }\n\n return Boolean(history && 'pushState' in history);\n }\n /**\n Replaces the current location, making sure we explicitly include the origin\n to prevent redirecting to a different origin.\n \n @private\n */\n\n\n function replacePath(location, path) {\n location.replace(getOrigin(location) + path);\n }\n});","enifed(\"@ember/-internals/routing/lib/services/router\", [\"exports\", \"@ember/-internals/runtime\", \"@ember/debug\", \"@ember/object/computed\", \"@ember/service\", \"@glimmer/env\", \"@ember/-internals/routing/lib/utils\"], function (_exports, _runtime, _debug, _computed, _service, _env, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n let freezeRouteInfo;\n\n if (_env.DEBUG) {\n freezeRouteInfo = transition => {\n if (transition.from !== null && !Object.isFrozen(transition.from)) {\n Object.freeze(transition.from);\n }\n\n if (transition.to !== null && !Object.isFrozen(transition.to)) {\n Object.freeze(transition.to);\n }\n };\n }\n\n function cleanURL(url, rootURL) {\n if (rootURL === '/') {\n return url;\n }\n\n return url.substr(rootURL.length, url.length);\n }\n /**\n The Router service is the public API that provides access to the router.\n \n The immediate benefit of the Router service is that you can inject it into components,\n giving them a friendly way to initiate transitions and ask questions about the current\n global router state.\n \n In this example, the Router service is injected into a component to initiate a transition\n to a dedicated route:\n ```javascript\n import Component from '@ember/component';\n import { inject as service } from '@ember/service';\n \n export default Component.extend({\n router: service(),\n \n actions: {\n next() {\n this.get('router').transitionTo('other.route');\n }\n }\n });\n ```\n \n Like any service, it can also be injected into helpers, routes, etc.\n \n @public\n @class RouterService\n */\n\n\n class RouterService extends _service.default {\n init() {\n super.init(...arguments);\n\n this._router.on('routeWillChange', transition => {\n if (_env.DEBUG) {\n freezeRouteInfo(transition);\n }\n\n this.trigger('routeWillChange', transition);\n });\n\n this._router.on('routeDidChange', transition => {\n if (_env.DEBUG) {\n freezeRouteInfo(transition);\n }\n\n this.trigger('routeDidChange', transition);\n });\n }\n /**\n Transition the application into another route. The route may\n be either a single route or route path:\n See [transitionTo](/api/ember/release/classes/Route/methods/transitionTo?anchor=transitionTo) for more info.\n Calling `transitionTo` from the Router service will cause default query parameter values to be included in the URL.\n This behavior is different from calling `transitionTo` on a route or `transitionToRoute` on a controller.\n See the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n @method transitionTo\n @param {String} routeNameOrUrl the name of the route or a URL\n @param {...Object} models the model(s) or identifier(s) to be used while\n transitioning to the route.\n @param {Object} [options] optional hash with a queryParams property\n containing a mapping of query parameters\n @return {Transition} the transition object associated with this\n attempted transition\n @public\n */\n\n\n transitionTo(...args) {\n if ((0, _utils.resemblesURL)(args[0])) {\n return this._router._doURLTransition('transitionTo', args[0]);\n }\n\n let {\n routeName,\n models,\n queryParams\n } = (0, _utils.extractRouteArgs)(args);\n\n let transition = this._router._doTransition(routeName, models, queryParams, true);\n\n transition['_keepDefaultQueryParamValues'] = true;\n return transition;\n }\n /**\n Transition into another route while replacing the current URL, if possible.\n The route may be either a single route or route path:\n See [replaceWith](/api/ember/release/classes/Route/methods/replaceWith?anchor=replaceWith) for more info.\n Calling `replaceWith` from the Router service will cause default query parameter values to be included in the URL.\n This behavior is different from calling `replaceWith` on a route.\n See the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n @method replaceWith\n @param {String} routeNameOrUrl the name of the route or a URL\n @param {...Object} models the model(s) or identifier(s) to be used while\n transitioning to the route.\n @param {Object} [options] optional hash with a queryParams property\n containing a mapping of query parameters\n @return {Transition} the transition object associated with this\n attempted transition\n @public\n */\n\n\n replaceWith()\n /* routeNameOrUrl, ...models, options */\n {\n return this.transitionTo(...arguments).method('replace');\n }\n /**\n Generate a URL based on the supplied route name and optionally a model. The\n URL is returned as a string that can be used for any purpose.\n In this example, the URL for the `author.books` route for a given author\n is copied to the clipboard.\n ```app/components/copy-link.js\n import Component from '@ember/component';\n import {inject as service} from '@ember/service';\n export default Component.extend({\n router: service('router'),\n clipboard: service('clipboard')\n // Provided in the template\n // { id: 'tomster', name: 'Tomster' }\n author: null,\n copyBooksURL() {\n if (this.author) {\n const url = this.router.urlFor('author.books', this.author);\n this.clipboard.set(url);\n // Clipboard now has /author/tomster/books\n }\n }\n });\n ```\n Just like with `transitionTo` and `replaceWith`, `urlFor` can also handle\n query parameters.\n ```app/components/copy-link.js\n import Component from '@ember/component';\n import {inject as service} from '@ember/service';\n export default Component.extend({\n router: service('router'),\n clipboard: service('clipboard')\n // Provided in the template\n // { id: 'tomster', name: 'Tomster' }\n author: null,\n copyOnlyEmberBooksURL() {\n if (this.author) {\n const url = this.router.urlFor('author.books', this.author, {\n queryParams: { filter: 'emberjs' }\n });\n this.clipboard.set(url);\n // Clipboard now has /author/tomster/books?filter=emberjs\n }\n }\n });\n ```\n @method urlFor\n @param {String} routeName the name of the route\n @param {...Object} models the model(s) or identifier(s) to be used while\n transitioning to the route.\n @param {Object} [options] optional hash with a queryParams property\n containing a mapping of query parameters\n @return {String} the string representing the generated URL\n @public\n */\n\n\n urlFor(routeName, ...args) {\n return this._router.generate(routeName, ...args);\n }\n /**\n Determines whether a route is active.\n @method isActive\n @param {String} routeName the name of the route\n @param {...Object} models the model(s) or identifier(s) to be used while\n transitioning to the route.\n @param {Object} [options] optional hash with a queryParams property\n containing a mapping of query parameters\n @return {boolean} true if the provided routeName/models/queryParams are active\n @public\n */\n\n\n isActive(...args) {\n let {\n routeName,\n models,\n queryParams\n } = (0, _utils.extractRouteArgs)(args);\n let routerMicrolib = this._router._routerMicrolib;\n\n if (!routerMicrolib.isActiveIntent(routeName, models)) {\n return false;\n }\n\n let hasQueryParams = Object.keys(queryParams).length > 0;\n\n if (hasQueryParams) {\n this._router._prepareQueryParams(routeName, models, queryParams, true\n /* fromRouterService */\n );\n\n return (0, _utils.shallowEqual)(queryParams, routerMicrolib.state.queryParams);\n }\n\n return true;\n }\n /**\n Takes a string URL and returns a `RouteInfo` for the leafmost route represented\n by the URL. Returns `null` if the URL is not recognized. This method expects to\n receive the actual URL as seen by the browser including the app's `rootURL`.\n @method recognize\n @param {String} url\n @public\n */\n\n\n recognize(url) {\n (0, _debug.assert)(\"You must pass a url that begins with the application's rootURL \\\"\" + this.rootURL + \"\\\"\", url.indexOf(this.rootURL) === 0);\n let internalURL = cleanURL(url, this.rootURL);\n return this._router._routerMicrolib.recognize(internalURL);\n }\n /**\n Takes a string URL and returns a promise that resolves to a\n `RouteInfoWithAttributes` for the leafmost route represented by the URL.\n The promise rejects if the URL is not recognized or an unhandled exception\n is encountered. This method expects to receive the actual URL as seen by\n the browser including the app's `rootURL`.\n @method recognizeAndLoad\n @param {String} url\n @public\n */\n\n\n recognizeAndLoad(url) {\n (0, _debug.assert)(\"You must pass a url that begins with the application's rootURL \\\"\" + this.rootURL + \"\\\"\", url.indexOf(this.rootURL) === 0);\n let internalURL = cleanURL(url, this.rootURL);\n return this._router._routerMicrolib.recognizeAndLoad(internalURL);\n }\n\n }\n\n _exports.default = RouterService;\n RouterService.reopen(_runtime.Evented, {\n /**\n Name of the current route.\n This property represents the logical name of the route,\n which is comma separated.\n For the following router:\n ```app/router.js\n Router.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n });\n ```\n It will return:\n * `index` when you visit `/`\n * `about` when you visit `/about`\n * `blog.index` when you visit `/blog`\n * `blog.post` when you visit `/blog/some-post-id`\n @property currentRouteName\n @type String\n @public\n */\n currentRouteName: (0, _computed.readOnly)('_router.currentRouteName'),\n\n /**\n Current URL for the application.\n This property represents the URL path for this route.\n For the following router:\n ```app/router.js\n Router.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n });\n ```\n It will return:\n * `/` when you visit `/`\n * `/about` when you visit `/about`\n * `/blog` when you visit `/blog`\n * `/blog/some-post-id` when you visit `/blog/some-post-id`\n @property currentURL\n @type String\n @public\n */\n currentURL: (0, _computed.readOnly)('_router.currentURL'),\n\n /**\n The `location` property determines the type of URLs your\n application will use.\n The following location types are currently available:\n * `auto`\n * `hash`\n * `history`\n * `none`\n You can pass a location type to force a particular `location` API\n implementation to be used in your application. For example, to set\n the `history` type:\n ```config/environment.js\n 'use strict';\n module.exports = function(environment) {\n let ENV = {\n modulePrefix: 'router-service',\n environment,\n rootURL: '/',\n locationType: 'history',\n ...\n }\n }\n ```\n @property location\n @default 'hash'\n @see {Location}\n @public\n */\n location: (0, _computed.readOnly)('_router.location'),\n\n /**\n The `rootURL` property represents the URL of the root of\n the application, '/' by default.\n This prefix is assumed on all routes defined on this app.\n IF you change the `rootURL` in your environment configuration\n like so:\n ```config/environment.js\n 'use strict';\n module.exports = function(environment) {\n let ENV = {\n modulePrefix: 'router-service',\n environment,\n rootURL: '/my-root',\n …\n }\n ]\n ```\n This property will return `/my-root`.\n @property rootURL\n @default '/'\n @public\n */\n rootURL: (0, _computed.readOnly)('_router.rootURL'),\n\n /**\n A `RouteInfo` that represents the current leaf route.\n It is guaranteed to change whenever a route transition\n happens (even when that transition only changes parameters\n and doesn't change the active route)\n @property currentRoute\n @type RouteInfo\n @public\n */\n currentRoute: (0, _computed.readOnly)('_router.currentRoute')\n });\n});","enifed(\"@ember/-internals/routing/lib/services/routing\", [\"exports\", \"@ember/object/computed\", \"@ember/polyfills\", \"@ember/service\"], function (_exports, _computed, _polyfills, _service) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n The Routing service is used by LinkComponent, and provides facilities for\n the component/view layer to interact with the router.\n \n This is a private service for internal usage only. For public usage,\n refer to the `Router` service.\n \n @private\n @class RoutingService\n */\n class RoutingService extends _service.default {\n hasRoute(routeName) {\n return this.router.hasRoute(routeName);\n }\n\n transitionTo(routeName, models, queryParams, shouldReplace) {\n let transition = this.router._doTransition(routeName, models, queryParams);\n\n if (shouldReplace) {\n transition.method('replace');\n }\n\n return transition;\n }\n\n normalizeQueryParams(routeName, models, queryParams) {\n this.router._prepareQueryParams(routeName, models, queryParams);\n }\n\n generateURL(routeName, models, queryParams) {\n let router = this.router; // return early when the router microlib is not present, which is the case for {{link-to}} in integration tests\n\n if (!router._routerMicrolib) {\n return;\n }\n\n let visibleQueryParams = {};\n\n if (queryParams) {\n (0, _polyfills.assign)(visibleQueryParams, queryParams);\n this.normalizeQueryParams(routeName, models, visibleQueryParams);\n }\n\n return router.generate(routeName, ...models, {\n queryParams: visibleQueryParams\n });\n }\n\n isActiveForRoute(contexts, queryParams, routeName, routerState, isCurrentWhenSpecified) {\n let handlers = this.router._routerMicrolib.recognizer.handlersFor(routeName);\n\n let leafName = handlers[handlers.length - 1].handler;\n let maximumContexts = numberOfContextsAcceptedByHandler(routeName, handlers); // NOTE: any ugliness in the calculation of activeness is largely\n // due to the fact that we support automatic normalizing of\n // `resource` -> `resource.index`, even though there might be\n // dynamic segments / query params defined on `resource.index`\n // which complicates (and makes somewhat ambiguous) the calculation\n // of activeness for links that link to `resource` instead of\n // directly to `resource.index`.\n // if we don't have enough contexts revert back to full route name\n // this is because the leaf route will use one of the contexts\n\n if (contexts.length > maximumContexts) {\n routeName = leafName;\n }\n\n return routerState.isActiveIntent(routeName, contexts, queryParams, !isCurrentWhenSpecified);\n }\n\n }\n\n _exports.default = RoutingService;\n RoutingService.reopen({\n targetState: (0, _computed.readOnly)('router.targetState'),\n currentState: (0, _computed.readOnly)('router.currentState'),\n currentRouteName: (0, _computed.readOnly)('router.currentRouteName'),\n currentPath: (0, _computed.readOnly)('router.currentPath')\n });\n\n function numberOfContextsAcceptedByHandler(handlerName, handlerInfos) {\n let req = 0;\n\n for (let i = 0; i < handlerInfos.length; i++) {\n req += handlerInfos[i].names.length;\n\n if (handlerInfos[i].handler === handlerName) {\n break;\n }\n }\n\n return req;\n }\n});","enifed(\"@ember/-internals/routing/lib/system/cache\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n A two-tiered cache with support for fallback values when doing lookups.\n Uses \"buckets\" and then \"keys\" to cache values.\n \n @private\n @class BucketCache\n */\n class BucketCache {\n constructor() {\n this.cache = new Map();\n }\n\n has(bucketKey) {\n return this.cache.has(bucketKey);\n }\n\n stash(bucketKey, key, value) {\n let bucket = this.cache.get(bucketKey);\n\n if (bucket === undefined) {\n bucket = new Map();\n this.cache.set(bucketKey, bucket);\n }\n\n bucket.set(key, value);\n }\n\n lookup(bucketKey, prop, defaultValue) {\n if (!this.has(bucketKey)) {\n return defaultValue;\n }\n\n let bucket = this.cache.get(bucketKey);\n\n if (bucket.has(prop)) {\n return bucket.get(prop);\n } else {\n return defaultValue;\n }\n }\n\n }\n\n _exports.default = BucketCache;\n});","enifed(\"@ember/-internals/routing/lib/system/controller_for\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = controllerFor;\n\n /**\n @module ember\n */\n\n /**\n Finds a controller instance.\n \n @for Ember\n @method controllerFor\n @private\n */\n function controllerFor(container, controllerName, lookupOptions) {\n return container.lookup(\"controller:\" + controllerName, lookupOptions);\n }\n});","enifed(\"@ember/-internals/routing/lib/system/dsl\", [\"exports\", \"@ember/debug\", \"@ember/polyfills\"], function (_exports, _debug, _polyfills) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n let uuid = 0;\n\n function isCallback(value) {\n return typeof value === 'function';\n }\n\n function isOptions(value) {\n return value !== null && typeof value === 'object';\n }\n\n class DSLImpl {\n constructor(name = null, options) {\n this.explicitIndex = false;\n this.parent = name;\n this.enableLoadingSubstates = Boolean(options && options.enableLoadingSubstates);\n this.matches = [];\n this.options = options;\n }\n\n route(name, _options, _callback) {\n let options;\n let callback = null;\n let dummyErrorRoute = \"/_unused_dummy_error_path_route_\" + name + \"/:error\";\n\n if (isCallback(_options)) {\n (0, _debug.assert)('Unexpected arguments', arguments.length === 2);\n options = {};\n callback = _options;\n } else if (isCallback(_callback)) {\n (0, _debug.assert)('Unexpected arguments', arguments.length === 3);\n (0, _debug.assert)('Unexpected arguments', isOptions(_options));\n options = _options;\n callback = _callback;\n } else {\n options = _options || {};\n }\n\n (0, _debug.assert)(\"'\" + name + \"' cannot be used as a route name.\", (() => {\n if (options.overrideNameAssertion === true) {\n return true;\n }\n\n return ['basic', 'application'].indexOf(name) === -1;\n })());\n (0, _debug.assert)(\"'\" + name + \"' is not a valid route name. It cannot contain a ':'. You may want to use the 'path' option instead.\", name.indexOf(':') === -1);\n\n if (this.enableLoadingSubstates) {\n createRoute(this, name + \"_loading\", {\n resetNamespace: options.resetNamespace\n });\n createRoute(this, name + \"_error\", {\n resetNamespace: options.resetNamespace,\n path: dummyErrorRoute\n });\n }\n\n if (callback) {\n let fullName = getFullName(this, name, options.resetNamespace);\n let dsl = new DSLImpl(fullName, this.options);\n createRoute(dsl, 'loading');\n createRoute(dsl, 'error', {\n path: dummyErrorRoute\n });\n callback.call(dsl);\n createRoute(this, name, options, dsl.generate());\n } else {\n createRoute(this, name, options);\n }\n }\n /* eslint-enable no-dupe-class-members */\n\n\n push(url, name, callback, serialize) {\n let parts = name.split('.');\n\n if (this.options.engineInfo) {\n let localFullName = name.slice(this.options.engineInfo.fullName.length + 1);\n let routeInfo = (0, _polyfills.assign)({\n localFullName\n }, this.options.engineInfo);\n\n if (serialize) {\n routeInfo.serializeMethod = serialize;\n }\n\n this.options.addRouteForEngine(name, routeInfo);\n } else if (serialize) {\n throw new Error(\"Defining a route serializer on route '\" + name + \"' outside an Engine is not allowed.\");\n }\n\n if (url === '' || url === '/' || parts[parts.length - 1] === 'index') {\n this.explicitIndex = true;\n }\n\n this.matches.push(url, name, callback);\n }\n\n generate() {\n let dslMatches = this.matches;\n\n if (!this.explicitIndex) {\n this.route('index', {\n path: '/'\n });\n }\n\n return match => {\n for (let i = 0; i < dslMatches.length; i += 3) {\n match(dslMatches[i]).to(dslMatches[i + 1], dslMatches[i + 2]);\n }\n };\n }\n\n mount(_name, options = {}) {\n let engineRouteMap = this.options.resolveRouteMap(_name);\n let name = _name;\n\n if (options.as) {\n name = options.as;\n }\n\n let fullName = getFullName(this, name, options.resetNamespace);\n let engineInfo = {\n name: _name,\n instanceId: uuid++,\n mountPoint: fullName,\n fullName\n };\n let path = options.path;\n\n if (typeof path !== 'string') {\n path = \"/\" + name;\n }\n\n let callback;\n let dummyErrorRoute = \"/_unused_dummy_error_path_route_\" + name + \"/:error\";\n\n if (engineRouteMap) {\n let shouldResetEngineInfo = false;\n let oldEngineInfo = this.options.engineInfo;\n\n if (oldEngineInfo) {\n shouldResetEngineInfo = true;\n this.options.engineInfo = engineInfo;\n }\n\n let optionsForChild = (0, _polyfills.assign)({\n engineInfo\n }, this.options);\n let childDSL = new DSLImpl(fullName, optionsForChild);\n createRoute(childDSL, 'loading');\n createRoute(childDSL, 'error', {\n path: dummyErrorRoute\n });\n engineRouteMap.class.call(childDSL);\n callback = childDSL.generate();\n\n if (shouldResetEngineInfo) {\n this.options.engineInfo = oldEngineInfo;\n }\n }\n\n let localFullName = 'application';\n let routeInfo = (0, _polyfills.assign)({\n localFullName\n }, engineInfo);\n\n if (this.enableLoadingSubstates) {\n // These values are important to register the loading routes under their\n // proper names for the Router and within the Engine's registry.\n let substateName = name + \"_loading\";\n let localFullName = \"application_loading\";\n let routeInfo = (0, _polyfills.assign)({\n localFullName\n }, engineInfo);\n createRoute(this, substateName, {\n resetNamespace: options.resetNamespace\n });\n this.options.addRouteForEngine(substateName, routeInfo);\n substateName = name + \"_error\";\n localFullName = \"application_error\";\n routeInfo = (0, _polyfills.assign)({\n localFullName\n }, engineInfo);\n createRoute(this, substateName, {\n resetNamespace: options.resetNamespace,\n path: dummyErrorRoute\n });\n this.options.addRouteForEngine(substateName, routeInfo);\n }\n\n this.options.addRouteForEngine(fullName, routeInfo);\n this.push(path, fullName, callback);\n }\n\n }\n\n _exports.default = DSLImpl;\n\n function canNest(dsl) {\n return dsl.parent !== 'application';\n }\n\n function getFullName(dsl, name, resetNamespace) {\n if (canNest(dsl) && resetNamespace !== true) {\n return dsl.parent + \".\" + name;\n } else {\n return name;\n }\n }\n\n function createRoute(dsl, name, options = {}, callback) {\n let fullName = getFullName(dsl, name, options.resetNamespace);\n\n if (typeof options.path !== 'string') {\n options.path = \"/\" + name;\n }\n\n dsl.push(options.path, fullName, callback, options.serialize);\n }\n});","enifed(\"@ember/-internals/routing/lib/system/engines\", [], function () {\n \"use strict\";\n});","enifed(\"@ember/-internals/routing/lib/system/generate_controller\", [\"exports\", \"@ember/-internals/metal\", \"@ember/debug\", \"@glimmer/env\"], function (_exports, _metal, _debug, _env) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.generateControllerFactory = generateControllerFactory;\n _exports.default = generateController;\n\n /**\n @module ember\n */\n\n /**\n Generates a controller factory\n \n @for Ember\n @method generateControllerFactory\n @private\n */\n function generateControllerFactory(owner, controllerName) {\n let Factory = owner.factoryFor('controller:basic').class;\n Factory = Factory.extend({\n toString() {\n return \"(generated \" + controllerName + \" controller)\";\n }\n\n });\n let fullName = \"controller:\" + controllerName;\n owner.register(fullName, Factory);\n return Factory;\n }\n /**\n Generates and instantiates a controller extending from `controller:basic`\n if present, or `Controller` if not.\n \n @for Ember\n @method generateController\n @private\n @since 1.3.0\n */\n\n\n function generateController(owner, controllerName) {\n generateControllerFactory(owner, controllerName);\n let fullName = \"controller:\" + controllerName;\n let instance = owner.lookup(fullName);\n\n if (_env.DEBUG) {\n if ((0, _metal.get)(instance, 'namespace.LOG_ACTIVE_GENERATION')) {\n (0, _debug.info)(\"generated -> \" + fullName, {\n fullName\n });\n }\n }\n\n return instance;\n }\n});","enifed(\"@ember/-internals/routing/lib/system/query_params\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class QueryParams {\n constructor(values = null) {\n this.isQueryParams = true;\n this.values = values;\n }\n\n }\n\n _exports.default = QueryParams;\n});","enifed(\"@ember/-internals/routing/lib/system/route-info\", [], function () {\n \"use strict\";\n /**\n A `RouteInfoWithAttributes` is an object that contains\n metadata, including the resolved value from the routes\n `model` hook. Like `RouteInfo`, a `RouteInfoWithAttributes`\n represents a specific route within a Transition.\n It is read-only and internally immutable. It is also not\n observable, because a Transition instance is never\n changed after creation.\n \n @class RouteInfoWithAttributes\n @public\n */\n\n /**\n The dot-separated, fully-qualified name of the\n route, like \"people.index\".\n @property {String} name\n @public\n */\n\n /**\n The final segment of the fully-qualified name of\n the route, like \"index\"\n @property {String} localName\n @public\n */\n\n /**\n The values of the route's parameters. These are the\n same params that are received as arguments to the\n route's model hook. Contains only the parameters\n valid for this route, if any (params for parent or\n child routes are not merged).\n @property {Object} params\n @public\n */\n\n /**\n The ordered list of the names of the params\n required for this route. It will contain the same\n strings as `Object.keys(params)`, but here the order\n is significant. This allows users to correctly pass\n params into routes programmatically.\n @property {Array} paramNames\n @public\n */\n\n /**\n The values of any queryParams on this route.\n @property {Object} queryParams\n @public\n */\n\n /**\n This is the resolved return value from the\n route's model hook.\n @property {Object|Array|String} attributes\n @public\n */\n\n /**\n Will contain the result `Route#buildRouteInfoMetadata`\n for the corresponding Route.\n @property {Any} metadata\n @category EMBER_ROUTING_BUILD_ROUTEINFO_METADATA\n @public\n */\n\n /**\n A reference to the parent route's RouteInfo.\n This can be used to traverse upward to the topmost\n `RouteInfo`.\n @property {RouteInfo|null} parent\n @public\n */\n\n /**\n A reference to the child route's RouteInfo.\n This can be used to traverse downward to the\n leafmost `RouteInfo`.\n @property {RouteInfo|null} child\n @public\n */\n\n /**\n Allows you to traverse through the linked list\n of `RouteInfo`s from the topmost to leafmost.\n Returns the first `RouteInfo` in the linked list\n for which the callback returns true.\n \n This method is similar to the `find()` method\n defined in ECMAScript 2015.\n \n The callback method you provide should have the\n following signature (all parameters are optional):\n \n ```javascript\n function(item, index, array);\n ```\n \n - `item` is the current item in the iteration.\n - `index` is the current index in the iteration.\n - `array` is the array itself.\n \n It should return the `true` to include the item in\n the results, `false` otherwise.\n \n Note that in addition to a callback, you can also\n pass an optional target object that will be set as\n `this` on the context.\n \n @method find\n @param {Function} callback the callback to execute\n @param {Object} [target*] optional target to use\n @returns {Object} Found item or undefined\n @public\n */\n\n /**\n A RouteInfo is an object that contains metadata\n about a specific route within a Transition. It is\n read-only and internally immutable. It is also not\n observable, because a Transition instance is never\n changed after creation.\n \n @class RouteInfo\n @public\n */\n\n /**\n The dot-separated, fully-qualified name of the\n route, like \"people.index\".\n @property {String} name\n @public\n */\n\n /**\n The final segment of the fully-qualified name of\n the route, like \"index\"\n @property {String} localName\n @public\n */\n\n /**\n The values of the route's parameters. These are the\n same params that are received as arguments to the\n route's `model` hook. Contains only the parameters\n valid for this route, if any (params for parent or\n child routes are not merged).\n @property {Object} params\n @public\n */\n\n /**\n The ordered list of the names of the params\n required for this route. It will contain the same\n strings as Object.keys(params), but here the order\n is significant. This allows users to correctly pass\n params into routes programmatically.\n @property {Array} paramNames\n @public\n */\n\n /**\n The values of any queryParams on this route.\n @property {Object} queryParams\n @public\n */\n\n /**\n A reference to the parent route's `RouteInfo`.\n This can be used to traverse upward to the topmost\n `RouteInfo`.\n @property {RouteInfo|null} parent\n @public\n */\n\n /**\n A reference to the child route's `RouteInfo`.\n This can be used to traverse downward to the\n leafmost `RouteInfo`.\n @property {RouteInfo|null} child\n @public\n */\n\n /**\n Allows you to traverse through the linked list\n of `RouteInfo`s from the topmost to leafmost.\n Returns the first `RouteInfo` in the linked list\n for which the callback returns true.\n \n This method is similar to the `find()` method\n defined in ECMAScript 2015.\n \n The callback method you provide should have the\n following signature (all parameters are optional):\n \n ```javascript\n function(item, index, array);\n ```\n \n - `item` is the current item in the iteration.\n - `index` is the current index in the iteration.\n - `array` is the array itself.\n \n It should return the `true` to include the item in\n the results, `false` otherwise.\n \n Note that in addition to a callback, you can also\n pass an optional target object that will be set as\n `this` on the context.\n \n @method find\n @param {Function} callback the callback to execute\n @param {Object} [target*] optional target to use\n @returns {Object} Found item or undefined\n @public\n */\n});","enifed(\"@ember/-internals/routing/lib/system/route\", [\"exports\", \"@ember/-internals/metal\", \"@ember/-internals/owner\", \"@ember/-internals/runtime\", \"@ember/canary-features\", \"@ember/debug\", \"@ember/deprecated-features\", \"@ember/polyfills\", \"@ember/runloop\", \"@ember/string\", \"@glimmer/env\", \"router_js\", \"@ember/-internals/routing/lib/utils\", \"@ember/-internals/routing/lib/system/generate_controller\"], function (_exports, _metal, _owner, _runtime, _canaryFeatures, _debug, _deprecatedFeatures, _polyfills, _runloop, _string, _env, _router_js, _utils, _generate_controller) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.defaultSerialize = defaultSerialize;\n _exports.hasDefaultSerialize = hasDefaultSerialize;\n _exports.default = _exports.ROUTER_EVENT_DEPRECATIONS = void 0;\n\n function defaultSerialize(model, params) {\n if (params.length < 1 || !model) {\n return;\n }\n\n let object = {};\n\n if (params.length === 1) {\n let [name] = params;\n\n if (name in model) {\n object[name] = (0, _metal.get)(model, name);\n } else if (/_id$/.test(name)) {\n object[name] = (0, _metal.get)(model, 'id');\n }\n } else {\n object = (0, _metal.getProperties)(model, params);\n }\n\n return object;\n }\n\n function hasDefaultSerialize(route) {\n return route.serialize === defaultSerialize;\n }\n /**\n @module @ember/routing\n */\n\n /**\n The `Route` class is used to define individual routes. Refer to\n the [routing guide](https://guides.emberjs.com/release/routing/) for documentation.\n \n @class Route\n @extends EmberObject\n @uses ActionHandler\n @uses Evented\n @since 1.0.0\n @public\n */\n\n\n class Route extends _runtime.Object {\n constructor() {\n super(...arguments);\n this.context = {};\n }\n /**\n The name of the route, dot-delimited.\n For example, a route found at `app/routes/posts/post.js` will have\n a `routeName` of `posts.post`.\n @property routeName\n @for Route\n @type String\n @since 1.0.0\n @public\n */\n\n /**\n The name of the route, dot-delimited, including the engine prefix\n if applicable.\n For example, a route found at `addon/routes/posts/post.js` within an\n engine named `admin` will have a `fullRouteName` of `admin.posts.post`.\n @property fullRouteName\n @for Route\n @type String\n @since 2.10.0\n @public\n */\n\n /**\n Sets the name for this route, including a fully resolved name for routes\n inside engines.\n @private\n @method _setRouteName\n @param {String} name\n */\n\n\n _setRouteName(name) {\n this.routeName = name;\n this.fullRouteName = getEngineRouteName((0, _owner.getOwner)(this), name);\n }\n /**\n @private\n @method _stashNames\n */\n\n\n _stashNames(routeInfo, dynamicParent) {\n if (this._names) {\n return;\n }\n\n let names = this._names = routeInfo['_names'];\n\n if (!names.length) {\n routeInfo = dynamicParent;\n names = routeInfo && routeInfo['_names'] || [];\n }\n\n let qps = (0, _metal.get)(this, '_qp.qps');\n let namePaths = new Array(names.length);\n\n for (let a = 0; a < names.length; ++a) {\n namePaths[a] = routeInfo.name + \".\" + names[a];\n }\n\n for (let i = 0; i < qps.length; ++i) {\n let qp = qps[i];\n\n if (qp.scope === 'model') {\n qp.parts = namePaths;\n }\n }\n }\n /**\n @private\n @property _activeQPChanged\n */\n\n\n _activeQPChanged(qp, value) {\n this._router._activeQPChanged(qp.scopedPropertyName, value);\n }\n /**\n @private\n @method _updatingQPChanged\n */\n\n\n _updatingQPChanged(qp) {\n this._router._updatingQPChanged(qp.urlKey);\n }\n /**\n Returns a hash containing the parameters of an ancestor route.\n You may notice that `this.paramsFor` sometimes works when referring to a\n child route, but this behavior should not be relied upon as only ancestor\n routes are certain to be loaded in time.\n Example\n ```app/router.js\n // ...\n Router.map(function() {\n this.route('member', { path: ':name' }, function() {\n this.route('interest', { path: ':interest' });\n });\n });\n ```\n ```app/routes/member.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n queryParams: {\n memberQp: { refreshModel: true }\n }\n });\n ```\n ```app/routes/member/interest.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n queryParams: {\n interestQp: { refreshModel: true }\n },\n model() {\n return this.paramsFor('member');\n }\n });\n ```\n If we visit `/turing/maths?memberQp=member&interestQp=interest` the model for\n the `member.interest` route is a hash with:\n * `name`: `turing`\n * `memberQp`: `member`\n @method paramsFor\n @param {String} name\n @return {Object} hash containing the parameters of the route `name`\n @since 1.4.0\n @public\n */\n\n\n paramsFor(name) {\n let route = (0, _owner.getOwner)(this).lookup(\"route:\" + name);\n\n if (!route) {\n return {};\n }\n\n let transition = this._router._routerMicrolib.activeTransition;\n let state = transition ? transition[_router_js.STATE_SYMBOL] : this._router._routerMicrolib.state;\n let fullName = route.fullRouteName;\n let params = (0, _polyfills.assign)({}, state.params[fullName]);\n let queryParams = getQueryParamsFor(route, state);\n return Object.keys(queryParams).reduce((params, key) => {\n (0, _debug.assert)(\"The route '\" + this.routeName + \"' has both a dynamic segment and query param with name '\" + key + \"'. Please rename one to avoid collisions.\", !params[key]);\n params[key] = queryParams[key];\n return params;\n }, params);\n }\n /**\n Serializes the query parameter key\n @method serializeQueryParamKey\n @param {String} controllerPropertyName\n @private\n */\n\n\n serializeQueryParamKey(controllerPropertyName) {\n return controllerPropertyName;\n }\n /**\n Serializes value of the query parameter based on defaultValueType\n @method serializeQueryParam\n @param {Object} value\n @param {String} urlKey\n @param {String} defaultValueType\n @private\n */\n\n\n serializeQueryParam(value, _urlKey, defaultValueType) {\n // urlKey isn't used here, but anyone overriding\n // can use it to provide serialization specific\n // to a certain query param.\n return this._router._serializeQueryParam(value, defaultValueType);\n }\n /**\n Deserializes value of the query parameter based on defaultValueType\n @method deserializeQueryParam\n @param {Object} value\n @param {String} urlKey\n @param {String} defaultValueType\n @private\n */\n\n\n deserializeQueryParam(value, _urlKey, defaultValueType) {\n // urlKey isn't used here, but anyone overriding\n // can use it to provide deserialization specific\n // to a certain query param.\n return this._router._deserializeQueryParam(value, defaultValueType);\n }\n /**\n @private\n @property _optionsForQueryParam\n */\n\n\n _optionsForQueryParam(qp) {\n return (0, _metal.get)(this, \"queryParams.\" + qp.urlKey) || (0, _metal.get)(this, \"queryParams.\" + qp.prop) || {};\n }\n /**\n A hook you can use to reset controller values either when the model\n changes or the route is exiting.\n ```app/routes/articles.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n resetController(controller, isExiting, transition) {\n if (isExiting && transition.targetName !== 'error') {\n controller.set('page', 1);\n }\n }\n });\n ```\n @method resetController\n @param {Controller} controller instance\n @param {Boolean} isExiting\n @param {Object} transition\n @since 1.7.0\n @public\n */\n\n\n resetController(_controller, _isExiting, _transition) {\n return this;\n }\n /**\n @private\n @method exit\n */\n\n\n exit() {\n this.deactivate();\n this.trigger('deactivate');\n this.teardownViews();\n }\n /**\n @private\n @method _internalReset\n @since 3.6.0\n */\n\n\n _internalReset(isExiting, transition) {\n let controller = this.controller;\n controller._qpDelegate = (0, _metal.get)(this, '_qp.states.inactive');\n this.resetController(controller, isExiting, transition);\n }\n /**\n @private\n @method enter\n */\n\n\n enter() {\n this.connections = [];\n this.activate();\n this.trigger('activate');\n }\n /**\n The `willTransition` action is fired at the beginning of any\n attempted transition with a `Transition` object as the sole\n argument. This action can be used for aborting, redirecting,\n or decorating the transition from the currently active routes.\n A good example is preventing navigation when a form is\n half-filled out:\n ```app/routes/contact-form.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData')) {\n this.controller.displayNavigationConfirm();\n transition.abort();\n }\n }\n }\n });\n ```\n You can also redirect elsewhere by calling\n `this.transitionTo('elsewhere')` from within `willTransition`.\n Note that `willTransition` will not be fired for the\n redirecting `transitionTo`, since `willTransition` doesn't\n fire when there is already a transition underway. If you want\n subsequent `willTransition` actions to fire for the redirecting\n transition, you must first explicitly call\n `transition.abort()`.\n To allow the `willTransition` event to continue bubbling to the parent\n route, use `return true;`. When the `willTransition` method has a\n return value of `true` then the parent route's `willTransition` method\n will be fired, enabling \"bubbling\" behavior for the event.\n @event willTransition\n @param {Transition} transition\n @since 1.0.0\n @public\n */\n\n /**\n The `didTransition` action is fired after a transition has\n successfully been completed. This occurs after the normal model\n hooks (`beforeModel`, `model`, `afterModel`, `setupController`)\n have resolved. The `didTransition` action has no arguments,\n however, it can be useful for tracking page views or resetting\n state on the controller.\n ```app/routes/login.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n didTransition() {\n this.controller.get('errors.base').clear();\n return true; // Bubble the didTransition event\n }\n }\n });\n ```\n @event didTransition\n @since 1.2.0\n @public\n */\n\n /**\n The `loading` action is fired on the route when a route's `model`\n hook returns a promise that is not already resolved. The current\n `Transition` object is the first parameter and the route that\n triggered the loading event is the second parameter.\n ```app/routes/application.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n loading(transition, route) {\n let controller = this.controllerFor('foo');\n controller.set('currentlyLoading', true);\n transition.finally(function() {\n controller.set('currentlyLoading', false);\n });\n }\n }\n });\n ```\n @event loading\n @param {Transition} transition\n @param {Route} route The route that triggered the loading event\n @since 1.2.0\n @public\n */\n\n /**\n When attempting to transition into a route, any of the hooks\n may return a promise that rejects, at which point an `error`\n action will be fired on the partially-entered routes, allowing\n for per-route error handling logic, or shared error handling\n logic defined on a parent route.\n Here is an example of an error handler that will be invoked\n for rejected promises from the various hooks on the route,\n as well as any unhandled errors from child routes:\n ```app/routes/admin.js\n import { reject } from 'rsvp';\n import Route from '@ember/routing/route';\n export default Route.extend({\n beforeModel() {\n return reject('bad things!');\n },\n actions: {\n error(error, transition) {\n // Assuming we got here due to the error in `beforeModel`,\n // we can expect that error === \"bad things!\",\n // but a promise model rejecting would also\n // call this hook, as would any errors encountered\n // in `afterModel`.\n // The `error` hook is also provided the failed\n // `transition`, which can be stored and later\n // `.retry()`d if desired.\n this.transitionTo('login');\n }\n }\n });\n ```\n `error` actions that bubble up all the way to `ApplicationRoute`\n will fire a default error handler that logs the error. You can\n specify your own global default error handler by overriding the\n `error` handler on `ApplicationRoute`:\n ```app/routes/application.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n error(error, transition) {\n this.controllerFor('banner').displayError(error.message);\n }\n }\n });\n ```\n @event error\n @param {Error} error\n @param {Transition} transition\n @since 1.0.0\n @public\n */\n\n /**\n This event is triggered when the router enters the route. It is\n not executed when the model for the route changes.\n ```app/routes/application.js\n import { on } from '@ember/object/evented';\n import Route from '@ember/routing/route';\n export default Route.extend({\n collectAnalytics: on('activate', function(){\n collectAnalytics();\n })\n });\n ```\n @event activate\n @since 1.9.0\n @public\n */\n\n /**\n This event is triggered when the router completely exits this\n route. It is not executed when the model for the route changes.\n ```app/routes/index.js\n import { on } from '@ember/object/evented';\n import Route from '@ember/routing/route';\n export default Route.extend({\n trackPageLeaveAnalytics: on('deactivate', function(){\n trackPageLeaveAnalytics();\n })\n });\n ```\n @event deactivate\n @since 1.9.0\n @public\n */\n\n /**\n This hook is executed when the router completely exits this route. It is\n not executed when the model for the route changes.\n @method deactivate\n @since 1.0.0\n @public\n */\n\n\n deactivate() {}\n /**\n This hook is executed when the router enters the route. It is not executed\n when the model for the route changes.\n @method activate\n @since 1.0.0\n @public\n */\n\n\n activate() {}\n /**\n Transition the application into another route. The route may\n be either a single route or route path:\n ```javascript\n this.transitionTo('blogPosts');\n this.transitionTo('blogPosts.recentEntries');\n ```\n Optionally supply a model for the route in question. The model\n will be serialized into the URL using the `serialize` hook of\n the route:\n ```javascript\n this.transitionTo('blogPost', aPost);\n ```\n If a literal is passed (such as a number or a string), it will\n be treated as an identifier instead. In this case, the `model`\n hook of the route will be triggered:\n ```javascript\n this.transitionTo('blogPost', 1);\n ```\n Multiple models will be applied last to first recursively up the\n route tree.\n ```app/routes.js\n // ...\n Router.map(function() {\n this.route('blogPost', { path:':blogPostId' }, function() {\n this.route('blogComment', { path: ':blogCommentId' });\n });\n });\n export default Router;\n ```\n ```javascript\n this.transitionTo('blogComment', aPost, aComment);\n this.transitionTo('blogComment', 1, 13);\n ```\n It is also possible to pass a URL (a string that starts with a\n `/`).\n ```javascript\n this.transitionTo('/');\n this.transitionTo('/blog/post/1/comment/13');\n this.transitionTo('/blog/posts?sort=title');\n ```\n An options hash with a `queryParams` property may be provided as\n the final argument to add query parameters to the destination URL.\n ```javascript\n this.transitionTo('blogPost', 1, {\n queryParams: { showComments: 'true' }\n });\n // if you just want to transition the query parameters without changing the route\n this.transitionTo({ queryParams: { sort: 'date' } });\n ```\n See also [replaceWith](#method_replaceWith).\n Simple Transition Example\n ```app/routes.js\n // ...\n Router.map(function() {\n this.route('index');\n this.route('secret');\n this.route('fourOhFour', { path: '*:' });\n });\n export default Router;\n ```\n ```app/routes/index.js\n import Route from '@ember/routing/route';\n export Route.extend({\n actions: {\n moveToSecret(context) {\n if (authorized()) {\n this.transitionTo('secret', context);\n } else {\n this.transitionTo('fourOhFour');\n }\n }\n }\n });\n ```\n Transition to a nested route\n ```app/router.js\n // ...\n Router.map(function() {\n this.route('articles', { path: '/articles' }, function() {\n this.route('new');\n });\n });\n export default Router;\n ```\n ```app/routes/index.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n transitionToNewArticle() {\n this.transitionTo('articles.new');\n }\n }\n });\n ```\n Multiple Models Example\n ```app/router.js\n // ...\n Router.map(function() {\n this.route('index');\n this.route('breakfast', { path: ':breakfastId' }, function() {\n this.route('cereal', { path: ':cerealId' });\n });\n });\n export default Router;\n ```\n ```app/routes/index.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n moveToChocolateCereal() {\n let cereal = { cerealId: 'ChocolateYumminess' };\n let breakfast = { breakfastId: 'CerealAndMilk' };\n this.transitionTo('breakfast.cereal', breakfast, cereal);\n }\n }\n });\n ```\n Nested Route with Query String Example\n ```app/routes.js\n // ...\n Router.map(function() {\n this.route('fruits', function() {\n this.route('apples');\n });\n });\n export default Router;\n ```\n ```app/routes/index.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n transitionToApples() {\n this.transitionTo('fruits.apples', { queryParams: { color: 'red' } });\n }\n }\n });\n ```\n @method transitionTo\n @param {String} name the name of the route or a URL\n @param {...Object} models the model(s) or identifier(s) to be used while\n transitioning to the route.\n @param {Object} [options] optional hash with a queryParams property\n containing a mapping of query parameters\n @return {Transition} the transition object associated with this\n attempted transition\n @since 1.0.0\n @public\n */\n\n\n transitionTo(...args) {\n // eslint-disable-line no-unused-vars\n return this._router.transitionTo(...(0, _utils.prefixRouteNameArg)(this, args));\n }\n /**\n Perform a synchronous transition into another route without attempting\n to resolve promises, update the URL, or abort any currently active\n asynchronous transitions (i.e. regular transitions caused by\n `transitionTo` or URL changes).\n This method is handy for performing intermediate transitions on the\n way to a final destination route, and is called internally by the\n default implementations of the `error` and `loading` handlers.\n @method intermediateTransitionTo\n @param {String} name the name of the route\n @param {...Object} models the model(s) to be used while transitioning\n to the route.\n @since 1.2.0\n @public\n */\n\n\n intermediateTransitionTo(...args) {\n let [name, ...preparedArgs] = (0, _utils.prefixRouteNameArg)(this, args);\n\n this._router.intermediateTransitionTo(name, ...preparedArgs);\n }\n /**\n Refresh the model on this route and any child routes, firing the\n `beforeModel`, `model`, and `afterModel` hooks in a similar fashion\n to how routes are entered when transitioning in from other route.\n The current route params (e.g. `article_id`) will be passed in\n to the respective model hooks, and if a different model is returned,\n `setupController` and associated route hooks will re-fire as well.\n An example usage of this method is re-querying the server for the\n latest information using the same parameters as when the route\n was first entered.\n Note that this will cause `model` hooks to fire even on routes\n that were provided a model object when the route was initially\n entered.\n @method refresh\n @return {Transition} the transition object associated with this\n attempted transition\n @since 1.4.0\n @public\n */\n\n\n refresh() {\n return this._router._routerMicrolib.refresh(this);\n }\n /**\n Transition into another route while replacing the current URL, if possible.\n This will replace the current history entry instead of adding a new one.\n Beside that, it is identical to `transitionTo` in all other respects. See\n 'transitionTo' for additional information regarding multiple models.\n Example\n ```app/router.js\n // ...\n Router.map(function() {\n this.route('index');\n this.route('secret');\n });\n export default Router;\n ```\n ```app/routes/secret.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n afterModel() {\n if (!authorized()){\n this.replaceWith('index');\n }\n }\n });\n ```\n @method replaceWith\n @param {String} name the name of the route or a URL\n @param {...Object} models the model(s) or identifier(s) to be used while\n transitioning to the route.\n @param {Object} [options] optional hash with a queryParams property\n containing a mapping of query parameters\n @return {Transition} the transition object associated with this\n attempted transition\n @since 1.0.0\n @public\n */\n\n\n replaceWith(...args) {\n return this._router.replaceWith(...(0, _utils.prefixRouteNameArg)(this, args));\n }\n /**\n This hook is the entry point for router.js\n @private\n @method setup\n */\n\n\n setup(context, transition) {\n let controllerName = this.controllerName || this.routeName;\n let definedController = this.controllerFor(controllerName, true);\n let controller;\n\n if (definedController) {\n controller = definedController;\n } else {\n controller = this.generateController(controllerName);\n } // Assign the route's controller so that it can more easily be\n // referenced in action handlers. Side effects. Side effects everywhere.\n\n\n if (!this.controller) {\n let qp = (0, _metal.get)(this, '_qp');\n let propNames = qp !== undefined ? (0, _metal.get)(qp, 'propertyNames') : [];\n addQueryParamsObservers(controller, propNames);\n this.controller = controller;\n }\n\n let queryParams = (0, _metal.get)(this, '_qp');\n let states = queryParams.states;\n controller._qpDelegate = states.allowOverrides;\n\n if (transition) {\n // Update the model dep values used to calculate cache keys.\n (0, _utils.stashParamNames)(this._router, transition[_router_js.STATE_SYMBOL].routeInfos);\n let cache = this._bucketCache;\n let params = transition[_router_js.PARAMS_SYMBOL];\n let allParams = queryParams.propertyNames;\n allParams.forEach(prop => {\n let aQp = queryParams.map[prop];\n aQp.values = params;\n let cacheKey = (0, _utils.calculateCacheKey)(aQp.route.fullRouteName, aQp.parts, aQp.values);\n let value = cache.lookup(cacheKey, prop, aQp.undecoratedDefaultValue);\n (0, _metal.set)(controller, prop, value);\n });\n let qpValues = getQueryParamsFor(this, transition[_router_js.STATE_SYMBOL]);\n (0, _metal.setProperties)(controller, qpValues);\n }\n\n this.setupController(controller, context, transition);\n\n if (this._environment.options.shouldRender) {\n this.renderTemplate(controller, context);\n }\n }\n /*\n Called when a query parameter for this route changes, regardless of whether the route\n is currently part of the active route hierarchy. This will update the query parameter's\n value in the cache so if this route becomes active, the cache value has been updated.\n */\n\n\n _qpChanged(prop, value, qp) {\n if (!qp) {\n return;\n } // Update model-dep cache\n\n\n let cache = this._bucketCache;\n let cacheKey = (0, _utils.calculateCacheKey)(qp.route.fullRouteName, qp.parts, qp.values);\n cache.stash(cacheKey, prop, value);\n }\n /**\n This hook is the first of the route entry validation hooks\n called when an attempt is made to transition into a route\n or one of its children. It is called before `model` and\n `afterModel`, and is appropriate for cases when:\n 1) A decision can be made to redirect elsewhere without\n needing to resolve the model first.\n 2) Any async operations need to occur first before the\n model is attempted to be resolved.\n This hook is provided the current `transition` attempt\n as a parameter, which can be used to `.abort()` the transition,\n save it for a later `.retry()`, or retrieve values set\n on it from a previous hook. You can also just call\n `this.transitionTo` to another route to implicitly\n abort the `transition`.\n You can return a promise from this hook to pause the\n transition until the promise resolves (or rejects). This could\n be useful, for instance, for retrieving async code from\n the server that is required to enter a route.\n @method beforeModel\n @param {Transition} transition\n @return {any | Promise} if the value returned from this hook is\n a promise, the transition will pause until the transition\n resolves. Otherwise, non-promise return values are not\n utilized in any way.\n @since 1.0.0\n @public\n */\n\n\n beforeModel() {}\n /**\n This hook is called after this route's model has resolved.\n It follows identical async/promise semantics to `beforeModel`\n but is provided the route's resolved model in addition to\n the `transition`, and is therefore suited to performing\n logic that can only take place after the model has already\n resolved.\n ```app/routes/posts.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n afterModel(posts, transition) {\n if (posts.get('length') === 1) {\n this.transitionTo('post.show', posts.get('firstObject'));\n }\n }\n });\n ```\n Refer to documentation for `beforeModel` for a description\n of transition-pausing semantics when a promise is returned\n from this hook.\n @method afterModel\n @param {Object} resolvedModel the value returned from `model`,\n or its resolved value if it was a promise\n @param {Transition} transition\n @return {any | Promise} if the value returned from this hook is\n a promise, the transition will pause until the transition\n resolves. Otherwise, non-promise return values are not\n utilized in any way.\n @since 1.0.0\n @public\n */\n\n\n afterModel() {}\n /**\n A hook you can implement to optionally redirect to another route.\n If you call `this.transitionTo` from inside of this hook, this route\n will not be entered in favor of the other hook.\n `redirect` and `afterModel` behave very similarly and are\n called almost at the same time, but they have an important\n distinction in the case that, from one of these hooks, a\n redirect into a child route of this route occurs: redirects\n from `afterModel` essentially invalidate the current attempt\n to enter this route, and will result in this route's `beforeModel`,\n `model`, and `afterModel` hooks being fired again within\n the new, redirecting transition. Redirects that occur within\n the `redirect` hook, on the other hand, will _not_ cause\n these hooks to be fired again the second time around; in\n other words, by the time the `redirect` hook has been called,\n both the resolved model and attempted entry into this route\n are considered to be fully validated.\n @method redirect\n @param {Object} model the model for this route\n @param {Transition} transition the transition object associated with the current transition\n @since 1.0.0\n @public\n */\n\n\n redirect() {}\n /**\n Called when the context is changed by router.js.\n @private\n @method contextDidChange\n */\n\n\n contextDidChange() {\n this.currentModel = this.context;\n }\n /**\n A hook you can implement to convert the URL into the model for\n this route.\n ```app/router.js\n // ...\n Router.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n });\n export default Router;\n ```\n The model for the `post` route is `store.findRecord('post', params.post_id)`.\n By default, if your route has a dynamic segment ending in `_id`:\n * The model class is determined from the segment (`post_id`'s\n class is `App.Post`)\n * The find method is called on the model class with the value of\n the dynamic segment.\n Note that for routes with dynamic segments, this hook is not always\n executed. If the route is entered through a transition (e.g. when\n using the `link-to` Handlebars helper or the `transitionTo` method\n of routes), and a model context is already provided this hook\n is not called.\n A model context does not include a primitive string or number,\n which does cause the model hook to be called.\n Routes without dynamic segments will always execute the model hook.\n ```javascript\n // no dynamic segment, model hook always called\n this.transitionTo('posts');\n // model passed in, so model hook not called\n thePost = store.findRecord('post', 1);\n this.transitionTo('post', thePost);\n // integer passed in, model hook is called\n this.transitionTo('post', 1);\n // model id passed in, model hook is called\n // useful for forcing the hook to execute\n thePost = store.findRecord('post', 1);\n this.transitionTo('post', thePost.id);\n ```\n This hook follows the asynchronous/promise semantics\n described in the documentation for `beforeModel`. In particular,\n if a promise returned from `model` fails, the error will be\n handled by the `error` hook on `Route`.\n Example\n ```app/routes/post.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n model(params) {\n return this.store.findRecord('post', params.post_id);\n }\n });\n ```\n @method model\n @param {Object} params the parameters extracted from the URL\n @param {Transition} transition\n @return {any | Promise} the model for this route. If\n a promise is returned, the transition will pause until\n the promise resolves, and the resolved value of the promise\n will be used as the model for this route.\n @since 1.0.0\n @public\n */\n\n\n model(params, transition) {\n let name, sawParams, value;\n let queryParams = (0, _metal.get)(this, '_qp.map');\n\n for (let prop in params) {\n if (prop === 'queryParams' || queryParams && prop in queryParams) {\n continue;\n }\n\n let match = prop.match(/^(.*)_id$/);\n\n if (match !== null) {\n name = match[1];\n value = params[prop];\n }\n\n sawParams = true;\n }\n\n if (!name) {\n if (sawParams) {\n return Object.assign({}, params);\n } else {\n if (transition.resolveIndex < 1) {\n return;\n }\n\n return transition[_router_js.STATE_SYMBOL].routeInfos[transition.resolveIndex - 1].context;\n }\n }\n\n return this.findModel(name, value);\n }\n /**\n @private\n @method deserialize\n @param {Object} params the parameters extracted from the URL\n @param {Transition} transition\n @return {any | Promise} the model for this route.\n Router.js hook.\n */\n\n\n deserialize(_params, transition) {\n return this.model(this._paramsFor(this.routeName, _params), transition);\n }\n /**\n @method findModel\n @param {String} type the model type\n @param {Object} value the value passed to find\n @private\n */\n\n\n findModel(...args) {\n return (0, _metal.get)(this, 'store').find(...args);\n }\n /**\n A hook you can use to setup the controller for the current route.\n This method is called with the controller for the current route and the\n model supplied by the `model` hook.\n By default, the `setupController` hook sets the `model` property of\n the controller to the specified `model` when it is not `undefined`.\n If you implement the `setupController` hook in your Route, it will\n prevent this default behavior. If you want to preserve that behavior\n when implementing your `setupController` function, make sure to call\n `_super`:\n ```app/routes/photos.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n model() {\n return this.store.findAll('photo');\n },\n setupController(controller, model) {\n // Call _super for default behavior\n this._super(controller, model);\n // Implement your custom setup after\n this.controllerFor('application').set('showingPhotos', true);\n }\n });\n ```\n The provided controller will be one resolved based on the name\n of this route.\n If no explicit controller is defined, Ember will automatically create one.\n As an example, consider the router:\n ```app/router.js\n // ...\n Router.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n });\n export default Router;\n ```\n For the `post` route, a controller named `App.PostController` would\n be used if it is defined. If it is not defined, a basic `Controller`\n instance would be used.\n Example\n ```app/routes/post.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n setupController(controller, model) {\n controller.set('model', model);\n }\n });\n ```\n @method setupController\n @param {Controller} controller instance\n @param {Object} model\n @since 1.0.0\n @public\n */\n\n\n setupController(controller, context, _transition) {\n // eslint-disable-line no-unused-vars\n if (controller && context !== undefined) {\n (0, _metal.set)(controller, 'model', context);\n }\n }\n /**\n Returns the controller of the current route, or a parent (or any ancestor)\n route in a route hierarchy.\n The controller instance must already have been created, either through entering the\n associated route or using `generateController`.\n ```app/routes/post.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n setupController(controller, post) {\n this._super(controller, post);\n this.controllerFor('posts').set('currentPost', post);\n }\n });\n ```\n @method controllerFor\n @param {String} name the name of the route or controller\n @return {Controller}\n @since 1.0.0\n @public\n */\n\n\n controllerFor(name, _skipAssert) {\n let owner = (0, _owner.getOwner)(this);\n let route = owner.lookup(\"route:\" + name);\n let controller;\n\n if (route && route.controllerName) {\n name = route.controllerName;\n }\n\n controller = owner.lookup(\"controller:\" + name); // NOTE: We're specifically checking that skipAssert is true, because according\n // to the old API the second parameter was model. We do not want people who\n // passed a model to skip the assertion.\n\n (0, _debug.assert)(\"The controller named '\" + name + \"' could not be found. Make sure that this route exists and has already been entered at least once. If you are accessing a controller not associated with a route, make sure the controller class is explicitly defined.\", Boolean(controller) || _skipAssert === true);\n return controller;\n }\n /**\n Generates a controller for a route.\n Example\n ```app/routes/post.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n setupController(controller, post) {\n this._super(controller, post);\n this.generateController('posts');\n }\n });\n ```\n @method generateController\n @param {String} name the name of the controller\n @private\n */\n\n\n generateController(name) {\n let owner = (0, _owner.getOwner)(this);\n return (0, _generate_controller.default)(owner, name);\n }\n /**\n Returns the resolved model of a parent (or any ancestor) route\n in a route hierarchy. During a transition, all routes\n must resolve a model object, and if a route\n needs access to a parent route's model in order to\n resolve a model (or just reuse the model from a parent),\n it can call `this.modelFor(theNameOfParentRoute)` to\n retrieve it. If the ancestor route's model was a promise,\n its resolved result is returned.\n Example\n ```app/router.js\n // ...\n Router.map(function() {\n this.route('post', { path: '/posts/:post_id' }, function() {\n this.route('comments');\n });\n });\n export default Router;\n ```\n ```app/routes/post/comments.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n model() {\n let post = this.modelFor('post');\n return post.get('comments');\n }\n });\n ```\n @method modelFor\n @param {String} name the name of the route\n @return {Object} the model object\n @since 1.0.0\n @public\n */\n\n\n modelFor(_name) {\n let name;\n let owner = (0, _owner.getOwner)(this);\n let transition = this._router && this._router._routerMicrolib ? this._router._routerMicrolib.activeTransition : undefined; // Only change the route name when there is an active transition.\n // Otherwise, use the passed in route name.\n\n if (owner.routable && transition !== undefined) {\n name = getEngineRouteName(owner, _name);\n } else {\n name = _name;\n }\n\n let route = owner.lookup(\"route:\" + name); // If we are mid-transition, we want to try and look up\n // resolved parent contexts on the current transitionEvent.\n\n if (transition !== undefined && transition !== null) {\n let modelLookupName = route && route.routeName || name;\n\n if (transition.resolvedModels.hasOwnProperty(modelLookupName)) {\n return transition.resolvedModels[modelLookupName];\n }\n }\n\n return route && route.currentModel;\n }\n /**\n A hook you can use to render the template for the current route.\n This method is called with the controller for the current route and the\n model supplied by the `model` hook. By default, it renders the route's\n template, configured with the controller for the route.\n This method can be overridden to set up and render additional or\n alternative templates.\n ```app/routes/posts.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n renderTemplate(controller, model) {\n let favController = this.controllerFor('favoritePost');\n // Render the `favoritePost` template into\n // the outlet `posts`, and display the `favoritePost`\n // controller.\n this.render('favoritePost', {\n outlet: 'posts',\n controller: favController\n });\n }\n });\n ```\n @method renderTemplate\n @param {Object} controller the route's controller\n @param {Object} model the route's model\n @since 1.0.0\n @public\n */\n\n\n renderTemplate(_controller, _model) {\n // eslint-disable-line no-unused-vars\n this.render();\n }\n /**\n `render` is used to render a template into a region of another template\n (indicated by an `{{outlet}}`). `render` is used both during the entry\n phase of routing (via the `renderTemplate` hook) and later in response to\n user interaction.\n For example, given the following minimal router and templates:\n ```app/router.js\n // ...\n Router.map(function() {\n this.route('photos');\n });\n export default Router;\n ```\n ```handlebars\n \n \n {{outlet \"anOutletName\"}}\n
\n ```\n ```handlebars\n \n Photos \n ```\n You can render `photos.hbs` into the `\"anOutletName\"` outlet of\n `application.hbs` by calling `render`:\n ```app/routes/post.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n renderTemplate() {\n this.render('photos', {\n into: 'application',\n outlet: 'anOutletName'\n })\n }\n });\n ```\n `render` additionally allows you to supply which `controller` and\n `model` objects should be loaded and associated with the rendered template.\n ```app/routes/posts.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n renderTemplate(controller, model){\n this.render('posts', { // the template to render, referenced by name\n into: 'application', // the template to render into, referenced by name\n outlet: 'anOutletName', // the outlet inside `options.into` to render into.\n controller: 'someControllerName', // the controller to use for this template, referenced by name\n model: model // the model to set on `options.controller`.\n })\n }\n });\n ```\n The string values provided for the template name, and controller\n will eventually pass through to the resolver for lookup. See\n Resolver for how these are mapped to JavaScript objects in your\n application. The template to render into needs to be related to either the\n current route or one of its ancestors.\n Not all options need to be passed to `render`. Default values will be used\n based on the name of the route specified in the router or the Route's\n `controllerName` and `templateName` properties.\n For example:\n ```app/router.js\n // ...\n Router.map(function() {\n this.route('index');\n this.route('post', { path: '/posts/:post_id' });\n });\n export default Router;\n ```\n ```app/routes/post.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n renderTemplate() {\n this.render(); // all defaults apply\n }\n });\n ```\n The name of the route, defined by the router, is `post`.\n The following equivalent default options will be applied when\n the Route calls `render`:\n ```javascript\n this.render('post', { // the template name associated with 'post' Route\n into: 'application', // the parent route to 'post' Route\n outlet: 'main', // {{outlet}} and {{outlet 'main'}} are synonymous,\n controller: 'post', // the controller associated with the 'post' Route\n })\n ```\n By default the controller's `model` will be the route's model, so it does not\n need to be passed unless you wish to change which model is being used.\n @method render\n @param {String} name the name of the template to render\n @param {Object} [options] the options\n @param {String} [options.into] the template to render into,\n referenced by name. Defaults to the parent template\n @param {String} [options.outlet] the outlet inside `options.into` to render into.\n Defaults to 'main'\n @param {String|Object} [options.controller] the controller to use for this template,\n referenced by name or as a controller instance. Defaults to the Route's paired controller\n @param {Object} [options.model] the model object to set on `options.controller`.\n Defaults to the return value of the Route's model hook\n @since 1.0.0\n @public\n */\n\n\n render(_name, options) {\n let name;\n let isDefaultRender = arguments.length === 0;\n\n if (!isDefaultRender) {\n if (typeof _name === 'object' && !options) {\n name = this.templateName || this.routeName;\n options = _name;\n } else {\n (0, _debug.assert)('The name in the given arguments is undefined or empty string', !(0, _metal.isEmpty)(_name));\n name = _name;\n }\n }\n\n let renderOptions = buildRenderOptions(this, isDefaultRender, name, options);\n this.connections.push(renderOptions);\n (0, _runloop.once)(this._router, '_setOutlets');\n }\n /**\n Disconnects a view that has been rendered into an outlet.\n You may pass any or all of the following options to `disconnectOutlet`:\n * `outlet`: the name of the outlet to clear (default: 'main')\n * `parentView`: the name of the view containing the outlet to clear\n (default: the view rendered by the parent route)\n Example:\n ```app/routes/application.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n showModal(evt) {\n this.render(evt.modalName, {\n outlet: 'modal',\n into: 'application'\n });\n },\n hideModal(evt) {\n this.disconnectOutlet({\n outlet: 'modal',\n parentView: 'application'\n });\n }\n }\n });\n ```\n Alternatively, you can pass the `outlet` name directly as a string.\n Example:\n ```app/routes/application.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n showModal(evt) {\n // ...\n },\n hideModal(evt) {\n this.disconnectOutlet('modal');\n }\n }\n });\n ```\n @method disconnectOutlet\n @param {Object|String} options the options hash or outlet name\n @since 1.0.0\n @public\n */\n\n\n disconnectOutlet(options) {\n let outletName;\n let parentView;\n\n if (options) {\n if (typeof options === 'string') {\n outletName = options;\n } else {\n outletName = options.outlet;\n parentView = options.parentView ? options.parentView.replace(/\\//g, '.') : undefined;\n (0, _debug.assert)('You passed undefined as the outlet name.', !('outlet' in options && options.outlet === undefined));\n }\n }\n\n outletName = outletName || 'main';\n\n this._disconnectOutlet(outletName, parentView);\n\n let routeInfos = this._router._routerMicrolib.currentRouteInfos;\n\n for (let i = 0; i < routeInfos.length; i++) {\n // This non-local state munging is sadly necessary to maintain\n // backward compatibility with our existing semantics, which allow\n // any route to disconnectOutlet things originally rendered by any\n // other route. This should all get cut in 2.0.\n routeInfos[i].route._disconnectOutlet(outletName, parentView);\n }\n }\n\n _disconnectOutlet(outletName, parentView) {\n let parent = parentRoute(this);\n\n if (parent && parentView === parent.routeName) {\n parentView = undefined;\n }\n\n for (let i = 0; i < this.connections.length; i++) {\n let connection = this.connections[i];\n\n if (connection.outlet === outletName && connection.into === parentView) {\n // This neuters the disconnected outlet such that it doesn't\n // render anything, but it leaves an entry in the outlet\n // hierarchy so that any existing other renders that target it\n // don't suddenly blow up. They will still stick themselves\n // into its outlets, which won't render anywhere. All of this\n // statefulness should get the machete in 2.0.\n this.connections[i] = {\n owner: connection.owner,\n into: connection.into,\n outlet: connection.outlet,\n name: connection.name,\n controller: undefined,\n template: undefined\n };\n (0, _runloop.once)(this._router, '_setOutlets');\n }\n }\n }\n\n willDestroy() {\n this.teardownViews();\n }\n /**\n @private\n @method teardownViews\n */\n\n\n teardownViews() {\n if (this.connections && this.connections.length > 0) {\n this.connections = [];\n (0, _runloop.once)(this._router, '_setOutlets');\n }\n }\n\n }\n\n Route.reopenClass({\n isRouteFactory: true\n });\n\n function parentRoute(route) {\n let routeInfo = routeInfoFor(route, route._router._routerMicrolib.state.routeInfos, -1);\n return routeInfo && routeInfo.route;\n }\n\n function routeInfoFor(route, routeInfos, offset = 0) {\n if (!routeInfos) {\n return;\n }\n\n let current;\n\n for (let i = 0; i < routeInfos.length; i++) {\n current = routeInfos[i].route;\n\n if (current === route) {\n return routeInfos[i + offset];\n }\n }\n\n return;\n }\n\n function buildRenderOptions(route, isDefaultRender, _name, options) {\n (0, _debug.assert)('You passed undefined as the outlet name.', isDefaultRender || !(options && 'outlet' in options && options.outlet === undefined));\n let owner = (0, _owner.getOwner)(route);\n let name, templateName, into, outlet, controller, model;\n\n if (options) {\n into = options.into && options.into.replace(/\\//g, '.');\n outlet = options.outlet;\n controller = options.controller;\n model = options.model;\n }\n\n outlet = outlet || 'main';\n\n if (isDefaultRender) {\n name = route.routeName;\n templateName = route.templateName || name;\n } else {\n name = _name.replace(/\\//g, '.');\n templateName = name;\n }\n\n if (!controller) {\n if (isDefaultRender) {\n controller = route.controllerName || owner.lookup(\"controller:\" + name);\n } else {\n controller = owner.lookup(\"controller:\" + name) || route.controllerName || route.routeName;\n }\n }\n\n if (typeof controller === 'string') {\n let controllerName = controller;\n controller = owner.lookup(\"controller:\" + controllerName);\n (0, _debug.assert)(\"You passed `controller: '\" + controllerName + \"'` into the `render` method, but no such controller could be found.\", isDefaultRender || Boolean(controller));\n }\n\n if (model) {\n controller.set('model', model);\n }\n\n let template = owner.lookup(\"template:\" + templateName);\n (0, _debug.assert)(\"Could not find \\\"\" + templateName + \"\\\" template, view, or component.\", isDefaultRender || Boolean(template));\n let parent;\n\n if (into && (parent = parentRoute(route)) && into === parent.routeName) {\n into = undefined;\n }\n\n let renderOptions = {\n owner,\n into,\n outlet,\n name,\n controller: controller,\n template: template || route._topLevelViewTemplate\n };\n\n if (_env.DEBUG) {\n let LOG_VIEW_LOOKUPS = (0, _metal.get)(route._router, 'namespace.LOG_VIEW_LOOKUPS');\n\n if (LOG_VIEW_LOOKUPS && !template) {\n (0, _debug.info)(\"Could not find \\\"\" + name + \"\\\" template. Nothing will be rendered\", {\n fullName: \"template:\" + name\n });\n }\n }\n\n return renderOptions;\n }\n\n function getFullQueryParams(router, state) {\n if (state['fullQueryParams']) {\n return state['fullQueryParams'];\n }\n\n state['fullQueryParams'] = {};\n (0, _polyfills.assign)(state['fullQueryParams'], state.queryParams);\n\n router._deserializeQueryParams(state.routeInfos, state['fullQueryParams']);\n\n return state['fullQueryParams'];\n }\n\n function getQueryParamsFor(route, state) {\n state['queryParamsFor'] = state['queryParamsFor'] || {};\n let name = route.fullRouteName;\n\n if (state['queryParamsFor'][name]) {\n return state['queryParamsFor'][name];\n }\n\n let fullQueryParams = getFullQueryParams(route._router, state);\n let params = state['queryParamsFor'][name] = {}; // Copy over all the query params for this route/controller into params hash.\n\n let qps = (0, _metal.get)(route, '_qp.qps');\n\n for (let i = 0; i < qps.length; ++i) {\n // Put deserialized qp on params hash.\n let qp = qps[i];\n let qpValueWasPassedIn = qp.prop in fullQueryParams;\n params[qp.prop] = qpValueWasPassedIn ? fullQueryParams[qp.prop] : copyDefaultValue(qp.defaultValue);\n }\n\n return params;\n }\n\n function copyDefaultValue(value) {\n if (Array.isArray(value)) {\n return (0, _runtime.A)(value.slice());\n }\n\n return value;\n }\n /*\n Merges all query parameters from a controller with those from\n a route, returning a new object and avoiding any mutations to\n the existing objects.\n */\n\n\n function mergeEachQueryParams(controllerQP, routeQP) {\n let qps = {};\n let keysAlreadyMergedOrSkippable = {\n defaultValue: true,\n type: true,\n scope: true,\n as: true\n }; // first loop over all controller qps, merging them with any matching route qps\n // into a new empty object to avoid mutating.\n\n for (let cqpName in controllerQP) {\n if (!controllerQP.hasOwnProperty(cqpName)) {\n continue;\n }\n\n let newControllerParameterConfiguration = {};\n (0, _polyfills.assign)(newControllerParameterConfiguration, controllerQP[cqpName], routeQP[cqpName]);\n qps[cqpName] = newControllerParameterConfiguration; // allows us to skip this QP when we check route QPs.\n\n keysAlreadyMergedOrSkippable[cqpName] = true;\n } // loop over all route qps, skipping those that were merged in the first pass\n // because they also appear in controller qps\n\n\n for (let rqpName in routeQP) {\n if (!routeQP.hasOwnProperty(rqpName) || keysAlreadyMergedOrSkippable[rqpName]) {\n continue;\n }\n\n let newRouteParameterConfiguration = {};\n (0, _polyfills.assign)(newRouteParameterConfiguration, routeQP[rqpName], controllerQP[rqpName]);\n qps[rqpName] = newRouteParameterConfiguration;\n }\n\n return qps;\n }\n\n function addQueryParamsObservers(controller, propNames) {\n propNames.forEach(prop => {\n controller.addObserver(prop + \".[]\", controller, controller._qpChanged);\n });\n }\n\n function getEngineRouteName(engine, routeName) {\n if (engine.routable) {\n let prefix = engine.mountPoint;\n\n if (routeName === 'application') {\n return prefix;\n } else {\n return prefix + \".\" + routeName;\n }\n }\n\n return routeName;\n }\n /**\n A hook you can implement to convert the route's model into parameters\n for the URL.\n \n ```app/router.js\n // ...\n \n Router.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n });\n \n ```\n \n ```app/routes/post.js\n import $ from 'jquery';\n import Route from '@ember/routing/route';\n \n export default Route.extend({\n model(params) {\n // the server returns `{ id: 12 }`\n return $.getJSON('/posts/' + params.post_id);\n },\n \n serialize(model) {\n // this will make the URL `/posts/12`\n return { post_id: model.id };\n }\n });\n ```\n \n The default `serialize` method will insert the model's `id` into the\n route's dynamic segment (in this case, `:post_id`) if the segment contains '_id'.\n If the route has multiple dynamic segments or does not contain '_id', `serialize`\n will return `getProperties(model, params)`\n \n This method is called when `transitionTo` is called with a context\n in order to populate the URL.\n \n @method serialize\n @param {Object} model the routes model\n @param {Array} params an Array of parameter names for the current\n route (in the example, `['post_id']`.\n @return {Object} the serialized parameters\n @since 1.0.0\n @public\n */\n\n\n Route.prototype.serialize = defaultSerialize;\n Route.reopen(_runtime.ActionHandler, _runtime.Evented, {\n mergedProperties: ['queryParams'],\n\n /**\n Configuration hash for this route's queryParams. The possible\n configuration options and their defaults are as follows\n (assuming a query param whose controller property is `page`):\n ```javascript\n queryParams: {\n page: {\n // By default, controller query param properties don't\n // cause a full transition when they are changed, but\n // rather only cause the URL to update. Setting\n // `refreshModel` to true will cause an \"in-place\"\n // transition to occur, whereby the model hooks for\n // this route (and any child routes) will re-fire, allowing\n // you to reload models (e.g., from the server) using the\n // updated query param values.\n refreshModel: false,\n // By default, changes to controller query param properties\n // cause the URL to update via `pushState`, which means an\n // item will be added to the browser's history, allowing\n // you to use the back button to restore the app to the\n // previous state before the query param property was changed.\n // Setting `replace` to true will use `replaceState` (or its\n // hash location equivalent), which causes no browser history\n // item to be added. This options name and default value are\n // the same as the `link-to` helper's `replace` option.\n replace: false,\n // By default, the query param URL key is the same name as\n // the controller property name. Use `as` to specify a\n // different URL key.\n as: 'page'\n }\n }\n ```\n @property queryParams\n @for Route\n @type Object\n @since 1.6.0\n @public\n */\n queryParams: {},\n\n /**\n The name of the template to use by default when rendering this routes\n template.\n ```app/routes/posts/list.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n templateName: 'posts/list'\n });\n ```\n ```app/routes/posts/index.js\n import PostsList from '../posts/list';\n export default PostsList.extend();\n ```\n ```app/routes/posts/archived.js\n import PostsList from '../posts/list';\n export default PostsList.extend();\n ```\n @property templateName\n @type String\n @default null\n @since 1.4.0\n @public\n */\n templateName: null,\n\n /**\n @private\n @property _names\n */\n _names: null,\n\n /**\n The name of the controller to associate with this route.\n By default, Ember will lookup a route's controller that matches the name\n of the route (i.e. `posts.new`). However,\n if you would like to define a specific controller to use, you can do so\n using this property.\n This is useful in many ways, as the controller specified will be:\n * passed to the `setupController` method.\n * used as the controller for the template being rendered by the route.\n * returned from a call to `controllerFor` for the route.\n @property controllerName\n @type String\n @default null\n @since 1.4.0\n @public\n */\n controllerName: null,\n\n /**\n Store property provides a hook for data persistence libraries to inject themselves.\n By default, this store property provides the exact same functionality previously\n in the model hook.\n Currently, the required interface is:\n `store.find(modelName, findArguments)`\n @property store\n @type {Object}\n @private\n */\n store: (0, _metal.computed)({\n get() {\n let owner = (0, _owner.getOwner)(this);\n let routeName = this.routeName;\n let namespace = (0, _metal.get)(this, '_router.namespace');\n return {\n find(name, value) {\n let modelClass = owner.factoryFor(\"model:\" + name);\n (0, _debug.assert)(\"You used the dynamic segment \" + name + \"_id in your route \" + routeName + \", but \" + namespace + \".\" + (0, _string.classify)(name) + \" did not exist and you did not override your route's `model` hook.\", Boolean(modelClass));\n\n if (!modelClass) {\n return;\n }\n\n modelClass = modelClass.class;\n (0, _debug.assert)((0, _string.classify)(name) + \" has no method `find`.\", typeof modelClass.find === 'function');\n return modelClass.find(value);\n }\n\n };\n },\n\n set(key, value) {\n (0, _metal.defineProperty)(this, key, null, value);\n }\n\n }),\n\n /**\n @private\n @property _qp\n */\n _qp: (0, _metal.computed)(function () {\n let combinedQueryParameterConfiguration;\n let controllerName = this.controllerName || this.routeName;\n let owner = (0, _owner.getOwner)(this);\n let controller = owner.lookup(\"controller:\" + controllerName);\n let queryParameterConfiguraton = (0, _metal.get)(this, 'queryParams');\n let hasRouterDefinedQueryParams = Object.keys(queryParameterConfiguraton).length > 0;\n\n if (controller) {\n // the developer has authored a controller class in their application for\n // this route find its query params and normalize their object shape them\n // merge in the query params for the route. As a mergedProperty,\n // Route#queryParams is always at least `{}`\n let controllerDefinedQueryParameterConfiguration = (0, _metal.get)(controller, 'queryParams') || {};\n let normalizedControllerQueryParameterConfiguration = (0, _utils.normalizeControllerQueryParams)(controllerDefinedQueryParameterConfiguration);\n combinedQueryParameterConfiguration = mergeEachQueryParams(normalizedControllerQueryParameterConfiguration, queryParameterConfiguraton);\n } else if (hasRouterDefinedQueryParams) {\n // the developer has not defined a controller but *has* supplied route query params.\n // Generate a class for them so we can later insert default values\n controller = (0, _generate_controller.default)(owner, controllerName);\n combinedQueryParameterConfiguration = queryParameterConfiguraton;\n }\n\n let qps = [];\n let map = {};\n let propertyNames = [];\n\n for (let propName in combinedQueryParameterConfiguration) {\n if (!combinedQueryParameterConfiguration.hasOwnProperty(propName)) {\n continue;\n } // to support the dubious feature of using unknownProperty\n // on queryParams configuration\n\n\n if (propName === 'unknownProperty' || propName === '_super') {\n // possible todo: issue deprecation warning?\n continue;\n }\n\n let desc = combinedQueryParameterConfiguration[propName];\n let scope = desc.scope || 'model';\n let parts;\n\n if (scope === 'controller') {\n parts = [];\n }\n\n let urlKey = desc.as || this.serializeQueryParamKey(propName);\n let defaultValue = (0, _metal.get)(controller, propName);\n defaultValue = copyDefaultValue(defaultValue);\n let type = desc.type || (0, _runtime.typeOf)(defaultValue);\n let defaultValueSerialized = this.serializeQueryParam(defaultValue, urlKey, type);\n let scopedPropertyName = controllerName + \":\" + propName;\n let qp = {\n undecoratedDefaultValue: (0, _metal.get)(controller, propName),\n defaultValue,\n serializedDefaultValue: defaultValueSerialized,\n serializedValue: defaultValueSerialized,\n type,\n urlKey,\n prop: propName,\n scopedPropertyName,\n controllerName,\n route: this,\n parts,\n values: null,\n scope\n };\n map[propName] = map[urlKey] = map[scopedPropertyName] = qp;\n qps.push(qp);\n propertyNames.push(propName);\n }\n\n return {\n qps,\n map,\n propertyNames,\n states: {\n /*\n Called when a query parameter changes in the URL, this route cares\n about that query parameter, but the route is not currently\n in the active route hierarchy.\n */\n inactive: (prop, value) => {\n let qp = map[prop];\n\n this._qpChanged(prop, value, qp);\n },\n\n /*\n Called when a query parameter changes in the URL, this route cares\n about that query parameter, and the route is currently\n in the active route hierarchy.\n */\n active: (prop, value) => {\n let qp = map[prop];\n\n this._qpChanged(prop, value, qp);\n\n return this._activeQPChanged(qp, value);\n },\n\n /*\n Called when a value of a query parameter this route handles changes in a controller\n and the route is currently in the active route hierarchy.\n */\n allowOverrides: (prop, value) => {\n let qp = map[prop];\n\n this._qpChanged(prop, value, qp);\n\n return this._updatingQPChanged(qp);\n }\n }\n };\n }),\n\n /**\n Sends an action to the router, which will delegate it to the currently\n active route hierarchy per the bubbling rules explained under `actions`.\n Example\n ```app/router.js\n // ...\n Router.map(function() {\n this.route('index');\n });\n export default Router;\n ```\n ```app/routes/application.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n track(arg) {\n console.log(arg, 'was clicked');\n }\n }\n });\n ```\n ```app/routes/index.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n trackIfDebug(arg) {\n if (debug) {\n this.send('track', arg);\n }\n }\n }\n });\n ```\n @method send\n @param {String} name the name of the action to trigger\n @param {...*} args\n @since 1.0.0\n @public\n */\n send(...args) {\n (0, _debug.assert)(\"Attempted to call .send() with the action '\" + args[0] + \"' on the destroyed route '\" + this.routeName + \"'.\", !this.isDestroying && !this.isDestroyed);\n\n if (this._router && this._router._routerMicrolib || !(0, _debug.isTesting)()) {\n this._router.send(...args);\n } else {\n let name = args.shift();\n let action = this.actions[name];\n\n if (action) {\n return action.apply(this, args);\n }\n }\n },\n\n /**\n The controller associated with this route.\n Example\n ```app/routes/form.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData') &&\n !confirm('Are you sure you want to abandon progress?')) {\n transition.abort();\n } else {\n // Bubble the `willTransition` action so that\n // parent routes can decide whether or not to abort.\n return true;\n }\n }\n }\n });\n ```\n @property controller\n @type Controller\n @since 1.6.0\n @public\n */\n actions: {\n /**\n This action is called when one or more query params have changed. Bubbles.\n @method queryParamsDidChange\n @param changed {Object} Keys are names of query params that have changed.\n @param totalPresent {Object} Keys are names of query params that are currently set.\n @param removed {Object} Keys are names of query params that have been removed.\n @returns {boolean}\n @private\n */\n queryParamsDidChange(changed, _totalPresent, removed) {\n let qpMap = (0, _metal.get)(this, '_qp').map;\n let totalChanged = Object.keys(changed).concat(Object.keys(removed));\n\n for (let i = 0; i < totalChanged.length; ++i) {\n let qp = qpMap[totalChanged[i]];\n\n if (qp && (0, _metal.get)(this._optionsForQueryParam(qp), 'refreshModel') && this._router.currentState) {\n this.refresh();\n break;\n }\n }\n\n return true;\n },\n\n finalizeQueryParamChange(params, finalParams, transition) {\n if (this.fullRouteName !== 'application') {\n return true;\n } // Transition object is absent for intermediate transitions.\n\n\n if (!transition) {\n return;\n }\n\n let routeInfos = transition[_router_js.STATE_SYMBOL].routeInfos;\n let router = this._router;\n\n let qpMeta = router._queryParamsFor(routeInfos);\n\n let changes = router._qpUpdates;\n let replaceUrl;\n (0, _utils.stashParamNames)(router, routeInfos);\n\n for (let i = 0; i < qpMeta.qps.length; ++i) {\n let qp = qpMeta.qps[i];\n let route = qp.route;\n let controller = route.controller;\n let presentKey = qp.urlKey in params && qp.urlKey; // Do a reverse lookup to see if the changed query\n // param URL key corresponds to a QP property on\n // this controller.\n\n let value, svalue;\n\n if (changes.has(qp.urlKey)) {\n // Value updated in/before setupController\n value = (0, _metal.get)(controller, qp.prop);\n svalue = route.serializeQueryParam(value, qp.urlKey, qp.type);\n } else {\n if (presentKey) {\n svalue = params[presentKey];\n\n if (svalue !== undefined) {\n value = route.deserializeQueryParam(svalue, qp.urlKey, qp.type);\n }\n } else {\n // No QP provided; use default value.\n svalue = qp.serializedDefaultValue;\n value = copyDefaultValue(qp.defaultValue);\n }\n }\n\n controller._qpDelegate = (0, _metal.get)(route, '_qp.states.inactive');\n let thisQueryParamChanged = svalue !== qp.serializedValue;\n\n if (thisQueryParamChanged) {\n if (transition.queryParamsOnly && replaceUrl !== false) {\n let options = route._optionsForQueryParam(qp);\n\n let replaceConfigValue = (0, _metal.get)(options, 'replace');\n\n if (replaceConfigValue) {\n replaceUrl = true;\n } else if (replaceConfigValue === false) {\n // Explicit pushState wins over any other replaceStates.\n replaceUrl = false;\n }\n }\n\n (0, _metal.set)(controller, qp.prop, value);\n } // Stash current serialized value of controller.\n\n\n qp.serializedValue = svalue;\n let thisQueryParamHasDefaultValue = qp.serializedDefaultValue === svalue;\n\n if (!thisQueryParamHasDefaultValue || transition._keepDefaultQueryParamValues) {\n finalParams.push({\n value: svalue,\n visible: true,\n key: presentKey || qp.urlKey\n });\n }\n }\n\n if (replaceUrl) {\n transition.method('replace');\n }\n\n qpMeta.qps.forEach(qp => {\n let routeQpMeta = (0, _metal.get)(qp.route, '_qp');\n let finalizedController = qp.route.controller;\n finalizedController._qpDelegate = (0, _metal.get)(routeQpMeta, 'states.active');\n });\n\n router._qpUpdates.clear();\n\n return;\n }\n\n }\n });\n let ROUTER_EVENT_DEPRECATIONS;\n _exports.ROUTER_EVENT_DEPRECATIONS = ROUTER_EVENT_DEPRECATIONS;\n\n if (_deprecatedFeatures.ROUTER_EVENTS) {\n _exports.ROUTER_EVENT_DEPRECATIONS = ROUTER_EVENT_DEPRECATIONS = {\n on(name) {\n this._super(...arguments);\n\n let hasDidTransition = name === 'didTransition';\n let hasWillTransition = name === 'willTransition';\n\n if (hasDidTransition) {\n (0, _debug.deprecate)('You attempted to listen to the \"didTransition\" event which is deprecated. Please inject the router service and listen to the \"routeDidChange\" event.', false, {\n id: 'deprecate-router-events',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_deprecate-router-events'\n });\n }\n\n if (hasWillTransition) {\n (0, _debug.deprecate)('You attempted to listen to the \"willTransition\" event which is deprecated. Please inject the router service and listen to the \"routeWillChange\" event.', false, {\n id: 'deprecate-router-events',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_deprecate-router-events'\n });\n }\n }\n\n };\n Route.reopen(ROUTER_EVENT_DEPRECATIONS, {\n _paramsFor(routeName, params) {\n let transition = this._router._routerMicrolib.activeTransition;\n\n if (transition !== undefined) {\n return this.paramsFor(routeName);\n }\n\n return params;\n }\n\n });\n }\n\n if (_canaryFeatures.EMBER_ROUTING_BUILD_ROUTEINFO_METADATA) {\n Route.reopen({\n /**\n Allows you to produce custom metadata for the route.\n The return value of this method will be attatched to\n its corresponding RouteInfoWithAttributes obejct.\n Example\n ```app/routes/posts/index.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n buildRouteInfoMetadata() {\n return { title: 'Posts Page' }\n }\n });\n ```\n ```app/routes/application.js\n import Route from '@ember/routing/route';\n import { inject as service } from '@ember/service';\n export default Route.extend({\n router: service('router'),\n init() {\n this._super(...arguments);\n this.router.on('routeDidChange', transition => {\n document.title = transition.to.metadata.title;\n // would update document's title to \"Posts Page\"\n });\n }\n });\n ```\n @return any\n @category EMBER_ROUTING_BUILD_ROUTEINFO_METADATA\n */\n buildRouteInfoMetadata() {}\n\n });\n }\n\n var _default = Route;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/routing/lib/system/router\", [\"exports\", \"@ember/-internals/metal\", \"@ember/-internals/owner\", \"@ember/-internals/runtime\", \"@ember/debug\", \"@ember/deprecated-features\", \"@ember/error\", \"@ember/polyfills\", \"@ember/runloop\", \"@glimmer/env\", \"@ember/-internals/routing/lib/location/api\", \"@ember/-internals/routing/lib/utils\", \"@ember/-internals/routing/lib/system/dsl\", \"@ember/-internals/routing/lib/system/route\", \"@ember/-internals/routing/lib/system/router_state\", \"router_js\"], function (_exports, _metal, _owner, _runtime, _debug, _deprecatedFeatures, _error2, _polyfills, _runloop, _env, _api, _utils, _dsl, _route, _router_state, _router_js) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.triggerEvent = triggerEvent;\n _exports.default = void 0;\n\n function defaultDidTransition(infos) {\n updatePaths(this);\n\n this._cancelSlowTransitionTimer();\n\n this.notifyPropertyChange('url');\n this.set('currentState', this.targetState); // Put this in the runloop so url will be accurate. Seems\n // less surprising than didTransition being out of sync.\n\n (0, _runloop.once)(this, this.trigger, 'didTransition');\n\n if (_env.DEBUG) {\n if ((0, _metal.get)(this, 'namespace').LOG_TRANSITIONS) {\n // eslint-disable-next-line no-console\n console.log(\"Transitioned into '\" + EmberRouter._routePath(infos) + \"'\");\n }\n }\n }\n\n function defaultWillTransition(oldInfos, newInfos, transition) {\n (0, _runloop.once)(this, this.trigger, 'willTransition', transition);\n\n if (_env.DEBUG) {\n if ((0, _metal.get)(this, 'namespace').LOG_TRANSITIONS) {\n // eslint-disable-next-line no-console\n console.log(\"Preparing to transition from '\" + EmberRouter._routePath(oldInfos) + \"' to '\" + EmberRouter._routePath(newInfos) + \"'\");\n }\n }\n }\n\n function K() {\n return this;\n }\n\n const {\n slice\n } = Array.prototype;\n /**\n The `EmberRouter` class manages the application state and URLs. Refer to\n the [routing guide](https://guides.emberjs.com/release/routing/) for documentation.\n \n @class EmberRouter\n @extends EmberObject\n @uses Evented\n @public\n */\n\n class EmberRouter extends _runtime.Object {\n constructor() {\n super(...arguments);\n this.currentURL = null;\n this.currentRouteName = null;\n this.currentPath = null;\n this.currentRoute = null;\n this._qpCache = Object.create(null);\n this._qpUpdates = new Set();\n this._handledErrors = new Set();\n this._engineInstances = Object.create(null);\n this._engineInfoByRoute = Object.create(null);\n this.currentState = null;\n this.targetState = null;\n\n this._resetQueuedQueryParameterChanges();\n }\n\n _initRouterJs() {\n let location = (0, _metal.get)(this, 'location');\n let router = this;\n let owner = (0, _owner.getOwner)(this);\n let seen = Object.create(null);\n\n class PrivateRouter extends _router_js.default {\n getRoute(name) {\n let routeName = name;\n let routeOwner = owner;\n let engineInfo = router._engineInfoByRoute[routeName];\n\n if (engineInfo) {\n let engineInstance = router._getEngineInstance(engineInfo);\n\n routeOwner = engineInstance;\n routeName = engineInfo.localFullName;\n }\n\n let fullRouteName = \"route:\" + routeName;\n let route = routeOwner.lookup(fullRouteName);\n\n if (seen[name]) {\n return route;\n }\n\n seen[name] = true;\n\n if (!route) {\n let DefaultRoute = routeOwner.factoryFor('route:basic').class;\n routeOwner.register(fullRouteName, DefaultRoute.extend());\n route = routeOwner.lookup(fullRouteName);\n\n if (_env.DEBUG) {\n if ((0, _metal.get)(router, 'namespace.LOG_ACTIVE_GENERATION')) {\n (0, _debug.info)(\"generated -> \" + fullRouteName, {\n fullName: fullRouteName\n });\n }\n }\n }\n\n route._setRouteName(routeName);\n\n if (engineInfo && !(0, _route.hasDefaultSerialize)(route)) {\n throw new Error('Defining a custom serialize method on an Engine route is not supported.');\n }\n\n return route;\n }\n\n getSerializer(name) {\n let engineInfo = router._engineInfoByRoute[name]; // If this is not an Engine route, we fall back to the handler for serialization\n\n if (!engineInfo) {\n return;\n }\n\n return engineInfo.serializeMethod || _route.defaultSerialize;\n }\n\n updateURL(path) {\n (0, _runloop.once)(() => {\n location.setURL(path);\n (0, _metal.set)(router, 'currentURL', path);\n });\n }\n\n didTransition(infos) {\n if (_deprecatedFeatures.ROUTER_EVENTS) {\n if (router.didTransition !== defaultDidTransition) {\n (0, _debug.deprecate)('You attempted to override the \"didTransition\" method which is deprecated. Please inject the router service and listen to the \"routeDidChange\" event.', false, {\n id: 'deprecate-router-events',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_deprecate-router-events'\n });\n }\n }\n\n router.didTransition(infos);\n }\n\n willTransition(oldInfos, newInfos, transition) {\n if (_deprecatedFeatures.ROUTER_EVENTS) {\n if (router.willTransition !== defaultWillTransition) {\n (0, _debug.deprecate)('You attempted to override the \"willTransition\" method which is deprecated. Please inject the router service and listen to the \"routeWillChange\" event.', false, {\n id: 'deprecate-router-events',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_deprecate-router-events'\n });\n }\n }\n\n router.willTransition(oldInfos, newInfos, transition);\n }\n\n triggerEvent(routeInfos, ignoreFailure, name, args) {\n return triggerEvent.bind(router)(routeInfos, ignoreFailure, name, args);\n }\n\n routeWillChange(transition) {\n router.trigger('routeWillChange', transition);\n }\n\n routeDidChange(transition) {\n router.set('currentRoute', transition.to);\n (0, _runloop.once)(() => {\n router.trigger('routeDidChange', transition);\n });\n }\n\n transitionDidError(error, transition) {\n if (error.wasAborted || transition.isAborted) {\n // If the error was a transition erorr or the transition aborted\n // log the abort.\n return (0, _router_js.logAbort)(transition);\n } else {\n // Otherwise trigger the \"error\" event to attempt an intermediate\n // transition into an error substate\n transition.trigger(false, 'error', error.error, transition, error.route);\n\n if (router._isErrorHandled(error.error)) {\n // If we handled the error with a substate just roll the state back on\n // the transition and send the \"routeDidChange\" event for landing on\n // the error substate and return the error.\n transition.rollback();\n this.routeDidChange(transition);\n return error.error;\n } else {\n // If it was not handled, abort the transition completely and return\n // the error.\n transition.abort();\n return error.error;\n }\n }\n }\n\n _triggerWillChangeContext() {\n return router;\n }\n\n _triggerWillLeave() {\n return router;\n }\n\n replaceURL(url) {\n if (location.replaceURL) {\n let doReplaceURL = () => {\n location.replaceURL(url);\n (0, _metal.set)(router, 'currentURL', url);\n };\n\n (0, _runloop.once)(doReplaceURL);\n } else {\n this.updateURL(url);\n }\n }\n\n }\n\n let routerMicrolib = this._routerMicrolib = new PrivateRouter();\n let dslCallbacks = this.constructor.dslCallbacks || [K];\n\n let dsl = this._buildDSL();\n\n dsl.route('application', {\n path: '/',\n resetNamespace: true,\n overrideNameAssertion: true\n }, function () {\n for (let i = 0; i < dslCallbacks.length; i++) {\n dslCallbacks[i].call(this);\n }\n });\n\n if (_env.DEBUG) {\n if ((0, _metal.get)(this, 'namespace.LOG_TRANSITIONS_INTERNAL')) {\n routerMicrolib.log = console.log.bind(console); // eslint-disable-line no-console\n }\n }\n\n routerMicrolib.map(dsl.generate());\n }\n\n _buildDSL() {\n let enableLoadingSubstates = this._hasModuleBasedResolver();\n\n let router = this;\n let owner = (0, _owner.getOwner)(this);\n let options = {\n enableLoadingSubstates,\n\n resolveRouteMap(name) {\n return owner.factoryFor(\"route-map:\" + name);\n },\n\n addRouteForEngine(name, engineInfo) {\n if (!router._engineInfoByRoute[name]) {\n router._engineInfoByRoute[name] = engineInfo;\n }\n }\n\n };\n return new _dsl.default(null, options);\n }\n /*\n Resets all pending query parameter changes.\n Called after transitioning to a new route\n based on query parameter changes.\n */\n\n\n _resetQueuedQueryParameterChanges() {\n this._queuedQPChanges = {};\n }\n\n _hasModuleBasedResolver() {\n let owner = (0, _owner.getOwner)(this);\n\n if (!owner) {\n return false;\n }\n\n let resolver = (0, _metal.get)(owner, 'application.__registry__.resolver.moduleBasedResolver');\n return Boolean(resolver);\n }\n /**\n Initializes the current router instance and sets up the change handling\n event listeners used by the instances `location` implementation.\n A property named `initialURL` will be used to determine the initial URL.\n If no value is found `/` will be used.\n @method startRouting\n @private\n */\n\n\n startRouting() {\n let initialURL = (0, _metal.get)(this, 'initialURL');\n\n if (this.setupRouter()) {\n if (initialURL === undefined) {\n initialURL = (0, _metal.get)(this, 'location').getURL();\n }\n\n let initialTransition = this.handleURL(initialURL);\n\n if (initialTransition && initialTransition.error) {\n throw initialTransition.error;\n }\n }\n }\n\n setupRouter() {\n this._setupLocation();\n\n let location = (0, _metal.get)(this, 'location'); // Allow the Location class to cancel the router setup while it refreshes\n // the page\n\n if ((0, _metal.get)(location, 'cancelRouterSetup')) {\n return false;\n }\n\n this._initRouterJs();\n\n location.onUpdateURL(url => {\n this.handleURL(url);\n });\n return true;\n }\n\n _setOutlets() {\n // This is triggered async during Route#willDestroy.\n // If the router is also being destroyed we do not want to\n // to create another this._toplevelView (and leak the renderer)\n if (this.isDestroying || this.isDestroyed) {\n return;\n }\n\n let routeInfos = this._routerMicrolib.currentRouteInfos;\n let route;\n let defaultParentState;\n let liveRoutes = null;\n\n if (!routeInfos) {\n return;\n }\n\n for (let i = 0; i < routeInfos.length; i++) {\n route = routeInfos[i].route;\n let connections = route.connections;\n let ownState;\n\n for (let j = 0; j < connections.length; j++) {\n let appended = appendLiveRoute(liveRoutes, defaultParentState, connections[j]);\n liveRoutes = appended.liveRoutes;\n\n if (appended.ownState.render.name === route.routeName || appended.ownState.render.outlet === 'main') {\n ownState = appended.ownState;\n }\n }\n\n if (connections.length === 0) {\n ownState = representEmptyRoute(liveRoutes, defaultParentState, route);\n }\n\n defaultParentState = ownState;\n } // when a transitionTo happens after the validation phase\n // during the initial transition _setOutlets is called\n // when no routes are active. However, it will get called\n // again with the correct values during the next turn of\n // the runloop\n\n\n if (!liveRoutes) {\n return;\n }\n\n if (!this._toplevelView) {\n let owner = (0, _owner.getOwner)(this);\n let OutletView = owner.factoryFor('view:-outlet');\n this._toplevelView = OutletView.create();\n\n this._toplevelView.setOutletState(liveRoutes);\n\n let instance = owner.lookup('-application-instance:main');\n instance.didCreateRootView(this._toplevelView);\n } else {\n this._toplevelView.setOutletState(liveRoutes);\n }\n }\n\n handleURL(url) {\n // Until we have an ember-idiomatic way of accessing #hashes, we need to\n // remove it because router.js doesn't know how to handle it.\n let _url = url.split(/#(.+)?/)[0];\n return this._doURLTransition('handleURL', _url);\n }\n\n _doURLTransition(routerJsMethod, url) {\n let transition = this._routerMicrolib[routerJsMethod](url || '/');\n\n didBeginTransition(transition, this);\n return transition;\n }\n /**\n Transition the application into another route. The route may\n be either a single route or route path:\n See [transitionTo](/api/ember/release/classes/Route/methods/transitionTo?anchor=transitionTo) for more info.\n @method transitionTo\n @param {String} name the name of the route or a URL\n @param {...Object} models the model(s) or identifier(s) to be used while\n transitioning to the route.\n @param {Object} [options] optional hash with a queryParams property\n containing a mapping of query parameters\n @return {Transition} the transition object associated with this\n attempted transition\n @public\n */\n\n\n transitionTo(...args) {\n if ((0, _utils.resemblesURL)(args[0])) {\n (0, _debug.assert)(\"A transition was attempted from '\" + this.currentRouteName + \"' to '\" + args[0] + \"' but the application instance has already been destroyed.\", !this.isDestroying && !this.isDestroyed);\n return this._doURLTransition('transitionTo', args[0]);\n }\n\n let {\n routeName,\n models,\n queryParams\n } = (0, _utils.extractRouteArgs)(args);\n (0, _debug.assert)(\"A transition was attempted from '\" + this.currentRouteName + \"' to '\" + routeName + \"' but the application instance has already been destroyed.\", !this.isDestroying && !this.isDestroyed);\n return this._doTransition(routeName, models, queryParams);\n }\n\n intermediateTransitionTo(name, ...args) {\n this._routerMicrolib.intermediateTransitionTo(name, ...args);\n\n updatePaths(this);\n\n if (_env.DEBUG) {\n let infos = this._routerMicrolib.currentRouteInfos;\n\n if ((0, _metal.get)(this, 'namespace').LOG_TRANSITIONS) {\n // eslint-disable-next-line no-console\n console.log(\"Intermediate-transitioned into '\" + EmberRouter._routePath(infos) + \"'\");\n }\n }\n }\n\n replaceWith(...args) {\n return this.transitionTo(...args).method('replace');\n }\n\n generate(name, ...args) {\n let url = this._routerMicrolib.generate(name, ...args);\n\n return this.location.formatURL(url);\n }\n /**\n Determines if the supplied route is currently active.\n @method isActive\n @param routeName\n @return {Boolean}\n @private\n */\n\n\n isActive(routeName) {\n return this._routerMicrolib.isActive(routeName);\n }\n /**\n An alternative form of `isActive` that doesn't require\n manual concatenation of the arguments into a single\n array.\n @method isActiveIntent\n @param routeName\n @param models\n @param queryParams\n @return {Boolean}\n @private\n @since 1.7.0\n */\n\n\n isActiveIntent(routeName, models, queryParams) {\n return this.currentState.isActiveIntent(routeName, models, queryParams);\n }\n\n send(name, ...args) {\n /*name, context*/\n this._routerMicrolib.trigger(name, ...args);\n }\n /**\n Does this router instance have the given route.\n @method hasRoute\n @return {Boolean}\n @private\n */\n\n\n hasRoute(route) {\n return this._routerMicrolib.hasRoute(route);\n }\n /**\n Resets the state of the router by clearing the current route\n handlers and deactivating them.\n @private\n @method reset\n */\n\n\n reset() {\n if (this._routerMicrolib) {\n this._routerMicrolib.reset();\n }\n }\n\n willDestroy() {\n if (this._toplevelView) {\n this._toplevelView.destroy();\n\n this._toplevelView = null;\n }\n\n this._super(...arguments);\n\n this.reset();\n let instances = this._engineInstances;\n\n for (let name in instances) {\n for (let id in instances[name]) {\n (0, _runloop.run)(instances[name][id], 'destroy');\n }\n }\n }\n /*\n Called when an active route's query parameter has changed.\n These changes are batched into a runloop run and trigger\n a single transition.\n */\n\n\n _activeQPChanged(queryParameterName, newValue) {\n this._queuedQPChanges[queryParameterName] = newValue;\n (0, _runloop.once)(this, this._fireQueryParamTransition);\n }\n\n _updatingQPChanged(queryParameterName) {\n this._qpUpdates.add(queryParameterName);\n }\n /*\n Triggers a transition to a route based on query parameter changes.\n This is called once per runloop, to batch changes.\n e.g.\n if these methods are called in succession:\n this._activeQPChanged('foo', '10');\n // results in _queuedQPChanges = { foo: '10' }\n this._activeQPChanged('bar', false);\n // results in _queuedQPChanges = { foo: '10', bar: false }\n _queuedQPChanges will represent both of these changes\n and the transition using `transitionTo` will be triggered\n once.\n */\n\n\n _fireQueryParamTransition() {\n this.transitionTo({\n queryParams: this._queuedQPChanges\n });\n\n this._resetQueuedQueryParameterChanges();\n }\n\n _setupLocation() {\n let location = this.location;\n let rootURL = this.rootURL;\n let owner = (0, _owner.getOwner)(this);\n\n if ('string' === typeof location && owner) {\n let resolvedLocation = owner.lookup(\"location:\" + location);\n\n if (resolvedLocation !== undefined) {\n location = (0, _metal.set)(this, 'location', resolvedLocation);\n } else {\n // Allow for deprecated registration of custom location API's\n let options = {\n implementation: location\n };\n location = (0, _metal.set)(this, 'location', _api.default.create(options));\n }\n }\n\n if (location !== null && typeof location === 'object') {\n if (rootURL) {\n (0, _metal.set)(location, 'rootURL', rootURL);\n } // Allow the location to do any feature detection, such as AutoLocation\n // detecting history support. This gives it a chance to set its\n // `cancelRouterSetup` property which aborts routing.\n\n\n if (typeof location.detect === 'function') {\n location.detect();\n } // ensure that initState is called AFTER the rootURL is set on\n // the location instance\n\n\n if (typeof location.initState === 'function') {\n location.initState();\n }\n }\n }\n /**\n Serializes the given query params according to their QP meta information.\n @private\n @method _serializeQueryParams\n @param {Arrray} routeInfos\n @param {Object} queryParams\n @return {Void}\n */\n\n\n _serializeQueryParams(routeInfos, queryParams) {\n forEachQueryParam(this, routeInfos, queryParams, (key, value, qp) => {\n if (qp) {\n delete queryParams[key];\n queryParams[qp.urlKey] = qp.route.serializeQueryParam(value, qp.urlKey, qp.type);\n } else if (value === undefined) {\n return; // We don't serialize undefined values\n } else {\n queryParams[key] = this._serializeQueryParam(value, (0, _runtime.typeOf)(value));\n }\n });\n }\n /**\n Serializes the value of a query parameter based on a type\n @private\n @method _serializeQueryParam\n @param {Object} value\n @param {String} type\n */\n\n\n _serializeQueryParam(value, type) {\n if (value === null || value === undefined) {\n return value;\n } else if (type === 'array') {\n return JSON.stringify(value);\n }\n\n return \"\" + value;\n }\n /**\n Deserializes the given query params according to their QP meta information.\n @private\n @method _deserializeQueryParams\n @param {Array} routeInfos\n @param {Object} queryParams\n @return {Void}\n */\n\n\n _deserializeQueryParams(routeInfos, queryParams) {\n forEachQueryParam(this, routeInfos, queryParams, (key, value, qp) => {\n // If we don't have QP meta info for a given key, then we do nothing\n // because all values will be treated as strings\n if (qp) {\n delete queryParams[key];\n queryParams[qp.prop] = qp.route.deserializeQueryParam(value, qp.urlKey, qp.type);\n }\n });\n }\n /**\n Deserializes the value of a query parameter based on a default type\n @private\n @method _deserializeQueryParam\n @param {Object} value\n @param {String} defaultType\n */\n\n\n _deserializeQueryParam(value, defaultType) {\n if (value === null || value === undefined) {\n return value;\n } else if (defaultType === 'boolean') {\n return value === 'true';\n } else if (defaultType === 'number') {\n return Number(value).valueOf();\n } else if (defaultType === 'array') {\n return (0, _runtime.A)(JSON.parse(value));\n }\n\n return value;\n }\n /**\n Removes (prunes) any query params with default values from the given QP\n object. Default values are determined from the QP meta information per key.\n @private\n @method _pruneDefaultQueryParamValues\n @param {Array} routeInfos\n @param {Object} queryParams\n @return {Void}\n */\n\n\n _pruneDefaultQueryParamValues(routeInfos, queryParams) {\n let qps = this._queryParamsFor(routeInfos);\n\n for (let key in queryParams) {\n let qp = qps.map[key];\n\n if (qp && qp.serializedDefaultValue === queryParams[key]) {\n delete queryParams[key];\n }\n }\n }\n\n _doTransition(_targetRouteName, models, _queryParams, _keepDefaultQueryParamValues) {\n let targetRouteName = _targetRouteName || (0, _utils.getActiveTargetName)(this._routerMicrolib);\n\n (0, _debug.assert)(\"The route \" + targetRouteName + \" was not found\", Boolean(targetRouteName) && this._routerMicrolib.hasRoute(targetRouteName));\n let queryParams = {};\n\n this._processActiveTransitionQueryParams(targetRouteName, models, queryParams, _queryParams);\n\n (0, _polyfills.assign)(queryParams, _queryParams);\n\n this._prepareQueryParams(targetRouteName, models, queryParams, Boolean(_keepDefaultQueryParamValues));\n\n let transition = this._routerMicrolib.transitionTo(targetRouteName, ...models, {\n queryParams\n });\n\n didBeginTransition(transition, this);\n return transition;\n }\n\n _processActiveTransitionQueryParams(targetRouteName, models, queryParams, _queryParams) {\n // merge in any queryParams from the active transition which could include\n // queryParams from the url on initial load.\n if (!this._routerMicrolib.activeTransition) {\n return;\n }\n\n let unchangedQPs = {};\n let qpUpdates = this._qpUpdates;\n let params = this._routerMicrolib.activeTransition[_router_js.QUERY_PARAMS_SYMBOL];\n\n for (let key in params) {\n if (!qpUpdates.has(key)) {\n unchangedQPs[key] = params[key];\n }\n } // We need to fully scope queryParams so that we can create one object\n // that represents both passed-in queryParams and ones that aren't changed\n // from the active transition.\n\n\n this._fullyScopeQueryParams(targetRouteName, models, _queryParams);\n\n this._fullyScopeQueryParams(targetRouteName, models, unchangedQPs);\n\n (0, _polyfills.assign)(queryParams, unchangedQPs);\n }\n /**\n Prepares the query params for a URL or Transition. Restores any undefined QP\n keys/values, serializes all values, and then prunes any default values.\n @private\n @method _prepareQueryParams\n @param {String} targetRouteName\n @param {Array} models\n @param {Object} queryParams\n @param {boolean} keepDefaultQueryParamValues\n @return {Void}\n */\n\n\n _prepareQueryParams(targetRouteName, models, queryParams, _fromRouterService) {\n let state = calculatePostTransitionState(this, targetRouteName, models);\n\n this._hydrateUnsuppliedQueryParams(state, queryParams, Boolean(_fromRouterService));\n\n this._serializeQueryParams(state.routeInfos, queryParams);\n\n if (!_fromRouterService) {\n this._pruneDefaultQueryParamValues(state.routeInfos, queryParams);\n }\n }\n /**\n Returns the meta information for the query params of a given route. This\n will be overridden to allow support for lazy routes.\n @private\n @method _getQPMeta\n @param {RouteInfo} routeInfo\n @return {Object}\n */\n\n\n _getQPMeta(routeInfo) {\n let route = routeInfo.route;\n return route && (0, _metal.get)(route, '_qp');\n }\n /**\n Returns a merged query params meta object for a given set of routeInfos.\n Useful for knowing what query params are available for a given route hierarchy.\n @private\n @method _queryParamsFor\n @param {Array} routeInfos\n @return {Object}\n */\n\n\n _queryParamsFor(routeInfos) {\n let routeInfoLength = routeInfos.length;\n let leafRouteName = routeInfos[routeInfoLength - 1].name;\n let cached = this._qpCache[leafRouteName];\n\n if (cached !== undefined) {\n return cached;\n }\n\n let shouldCache = true;\n let map = {};\n let qps = [];\n let qpsByUrlKey = _env.DEBUG ? {} : null;\n let qpMeta;\n let qp;\n let urlKey;\n let qpOther;\n\n for (let i = 0; i < routeInfoLength; ++i) {\n qpMeta = this._getQPMeta(routeInfos[i]);\n\n if (!qpMeta) {\n shouldCache = false;\n continue;\n } // Loop over each QP to make sure we don't have any collisions by urlKey\n\n\n for (let i = 0; i < qpMeta.qps.length; i++) {\n qp = qpMeta.qps[i];\n\n if (_env.DEBUG) {\n urlKey = qp.urlKey;\n qpOther = qpsByUrlKey[urlKey];\n\n if (qpOther && qpOther.controllerName !== qp.controllerName) {\n (0, _debug.assert)(\"You're not allowed to have more than one controller property map to the same query param key, but both `\" + qpOther.scopedPropertyName + \"` and `\" + qp.scopedPropertyName + \"` map to `\" + urlKey + \"`. You can fix this by mapping one of the controller properties to a different query param key via the `as` config option, e.g. `\" + qpOther.prop + \": { as: 'other-\" + qpOther.prop + \"' }`\", false);\n }\n\n qpsByUrlKey[urlKey] = qp;\n }\n\n qps.push(qp);\n }\n\n (0, _polyfills.assign)(map, qpMeta.map);\n }\n\n let finalQPMeta = {\n qps,\n map\n };\n\n if (shouldCache) {\n this._qpCache[leafRouteName] = finalQPMeta;\n }\n\n return finalQPMeta;\n }\n /**\n Maps all query param keys to their fully scoped property name of the form\n `controllerName:propName`.\n @private\n @method _fullyScopeQueryParams\n @param {String} leafRouteName\n @param {Array} contexts\n @param {Object} queryParams\n @return {Void}\n */\n\n\n _fullyScopeQueryParams(leafRouteName, contexts, queryParams) {\n let state = calculatePostTransitionState(this, leafRouteName, contexts);\n let routeInfos = state.routeInfos;\n let qpMeta;\n\n for (let i = 0, len = routeInfos.length; i < len; ++i) {\n qpMeta = this._getQPMeta(routeInfos[i]);\n\n if (!qpMeta) {\n continue;\n }\n\n let qp;\n let presentProp;\n\n for (let j = 0, qpLen = qpMeta.qps.length; j < qpLen; ++j) {\n qp = qpMeta.qps[j];\n presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n\n if (presentProp) {\n if (presentProp !== qp.scopedPropertyName) {\n queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n delete queryParams[presentProp];\n }\n }\n }\n }\n }\n /**\n Hydrates (adds/restores) any query params that have pre-existing values into\n the given queryParams hash. This is what allows query params to be \"sticky\"\n and restore their last known values for their scope.\n @private\n @method _hydrateUnsuppliedQueryParams\n @param {TransitionState} state\n @param {Object} queryParams\n @return {Void}\n */\n\n\n _hydrateUnsuppliedQueryParams(state, queryParams, _fromRouterService) {\n let routeInfos = state.routeInfos;\n let appCache = this._bucketCache;\n let qpMeta;\n let qp;\n let presentProp;\n\n for (let i = 0; i < routeInfos.length; ++i) {\n qpMeta = this._getQPMeta(routeInfos[i]);\n\n if (!qpMeta) {\n continue;\n }\n\n for (let j = 0, qpLen = qpMeta.qps.length; j < qpLen; ++j) {\n qp = qpMeta.qps[j];\n presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n (0, _debug.assert)(\"You passed the `\" + presentProp + \"` query parameter during a transition into \" + qp.route.routeName + \", please update to \" + qp.urlKey, function () {\n if (qp.urlKey === presentProp) {\n return true;\n }\n\n if (_fromRouterService && presentProp !== false) {\n return false;\n }\n\n return true;\n }());\n\n if (presentProp) {\n if (presentProp !== qp.scopedPropertyName) {\n queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n delete queryParams[presentProp];\n }\n } else {\n let cacheKey = (0, _utils.calculateCacheKey)(qp.route.fullRouteName, qp.parts, state.params);\n queryParams[qp.scopedPropertyName] = appCache.lookup(cacheKey, qp.prop, qp.defaultValue);\n }\n }\n }\n }\n\n _scheduleLoadingEvent(transition, originRoute) {\n this._cancelSlowTransitionTimer();\n\n this._slowTransitionTimer = (0, _runloop.scheduleOnce)('routerTransitions', this, '_handleSlowTransition', transition, originRoute);\n }\n\n _handleSlowTransition(transition, originRoute) {\n if (!this._routerMicrolib.activeTransition) {\n // Don't fire an event if we've since moved on from\n // the transition that put us in a loading state.\n return;\n }\n\n let targetState = new _router_state.default(this, this._routerMicrolib, this._routerMicrolib.activeTransition[_router_js.STATE_SYMBOL]);\n this.set('targetState', targetState);\n transition.trigger(true, 'loading', transition, originRoute);\n }\n\n _cancelSlowTransitionTimer() {\n if (this._slowTransitionTimer) {\n (0, _runloop.cancel)(this._slowTransitionTimer);\n }\n\n this._slowTransitionTimer = null;\n } // These three helper functions are used to ensure errors aren't\n // re-raised if they're handled in a route's error action.\n\n\n _markErrorAsHandled(error) {\n this._handledErrors.add(error);\n }\n\n _isErrorHandled(error) {\n return this._handledErrors.has(error);\n }\n\n _clearHandledError(error) {\n this._handledErrors.delete(error);\n }\n\n _getEngineInstance({\n name,\n instanceId,\n mountPoint\n }) {\n let engineInstances = this._engineInstances;\n\n if (!engineInstances[name]) {\n engineInstances[name] = Object.create(null);\n }\n\n let engineInstance = engineInstances[name][instanceId];\n\n if (!engineInstance) {\n let owner = (0, _owner.getOwner)(this);\n (0, _debug.assert)(\"You attempted to mount the engine '\" + name + \"' in your router map, but the engine can not be found.\", owner.hasRegistration(\"engine:\" + name));\n engineInstance = owner.buildChildEngineInstance(name, {\n routable: true,\n mountPoint\n });\n engineInstance.boot();\n engineInstances[name][instanceId] = engineInstance;\n }\n\n return engineInstance;\n }\n\n }\n /*\n Helper function for iterating over routes in a set of routeInfos that are\n at or above the given origin route. Example: if `originRoute` === 'foo.bar'\n and the routeInfos given were for 'foo.bar.baz', then the given callback\n will be invoked with the routes for 'foo.bar', 'foo', and 'application'\n individually.\n \n If the callback returns anything other than `true`, then iteration will stop.\n \n @private\n @param {Route} originRoute\n @param {Array} routeInfos\n @param {Function} callback\n @return {Void}\n */\n\n\n function forEachRouteAbove(routeInfos, callback) {\n for (let i = routeInfos.length - 1; i >= 0; --i) {\n let routeInfo = routeInfos[i];\n let route = routeInfo.route; // routeInfo.handler being `undefined` generally means either:\n //\n // 1. an error occurred during creation of the route in question\n // 2. the route is across an async boundary (e.g. within an engine)\n //\n // In both of these cases, we cannot invoke the callback on that specific\n // route, because it just doesn't exist...\n\n if (route === undefined) {\n continue;\n }\n\n if (callback(route, routeInfo) !== true) {\n return;\n }\n }\n } // These get invoked when an action bubbles above ApplicationRoute\n // and are not meant to be overridable.\n\n\n let defaultActionHandlers = {\n willResolveModel(_routeInfos, transition, originRoute) {\n this._scheduleLoadingEvent(transition, originRoute);\n },\n\n // Attempt to find an appropriate error route or substate to enter.\n error(routeInfos, error, transition) {\n let router = this;\n let routeInfoWithError = routeInfos[routeInfos.length - 1];\n forEachRouteAbove(routeInfos, (route, routeInfo) => {\n // We don't check the leaf most routeInfo since that would\n // technically be below where we're at in the route hierarchy.\n if (routeInfo !== routeInfoWithError) {\n // Check for the existence of an 'error' route.\n let errorRouteName = findRouteStateName(route, 'error');\n\n if (errorRouteName) {\n router._markErrorAsHandled(error);\n\n router.intermediateTransitionTo(errorRouteName, error);\n return false;\n }\n } // Check for an 'error' substate route\n\n\n let errorSubstateName = findRouteSubstateName(route, 'error');\n\n if (errorSubstateName) {\n router._markErrorAsHandled(error);\n\n router.intermediateTransitionTo(errorSubstateName, error);\n return false;\n }\n\n return true;\n });\n logError(error, \"Error while processing route: \" + transition.targetName);\n },\n\n // Attempt to find an appropriate loading route or substate to enter.\n loading(routeInfos, transition) {\n let router = this;\n let routeInfoWithSlowLoading = routeInfos[routeInfos.length - 1];\n forEachRouteAbove(routeInfos, (route, routeInfo) => {\n // We don't check the leaf most routeInfos since that would\n // technically be below where we're at in the route hierarchy.\n if (routeInfo !== routeInfoWithSlowLoading) {\n // Check for the existence of a 'loading' route.\n let loadingRouteName = findRouteStateName(route, 'loading');\n\n if (loadingRouteName) {\n router.intermediateTransitionTo(loadingRouteName);\n return false;\n }\n } // Check for loading substate\n\n\n let loadingSubstateName = findRouteSubstateName(route, 'loading');\n\n if (loadingSubstateName) {\n router.intermediateTransitionTo(loadingSubstateName);\n return false;\n } // Don't bubble above pivot route.\n\n\n return transition.pivotHandler !== route;\n });\n }\n\n };\n\n function logError(_error, initialMessage) {\n let errorArgs = [];\n let error;\n\n if (_error && typeof _error === 'object' && typeof _error.errorThrown === 'object') {\n error = _error.errorThrown;\n } else {\n error = _error;\n }\n\n if (initialMessage) {\n errorArgs.push(initialMessage);\n }\n\n if (error) {\n if (error.message) {\n errorArgs.push(error.message);\n }\n\n if (error.stack) {\n errorArgs.push(error.stack);\n }\n\n if (typeof error === 'string') {\n errorArgs.push(error);\n }\n }\n\n console.error(...errorArgs); //eslint-disable-line no-console\n }\n /**\n Finds the name of the substate route if it exists for the given route. A\n substate route is of the form `route_state`, such as `foo_loading`.\n \n @private\n @param {Route} route\n @param {String} state\n @return {String}\n */\n\n\n function findRouteSubstateName(route, state) {\n let owner = (0, _owner.getOwner)(route);\n let {\n routeName,\n fullRouteName,\n _router: router\n } = route;\n let substateName = routeName + \"_\" + state;\n let substateNameFull = fullRouteName + \"_\" + state;\n return routeHasBeenDefined(owner, router, substateName, substateNameFull) ? substateNameFull : '';\n }\n /**\n Finds the name of the state route if it exists for the given route. A state\n route is of the form `route.state`, such as `foo.loading`. Properly Handles\n `application` named routes.\n \n @private\n @param {Route} route\n @param {String} state\n @return {String}\n */\n\n\n function findRouteStateName(route, state) {\n let owner = (0, _owner.getOwner)(route);\n let {\n routeName,\n fullRouteName,\n _router: router\n } = route;\n let stateName = routeName === 'application' ? state : routeName + \".\" + state;\n let stateNameFull = fullRouteName === 'application' ? state : fullRouteName + \".\" + state;\n return routeHasBeenDefined(owner, router, stateName, stateNameFull) ? stateNameFull : '';\n }\n /**\n Determines whether or not a route has been defined by checking that the route\n is in the Router's map and the owner has a registration for that route.\n \n @private\n @param {Owner} owner\n @param {Router} router\n @param {String} localName\n @param {String} fullName\n @return {Boolean}\n */\n\n\n function routeHasBeenDefined(owner, router, localName, fullName) {\n let routerHasRoute = router.hasRoute(fullName);\n let ownerHasRoute = owner.hasRegistration(\"template:\" + localName) || owner.hasRegistration(\"route:\" + localName);\n return routerHasRoute && ownerHasRoute;\n }\n\n function triggerEvent(routeInfos, ignoreFailure, name, args) {\n if (!routeInfos) {\n if (ignoreFailure) {\n return;\n }\n\n throw new _error2.default(\"Can't trigger action '\" + name + \"' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call `.send()` on the `Transition` object passed to the `model/beforeModel/afterModel` hooks.\");\n }\n\n let eventWasHandled = false;\n let routeInfo, handler, actionHandler;\n\n for (let i = routeInfos.length - 1; i >= 0; i--) {\n routeInfo = routeInfos[i];\n handler = routeInfo.route;\n actionHandler = handler && handler.actions && handler.actions[name];\n\n if (actionHandler) {\n if (actionHandler.apply(handler, args) === true) {\n eventWasHandled = true;\n } else {\n // Should only hit here if a non-bubbling error action is triggered on a route.\n if (name === 'error') {\n handler._router._markErrorAsHandled(args[0]);\n }\n\n return;\n }\n }\n }\n\n let defaultHandler = defaultActionHandlers[name];\n\n if (defaultHandler) {\n defaultHandler.apply(this, [routeInfos, ...args]);\n return;\n }\n\n if (!eventWasHandled && !ignoreFailure) {\n throw new _error2.default(\"Nothing handled the action '\" + name + \"'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.\");\n }\n }\n\n function calculatePostTransitionState(emberRouter, leafRouteName, contexts) {\n let state = emberRouter._routerMicrolib.applyIntent(leafRouteName, contexts);\n\n let {\n routeInfos,\n params\n } = state;\n\n for (let i = 0; i < routeInfos.length; ++i) {\n let routeInfo = routeInfos[i]; // If the routeInfo is not resolved, we serialize the context into params\n\n if (!routeInfo.isResolved) {\n params[routeInfo.name] = routeInfo.serialize(routeInfo.context);\n } else {\n params[routeInfo.name] = routeInfo.params;\n }\n }\n\n return state;\n }\n\n function updatePaths(router) {\n let infos = router._routerMicrolib.currentRouteInfos;\n\n if (infos.length === 0) {\n return;\n }\n\n let path = EmberRouter._routePath(infos);\n\n let currentRouteName = infos[infos.length - 1].name;\n let currentURL = router.get('location').getURL();\n (0, _metal.set)(router, 'currentPath', path);\n (0, _metal.set)(router, 'currentRouteName', currentRouteName);\n (0, _metal.set)(router, 'currentURL', currentURL);\n let appController = (0, _owner.getOwner)(router).lookup('controller:application');\n\n if (!appController) {\n // appController might not exist when top-level loading/error\n // substates have been entered since ApplicationRoute hasn't\n // actually been entered at that point.\n return;\n }\n\n if (_deprecatedFeatures.APP_CTRL_ROUTER_PROPS) {\n if (!('currentPath' in appController)) {\n Object.defineProperty(appController, 'currentPath', {\n get() {\n (0, _debug.deprecate)('Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.', false, {\n id: 'application-controller.router-properties',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_application-controller-router-properties'\n });\n return (0, _metal.get)(router, 'currentPath');\n }\n\n });\n }\n\n (0, _metal.notifyPropertyChange)(appController, 'currentPath');\n\n if (!('currentRouteName' in appController)) {\n Object.defineProperty(appController, 'currentRouteName', {\n get() {\n (0, _debug.deprecate)('Accessing `currentRouteName` on `controller:application` is deprecated, use the `currentRouteName` property on `service:router` instead.', false, {\n id: 'application-controller.router-properties',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_application-controller-router-properties'\n });\n return (0, _metal.get)(router, 'currentRouteName');\n }\n\n });\n }\n\n (0, _metal.notifyPropertyChange)(appController, 'currentRouteName');\n }\n }\n\n EmberRouter.reopenClass({\n /**\n The `Router.map` function allows you to define mappings from URLs to routes\n in your application. These mappings are defined within the\n supplied callback function using `this.route`.\n The first parameter is the name of the route which is used by default as the\n path name as well.\n The second parameter is the optional options hash. Available options are:\n * `path`: allows you to provide your own path as well as mark dynamic\n segments.\n * `resetNamespace`: false by default; when nesting routes, ember will\n combine the route names to form the fully-qualified route name, which is\n used with `{{link-to}}` or manually transitioning to routes. Setting\n `resetNamespace: true` will cause the route not to inherit from its\n parent route's names. This is handy for preventing extremely long route names.\n Keep in mind that the actual URL path behavior is still retained.\n The third parameter is a function, which can be used to nest routes.\n Nested routes, by default, will have the parent route tree's route name and\n path prepended to it's own.\n ```app/router.js\n Router.map(function(){\n this.route('post', { path: '/post/:post_id' }, function() {\n this.route('edit');\n this.route('comments', { resetNamespace: true }, function() {\n this.route('new');\n });\n });\n });\n ```\n @method map\n @param callback\n @public\n */\n map(callback) {\n if (!this.dslCallbacks) {\n this.dslCallbacks = [];\n this.reopenClass({\n dslCallbacks: this.dslCallbacks\n });\n }\n\n this.dslCallbacks.push(callback);\n return this;\n },\n\n _routePath(routeInfos) {\n let path = []; // We have to handle coalescing resource names that\n // are prefixed with their parent's names, e.g.\n // ['foo', 'foo.bar.baz'] => 'foo.bar.baz', not 'foo.foo.bar.baz'\n\n function intersectionMatches(a1, a2) {\n for (let i = 0; i < a1.length; ++i) {\n if (a1[i] !== a2[i]) {\n return false;\n }\n }\n\n return true;\n }\n\n let name, nameParts, oldNameParts;\n\n for (let i = 1; i < routeInfos.length; i++) {\n name = routeInfos[i].name;\n nameParts = name.split('.');\n oldNameParts = slice.call(path);\n\n while (oldNameParts.length) {\n if (intersectionMatches(oldNameParts, nameParts)) {\n break;\n }\n\n oldNameParts.shift();\n }\n\n path.push(...nameParts.slice(oldNameParts.length));\n }\n\n return path.join('.');\n }\n\n });\n\n function didBeginTransition(transition, router) {\n let routerState = new _router_state.default(router, router._routerMicrolib, transition[_router_js.STATE_SYMBOL]);\n\n if (!router.currentState) {\n router.set('currentState', routerState);\n }\n\n router.set('targetState', routerState);\n transition.promise = transition.catch(error => {\n if (router._isErrorHandled(error)) {\n router._clearHandledError(error);\n } else {\n throw error;\n }\n }, 'Transition Error');\n }\n\n function forEachQueryParam(router, routeInfos, queryParams, callback) {\n let qpCache = router._queryParamsFor(routeInfos);\n\n for (let key in queryParams) {\n if (!queryParams.hasOwnProperty(key)) {\n continue;\n }\n\n let value = queryParams[key];\n let qp = qpCache.map[key];\n callback(key, value, qp);\n }\n }\n\n function findLiveRoute(liveRoutes, name) {\n if (!liveRoutes) {\n return;\n }\n\n let stack = [liveRoutes];\n\n while (stack.length > 0) {\n let test = stack.shift();\n\n if (test.render.name === name) {\n return test;\n }\n\n let outlets = test.outlets;\n\n for (let outletName in outlets) {\n stack.push(outlets[outletName]);\n }\n }\n\n return;\n }\n\n function appendLiveRoute(liveRoutes, defaultParentState, renderOptions) {\n let target;\n let myState = {\n render: renderOptions,\n outlets: Object.create(null),\n wasUsed: false\n };\n\n if (renderOptions.into) {\n target = findLiveRoute(liveRoutes, renderOptions.into);\n } else {\n target = defaultParentState;\n }\n\n if (target) {\n (0, _metal.set)(target.outlets, renderOptions.outlet, myState);\n } else {\n liveRoutes = myState;\n }\n\n return {\n liveRoutes,\n ownState: myState\n };\n }\n\n function representEmptyRoute(liveRoutes, defaultParentState, route) {\n // the route didn't render anything\n let alreadyAppended = findLiveRoute(liveRoutes, route.routeName);\n\n if (alreadyAppended) {\n // But some other route has already rendered our default\n // template, so that becomes the default target for any\n // children we may have.\n return alreadyAppended;\n } else {\n // Create an entry to represent our default template name,\n // just so other routes can target it and inherit its place\n // in the outlet hierarchy.\n defaultParentState.outlets.main = {\n render: {\n name: route.routeName,\n outlet: 'main'\n },\n outlets: {}\n };\n return defaultParentState;\n }\n }\n\n EmberRouter.reopen(_runtime.Evented, {\n /**\n Handles updating the paths and notifying any listeners of the URL\n change.\n Triggers the router level `didTransition` hook.\n For example, to notify google analytics when the route changes,\n you could use this hook. (Note: requires also including GA scripts, etc.)\n ```javascript\n import config from './config/environment';\n import EmberRouter from '@ember/routing/router';\n import { inject as service } from '@ember/service';\n let Router = EmberRouter.extend({\n location: config.locationType,\n router: service(),\n didTransition: function() {\n this._super(...arguments);\n ga('send', 'pageview', {\n page: this.router.currentURL,\n title: this.router.currentRouteName,\n });\n }\n });\n ```\n @method didTransition\n @public\n @since 1.2.0\n */\n didTransition: defaultDidTransition,\n\n /**\n Handles notifying any listeners of an impending URL\n change.\n Triggers the router level `willTransition` hook.\n @method willTransition\n @public\n @since 1.11.0\n */\n willTransition: defaultWillTransition,\n\n /**\n Represents the URL of the root of the application, often '/'. This prefix is\n assumed on all routes defined on this router.\n @property rootURL\n @default '/'\n @public\n */\n rootURL: '/',\n\n /**\n The `location` property determines the type of URL's that your\n application will use.\n The following location types are currently available:\n * `history` - use the browser's history API to make the URLs look just like any standard URL\n * `hash` - use `#` to separate the server part of the URL from the Ember part: `/blog/#/posts/new`\n * `none` - do not store the Ember URL in the actual browser URL (mainly used for testing)\n * `auto` - use the best option based on browser capabilities: `history` if possible, then `hash` if possible, otherwise `none`\n This value is defaulted to `auto` by the `locationType` setting of `/config/environment.js`\n @property location\n @default 'hash'\n @see {Location}\n @public\n */\n location: 'hash',\n\n /**\n Represents the current URL.\n @property url\n @type {String}\n @private\n */\n url: (0, _metal.computed)(function () {\n return (0, _metal.get)(this, 'location').getURL();\n })\n });\n\n if (_deprecatedFeatures.ROUTER_EVENTS) {\n EmberRouter.reopen(_route.ROUTER_EVENT_DEPRECATIONS);\n }\n\n var _default = EmberRouter;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/routing/lib/system/router_state\", [\"exports\", \"@ember/polyfills\", \"@ember/-internals/routing/lib/utils\"], function (_exports, _polyfills, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class RouterState {\n constructor(emberRouter, router, routerJsState) {\n this.emberRouter = emberRouter;\n this.router = router;\n this.routerJsState = routerJsState;\n }\n\n isActiveIntent(routeName, models, queryParams, queryParamsMustMatch) {\n let state = this.routerJsState;\n\n if (!this.router.isActiveIntent(routeName, models, undefined, state)) {\n return false;\n }\n\n if (queryParamsMustMatch && Object.keys(queryParams).length > 0) {\n let visibleQueryParams = (0, _polyfills.assign)({}, queryParams);\n\n this.emberRouter._prepareQueryParams(routeName, models, visibleQueryParams);\n\n return (0, _utils.shallowEqual)(visibleQueryParams, state.queryParams);\n }\n\n return true;\n }\n\n }\n\n _exports.default = RouterState;\n});","enifed(\"@ember/-internals/routing/lib/system/transition\", [], function () {\n \"use strict\";\n /**\n A Transition is a thennable (a promise-like object) that represents\n an attempt to transition to another route. It can be aborted, either\n explicitly via `abort` or by attempting another transition while a\n previous one is still underway. An aborted transition can also\n be `retry()`d later.\n \n @class Transition\n @public\n */\n\n /**\n The Transition's internal promise. Calling `.then` on this property\n is that same as calling `.then` on the Transition object itself, but\n this property is exposed for when you want to pass around a\n Transition's promise, but not the Transition object itself, since\n Transition object can be externally `abort`ed, while the promise\n cannot.\n \n @property promise\n @type {Object}\n @public\n */\n\n /**\n Custom state can be stored on a Transition's `data` object.\n This can be useful for decorating a Transition within an earlier\n hook and shared with a later hook. Properties set on `data` will\n be copied to new transitions generated by calling `retry` on this\n transition.\n \n @property data\n @type {Object}\n @public\n */\n\n /**\n A standard promise hook that resolves if the transition\n succeeds and rejects if it fails/redirects/aborts.\n \n Forwards to the internal `promise` property which you can\n use in situations where you want to pass around a thennable,\n but not the Transition itself.\n \n @method then\n @param {Function} onFulfilled\n @param {Function} onRejected\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n @public\n */\n\n /**\n \n Forwards to the internal `promise` property which you can\n use in situations where you want to pass around a thennable,\n but not the Transition itself.\n \n @method catch\n @param {Function} onRejection\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n @public\n */\n\n /**\n \n Forwards to the internal `promise` property which you can\n use in situations where you want to pass around a thennable,\n but not the Transition itself.\n \n @method finally\n @param {Function} callback\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n @public\n */\n\n /**\n Aborts the Transition. Note you can also implicitly abort a transition\n by initiating another transition while a previous one is underway.\n \n @method abort\n @return {Transition} this transition\n @public\n */\n\n /**\n \n Retries a previously-aborted transition (making sure to abort the\n transition if it's still active). Returns a new transition that\n represents the new attempt to transition.\n \n @method retry\n @return {Transition} new transition\n @public\n */\n\n /**\n \n Sets the URL-changing method to be employed at the end of a\n successful transition. By default, a new Transition will just\n use `updateURL`, but passing 'replace' to this method will\n cause the URL to update using 'replaceWith' instead. Omitting\n a parameter will disable the URL change, allowing for transitions\n that don't update the URL at completion (this is also used for\n handleURL, since the URL has already changed before the\n transition took place).\n \n @method method\n @param {String} method the type of URL-changing method to use\n at the end of a transition. Accepted values are 'replace',\n falsy values, or any other non-falsy value (which is\n interpreted as an updateURL transition).\n \n @return {Transition} this transition\n @public\n */\n\n /**\n \n Fires an event on the current list of resolved/resolving\n handlers within this transition. Useful for firing events\n on route hierarchies that haven't fully been entered yet.\n \n Note: This method is also aliased as `send`\n \n @method trigger\n @param {Boolean} [ignoreFailure=false] a boolean specifying whether unhandled events throw an error\n @param {String} name the name of the event to fire\n @public\n */\n\n /**\n * This property is a `RouteInfo` object that represents\n * where the router is transitioning to. It's important\n * to note that a `RouteInfo` is a linked list and this\n * property represents the leafmost route.\n * @property {RouteInfo|RouteInfoWithAttributes} to\n * @public\n */\n\n /**\n * This property is a `RouteInfo` object that represents\n * where transition originated from. It's important\n * to note that a `RouteInfo` is a linked list and this\n * property represents the head node of the list.\n * In the case of an initial render, `from` will be set to\n * `null`.\n * @property {RouteInfoWithAttributes} from\n * @public\n */\n\n /**\n Transitions are aborted and their promises rejected\n when redirects occur; this method returns a promise\n that will follow any redirects that occur and fulfill\n with the value fulfilled by any redirecting transitions\n that occur.\n \n @method followRedirects\n @return {Promise} a promise that fulfills with the same\n value that the final redirecting transition fulfills with\n @public\n */\n});","enifed(\"@ember/-internals/routing/lib/utils\", [\"exports\", \"@ember/-internals/metal\", \"@ember/-internals/owner\", \"@ember/error\", \"@ember/polyfills\", \"router_js\"], function (_exports, _metal, _owner, _error, _polyfills, _router_js) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.extractRouteArgs = extractRouteArgs;\n _exports.getActiveTargetName = getActiveTargetName;\n _exports.stashParamNames = stashParamNames;\n _exports.calculateCacheKey = calculateCacheKey;\n _exports.normalizeControllerQueryParams = normalizeControllerQueryParams;\n _exports.resemblesURL = resemblesURL;\n _exports.prefixRouteNameArg = prefixRouteNameArg;\n _exports.shallowEqual = shallowEqual;\n const ALL_PERIODS_REGEX = /\\./g;\n\n function extractRouteArgs(args) {\n args = args.slice();\n let possibleQueryParams = args[args.length - 1];\n let queryParams;\n\n if (possibleQueryParams && possibleQueryParams.hasOwnProperty('queryParams')) {\n queryParams = args.pop().queryParams;\n } else {\n queryParams = {};\n }\n\n let routeName = args.shift();\n return {\n routeName,\n models: args,\n queryParams\n };\n }\n\n function getActiveTargetName(router) {\n let routeInfos = router.activeTransition ? router.activeTransition[_router_js.STATE_SYMBOL].routeInfos : router.state.routeInfos;\n return routeInfos[routeInfos.length - 1].name;\n }\n\n function stashParamNames(router, routeInfos) {\n if (routeInfos['_namesStashed']) {\n return;\n } // This helper exists because router.js/route-recognizer.js awkwardly\n // keeps separate a routeInfo's list of parameter names depending\n // on whether a URL transition or named transition is happening.\n // Hopefully we can remove this in the future.\n\n\n let targetRouteName = routeInfos[routeInfos.length - 1].name;\n\n let recogHandlers = router._routerMicrolib.recognizer.handlersFor(targetRouteName);\n\n let dynamicParent;\n\n for (let i = 0; i < routeInfos.length; ++i) {\n let routeInfo = routeInfos[i];\n let names = recogHandlers[i].names;\n\n if (names.length) {\n dynamicParent = routeInfo;\n }\n\n routeInfo['_names'] = names;\n let route = routeInfo.route;\n\n route._stashNames(routeInfo, dynamicParent);\n }\n\n routeInfos['_namesStashed'] = true;\n }\n\n function _calculateCacheValuePrefix(prefix, part) {\n // calculates the dot separated sections from prefix that are also\n // at the start of part - which gives us the route name\n // given : prefix = site.article.comments, part = site.article.id\n // - returns: site.article (use get(values[site.article], 'id') to get the dynamic part - used below)\n // given : prefix = site.article, part = site.article.id\n // - returns: site.article. (use get(values[site.article], 'id') to get the dynamic part - used below)\n let prefixParts = prefix.split('.');\n let currPrefix = '';\n\n for (let i = 0; i < prefixParts.length; i++) {\n let currPart = prefixParts.slice(0, i + 1).join('.');\n\n if (part.indexOf(currPart) !== 0) {\n break;\n }\n\n currPrefix = currPart;\n }\n\n return currPrefix;\n }\n /*\n Stolen from Controller\n */\n\n\n function calculateCacheKey(prefix, parts = [], values) {\n let suffixes = '';\n\n for (let i = 0; i < parts.length; ++i) {\n let part = parts[i];\n\n let cacheValuePrefix = _calculateCacheValuePrefix(prefix, part);\n\n let value;\n\n if (values) {\n if (cacheValuePrefix && cacheValuePrefix in values) {\n let partRemovedPrefix = part.indexOf(cacheValuePrefix) === 0 ? part.substr(cacheValuePrefix.length + 1) : part;\n value = (0, _metal.get)(values[cacheValuePrefix], partRemovedPrefix);\n } else {\n value = (0, _metal.get)(values, part);\n }\n }\n\n suffixes += \"::\" + part + \":\" + value;\n }\n\n return prefix + suffixes.replace(ALL_PERIODS_REGEX, '-');\n }\n /*\n Controller-defined query parameters can come in three shapes:\n \n Array\n queryParams: ['foo', 'bar']\n Array of simple objects where value is an alias\n queryParams: [\n {\n 'foo': 'rename_foo_to_this'\n },\n {\n 'bar': 'call_bar_this_instead'\n }\n ]\n Array of fully defined objects\n queryParams: [\n {\n 'foo': {\n as: 'rename_foo_to_this'\n },\n }\n {\n 'bar': {\n as: 'call_bar_this_instead',\n scope: 'controller'\n }\n }\n ]\n \n This helper normalizes all three possible styles into the\n 'Array of fully defined objects' style.\n */\n\n\n function normalizeControllerQueryParams(queryParams) {\n let qpMap = {};\n\n for (let i = 0; i < queryParams.length; ++i) {\n accumulateQueryParamDescriptors(queryParams[i], qpMap);\n }\n\n return qpMap;\n }\n\n function accumulateQueryParamDescriptors(_desc, accum) {\n let desc = _desc;\n let tmp;\n\n if (typeof desc === 'string') {\n tmp = {};\n tmp[desc] = {\n as: null\n };\n desc = tmp;\n }\n\n for (let key in desc) {\n if (!desc.hasOwnProperty(key)) {\n return;\n }\n\n let singleDesc = desc[key];\n\n if (typeof singleDesc === 'string') {\n singleDesc = {\n as: singleDesc\n };\n }\n\n tmp = accum[key] || {\n as: null,\n scope: 'model'\n };\n (0, _polyfills.assign)(tmp, singleDesc);\n accum[key] = tmp;\n }\n }\n /*\n Check if a routeName resembles a url instead\n \n @private\n */\n\n\n function resemblesURL(str) {\n return typeof str === 'string' && (str === '' || str[0] === '/');\n }\n /*\n Returns an arguments array where the route name arg is prefixed based on the mount point\n \n @private\n */\n\n\n function prefixRouteNameArg(route, args) {\n let routeName = args[0];\n let owner = (0, _owner.getOwner)(route);\n let prefix = owner.mountPoint; // only alter the routeName if it's actually referencing a route.\n\n if (owner.routable && typeof routeName === 'string') {\n if (resemblesURL(routeName)) {\n throw new _error.default('Programmatic transitions by URL cannot be used within an Engine. Please use the route name instead.');\n } else {\n routeName = prefix + \".\" + routeName;\n args[0] = routeName;\n }\n }\n\n return args;\n }\n\n function shallowEqual(a, b) {\n let k;\n let aCount = 0;\n let bCount = 0;\n\n for (k in a) {\n if (a.hasOwnProperty(k)) {\n if (a[k] !== b[k]) {\n return false;\n }\n\n aCount++;\n }\n }\n\n for (k in b) {\n if (b.hasOwnProperty(k)) {\n bCount++;\n }\n }\n\n return aCount === bCount;\n }\n});","enifed(\"@ember/-internals/routing/tests/ext/controller_test\", [\"@ember/-internals/owner\", \"@ember/controller\", \"internal-test-helpers\"], function (_owner, _controller, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('@ember/-internals/routing/ext/controller', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test transitionToRoute considers an engine's mountPoint\"](assert) {\n let router = {\n transitionTo(route) {\n return route;\n }\n\n };\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar'\n }\n });\n\n let controller = _controller.default.create({\n target: router\n });\n\n (0, _owner.setOwner)(controller, engineInstance);\n assert.strictEqual(controller.transitionToRoute('application'), 'foo.bar.application', 'properly prefixes application route');\n assert.strictEqual(controller.transitionToRoute('posts'), 'foo.bar.posts', 'properly prefixes child routes');\n assert.throws(() => controller.transitionToRoute('/posts'), 'throws when trying to use a url');\n let queryParams = {};\n assert.strictEqual(controller.transitionToRoute(queryParams), queryParams, 'passes query param only transitions through');\n }\n\n [\"@test replaceRoute considers an engine's mountPoint\"](assert) {\n let router = {\n replaceWith(route) {\n return route;\n }\n\n };\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar'\n }\n });\n\n let controller = _controller.default.create({\n target: router\n });\n\n (0, _owner.setOwner)(controller, engineInstance);\n assert.strictEqual(controller.replaceRoute('application'), 'foo.bar.application', 'properly prefixes application route');\n assert.strictEqual(controller.replaceRoute('posts'), 'foo.bar.posts', 'properly prefixes child routes');\n assert.throws(() => controller.replaceRoute('/posts'), 'throws when trying to use a url');\n let queryParams = {};\n assert.strictEqual(controller.replaceRoute(queryParams), queryParams, 'passes query param only transitions through');\n }\n\n });\n});","enifed(\"@ember/-internals/routing/tests/location/auto_location_test\", [\"@ember/-internals/owner\", \"@ember/polyfills\", \"@ember/-internals/browser-environment\", \"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/routing/lib/location/auto_location\", \"@ember/-internals/routing/lib/location/history_location\", \"@ember/-internals/routing/lib/location/hash_location\", \"@ember/-internals/routing/lib/location/none_location\", \"internal-test-helpers\"], function (_owner, _polyfills, _browserEnvironment, _runloop, _metal, _auto_location, _history_location, _hash_location, _none_location, _internalTestHelpers) {\n \"use strict\";\n\n function mockBrowserLocation(overrides, assert) {\n return (0, _polyfills.assign)({\n href: 'http://test.com/',\n pathname: '/',\n hash: '',\n search: '',\n\n replace() {\n assert.ok(false, 'location.replace should not be called during testing');\n }\n\n }, overrides);\n }\n\n function mockBrowserHistory(overrides, assert) {\n return (0, _polyfills.assign)({\n pushState() {\n assert.ok(false, 'history.pushState should not be called during testing');\n },\n\n replaceState() {\n assert.ok(false, 'history.replaceState should not be called during testing');\n }\n\n }, overrides);\n }\n\n function createLocation(location, history) {\n owner = (0, _internalTestHelpers.buildOwner)();\n owner.register('location:history', _history_location.default);\n owner.register('location:hash', _hash_location.default);\n owner.register('location:none', _none_location.default);\n\n let autolocation = _auto_location.default.create({\n [_owner.OWNER]: owner,\n location: location,\n history: history,\n global: {}\n });\n\n return autolocation;\n }\n\n let location, owner;\n (0, _internalTestHelpers.moduleFor)('AutoLocation', class extends _internalTestHelpers.AbstractTestCase {\n teardown() {\n if (owner) {\n (0, _runloop.run)(owner, 'destroy');\n owner = location = undefined;\n }\n }\n\n ['@test AutoLocation should have the `global`'](assert) {\n let location = _auto_location.default.create();\n\n assert.ok(location.global, 'has a global defined');\n assert.strictEqual(location.global, _browserEnvironment.window, 'has the environments window global');\n }\n\n [\"@test AutoLocation should return concrete implementation's value for `getURL`\"](assert) {\n let browserLocation = mockBrowserLocation({}, assert);\n let browserHistory = mockBrowserHistory({}, assert);\n location = createLocation(browserLocation, browserHistory);\n location.detect();\n let concreteImplementation = (0, _metal.get)(location, 'concreteImplementation');\n\n concreteImplementation.getURL = function () {\n return '/lincoln/park';\n };\n\n assert.equal(location.getURL(), '/lincoln/park');\n }\n\n ['@test AutoLocation should use a HistoryLocation instance when pushStates is supported'](assert) {\n let browserLocation = mockBrowserLocation({}, assert);\n let browserHistory = mockBrowserHistory({}, assert);\n location = createLocation(browserLocation, browserHistory);\n location.detect();\n assert.ok((0, _metal.get)(location, 'concreteImplementation') instanceof _history_location.default);\n }\n\n ['@test AutoLocation should use a HashLocation instance when pushStates are not supported, but hashchange events are and the URL is already in the HashLocation format'](assert) {\n let browserLocation = mockBrowserLocation({\n hash: '#/testd'\n }, assert);\n location = createLocation(browserLocation);\n location.global = {\n onhashchange() {}\n\n };\n location.detect();\n assert.ok((0, _metal.get)(location, 'concreteImplementation') instanceof _hash_location.default);\n }\n\n ['@test AutoLocation should use a NoneLocation instance when neither history nor hashchange are supported.'](assert) {\n location = createLocation(mockBrowserLocation({}, assert));\n location.detect();\n assert.ok((0, _metal.get)(location, 'concreteImplementation') instanceof _none_location.default);\n }\n\n [\"@test AutoLocation should use an index path (i.e. '/') without any location.hash as OK for HashLocation\"](assert) {\n let browserLocation = mockBrowserLocation({\n href: 'http://test.com/',\n pathname: '/',\n hash: '',\n search: '',\n\n replace() {\n assert.ok(false, 'location.replace should not be called');\n }\n\n }, assert);\n location = createLocation(browserLocation);\n location.global = {\n onhashchange() {}\n\n };\n location.detect();\n assert.ok((0, _metal.get)(location, 'concreteImplementation') instanceof _hash_location.default, 'uses a HashLocation');\n }\n\n ['@test AutoLocation should transform the URL for hashchange-only browsers viewing a HistoryLocation-formatted path'](assert) {\n assert.expect(3);\n let browserLocation = mockBrowserLocation({\n hash: '',\n hostname: 'test.com',\n href: 'http://test.com/test',\n pathname: '/test',\n protocol: 'http:',\n port: '',\n search: '',\n\n replace(path) {\n assert.equal(path, 'http://test.com/#/test', 'location.replace should be called with normalized HashLocation path');\n }\n\n }, assert);\n let location = createLocation(browserLocation);\n location.global = {\n onhashchange() {}\n\n };\n location.detect();\n assert.ok((0, _metal.get)(location, 'concreteImplementation') instanceof _none_location.default, 'NoneLocation should be used while we attempt to location.replace()');\n assert.equal((0, _metal.get)(location, 'cancelRouterSetup'), true, 'cancelRouterSetup should be set so the router knows.');\n }\n\n ['@test AutoLocation should replace the URL for pushState-supported browsers viewing a HashLocation-formatted url'](assert) {\n assert.expect(2);\n let browserLocation = mockBrowserLocation({\n hash: '#/test',\n hostname: 'test.com',\n href: 'http://test.com/#/test',\n pathname: '/',\n protocol: 'http:',\n port: '',\n search: ''\n }, assert);\n let browserHistory = mockBrowserHistory({\n replaceState(state, title, path) {\n assert.equal(path, '/test', 'history.replaceState should be called with normalized HistoryLocation url');\n }\n\n }, assert);\n let location = createLocation(browserLocation, browserHistory);\n location.detect();\n assert.ok((0, _metal.get)(location, 'concreteImplementation'), _history_location.default);\n }\n\n ['@test AutoLocation requires any rootURL given to end in a trailing forward slash'](assert) {\n let browserLocation = mockBrowserLocation({}, assert);\n let expectedMsg = /rootURL must end with a trailing forward slash e.g. \"\\/app\\/\"/;\n location = createLocation(browserLocation);\n location.rootURL = 'app';\n expectAssertion(function () {\n location.detect();\n }, expectedMsg);\n location.rootURL = '/app';\n expectAssertion(function () {\n location.detect();\n }, expectedMsg); // Note the trailing whitespace\n\n location.rootURL = '/app/ ';\n expectAssertion(function () {\n location.detect();\n }, expectedMsg);\n }\n\n ['@test AutoLocation provides its rootURL to the concreteImplementation'](assert) {\n let browserLocation = mockBrowserLocation({\n pathname: '/some/subdir/derp'\n }, assert);\n let browserHistory = mockBrowserHistory({}, assert);\n location = createLocation(browserLocation, browserHistory);\n location.rootURL = '/some/subdir/';\n location.detect();\n let concreteLocation = (0, _metal.get)(location, 'concreteImplementation');\n assert.equal(location.rootURL, concreteLocation.rootURL);\n }\n\n ['@test getHistoryPath() should return a normalized, HistoryLocation-supported path'](assert) {\n let browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/about?foo=bar#foo',\n pathname: '/app/about',\n search: '?foo=bar',\n hash: '#foo'\n }, assert);\n assert.equal((0, _auto_location.getHistoryPath)('/app/', browserLocation), '/app/about?foo=bar#foo', 'URLs already in HistoryLocation form should come out the same');\n browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/#/about?foo=bar#foo',\n pathname: '/app/',\n search: '',\n hash: '#/about?foo=bar#foo'\n }, assert);\n assert.equal((0, _auto_location.getHistoryPath)('/app/', browserLocation), '/app/about?foo=bar#foo', 'HashLocation formed URLs should be normalized');\n browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/#about?foo=bar#foo',\n pathname: '/app/',\n search: '',\n hash: '#about?foo=bar#foo'\n }, assert);\n assert.equal((0, _auto_location.getHistoryPath)('/app', browserLocation), '/app/#about?foo=bar#foo', \"URLs with a hash not following #/ convention shouldn't be normalized as a route\");\n }\n\n ['@test getHashPath() should return a normalized, HashLocation-supported path'](assert) {\n let browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/#/about?foo=bar#foo',\n pathname: '/app/',\n search: '',\n hash: '#/about?foo=bar#foo'\n }, assert);\n assert.equal((0, _auto_location.getHashPath)('/app/', browserLocation), '/app/#/about?foo=bar#foo', 'URLs already in HistoryLocation form should come out the same');\n browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/about?foo=bar#foo',\n pathname: '/app/about',\n search: '?foo=bar',\n hash: '#foo'\n }, assert);\n assert.equal((0, _auto_location.getHashPath)('/app/', browserLocation), '/app/#/about?foo=bar#foo', 'HistoryLocation formed URLs should be normalized');\n browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/#about?foo=bar#foo',\n pathname: '/app/',\n search: '',\n hash: '#about?foo=bar#foo'\n }, assert);\n assert.equal((0, _auto_location.getHashPath)('/app/', browserLocation), '/app/#/#about?foo=bar#foo', \"URLs with a hash not following #/ convention shouldn't be normalized as a route\");\n }\n\n });\n});","enifed(\"@ember/-internals/routing/tests/location/hash_location_test\", [\"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/routing/lib/location/hash_location\", \"internal-test-helpers\"], function (_runloop, _metal, _hash_location, _internalTestHelpers) {\n \"use strict\";\n\n let location;\n\n function createLocation(options, assert) {\n let HashTestLocation = _hash_location.default.extend({\n _location: {\n href: 'http://test.com/',\n pathname: '/',\n hash: '',\n search: '',\n\n replace() {\n assert.ok(false, 'location.replace should not be called during testing');\n }\n\n }\n });\n\n if (!options) {\n options = {};\n }\n\n location = HashTestLocation.create(options);\n }\n\n function mockBrowserLocation(path) {\n // This is a neat trick to auto-magically extract the hostname from any\n // url by letting the browser do the work ;)\n let tmp = document.createElement('a');\n tmp.href = path;\n let protocol = !tmp.protocol || tmp.protocol === ':' ? 'http' : tmp.protocol;\n let pathname = tmp.pathname.match(/^\\//) ? tmp.pathname : '/' + tmp.pathname;\n return {\n hash: tmp.hash,\n host: tmp.host || 'localhost',\n hostname: tmp.hostname || 'localhost',\n href: tmp.href,\n pathname: pathname,\n port: tmp.port || '',\n protocol: protocol,\n search: tmp.search\n };\n }\n\n function triggerHashchange() {\n var event = document.createEvent('HTMLEvents');\n event.initEvent('hashchange', true, false);\n window.dispatchEvent(event);\n }\n\n (0, _internalTestHelpers.moduleFor)('HashLocation', class extends _internalTestHelpers.AbstractTestCase {\n teardown() {\n (0, _runloop.run)(function () {\n if (location) {\n location.destroy();\n }\n });\n }\n\n ['@test HashLocation.getURL() returns the current url'](assert) {\n createLocation({\n _location: mockBrowserLocation('/#/foo/bar')\n }, assert);\n assert.equal(location.getURL(), '/foo/bar');\n }\n\n ['@test HashLocation.getURL() includes extra hashes'](assert) {\n createLocation({\n _location: mockBrowserLocation('/#/foo#bar#car')\n }, assert);\n assert.equal(location.getURL(), '/foo#bar#car');\n }\n\n ['@test HashLocation.getURL() assumes location.hash without #/ prefix is not a route path'](assert) {\n createLocation({\n _location: mockBrowserLocation('/#foo#bar')\n }, assert);\n assert.equal(location.getURL(), '/#foo#bar');\n }\n\n ['@test HashLocation.getURL() returns a normal forward slash when there is no location.hash'](assert) {\n createLocation({\n _location: mockBrowserLocation('/')\n }, assert);\n assert.equal(location.getURL(), '/');\n }\n\n ['@test HashLocation.setURL() correctly sets the url'](assert) {\n createLocation({}, assert);\n location.setURL('/bar');\n assert.equal((0, _metal.get)(location, 'location.hash'), '/bar');\n assert.equal((0, _metal.get)(location, 'lastSetURL'), '/bar');\n }\n\n ['@test HashLocation.replaceURL() correctly replaces to the path with a page reload'](assert) {\n assert.expect(2);\n createLocation({\n _location: {\n replace(path) {\n assert.equal(path, '#/foo');\n }\n\n }\n }, assert);\n location.replaceURL('/foo');\n assert.equal((0, _metal.get)(location, 'lastSetURL'), '/foo');\n }\n\n ['@test HashLocation.onUpdateURL callback executes as expected'](assert) {\n assert.expect(1);\n createLocation({\n _location: mockBrowserLocation('/#/foo/bar')\n }, assert);\n\n let callback = function (param) {\n assert.equal(param, '/foo/bar', 'path is passed as param');\n };\n\n location.onUpdateURL(callback);\n triggerHashchange();\n }\n\n [\"@test HashLocation.onUpdateURL doesn't execute callback if lastSetURL === path\"](assert) {\n assert.expect(0);\n createLocation({\n _location: {\n hash: '#/foo/bar'\n },\n lastSetURL: '/foo/bar'\n }, assert);\n\n let callback = function () {\n assert.ok(false, 'callback should not be called');\n };\n\n location.onUpdateURL(callback);\n triggerHashchange();\n }\n\n ['@test HashLocation.formatURL() prepends a # to the provided string'](assert) {\n createLocation({}, assert);\n assert.equal(location.formatURL('/foo#bar'), '#/foo#bar');\n }\n\n ['@test HashLocation.willDestroy() cleans up hashchange event listener'](assert) {\n assert.expect(1);\n createLocation({}, assert);\n\n let callback = function () {\n assert.ok(true, 'should invoke callback once');\n };\n\n location.onUpdateURL(callback);\n triggerHashchange();\n (0, _runloop.run)(location, 'destroy');\n location = null;\n triggerHashchange();\n }\n\n });\n});","enifed(\"@ember/-internals/routing/tests/location/history_location_test\", [\"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/routing/lib/location/history_location\", \"internal-test-helpers\"], function (_runloop, _metal, _history_location, _internalTestHelpers) {\n \"use strict\";\n\n let FakeHistory, HistoryTestLocation, location;\n\n function createLocation(options) {\n if (!options) {\n options = {};\n }\n\n location = HistoryTestLocation.create(options);\n }\n\n function mockBrowserLocation(path) {\n // This is a neat trick to auto-magically extract the hostname from any\n // url by letting the browser do the work ;)\n let tmp = document.createElement('a');\n tmp.href = path;\n let protocol = !tmp.protocol || tmp.protocol === ':' ? 'http' : tmp.protocol;\n let pathname = tmp.pathname.match(/^\\//) ? tmp.pathname : '/' + tmp.pathname;\n return {\n hash: tmp.hash,\n host: tmp.host || 'localhost',\n hostname: tmp.hostname || 'localhost',\n href: tmp.href,\n pathname: pathname,\n port: tmp.port || '',\n protocol: protocol,\n search: tmp.search\n };\n }\n\n (0, _internalTestHelpers.moduleFor)('HistoryLocation', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n FakeHistory = {\n state: null,\n _states: [],\n\n replaceState(state) {\n this.state = state;\n this._states[0] = state;\n },\n\n pushState(state) {\n this.state = state;\n\n this._states.unshift(state);\n }\n\n };\n HistoryTestLocation = _history_location.default.extend({\n history: FakeHistory\n });\n }\n\n teardown() {\n (0, _runloop.run)(() => {\n if (location) {\n location.destroy();\n }\n });\n }\n\n ['@test HistoryLocation initState does not get fired on init'](assert) {\n assert.expect(1);\n HistoryTestLocation.reopen({\n init() {\n assert.ok(true, 'init was called');\n\n this._super(...arguments);\n },\n\n initState() {\n assert.ok(false, 'initState() should not be called automatically');\n }\n\n });\n createLocation();\n }\n\n [\"@test webkit doesn't fire popstate on page load\"](assert) {\n assert.expect(1);\n HistoryTestLocation.reopen({\n initState() {\n this._super(...arguments); // these two should be equal to be able\n // to successfully detect webkit initial popstate\n\n\n assert.equal(this._previousURL, this.getURL());\n }\n\n });\n createLocation();\n location.initState();\n }\n\n ['@test base URL is removed when retrieving the current pathname'](assert) {\n assert.expect(1);\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'location', mockBrowserLocation('/base/foo/bar'));\n (0, _metal.set)(this, 'baseURL', '/base/');\n },\n\n initState() {\n this._super(...arguments);\n\n assert.equal(this.getURL(), '/foo/bar');\n }\n\n });\n createLocation();\n location.initState();\n }\n\n ['@test base URL is preserved when moving around'](assert) {\n assert.expect(2);\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'location', mockBrowserLocation('/base/foo/bar'));\n (0, _metal.set)(this, 'baseURL', '/base/');\n }\n\n });\n createLocation();\n location.initState();\n location.setURL('/one/two');\n assert.equal(location._historyState.path, '/base/one/two');\n assert.ok(location._historyState.uuid);\n }\n\n ['@test setURL continues to set even with a null state (iframes may set this)'](assert) {\n createLocation();\n location.initState();\n FakeHistory.pushState(null);\n location.setURL('/three/four');\n assert.equal(location._historyState.path, '/three/four');\n assert.ok(location._historyState.uuid);\n }\n\n ['@test replaceURL continues to set even with a null state (iframes may set this)'](assert) {\n createLocation();\n location.initState();\n FakeHistory.pushState(null);\n location.replaceURL('/three/four');\n assert.equal(location._historyState.path, '/three/four');\n assert.ok(location._historyState.uuid);\n }\n\n ['@test HistoryLocation.getURL() returns the current url, excluding both rootURL and baseURL'](assert) {\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'location', mockBrowserLocation('/base/foo/bar'));\n (0, _metal.set)(this, 'rootURL', '/app/');\n (0, _metal.set)(this, 'baseURL', '/base/');\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/foo/bar');\n }\n\n ['@test HistoryLocation.getURL() returns the current url, does not remove rootURL if its not at start of url'](assert) {\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'location', mockBrowserLocation('/foo/bar/baz'));\n (0, _metal.set)(this, 'rootURL', '/bar/');\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/foo/bar/baz');\n }\n\n ['@test HistoryLocation.getURL() will not remove the rootURL when only a partial match'](assert) {\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'location', mockBrowserLocation('/bars/baz'));\n (0, _metal.set)(this, 'rootURL', '/bar/');\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/bars/baz');\n }\n\n ['@test HistoryLocation.getURL() returns the current url, does not remove baseURL if its not at start of url'](assert) {\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'location', mockBrowserLocation('/foo/bar/baz'));\n (0, _metal.set)(this, 'baseURL', '/bar/');\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/foo/bar/baz');\n }\n\n ['@test HistoryLocation.getURL() will not remove the baseURL when only a partial match'](assert) {\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'location', mockBrowserLocation('/bars/baz'));\n (0, _metal.set)(this, 'baseURL', '/bar/');\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/bars/baz');\n }\n\n ['@test HistoryLocation.getURL() includes location.search'](assert) {\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'location', mockBrowserLocation('/foo/bar?time=morphin'));\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/foo/bar?time=morphin');\n }\n\n ['@test HistoryLocation.getURL() includes location.hash'](assert) {\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'location', mockBrowserLocation('/foo/bar#pink-power-ranger'));\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/foo/bar#pink-power-ranger');\n }\n\n ['@test HistoryLocation.getURL() includes location.hash and location.search'](assert) {\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'location', mockBrowserLocation('/foo/bar?time=morphin#pink-power-ranger'));\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/foo/bar?time=morphin#pink-power-ranger');\n }\n\n ['@test HistoryLocation.getURL() drops duplicate slashes'](assert) {\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n let location = mockBrowserLocation('//');\n location.pathname = '//'; // mockBrowserLocation does not allow for `//`, so force it\n\n (0, _metal.set)(this, 'location', location);\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/');\n }\n\n ['@test Existing state is preserved on init'](assert) {\n let existingState = {\n path: '/route/path',\n uuid: 'abcd'\n };\n FakeHistory.state = existingState;\n HistoryTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'location', mockBrowserLocation('/route/path'));\n }\n\n });\n createLocation();\n location.initState();\n assert.deepEqual(location.getState(), existingState);\n }\n\n });\n});","enifed(\"@ember/-internals/routing/tests/location/none_location_test\", [\"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/routing/lib/location/none_location\", \"internal-test-helpers\"], function (_runloop, _metal, _none_location, _internalTestHelpers) {\n \"use strict\";\n\n let NoneTestLocation, location;\n\n function createLocation(options) {\n if (!options) {\n options = {};\n }\n\n location = NoneTestLocation.create(options);\n }\n\n (0, _internalTestHelpers.moduleFor)('NoneLocation', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n NoneTestLocation = _none_location.default.extend({});\n }\n\n teardown() {\n (0, _runloop.run)(() => {\n if (location) {\n location.destroy();\n }\n });\n }\n\n ['@test NoneLocation.formatURL() returns the current url always appending rootURL'](assert) {\n NoneTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'rootURL', '/en/');\n }\n\n });\n createLocation();\n assert.equal(location.formatURL('/foo/bar'), '/en/foo/bar');\n }\n\n ['@test NoneLocation.getURL() returns the current path minus rootURL'](assert) {\n NoneTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'rootURL', '/foo/');\n (0, _metal.set)(this, 'path', '/foo/bar');\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/bar');\n }\n\n ['@test NoneLocation.getURL() will remove the rootURL only from the beginning of a url'](assert) {\n NoneTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'rootURL', '/bar/');\n (0, _metal.set)(this, 'path', '/foo/bar/baz');\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/foo/bar/baz');\n }\n\n ['@test NoneLocation.getURL() will not remove the rootURL when only a partial match'](assert) {\n NoneTestLocation.reopen({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'rootURL', '/bar/');\n (0, _metal.set)(this, 'path', '/bars/baz');\n }\n\n });\n createLocation();\n assert.equal(location.getURL(), '/bars/baz');\n }\n\n });\n});","enifed(\"@ember/-internals/routing/tests/location/util_test\", [\"@ember/polyfills\", \"@ember/-internals/routing/lib/location/util\", \"internal-test-helpers\"], function (_polyfills, _util, _internalTestHelpers) {\n \"use strict\";\n\n function mockBrowserLocation(overrides, assert) {\n return (0, _polyfills.assign)({\n href: 'http://test.com/',\n pathname: '/',\n hash: '',\n search: '',\n\n replace() {\n assert.ok(false, 'location.replace should not be called during testing');\n }\n\n }, overrides);\n }\n\n (0, _internalTestHelpers.moduleFor)('Location Utilities', class extends _internalTestHelpers.AbstractTestCase {\n ['@test replacePath cannot be used to redirect to a different origin'](assert) {\n assert.expect(1);\n let expectedURL;\n let location = {\n protocol: 'http:',\n hostname: 'emberjs.com',\n port: '1337',\n\n replace(url) {\n assert.equal(url, expectedURL);\n }\n\n };\n expectedURL = 'http://emberjs.com:1337//google.com';\n (0, _util.replacePath)(location, '//google.com');\n }\n\n ['@test getPath() should normalize location.pathname, making sure it always returns a leading slash'](assert) {\n let location = mockBrowserLocation({\n pathname: 'test'\n }, assert);\n assert.equal((0, _util.getPath)(location), '/test', 'When there is no leading slash, one is added.');\n location = mockBrowserLocation({\n pathname: '/test'\n }, assert);\n assert.equal((0, _util.getPath)(location), '/test', \"When a leading slash is already there, it isn't added again\");\n }\n\n ['@test getQuery() should return location.search as-is'](assert) {\n let location = mockBrowserLocation({\n search: '?foo=bar'\n }, assert);\n assert.equal((0, _util.getQuery)(location), '?foo=bar');\n }\n\n ['@test getFullPath() should return full pathname including query and hash'](assert) {\n let location = mockBrowserLocation({\n href: 'http://test.com/about?foo=bar#foo',\n pathname: '/about',\n search: '?foo=bar',\n hash: '#foo'\n }, assert);\n assert.equal((0, _util.getFullPath)(location), '/about?foo=bar#foo');\n }\n\n ['@test Feature-Detecting onhashchange'](assert) {\n assert.equal((0, _util.supportsHashChange)(undefined, {\n onhashchange() {}\n\n }), true, 'When not in IE, use onhashchange existence as evidence of the feature');\n assert.equal((0, _util.supportsHashChange)(undefined, {}), false, 'When not in IE, use onhashchange absence as evidence of the feature absence');\n assert.equal((0, _util.supportsHashChange)(7, {\n onhashchange() {}\n\n }), false, 'When in IE7 compatibility mode, never report existence of the feature');\n assert.equal((0, _util.supportsHashChange)(8, {\n onhashchange() {}\n\n }), true, 'When in IE8+, use onhashchange existence as evidence of the feature');\n }\n\n ['@test Feature-detecting the history API'](assert) {\n assert.equal((0, _util.supportsHistory)('', {\n pushState: true\n }), true, 'returns true if not Android Gingerbread and history.pushState exists');\n assert.equal((0, _util.supportsHistory)('', {}), false, \"returns false if history.pushState doesn't exist\");\n assert.equal((0, _util.supportsHistory)('', undefined), false, \"returns false if history doesn't exist\");\n assert.equal((0, _util.supportsHistory)('Mozilla/5.0 (Linux; U; Android 2.3.5; en-us; HTC Vision Build/GRI40) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1', {\n pushState: true\n }), false, 'returns false if Android 2.x stock browser (not Chrome) claiming to support pushState');\n assert.equal((0, _util.supportsHistory)('Mozilla/5.0 (Linux; U; Android 4.0.3; nl-nl; GT-N7000 Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30', {\n pushState: true\n }), false, 'returns false for Android 4.0.x stock browser (not Chrome) claiming to support pushState');\n assert.equal((0, _util.supportsHistory)('Mozilla/5.0 (Linux; U; Android 20.3.5; en-us; HTC Vision Build/GRI40) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1', {\n pushState: true\n }), true, 'returns true if Android version begins with 2, but is greater than 2');\n assert.equal((0, _util.supportsHistory)('Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19', {\n pushState: true\n }), true, 'returns true for Chrome (not stock browser) on Android 4.0.x'); // Windows Phone UA and History API: https://github.com/Modernizr/Modernizr/issues/1471\n\n assert.equal((0, _util.supportsHistory)('Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; Microsoft; Virtual) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537', {\n pushState: true\n }), true, 'returns true for Windows Phone 8.1 with misleading user agent string');\n }\n\n });\n});","enifed(\"@ember/-internals/routing/tests/system/cache_test\", [\"@ember/-internals/routing/lib/system/cache\", \"internal-test-helpers\"], function (_cache, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('BucketCache', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n this.cache = new _cache.default();\n }\n\n ['@test has - returns false when bucket is not in cache'](assert) {\n assert.strictEqual(this.cache.has('foo'), false);\n assert.strictEqual(this.cache.has('constructor'), false);\n }\n\n ['@test has - returns true when bucket is in cache'](assert) {\n let token = {};\n this.cache.stash('foo', 'bar', token);\n this.cache.stash('constructor', 'bar', token);\n assert.strictEqual(this.cache.has('foo'), true);\n assert.strictEqual(this.cache.has('constructor'), true);\n }\n\n ['@test lookup - returns stashed value if key does exist in bucket'](assert) {\n let token = {};\n let defaultValue = {};\n this.cache.stash('foo', 'bar', token);\n assert.strictEqual(this.cache.lookup('foo', 'bar', defaultValue), token);\n }\n\n ['@test lookup - returns default value if key does not exist in bucket'](assert) {\n let token = {};\n let defaultValue = {};\n this.cache.stash('foo', 'bar', token);\n assert.strictEqual(this.cache.lookup('foo', 'boo', defaultValue), defaultValue);\n assert.strictEqual(this.cache.lookup('foo', 'constructor', defaultValue), defaultValue);\n }\n\n ['@test lookup - returns default value if bucket does not exist'](assert) {\n let defaultValue = {};\n assert.strictEqual(this.cache.lookup('boo', 'bar', defaultValue), defaultValue);\n assert.strictEqual(this.cache.lookup('constructor', 'bar', defaultValue), defaultValue);\n }\n\n });\n});","enifed(\"@ember/-internals/routing/tests/system/controller_for_test\", [\"@ember/controller\", \"@ember/-internals/routing/lib/system/controller_for\", \"@ember/-internals/routing/lib/system/generate_controller\", \"internal-test-helpers\", \"@ember/debug\"], function (_controller, _controller_for, _generate_controller, _internalTestHelpers, _debug) {\n \"use strict\";\n\n const originalDebug = (0, _debug.getDebugFunction)('debug');\n\n const noop = function () {};\n\n (0, _internalTestHelpers.moduleFor)('controllerFor', class extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n (0, _debug.setDebugFunction)('debug', noop);\n super();\n }\n\n teardown() {\n (0, _debug.setDebugFunction)('debug', originalDebug);\n }\n\n ['@test controllerFor should lookup for registered controllers'](assert) {\n this.add('controller:app', _controller.default.extend());\n return this.visit('/').then(() => {\n let appInstance = this.applicationInstance;\n let appController = appInstance.lookup('controller:app');\n let controller = (0, _controller_for.default)(appInstance, 'app');\n assert.equal(appController, controller, 'should find app controller');\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('generateController', class extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n (0, _debug.setDebugFunction)('debug', noop);\n super();\n }\n\n teardown() {\n (0, _debug.setDebugFunction)('debug', originalDebug);\n }\n\n ['@test generateController should return Controller'](assert) {\n return this.visit('/').then(() => {\n let controller = (0, _generate_controller.default)(this.applicationInstance, 'home');\n assert.ok(controller instanceof _controller.default, 'should return controller');\n });\n }\n\n ['@test generateController should return controller:basic if resolved'](assert) {\n let BasicController = _controller.default.extend();\n\n this.add('controller:basic', BasicController);\n return this.visit('/').then(() => {\n let controller = (0, _generate_controller.default)(this.applicationInstance, 'home');\n assert.ok(controller instanceof BasicController, 'should return controller');\n });\n }\n\n ['@test generateController should return controller:basic if registered'](assert) {\n let BasicController = _controller.default.extend();\n\n this.application.register('controller:basic', BasicController);\n return this.visit('/').then(() => {\n let controller = (0, _generate_controller.default)(this.applicationInstance, 'home');\n assert.ok(controller instanceof BasicController, 'should return base class of controller');\n });\n }\n\n });\n});","enifed(\"@ember/-internals/routing/tests/system/dsl_test\", [\"@ember/-internals/owner\", \"@ember/-internals/routing/lib/system/router\", \"internal-test-helpers\"], function (_owner, _router, _internalTestHelpers) {\n \"use strict\";\n\n let Router;\n (0, _internalTestHelpers.moduleFor)('Ember Router DSL', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n Router = _router.default.extend();\n }\n\n teardown() {\n Router = null;\n }\n\n ['@test should fail when using a reserved route name'](assert) {\n let reservedNames = ['basic', 'application'];\n assert.expect(reservedNames.length);\n reservedNames.forEach(reservedName => {\n expectAssertion(() => {\n Router = _router.default.extend();\n Router.map(function () {\n this.route(reservedName);\n });\n let router = Router.create();\n\n router._initRouterJs();\n }, \"'\" + reservedName + \"' cannot be used as a route name.\");\n });\n }\n\n ['@test [GH#16642] better error when using a colon in a route name']() {\n expectAssertion(() => {\n Router = _router.default.extend();\n Router.map(function () {\n this.route('resource/:id');\n });\n let router = Router.create();\n\n router._initRouterJs();\n }, \"'resource/:id' is not a valid route name. It cannot contain a ':'. You may want to use the 'path' option instead.\");\n }\n\n ['@test should retain resource namespace if nested with routes'](assert) {\n Router = Router.map(function () {\n this.route('bleep', function () {\n this.route('bloop', function () {\n this.route('blork');\n });\n });\n });\n let router = Router.create();\n\n router._initRouterJs();\n\n assert.ok(router._routerMicrolib.recognizer.names['bleep'], 'parent name was used as base of nested routes');\n assert.ok(router._routerMicrolib.recognizer.names['bleep.bloop'], 'parent name was used as base of nested routes');\n assert.ok(router._routerMicrolib.recognizer.names['bleep.bloop.blork'], 'parent name was used as base of nested routes');\n }\n\n ['@test should add loading and error routes if _isRouterMapResult is true'](assert) {\n Router.map(function () {\n this.route('blork');\n });\n let router = Router.create({\n _hasModuleBasedResolver() {\n return true;\n }\n\n });\n\n router._initRouterJs();\n\n assert.ok(router._routerMicrolib.recognizer.names['blork'], 'main route was created');\n assert.ok(router._routerMicrolib.recognizer.names['blork_loading'], 'loading route was added');\n assert.ok(router._routerMicrolib.recognizer.names['blork_error'], 'error route was added');\n }\n\n ['@test should not add loading and error routes if _isRouterMapResult is false'](assert) {\n Router.map(function () {\n this.route('blork');\n });\n let router = Router.create();\n\n router._initRouterJs(false);\n\n assert.ok(router._routerMicrolib.recognizer.names['blork'], 'main route was created');\n assert.ok(!router._routerMicrolib.recognizer.names['blork_loading'], 'loading route was not added');\n assert.ok(!router._routerMicrolib.recognizer.names['blork_error'], 'error route was not added');\n }\n\n ['@test should reset namespace of loading and error routes for routes with resetNamespace'](assert) {\n Router.map(function () {\n this.route('blork', function () {\n this.route('blorp');\n this.route('bleep', {\n resetNamespace: true\n });\n });\n });\n let router = Router.create({\n _hasModuleBasedResolver() {\n return true;\n }\n\n });\n\n router._initRouterJs();\n\n assert.ok(router._routerMicrolib.recognizer.names['blork.blorp'], 'nested route was created');\n assert.ok(router._routerMicrolib.recognizer.names['blork.blorp_loading'], 'nested loading route was added');\n assert.ok(router._routerMicrolib.recognizer.names['blork.blorp_error'], 'nested error route was added');\n assert.ok(router._routerMicrolib.recognizer.names['bleep'], 'reset route was created');\n assert.ok(router._routerMicrolib.recognizer.names['bleep_loading'], 'reset loading route was added');\n assert.ok(router._routerMicrolib.recognizer.names['bleep_error'], 'reset error route was added');\n assert.ok(!router._routerMicrolib.recognizer.names['blork.bleep'], 'nested reset route was not created');\n assert.ok(!router._routerMicrolib.recognizer.names['blork.bleep_loading'], 'nested reset loading route was not added');\n assert.ok(!router._routerMicrolib.recognizer.names['blork.bleep_error'], 'nested reset error route was not added');\n }\n\n ['@test should throw an error when defining a route serializer outside an engine'](assert) {\n Router.map(function () {\n assert.throws(() => {\n this.route('posts', {\n serialize: function () {}\n });\n }, /Defining a route serializer on route 'posts' outside an Engine is not allowed/);\n });\n\n Router.create()._initRouterJs();\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Ember Router DSL with engines', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n Router = _router.default.extend();\n }\n\n teardown() {\n Router = null;\n }\n\n ['@test should allow mounting of engines'](assert) {\n assert.expect(3);\n Router = Router.map(function () {\n this.route('bleep', function () {\n this.route('bloop', function () {\n this.mount('chat');\n });\n });\n });\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true\n }\n });\n let router = Router.create();\n (0, _owner.setOwner)(router, engineInstance);\n\n router._initRouterJs();\n\n assert.ok(router._routerMicrolib.recognizer.names['bleep'], 'parent name was used as base of nested routes');\n assert.ok(router._routerMicrolib.recognizer.names['bleep.bloop'], 'parent name was used as base of nested routes');\n assert.ok(router._routerMicrolib.recognizer.names['bleep.bloop.chat'], 'parent name was used as base of mounted engine');\n }\n\n ['@test should allow mounting of engines at a custom path'](assert) {\n assert.expect(1);\n Router = Router.map(function () {\n this.route('bleep', function () {\n this.route('bloop', function () {\n this.mount('chat', {\n path: 'custom-chat'\n });\n });\n });\n });\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true\n }\n });\n let router = Router.create();\n (0, _owner.setOwner)(router, engineInstance);\n\n router._initRouterJs();\n\n assert.deepEqual(router._routerMicrolib.recognizer.names['bleep.bloop.chat'].segments.slice(1, 4).map(s => s.value), ['bleep', 'bloop', 'custom-chat'], 'segments are properly associated with mounted engine');\n }\n\n ['@test should allow aliasing of engine names with `as`'](assert) {\n assert.expect(1);\n Router = Router.map(function () {\n this.route('bleep', function () {\n this.route('bloop', function () {\n this.mount('chat', {\n as: 'blork'\n });\n });\n });\n });\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true\n }\n });\n let router = Router.create();\n (0, _owner.setOwner)(router, engineInstance);\n\n router._initRouterJs();\n\n assert.deepEqual(router._routerMicrolib.recognizer.names['bleep.bloop.blork'].segments.slice(1, 4).map(s => s.value), ['bleep', 'bloop', 'blork'], 'segments are properly associated with mounted engine with aliased name');\n }\n\n ['@test should add loading and error routes to a mount if _isRouterMapResult is true'](assert) {\n Router.map(function () {\n this.mount('chat');\n });\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true\n }\n });\n let router = Router.create({\n _hasModuleBasedResolver() {\n return true;\n }\n\n });\n (0, _owner.setOwner)(router, engineInstance);\n\n router._initRouterJs();\n\n assert.ok(router._routerMicrolib.recognizer.names['chat'], 'main route was created');\n assert.ok(router._routerMicrolib.recognizer.names['chat_loading'], 'loading route was added');\n assert.ok(router._routerMicrolib.recognizer.names['chat_error'], 'error route was added');\n }\n\n ['@test should add loading and error routes to a mount alias if _isRouterMapResult is true'](assert) {\n Router.map(function () {\n this.mount('chat', {\n as: 'shoutbox'\n });\n });\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true\n }\n });\n let router = Router.create({\n _hasModuleBasedResolver() {\n return true;\n }\n\n });\n (0, _owner.setOwner)(router, engineInstance);\n\n router._initRouterJs();\n\n assert.ok(router._routerMicrolib.recognizer.names['shoutbox'], 'main route was created');\n assert.ok(router._routerMicrolib.recognizer.names['shoutbox_loading'], 'loading route was added');\n assert.ok(router._routerMicrolib.recognizer.names['shoutbox_error'], 'error route was added');\n }\n\n ['@test should not add loading and error routes to a mount if _isRouterMapResult is false'](assert) {\n Router.map(function () {\n this.mount('chat');\n });\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true\n }\n });\n let router = Router.create();\n (0, _owner.setOwner)(router, engineInstance);\n\n router._initRouterJs(false);\n\n assert.ok(router._routerMicrolib.recognizer.names['chat'], 'main route was created');\n assert.ok(!router._routerMicrolib.recognizer.names['chat_loading'], 'loading route was not added');\n assert.ok(!router._routerMicrolib.recognizer.names['chat_error'], 'error route was not added');\n }\n\n ['@test should reset namespace of loading and error routes for mounts with resetNamespace'](assert) {\n Router.map(function () {\n this.route('news', function () {\n this.mount('chat');\n this.mount('blog', {\n resetNamespace: true\n });\n });\n });\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true\n }\n });\n let router = Router.create({\n _hasModuleBasedResolver() {\n return true;\n }\n\n });\n (0, _owner.setOwner)(router, engineInstance);\n\n router._initRouterJs();\n\n assert.ok(router._routerMicrolib.recognizer.names['news.chat'], 'nested route was created');\n assert.ok(router._routerMicrolib.recognizer.names['news.chat_loading'], 'nested loading route was added');\n assert.ok(router._routerMicrolib.recognizer.names['news.chat_error'], 'nested error route was added');\n assert.ok(router._routerMicrolib.recognizer.names['blog'], 'reset route was created');\n assert.ok(router._routerMicrolib.recognizer.names['blog_loading'], 'reset loading route was added');\n assert.ok(router._routerMicrolib.recognizer.names['blog_error'], 'reset error route was added');\n assert.ok(!router._routerMicrolib.recognizer.names['news.blog'], 'nested reset route was not created');\n assert.ok(!router._routerMicrolib.recognizer.names['news.blog_loading'], 'nested reset loading route was not added');\n assert.ok(!router._routerMicrolib.recognizer.names['news.blog_error'], 'nested reset error route was not added');\n }\n\n });\n});","enifed(\"@ember/-internals/routing/tests/system/route_test\", [\"@ember/-internals/owner\", \"internal-test-helpers\", \"@ember/service\", \"@ember/-internals/runtime\", \"@ember/-internals/routing/lib/system/route\", \"@ember/-internals/metal\"], function (_owner, _internalTestHelpers, _service, _runtime, _route, _metal) {\n \"use strict\";\n\n let route, routeOne, routeTwo, lookupHash;\n (0, _internalTestHelpers.moduleFor)('Route', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n route = _route.default.create();\n }\n\n teardown() {\n super.teardown();\n (0, _internalTestHelpers.runDestroy)(route);\n route = routeOne = routeTwo = lookupHash = undefined;\n }\n\n ['@test default store utilizes the container to acquire the model factory'](assert) {\n assert.expect(4);\n\n let Post = _runtime.Object.extend();\n\n let post = {};\n Post.reopenClass({\n find() {\n return post;\n }\n\n });\n let ownerOptions = {\n ownerOptions: {\n hasRegistration() {\n return true;\n },\n\n factoryFor(fullName) {\n assert.equal(fullName, 'model:post', 'correct factory was looked up');\n return {\n class: Post,\n\n create() {\n return Post.create();\n }\n\n };\n }\n\n }\n };\n let owner = (0, _internalTestHelpers.buildOwner)(ownerOptions);\n (0, _owner.setOwner)(route, owner); // Override the computed property by redefining it\n\n (0, _metal.defineProperty)(route, '_qp', null, null);\n assert.equal(route.model({\n post_id: 1\n }), post);\n assert.equal(route.findModel('post', 1), post, '#findModel returns the correct post');\n (0, _internalTestHelpers.runDestroy)(owner);\n }\n\n [\"@test 'store' can be injected by data persistence frameworks\"](assert) {\n assert.expect(8);\n (0, _internalTestHelpers.runDestroy)(route);\n let owner = (0, _internalTestHelpers.buildOwner)();\n let post = {\n id: 1\n };\n\n let Store = _runtime.Object.extend({\n find(type, value) {\n assert.ok(true, 'injected model was called');\n assert.equal(type, 'post', 'correct type was called');\n assert.equal(value, 1, 'correct value was called');\n return post;\n }\n\n });\n\n owner.register('route:index', _route.default);\n owner.register('store:main', Store);\n owner.inject('route', 'store', 'store:main');\n route = owner.lookup('route:index');\n assert.equal(route.model({\n post_id: 1\n }), post, '#model returns the correct post');\n assert.equal(route.findModel('post', 1), post, '#findModel returns the correct post');\n (0, _internalTestHelpers.runDestroy)(owner);\n }\n\n [\"@test assert if 'store.find' method is not found\"]() {\n (0, _internalTestHelpers.runDestroy)(route);\n let owner = (0, _internalTestHelpers.buildOwner)();\n\n let Post = _runtime.Object.extend();\n\n owner.register('route:index', _route.default);\n owner.register('model:post', Post);\n route = owner.lookup('route:index');\n expectAssertion(function () {\n route.findModel('post', 1);\n }, 'Post has no method `find`.');\n (0, _internalTestHelpers.runDestroy)(owner);\n }\n\n ['@test asserts if model class is not found']() {\n (0, _internalTestHelpers.runDestroy)(route);\n let owner = (0, _internalTestHelpers.buildOwner)();\n owner.register('route:index', _route.default);\n route = owner.lookup('route:index');\n expectAssertion(function () {\n route.model({\n post_id: 1\n });\n }, /You used the dynamic segment post_id in your route undefined, but .Post did not exist and you did not override your route\\'s `model` hook./);\n (0, _internalTestHelpers.runDestroy)(owner);\n }\n\n [\"@test 'store' does not need to be injected\"](assert) {\n (0, _internalTestHelpers.runDestroy)(route);\n let owner = (0, _internalTestHelpers.buildOwner)();\n owner.register('route:index', _route.default);\n route = owner.lookup('route:index');\n ignoreAssertion(function () {\n route.model({\n post_id: 1\n });\n });\n assert.ok(true, 'no error was raised');\n (0, _internalTestHelpers.runDestroy)(owner);\n }\n\n [\"@test modelFor doesn't require the router\"](assert) {\n let owner = (0, _internalTestHelpers.buildOwner)();\n (0, _owner.setOwner)(route, owner);\n let foo = {\n name: 'foo'\n };\n\n let FooRoute = _route.default.extend({\n currentModel: foo\n });\n\n owner.register('route:foo', FooRoute);\n assert.strictEqual(route.modelFor('foo'), foo);\n (0, _internalTestHelpers.runDestroy)(owner);\n }\n\n [\"@test modelFor doesn't require the routerMicrolib\"](assert) {\n let route = _route.default.create({\n _router: {\n _routerMicrolib: null\n }\n });\n\n let owner = (0, _internalTestHelpers.buildOwner)();\n (0, _owner.setOwner)(route, owner);\n let foo = {\n name: 'foo'\n };\n\n let FooRoute = _route.default.extend({\n currentModel: foo\n });\n\n owner.register('route:foo', FooRoute);\n assert.strictEqual(route.modelFor('foo'), foo);\n (0, _internalTestHelpers.runDestroy)(owner);\n }\n\n ['@test .send just calls an action if the router is absent'](assert) {\n assert.expect(7);\n\n let route = _route.default.extend({\n actions: {\n returnsTrue(foo, bar) {\n assert.equal(foo, 1);\n assert.equal(bar, 2);\n assert.equal(this, route);\n return true;\n },\n\n returnsFalse() {\n assert.ok(true, 'returnsFalse was called');\n return false;\n }\n\n }\n }).create();\n\n assert.equal(route.send('returnsTrue', 1, 2), true);\n assert.equal(route.send('returnsFalse'), false);\n assert.equal(route.send('nonexistent', 1, 2, 3), undefined);\n (0, _internalTestHelpers.runDestroy)(route);\n }\n\n ['@test .send just calls an action if the routers internal router property is absent'](assert) {\n assert.expect(7);\n\n let route = _route.default.extend({\n router: {},\n actions: {\n returnsTrue(foo, bar) {\n assert.equal(foo, 1);\n assert.equal(bar, 2);\n assert.equal(this, route);\n return true;\n },\n\n returnsFalse() {\n assert.ok(true, 'returnsFalse was called');\n return false;\n }\n\n }\n }).create();\n\n assert.equal(true, route.send('returnsTrue', 1, 2));\n assert.equal(false, route.send('returnsFalse'));\n assert.equal(undefined, route.send('nonexistent', 1, 2, 3));\n (0, _internalTestHelpers.runDestroy)(route);\n }\n\n ['@test .send asserts if called on a destroyed route']() {\n route.routeName = 'rip-alley';\n (0, _internalTestHelpers.runDestroy)(route);\n expectAssertion(() => {\n route.send('trigger-me-dead');\n }, \"Attempted to call .send() with the action 'trigger-me-dead' on the destroyed route 'rip-alley'.\");\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Route serialize', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n route = _route.default.create();\n }\n\n teardown() {\n (0, _internalTestHelpers.runDestroy)(route);\n }\n\n ['@test returns the models properties if params does not include *_id'](assert) {\n let model = {\n id: 2,\n firstName: 'Ned',\n lastName: 'Ryerson'\n };\n assert.deepEqual(route.serialize(model, ['firstName', 'lastName']), {\n firstName: 'Ned',\n lastName: 'Ryerson'\n }, 'serialized correctly');\n }\n\n ['@test returns model.id if params include *_id'](assert) {\n let model = {\n id: 2\n };\n assert.deepEqual(route.serialize(model, ['post_id']), {\n post_id: 2\n }, 'serialized correctly');\n }\n\n ['@test returns checks for existence of model.post_id before trying model.id'](assert) {\n let model = {\n post_id: 3\n };\n assert.deepEqual(route.serialize(model, ['post_id']), {\n post_id: 3\n }, 'serialized correctly');\n }\n\n ['@test returns undefined if model is not set'](assert) {\n assert.equal(route.serialize(undefined, ['post_id']), undefined, 'serialized correctly');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Route interaction', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n let owner = {\n lookup(fullName) {\n return lookupHash[fullName];\n }\n\n };\n routeOne = _route.default.create({\n routeName: 'one'\n });\n routeTwo = _route.default.create({\n routeName: 'two'\n });\n (0, _owner.setOwner)(routeOne, owner);\n (0, _owner.setOwner)(routeTwo, owner);\n lookupHash = {\n 'route:one': routeOne,\n 'route:two': routeTwo\n };\n }\n\n teardown() {\n (0, _internalTestHelpers.runDestroy)(routeOne);\n (0, _internalTestHelpers.runDestroy)(routeTwo);\n }\n\n ['@test route._qp does not crash if the controller has no QP, or setProperties'](assert) {\n lookupHash['controller:test'] = {};\n routeOne.controllerName = 'test';\n let qp = routeOne.get('_qp');\n assert.deepEqual(qp.map, {}, 'map should be empty');\n assert.deepEqual(qp.propertyNames, [], 'property names should be empty');\n assert.deepEqual(qp.qps, [], 'qps is should be empty');\n }\n\n [\"@test controllerFor uses route's controllerName if specified\"](assert) {\n let testController = {};\n lookupHash['controller:test'] = testController;\n routeOne.controllerName = 'test';\n assert.equal(routeTwo.controllerFor('one'), testController);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Route injected properties', class extends _internalTestHelpers.AbstractTestCase {\n ['@test services can be injected into routes'](assert) {\n let owner = (0, _internalTestHelpers.buildOwner)();\n owner.register('route:application', _route.default.extend({\n authService: (0, _service.inject)('auth')\n }));\n owner.register('service:auth', _service.default.extend());\n let appRoute = owner.lookup('route:application');\n let authService = owner.lookup('service:auth');\n assert.equal(authService, appRoute.get('authService'), 'service.auth is injected');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Route with engines', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test paramsFor considers an engine's mountPoint\"](assert) {\n let router = {\n _deserializeQueryParams() {},\n\n _routerMicrolib: {\n state: {\n routeInfos: [{\n name: 'posts'\n }],\n params: {\n 'foo.bar': {\n a: 'b'\n },\n 'foo.bar.posts': {\n c: 'd'\n }\n }\n }\n }\n };\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar',\n\n lookup(name) {\n if (name === 'route:posts') {\n return postsRoute;\n } else if (name === 'route:application') {\n return applicationRoute;\n }\n }\n\n }\n });\n\n let applicationRoute = _route.default.create({\n _router: router,\n routeName: 'application',\n fullRouteName: 'foo.bar'\n });\n\n let postsRoute = _route.default.create({\n _router: router,\n routeName: 'posts',\n fullRouteName: 'foo.bar.posts'\n });\n\n let route = _route.default.create({\n _router: router\n });\n\n (0, _owner.setOwner)(applicationRoute, engineInstance);\n (0, _owner.setOwner)(postsRoute, engineInstance);\n (0, _owner.setOwner)(route, engineInstance);\n assert.deepEqual(route.paramsFor('application'), {\n a: 'b'\n }, 'params match for root `application` route in engine');\n assert.deepEqual(route.paramsFor('posts'), {\n c: 'd'\n }, 'params match for `posts` route in engine');\n }\n\n [\"@test modelFor considers an engine's mountPoint\"](assert) {\n let applicationModel = {\n id: '1'\n };\n let postsModel = {\n id: '2'\n };\n let router = {\n _routerMicrolib: {\n activeTransition: {\n resolvedModels: {\n 'foo.bar': applicationModel,\n 'foo.bar.posts': postsModel\n }\n }\n }\n };\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar',\n\n lookup(name) {\n if (name === 'route:posts') {\n return postsRoute;\n } else if (name === 'route:application') {\n return applicationRoute;\n }\n }\n\n }\n });\n\n let applicationRoute = _route.default.create({\n _router: router,\n routeName: 'application'\n });\n\n let postsRoute = _route.default.create({\n _router: router,\n routeName: 'posts'\n });\n\n let route = _route.default.create({\n _router: router\n });\n\n (0, _owner.setOwner)(applicationRoute, engineInstance);\n (0, _owner.setOwner)(postsRoute, engineInstance);\n (0, _owner.setOwner)(route, engineInstance);\n assert.strictEqual(route.modelFor('application'), applicationModel);\n assert.strictEqual(route.modelFor('posts'), postsModel);\n }\n\n [\"@test transitionTo considers an engine's mountPoint\"](assert) {\n let router = {\n transitionTo(route) {\n return route;\n }\n\n };\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar'\n }\n });\n\n let route = _route.default.create({\n _router: router\n });\n\n (0, _owner.setOwner)(route, engineInstance);\n assert.strictEqual(route.transitionTo('application'), 'foo.bar.application', 'properly prefixes application route');\n assert.strictEqual(route.transitionTo('posts'), 'foo.bar.posts', 'properly prefixes child routes');\n assert.throws(() => route.transitionTo('/posts'), 'throws when trying to use a url');\n let queryParams = {};\n assert.strictEqual(route.transitionTo(queryParams), queryParams, 'passes query param only transitions through');\n }\n\n [\"@test intermediateTransitionTo considers an engine's mountPoint\"](assert) {\n let lastRoute;\n let router = {\n intermediateTransitionTo(route) {\n lastRoute = route;\n }\n\n };\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar'\n }\n });\n\n let route = _route.default.create({\n _router: router\n });\n\n (0, _owner.setOwner)(route, engineInstance);\n route.intermediateTransitionTo('application');\n assert.strictEqual(lastRoute, 'foo.bar.application', 'properly prefixes application route');\n route.intermediateTransitionTo('posts');\n assert.strictEqual(lastRoute, 'foo.bar.posts', 'properly prefixes child routes');\n assert.throws(() => route.intermediateTransitionTo('/posts'), 'throws when trying to use a url');\n let queryParams = {};\n route.intermediateTransitionTo(queryParams);\n assert.strictEqual(lastRoute, queryParams, 'passes query param only transitions through');\n }\n\n [\"@test replaceWith considers an engine's mountPoint\"](assert) {\n let router = {\n replaceWith(route) {\n return route;\n }\n\n };\n let engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar'\n }\n });\n\n let route = _route.default.create({\n _router: router\n });\n\n (0, _owner.setOwner)(route, engineInstance);\n assert.strictEqual(route.replaceWith('application'), 'foo.bar.application', 'properly prefixes application route');\n assert.strictEqual(route.replaceWith('posts'), 'foo.bar.posts', 'properly prefixes child routes');\n assert.throws(() => route.replaceWith('/posts'), 'throws when trying to use a url');\n let queryParams = {};\n assert.strictEqual(route.replaceWith(queryParams), queryParams, 'passes query param only transitions through');\n }\n\n });\n});","enifed(\"@ember/-internals/routing/tests/system/router_test\", [\"@ember/-internals/owner\", \"@ember/-internals/routing/lib/location/hash_location\", \"@ember/-internals/routing/lib/location/history_location\", \"@ember/-internals/routing/lib/location/auto_location\", \"@ember/-internals/routing/lib/location/none_location\", \"@ember/-internals/routing/lib/system/router\", \"internal-test-helpers\"], function (_owner, _hash_location, _history_location, _auto_location, _none_location, _router, _internalTestHelpers) {\n \"use strict\";\n\n let owner;\n\n function createRouter(settings, options = {}) {\n let CustomRouter = _router.default.extend();\n\n let router = CustomRouter.create(settings);\n\n if (!options.skipOwner) {\n (0, _owner.setOwner)(router, owner);\n }\n\n if (!options.disableSetup) {\n router.setupRouter();\n }\n\n return router;\n }\n\n (0, _internalTestHelpers.moduleFor)('Ember Router', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n owner = (0, _internalTestHelpers.buildOwner)(); //register the HashLocation (the default)\n\n owner.register('location:hash', _hash_location.default);\n owner.register('location:history', _history_location.default);\n owner.register('location:auto', _auto_location.default);\n owner.register('location:none', _none_location.default);\n }\n\n teardown() {\n (0, _internalTestHelpers.runDestroy)(owner);\n owner = null;\n }\n\n ['@test can create a router without an owner'](assert) {\n createRouter(undefined, {\n disableSetup: true,\n skipOwner: true\n });\n assert.ok(true, 'no errors were thrown when creating without a container');\n }\n\n ['@test [GH#15237] EmberError is imported correctly'](assert) {\n // If we get the right message it means Error is being imported correctly.\n assert.throws(function () {\n (0, _router.triggerEvent)(null, false, []);\n }, /because your app hasn't finished transitioning/);\n }\n\n ['@test should not create a router.js instance upon init'](assert) {\n let router = createRouter(undefined, {\n disableSetup: true\n });\n assert.ok(!router._routerMicrolib);\n }\n\n ['@test should not reify location until setupRouter is called'](assert) {\n let router = createRouter(undefined, {\n disableSetup: true\n });\n assert.equal(typeof router.location, 'string', 'location is specified as a string');\n router.setupRouter();\n assert.equal(typeof router.location, 'object', 'location is reified into an object');\n }\n\n ['@test should destroy its location upon destroying the routers owner.'](assert) {\n let router = createRouter();\n let location = router.get('location');\n (0, _internalTestHelpers.runDestroy)(owner);\n assert.ok(location.isDestroyed, 'location should be destroyed');\n }\n\n ['@test should instantiate its location with its `rootURL`'](assert) {\n let router = createRouter({\n rootURL: '/rootdir/'\n });\n let location = router.get('location');\n assert.equal(location.get('rootURL'), '/rootdir/');\n }\n\n ['@test replacePath should be called with the right path'](assert) {\n assert.expect(1);\n let location = owner.lookup('location:auto');\n let browserLocation = {\n href: 'http://test.com/rootdir/welcome',\n origin: 'http://test.com',\n pathname: '/rootdir/welcome',\n hash: '',\n search: '',\n\n replace(url) {\n assert.equal(url, 'http://test.com/rootdir/#/welcome');\n }\n\n };\n location.location = browserLocation;\n location.global = {\n onhashchange() {}\n\n };\n location.history = null;\n createRouter({\n location: 'auto',\n rootURL: '/rootdir/'\n });\n }\n\n ['@test Router._routePath should consume identical prefixes'](assert) {\n createRouter();\n\n function routePath() {\n let routeInfos = Array.prototype.slice.call(arguments).map(function (s) {\n return {\n name: s\n };\n });\n routeInfos.unshift({\n name: 'ignored'\n });\n return _router.default._routePath(routeInfos);\n }\n\n assert.equal(routePath('foo'), 'foo');\n assert.equal(routePath('foo', 'bar', 'baz'), 'foo.bar.baz');\n assert.equal(routePath('foo', 'foo.bar'), 'foo.bar');\n assert.equal(routePath('foo', 'foo.bar', 'foo.bar.baz'), 'foo.bar.baz');\n assert.equal(routePath('foo', 'foo.bar', 'foo.bar.baz.wow'), 'foo.bar.baz.wow');\n assert.equal(routePath('foo', 'foo.bar.baz.wow'), 'foo.bar.baz.wow');\n assert.equal(routePath('foo.bar', 'bar.baz.wow'), 'foo.bar.baz.wow'); // This makes no sense, not trying to handle it, just\n // making sure it doesn't go boom.\n\n assert.equal(routePath('foo.bar.baz', 'foo'), 'foo.bar.baz.foo');\n }\n\n ['@test Router should cancel routing setup when the Location class says so via cancelRouterSetup'](assert) {\n assert.expect(0);\n let router;\n let FakeLocation = {\n cancelRouterSetup: true,\n\n create() {\n return this;\n }\n\n };\n owner.register('location:fake', FakeLocation);\n router = createRouter({\n location: 'fake',\n\n _setupRouter() {\n assert.ok(false, '_setupRouter should not be called');\n }\n\n });\n router.startRouting();\n }\n\n [\"@test AutoLocation should replace the url when it's not in the preferred format\"](assert) {\n assert.expect(1);\n let location = owner.lookup('location:auto');\n location.location = {\n href: 'http://test.com/rootdir/welcome',\n origin: 'http://test.com',\n pathname: '/rootdir/welcome',\n hash: '',\n search: '',\n\n replace(url) {\n assert.equal(url, 'http://test.com/rootdir/#/welcome');\n }\n\n };\n location.history = null;\n location.global = {\n onhashchange() {}\n\n };\n createRouter({\n location: 'auto',\n rootURL: '/rootdir/'\n });\n }\n\n ['@test Router#handleURL should remove any #hashes before doing URL transition'](assert) {\n assert.expect(2);\n let router = createRouter({\n _doURLTransition(routerJsMethod, url) {\n assert.equal(routerJsMethod, 'handleURL');\n assert.equal(url, '/foo/bar?time=morphin');\n }\n\n });\n router.handleURL('/foo/bar?time=morphin#pink-power-ranger');\n }\n\n ['@test Router#triggerEvent allows actions to bubble when returning true'](assert) {\n assert.expect(2);\n let routeInfos = [{\n name: 'application',\n route: {\n actions: {\n loading() {\n assert.ok(false, 'loading not handled by application route');\n }\n\n }\n }\n }, {\n name: 'about',\n route: {\n actions: {\n loading() {\n assert.ok(true, 'loading handled by about route');\n return false;\n }\n\n }\n }\n }, {\n name: 'about.me',\n route: {\n actions: {\n loading() {\n assert.ok(true, 'loading handled by about.me route');\n return true;\n }\n\n }\n }\n }];\n (0, _router.triggerEvent)(routeInfos, false, ['loading']);\n }\n\n ['@test Router#triggerEvent ignores handlers that have not loaded yet'](assert) {\n assert.expect(1);\n let routeInfos = [{\n name: 'about',\n route: {\n actions: {\n loading() {\n assert.ok(true, 'loading handled by about route');\n }\n\n }\n }\n }, {\n name: 'about.me',\n route: undefined\n }];\n (0, _router.triggerEvent)(routeInfos, false, ['loading']);\n }\n\n ['@test transitionTo should throw an error when called after owner is destroyed']() {\n let router = createRouter();\n (0, _internalTestHelpers.runDestroy)(router);\n router.currentRouteName = 'route-a';\n expectAssertion(function () {\n router.transitionTo('route-b');\n }, \"A transition was attempted from 'route-a' to 'route-b' but the application instance has already been destroyed.\");\n expectAssertion(function () {\n router.transitionTo('./route-b/1');\n }, \"A transition was attempted from 'route-a' to './route-b/1' but the application instance has already been destroyed.\");\n }\n\n });\n});","enifed(\"@ember/-internals/routing/tests/utils_test\", [\"@ember/-internals/routing/lib/utils\", \"internal-test-helpers\"], function (_utils, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Routing query parameter utils - normalizeControllerQueryParams', class extends _internalTestHelpers.AbstractTestCase {\n ['@test converts array style into verbose object style'](assert) {\n let paramName = 'foo';\n let params = [paramName];\n let normalized = (0, _utils.normalizeControllerQueryParams)(params);\n assert.ok(normalized[paramName], 'turns the query param name into key');\n assert.equal(normalized[paramName].as, null, \"includes a blank alias in 'as' key\");\n assert.equal(normalized[paramName].scope, 'model', 'defaults scope to model');\n }\n\n [\"@test converts object style [{foo: 'an_alias'}]\"](assert) {\n let paramName = 'foo';\n let params = [{\n foo: 'an_alias'\n }];\n let normalized = (0, _utils.normalizeControllerQueryParams)(params);\n assert.ok(normalized[paramName], 'retains the query param name as key');\n assert.equal(normalized[paramName].as, 'an_alias', \"includes the provided alias in 'as' key\");\n assert.equal(normalized[paramName].scope, 'model', 'defaults scope to model');\n }\n\n [\"@test retains maximally verbose object style [{foo: {as: 'foo'}}]\"](assert) {\n let paramName = 'foo';\n let params = [{\n foo: {\n as: 'an_alias'\n }\n }];\n let normalized = (0, _utils.normalizeControllerQueryParams)(params);\n assert.ok(normalized[paramName], 'retains the query param name as key');\n assert.equal(normalized[paramName].as, 'an_alias', \"includes the provided alias in 'as' key\");\n assert.equal(normalized[paramName].scope, 'model', 'defaults scope to model');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/index\", [\"exports\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/registry_proxy\", \"@ember/-internals/runtime/lib/mixins/container_proxy\", \"@ember/-internals/runtime/lib/copy\", \"@ember/-internals/runtime/lib/compare\", \"@ember/-internals/runtime/lib/is-equal\", \"@ember/-internals/runtime/lib/mixins/array\", \"@ember/-internals/runtime/lib/mixins/comparable\", \"@ember/-internals/runtime/lib/system/namespace\", \"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/system/object_proxy\", \"@ember/-internals/runtime/lib/system/core_object\", \"@ember/-internals/runtime/lib/mixins/action_handler\", \"@ember/-internals/runtime/lib/mixins/copyable\", \"@ember/-internals/runtime/lib/mixins/enumerable\", \"@ember/-internals/runtime/lib/mixins/-proxy\", \"@ember/-internals/runtime/lib/mixins/observable\", \"@ember/-internals/runtime/lib/mixins/mutable_enumerable\", \"@ember/-internals/runtime/lib/mixins/target_action_support\", \"@ember/-internals/runtime/lib/mixins/evented\", \"@ember/-internals/runtime/lib/mixins/promise_proxy\", \"@ember/-internals/runtime/lib/ext/rsvp\", \"@ember/-internals/runtime/lib/type-of\", \"@ember/-internals/runtime/lib/ext/function\"], function (_exports, _object, _registry_proxy, _container_proxy, _copy, _compare, _isEqual, _array, _comparable, _namespace, _array_proxy, _object_proxy, _core_object, _action_handler, _copyable, _enumerable, _proxy, _observable, _mutable_enumerable, _target_action_support, _evented, _promise_proxy, _rsvp, _typeOf, _function) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.typeOf = _exports.onerrorDefault = _exports._contentFor = _exports.isArray = _exports.uniqBy = _exports.removeAt = _exports.MutableArray = _exports.A = _exports.NativeArray = _exports.isEmberArray = _exports.FrameworkObject = _exports.RSVP = _exports.PromiseProxyMixin = _exports.Evented = _exports.TargetActionSupport = _exports.MutableEnumerable = _exports.Observable = _exports._ProxyMixin = _exports.Enumerable = _exports.Copyable = _exports.ActionHandler = _exports.CoreObject = _exports.ObjectProxy = _exports.ArrayProxy = _exports.Namespace = _exports.Comparable = _exports.Array = _exports.isEqual = _exports.compare = _exports.copy = _exports.ContainerProxyMixin = _exports.RegistryProxyMixin = _exports.Object = void 0;\n _exports.Object = _object.default;\n _exports.FrameworkObject = _object.FrameworkObject;\n _exports.RegistryProxyMixin = _registry_proxy.default;\n _exports.ContainerProxyMixin = _container_proxy.default;\n _exports.copy = _copy.default;\n _exports.compare = _compare.default;\n _exports.isEqual = _isEqual.default;\n _exports.Array = _array.default;\n _exports.isEmberArray = _array.isEmberArray;\n _exports.NativeArray = _array.NativeArray;\n _exports.A = _array.A;\n _exports.MutableArray = _array.MutableArray;\n _exports.removeAt = _array.removeAt;\n _exports.uniqBy = _array.uniqBy;\n _exports.isArray = _array.isArray;\n _exports.Comparable = _comparable.default;\n _exports.Namespace = _namespace.default;\n _exports.ArrayProxy = _array_proxy.default;\n _exports.ObjectProxy = _object_proxy.default;\n _exports.CoreObject = _core_object.default;\n _exports.ActionHandler = _action_handler.default;\n _exports.Copyable = _copyable.default;\n _exports.Enumerable = _enumerable.default;\n _exports._ProxyMixin = _proxy.default;\n _exports._contentFor = _proxy.contentFor;\n _exports.Observable = _observable.default;\n _exports.MutableEnumerable = _mutable_enumerable.default;\n _exports.TargetActionSupport = _target_action_support.default;\n _exports.Evented = _evented.default;\n _exports.PromiseProxyMixin = _promise_proxy.default;\n _exports.RSVP = _rsvp.default;\n _exports.onerrorDefault = _rsvp.onerrorDefault;\n _exports.typeOf = _typeOf.typeOf;\n});","enifed(\"@ember/-internals/runtime/lib/compare\", [\"exports\", \"@ember/-internals/runtime/lib/type-of\", \"@ember/-internals/runtime/lib/mixins/comparable\"], function (_exports, _typeOf, _comparable) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = compare;\n const TYPE_ORDER = {\n undefined: 0,\n null: 1,\n boolean: 2,\n number: 3,\n string: 4,\n array: 5,\n object: 6,\n instance: 7,\n function: 8,\n class: 9,\n date: 10\n }; //\n // the spaceship operator\n //\n // `. ___\n // __,' __`. _..----....____\n // __...--.'``;. ,. ;``--..__ .' ,-._ _.-'\n // _..-''-------' `' `' `' O ``-''._ (,;') _,'\n // ,'________________ \\`-._`-','\n // `._ ```````````------...___ '-.._'-:\n // ```--.._ ,. ````--...__\\-.\n // `.--. `-` \"INFINITY IS LESS ____ | |`\n // `. `. THAN BEYOND\" ,'`````. ; ;`\n // `._`. __________ `. \\'__/`\n // `-:._____/______/___/____`. \\ `\n // | `._ `. \\\n // `._________`-. `. `.___\n // SSt `------'`\n\n function spaceship(a, b) {\n let diff = a - b;\n return (diff > 0) - (diff < 0);\n }\n /**\n @module @ember/utils\n */\n\n /**\n Compares two javascript values and returns:\n \n - -1 if the first is smaller than the second,\n - 0 if both are equal,\n - 1 if the first is greater than the second.\n \n ```javascript\n import { compare } from '@ember/utils';\n \n compare('hello', 'hello'); // 0\n compare('abc', 'dfg'); // -1\n compare(2, 1); // 1\n ```\n \n If the types of the two objects are different precedence occurs in the\n following order, with types earlier in the list considered `<` types\n later in the list:\n \n - undefined\n - null\n - boolean\n - number\n - string\n - array\n - object\n - instance\n - function\n - class\n - date\n \n ```javascript\n import { compare } from '@ember/utils';\n \n compare('hello', 50); // 1\n compare(50, 'hello'); // -1\n ```\n \n @method compare\n @for @ember/utils\n @static\n @param {Object} v First value to compare\n @param {Object} w Second value to compare\n @return {Number} -1 if v < w, 0 if v = w and 1 if v > w.\n @public\n */\n\n\n function compare(v, w) {\n if (v === w) {\n return 0;\n }\n\n let type1 = (0, _typeOf.typeOf)(v);\n let type2 = (0, _typeOf.typeOf)(w);\n\n if (type1 === 'instance' && _comparable.default.detect(v) && v.constructor.compare) {\n return v.constructor.compare(v, w);\n }\n\n if (type2 === 'instance' && _comparable.default.detect(w) && w.constructor.compare) {\n return w.constructor.compare(w, v) * -1;\n }\n\n let res = spaceship(TYPE_ORDER[type1], TYPE_ORDER[type2]);\n\n if (res !== 0) {\n return res;\n } // types are equal - so we have to check values now\n\n\n switch (type1) {\n case 'boolean':\n case 'number':\n return spaceship(v, w);\n\n case 'string':\n return spaceship(v.localeCompare(w), 0);\n\n case 'array':\n {\n let vLen = v.length;\n let wLen = w.length;\n let len = Math.min(vLen, wLen);\n\n for (let i = 0; i < len; i++) {\n let r = compare(v[i], w[i]);\n\n if (r !== 0) {\n return r;\n }\n } // all elements are equal now\n // shorter array should be ordered first\n\n\n return spaceship(vLen, wLen);\n }\n\n case 'instance':\n if (_comparable.default.detect(v)) {\n return v.compare(v, w);\n }\n\n return 0;\n\n case 'date':\n return spaceship(v.getTime(), w.getTime());\n\n default:\n return 0;\n }\n }\n});","enifed(\"@ember/-internals/runtime/lib/copy\", [\"exports\", \"@ember/debug\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/copyable\"], function (_exports, _debug, _object, _copyable) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = copy;\n\n /**\n @module @ember/object\n */\n function _copy(obj, deep, seen, copies) {\n // primitive data types are immutable, just return them.\n if (typeof obj !== 'object' || obj === null) {\n return obj;\n }\n\n let ret, loc; // avoid cyclical loops\n\n if (deep && (loc = seen.indexOf(obj)) >= 0) {\n return copies[loc];\n }\n\n if (deep) {\n seen.push(obj);\n } // IMPORTANT: this specific test will detect a native array only. Any other\n // object will need to implement Copyable.\n\n\n if (Array.isArray(obj)) {\n ret = obj.slice();\n\n if (deep) {\n copies.push(ret);\n loc = ret.length;\n\n while (--loc >= 0) {\n ret[loc] = _copy(ret[loc], deep, seen, copies);\n }\n }\n } else if (_copyable.default.detect(obj)) {\n ret = obj.copy(deep, seen, copies);\n\n if (deep) {\n copies.push(ret);\n }\n } else if (obj instanceof Date) {\n ret = new Date(obj.getTime());\n\n if (deep) {\n copies.push(ret);\n }\n } else {\n (0, _debug.assert)('Cannot clone an EmberObject that does not implement Copyable', !(obj instanceof _object.default) || _copyable.default.detect(obj));\n ret = {};\n\n if (deep) {\n copies.push(ret);\n }\n\n let key;\n\n for (key in obj) {\n // support Null prototype\n if (!Object.prototype.hasOwnProperty.call(obj, key)) {\n continue;\n } // Prevents browsers that don't respect non-enumerability from\n // copying internal Ember properties\n\n\n if (key.substring(0, 2) === '__') {\n continue;\n }\n\n ret[key] = deep ? _copy(obj[key], deep, seen, copies) : obj[key];\n }\n }\n\n return ret;\n }\n /**\n Creates a shallow copy of the passed object. A deep copy of the object is\n returned if the optional `deep` argument is `true`.\n \n If the passed object implements the `Copyable` interface, then this\n function will delegate to the object's `copy()` method and return the\n result. See `Copyable` for further details.\n \n For primitive values (which are immutable in JavaScript), the passed object\n is simply returned.\n \n @method copy\n @deprecated Use 'ember-copy' addon instead\n @static\n @for @ember/object/internals\n @param {Object} obj The object to clone\n @param {Boolean} [deep=false] If true, a deep copy of the object is made.\n @return {Object} The copied object\n @public\n */\n\n\n function copy(obj, deep) {\n (0, _debug.deprecate)('Use ember-copy addon instead of copy method and Copyable mixin.', false, {\n id: 'ember-runtime.deprecate-copy-copyable',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x/#toc_ember-runtime-deprecate-copy-copyable'\n }); // fast paths\n\n if ('object' !== typeof obj || obj === null) {\n return obj; // can't copy primitives\n }\n\n if (!Array.isArray(obj) && _copyable.default.detect(obj)) {\n return obj.copy(deep);\n }\n\n return _copy(obj, deep, deep ? [] : null, deep ? [] : null);\n }\n});","enifed(\"@ember/-internals/runtime/lib/ext/function\", [\"@ember/-internals/environment\", \"@ember/-internals/metal\"], function (_environment, _metal) {\n \"use strict\";\n\n /**\n @module ember\n */\n if (_environment.ENV.EXTEND_PROTOTYPES.Function) {\n Object.defineProperties(Function.prototype, {\n /**\n The `property` extension of Javascript's Function prototype is available\n when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n `true`, which is the default.\n Computed properties allow you to treat a function like a property:\n ```app/utils/president.js\n import EmberObject from '@ember/object';\n export default EmberObject.extend({\n firstName: '',\n lastName: '',\n fullName: function() {\n return this.get('firstName') + ' ' + this.get('lastName');\n }.property() // Call this flag to mark the function as a property\n });\n ```\n ```javascript\n let president = President.create({\n firstName: 'Barack',\n lastName: 'Obama'\n });\n president.get('fullName'); // 'Barack Obama'\n ```\n Treating a function like a property is useful because they can work with\n bindings, just like any other property.\n Many computed properties have dependencies on other properties. For\n example, in the above example, the `fullName` property depends on\n `firstName` and `lastName` to determine its value. You can tell Ember\n about these dependencies like this:\n ```app/utils/president.js\n import EmberObject from '@ember/object';\n export default EmberObject.extend({\n firstName: '',\n lastName: '',\n fullName: function() {\n return this.get('firstName') + ' ' + this.get('lastName');\n // Tell Ember.js that this computed property depends on firstName\n // and lastName\n }.property('firstName', 'lastName')\n });\n ```\n Make sure you list these dependencies so Ember knows when to update\n bindings that connect to a computed property. Changing a dependency\n will not immediately trigger an update of the computed property, but\n will instead clear the cache so that it is updated when the next `get`\n is called on the property.\n See [ComputedProperty](/api/ember/release/classes/ComputedProperty), [@ember/object/computed](/api/ember/release/classes/@ember%2Fobject%2Fcomputed).\n @method property\n @for Function\n @public\n */\n property: {\n configurable: true,\n enumerable: false,\n writable: true,\n value: function () {\n return (0, _metal.computed)(...arguments, this);\n }\n },\n\n /**\n The `observes` extension of Javascript's Function prototype is available\n when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n true, which is the default.\n You can observe property changes simply by adding the `observes`\n call to the end of your method declarations in classes that you write.\n For example:\n ```javascript\n import EmberObject from '@ember/object';\n EmberObject.extend({\n valueObserver: function() {\n // Executes whenever the \"value\" property changes\n }.observes('value')\n });\n ```\n In the future this method may become asynchronous.\n See `observer`.\n @method observes\n @for Function\n @public\n */\n observes: {\n configurable: true,\n enumerable: false,\n writable: true,\n value: function () {\n return (0, _metal.observer)(...arguments, this);\n }\n },\n\n /**\n The `on` extension of Javascript's Function prototype is available\n when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n true, which is the default.\n You can listen for events simply by adding the `on` call to the end of\n your method declarations in classes or mixins that you write. For example:\n ```javascript\n import Mixin from '@ember/mixin';\n Mixin.create({\n doSomethingWithElement: function() {\n // Executes whenever the \"didInsertElement\" event fires\n }.on('didInsertElement')\n });\n ```\n See `@ember/object/evented/on`.\n @method on\n @for Function\n @public\n */\n on: {\n configurable: true,\n enumerable: false,\n writable: true,\n value: function () {\n return (0, _metal.on)(...arguments, this);\n }\n }\n });\n }\n});","enifed(\"@ember/-internals/runtime/lib/ext/rsvp\", [\"exports\", \"rsvp\", \"@ember/runloop\", \"@ember/-internals/error-handling\", \"@ember/debug\"], function (_exports, RSVP, _runloop, _errorHandling, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.onerrorDefault = onerrorDefault;\n _exports.default = void 0;\n RSVP.configure('async', (callback, promise) => {\n _runloop.backburner.schedule('actions', null, callback, promise);\n });\n RSVP.configure('after', cb => {\n _runloop.backburner.schedule(_runloop._rsvpErrorQueue, null, cb);\n });\n RSVP.on('error', onerrorDefault);\n\n function onerrorDefault(reason) {\n let error = errorFor(reason);\n\n if (error) {\n let overrideDispatch = (0, _errorHandling.getDispatchOverride)();\n\n if (overrideDispatch) {\n overrideDispatch(error);\n } else {\n throw error;\n }\n }\n }\n\n function errorFor(reason) {\n if (!reason) return;\n\n if (reason.errorThrown) {\n return unwrapErrorThrown(reason);\n }\n\n if (reason.name === 'UnrecognizedURLError') {\n (0, _debug.assert)(\"The URL '\" + reason.message + \"' did not match any routes in your application\", false);\n return;\n }\n\n if (reason.name === 'TransitionAborted') {\n return;\n }\n\n return reason;\n }\n\n function unwrapErrorThrown(reason) {\n let error = reason.errorThrown;\n\n if (typeof error === 'string') {\n error = new Error(error);\n }\n\n Object.defineProperty(error, '__reason_with_error_thrown__', {\n value: reason,\n enumerable: false\n });\n return error;\n }\n\n var _default = RSVP;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/is-equal\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = isEqual;\n\n /**\n @module @ember/utils\n */\n\n /**\n Compares two objects, returning true if they are equal.\n \n ```javascript\n import { isEqual } from '@ember/utils';\n \n isEqual('hello', 'hello'); // true\n isEqual(1, 2); // false\n ```\n \n `isEqual` is a more specific comparison than a triple equal comparison.\n It will call the `isEqual` instance method on the objects being\n compared, allowing finer control over when objects should be considered\n equal to each other.\n \n ```javascript\n import { isEqual } from '@ember/utils';\n import EmberObject from '@ember/object';\n \n let Person = EmberObject.extend({\n isEqual(other) { return this.ssn == other.ssn; }\n });\n \n let personA = Person.create({name: 'Muhammad Ali', ssn: '123-45-6789'});\n let personB = Person.create({name: 'Cassius Clay', ssn: '123-45-6789'});\n \n isEqual(personA, personB); // true\n ```\n \n Due to the expense of array comparisons, collections will never be equal to\n each other even if each of their items are equal to each other.\n \n ```javascript\n import { isEqual } from '@ember/utils';\n \n isEqual([4, 2], [4, 2]); // false\n ```\n \n @method isEqual\n @for @ember/utils\n @static\n @param {Object} a first object to compare\n @param {Object} b second object to compare\n @return {Boolean}\n @public\n */\n function isEqual(a, b) {\n if (a && typeof a.isEqual === 'function') {\n return a.isEqual(b);\n }\n\n if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime();\n }\n\n return a === b;\n }\n});","enifed(\"@ember/-internals/runtime/lib/mixins/-proxy\", [\"exports\", \"@glimmer/reference\", \"@ember/-internals/meta\", \"@ember/-internals/metal\", \"@ember/-internals/utils\", \"@ember/debug\"], function (_exports, _reference, _meta, _metal, _utils, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.contentFor = contentFor;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n function contentFor(proxy, m) {\n let content = (0, _metal.get)(proxy, 'content');\n let tag = (m === undefined ? (0, _meta.meta)(proxy) : m).readableTag();\n\n if (tag !== undefined) {\n tag.inner.second.inner.update((0, _metal.tagFor)(content));\n }\n\n return content;\n }\n /**\n `Ember.ProxyMixin` forwards all properties not defined by the proxy itself\n to a proxied `content` object. See ObjectProxy for more details.\n \n @class ProxyMixin\n @namespace Ember\n @private\n */\n\n\n var _default = _metal.Mixin.create({\n /**\n The object whose properties will be forwarded.\n @property content\n @type EmberObject\n @default null\n @private\n */\n content: null,\n\n init() {\n this._super(...arguments);\n\n (0, _utils.setProxy)(this);\n let m = (0, _meta.meta)(this);\n m.writableTag(() => (0, _reference.combine)([_reference.DirtyableTag.create(), _reference.UpdatableTag.create(_reference.CONSTANT_TAG)]));\n },\n\n willDestroy() {\n this.set('content', null);\n\n this._super(...arguments);\n },\n\n isTruthy: (0, _metal.computed)('content', function () {\n return Boolean((0, _metal.get)(this, 'content'));\n }),\n\n willWatchProperty(key) {\n let contentKey = \"content.\" + key;\n (0, _metal.addObserver)(this, contentKey, null, '_contentPropertyDidChange');\n },\n\n didUnwatchProperty(key) {\n let contentKey = \"content.\" + key;\n (0, _metal.removeObserver)(this, contentKey, null, '_contentPropertyDidChange');\n },\n\n _contentPropertyDidChange(content, contentKey) {\n let key = contentKey.slice(8); // remove \"content.\"\n\n if (key in this) {\n return;\n } // if shadowed in proxy\n\n\n (0, _metal.notifyPropertyChange)(this, key);\n },\n\n unknownProperty(key) {\n let content = contentFor(this);\n\n if (content) {\n return (0, _metal.get)(content, key);\n }\n },\n\n setUnknownProperty(key, value) {\n let m = (0, _meta.meta)(this);\n\n if (m.isInitializing() || m.isPrototypeMeta(this)) {\n // if marked as prototype or object is initializing then just\n // defineProperty rather than delegate\n (0, _metal.defineProperty)(this, key, null, value);\n return value;\n }\n\n let content = contentFor(this, m);\n (0, _debug.assert)(\"Cannot delegate set('\" + key + \"', \" + value + \") to the 'content' property of object proxy \" + this + \": its 'content' is undefined.\", content);\n return (0, _metal.set)(content, key, value);\n }\n\n });\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/mixins/action_handler\", [\"exports\", \"@ember/-internals/metal\", \"@ember/debug\"], function (_exports, _metal, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n `Ember.ActionHandler` is available on some familiar classes including\n `Route`, `Component`, and `Controller`.\n (Internally the mixin is used by `Ember.CoreView`, `Ember.ControllerMixin`,\n and `Route` and available to the above classes through\n inheritance.)\n \n @class ActionHandler\n @namespace Ember\n @private\n */\n const ActionHandler = _metal.Mixin.create({\n mergedProperties: ['actions'],\n\n /**\n The collection of functions, keyed by name, available on this\n `ActionHandler` as action targets.\n These functions will be invoked when a matching `{{action}}` is triggered\n from within a template and the application's current route is this route.\n Actions can also be invoked from other parts of your application\n via `ActionHandler#send`.\n The `actions` hash will inherit action handlers from\n the `actions` hash defined on extended parent classes\n or mixins rather than just replace the entire hash, e.g.:\n ```app/mixins/can-display-banner.js\n import Mixin from '@ember/mixin';\n export default Mixin.create({\n actions: {\n displayBanner(msg) {\n // ...\n }\n }\n });\n ```\n ```app/routes/welcome.js\n import Route from '@ember/routing/route';\n import CanDisplayBanner from '../mixins/can-display-banner';\n export default Route.extend(CanDisplayBanner, {\n actions: {\n playMusic() {\n // ...\n }\n }\n });\n // `WelcomeRoute`, when active, will be able to respond\n // to both actions, since the actions hash is merged rather\n // then replaced when extending mixins / parent classes.\n this.send('displayBanner');\n this.send('playMusic');\n ```\n Within a Controller, Route or Component's action handler,\n the value of the `this` context is the Controller, Route or\n Component object:\n ```app/routes/song.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n myAction() {\n this.controllerFor(\"song\");\n this.transitionTo(\"other.route\");\n ...\n }\n }\n });\n ```\n It is also possible to call `this._super(...arguments)` from within an\n action handler if it overrides a handler defined on a parent\n class or mixin:\n Take for example the following routes:\n ```app/mixins/debug-route.js\n import Mixin from '@ember/mixin';\n export default Mixin.create({\n actions: {\n debugRouteInformation() {\n console.debug(\"It's a-me, console.debug!\");\n }\n }\n });\n ```\n ```app/routes/annoying-debug.js\n import Route from '@ember/routing/route';\n import DebugRoute from '../mixins/debug-route';\n export default Route.extend(DebugRoute, {\n actions: {\n debugRouteInformation() {\n // also call the debugRouteInformation of mixed in DebugRoute\n this._super(...arguments);\n // show additional annoyance\n window.alert(...);\n }\n }\n });\n ```\n ## Bubbling\n By default, an action will stop bubbling once a handler defined\n on the `actions` hash handles it. To continue bubbling the action,\n you must return `true` from the handler:\n ```app/router.js\n Router.map(function() {\n this.route(\"album\", function() {\n this.route(\"song\");\n });\n });\n ```\n ```app/routes/album.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n startPlaying: function() {\n }\n }\n });\n ```\n ```app/routes/album-song.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n startPlaying() {\n // ...\n if (actionShouldAlsoBeTriggeredOnParentRoute) {\n return true;\n }\n }\n }\n });\n ```\n @property actions\n @type Object\n @default null\n @public\n */\n\n /**\n Triggers a named action on the `ActionHandler`. Any parameters\n supplied after the `actionName` string will be passed as arguments\n to the action target function.\n If the `ActionHandler` has its `target` property set, actions may\n bubble to the `target`. Bubbling happens when an `actionName` can\n not be found in the `ActionHandler`'s `actions` hash or if the\n action target function returns `true`.\n Example\n ```app/routes/welcome.js\n import Route from '@ember/routing/route';\n export default Route.extend({\n actions: {\n playTheme() {\n this.send('playMusic', 'theme.mp3');\n },\n playMusic(track) {\n // ...\n }\n }\n });\n ```\n @method send\n @param {String} actionName The action to trigger\n @param {*} context a context to send with the action\n @public\n */\n send(actionName, ...args) {\n (0, _debug.assert)(\"Attempted to call .send() with the action '\" + actionName + \"' on the destroyed object '\" + this + \"'.\", !this.isDestroying && !this.isDestroyed);\n\n if (this.actions && this.actions[actionName]) {\n let shouldBubble = this.actions[actionName].apply(this, args) === true;\n\n if (!shouldBubble) {\n return;\n }\n }\n\n let target = (0, _metal.get)(this, 'target');\n\n if (target) {\n (0, _debug.assert)(\"The `target` for \" + this + \" (\" + target + \") does not have a `send` method\", typeof target.send === 'function');\n target.send(...arguments);\n }\n }\n\n });\n\n var _default = ActionHandler;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/mixins/array\", [\"exports\", \"@glimmer/env\", \"@ember/-internals/metal\", \"@ember/-internals/utils\", \"@ember/debug\", \"@ember/-internals/runtime/lib/mixins/enumerable\", \"@ember/-internals/runtime/lib/compare\", \"@ember/-internals/environment\", \"@ember/-internals/runtime/lib/mixins/observable\", \"@ember/-internals/runtime/lib/mixins/mutable_enumerable\", \"@ember/-internals/runtime/lib/type-of\"], function (_exports, _env, _metal, _utils, _debug, _enumerable, _compare, _environment, _observable, _mutable_enumerable, _typeOf) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isEmberArray = isEmberArray;\n _exports.uniqBy = uniqBy;\n _exports.removeAt = removeAt;\n _exports.isArray = isArray;\n _exports.default = _exports.MutableArray = _exports.NativeArray = _exports.A = void 0;\n\n /**\n @module @ember/array\n */\n const EMPTY_ARRAY = Object.freeze([]);\n const EMBER_ARRAY = (0, _utils.symbol)('EMBER_ARRAY');\n\n function isEmberArray(obj) {\n return obj && obj[EMBER_ARRAY];\n }\n\n const identityFunction = item => item;\n\n function uniqBy(array, key = identityFunction) {\n (0, _debug.assert)(\"first argument passed to `uniqBy` should be array\", isArray(array));\n let ret = A();\n let seen = new Set();\n let getter = typeof key === 'function' ? key : item => (0, _metal.get)(item, key);\n array.forEach(item => {\n let val = getter(item);\n\n if (!seen.has(val)) {\n seen.add(val);\n ret.push(item);\n }\n });\n return ret;\n }\n\n function iter(key, value) {\n let valueProvided = arguments.length === 2;\n return valueProvided ? item => value === (0, _metal.get)(item, key) : item => Boolean((0, _metal.get)(item, key));\n }\n\n function findIndex(array, predicate, startAt) {\n let len = array.length;\n\n for (let index = startAt; index < len; index++) {\n let item = (0, _metal.objectAt)(array, index);\n\n if (predicate(item, index, array)) {\n return index;\n }\n }\n\n return -1;\n }\n\n function find(array, callback, target) {\n let predicate = callback.bind(target);\n let index = findIndex(array, predicate, 0);\n return index === -1 ? undefined : (0, _metal.objectAt)(array, index);\n }\n\n function any(array, callback, target) {\n let predicate = callback.bind(target);\n return findIndex(array, predicate, 0) !== -1;\n }\n\n function every(array, callback, target) {\n let cb = callback.bind(target);\n\n let predicate = (item, index, array) => !cb(item, index, array);\n\n return findIndex(array, predicate, 0) === -1;\n }\n\n function indexOf(array, val, startAt = 0, withNaNCheck) {\n let len = array.length;\n\n if (startAt < 0) {\n startAt += len;\n } // SameValueZero comparison (NaN !== NaN)\n\n\n let predicate = withNaNCheck && val !== val ? item => item !== item : item => item === val;\n return findIndex(array, predicate, startAt);\n }\n\n function removeAt(array, index, len = 1) {\n (0, _debug.assert)(\"`removeAt` index provided is out of range\", index > -1 && index < array.length);\n (0, _metal.replace)(array, index, len, EMPTY_ARRAY);\n return array;\n }\n\n function insertAt(array, index, item) {\n (0, _debug.assert)(\"`insertAt` index provided is out of range\", index > -1 && index <= array.length);\n (0, _metal.replace)(array, index, 0, [item]);\n return item;\n }\n /**\n Returns true if the passed object is an array or Array-like.\n \n Objects are considered Array-like if any of the following are true:\n \n - the object is a native Array\n - the object has an objectAt property\n - the object is an Object, and has a length property\n \n Unlike `typeOf` this method returns true even if the passed object is\n not formally an array but appears to be array-like (i.e. implements `Array`)\n \n ```javascript\n import { isArray } from '@ember/array';\n import ArrayProxy from '@ember/array/proxy';\n \n isArray(); // false\n isArray([]); // true\n isArray(ArrayProxy.create({ content: [] })); // true\n ```\n \n @method isArray\n @static\n @for @ember/array\n @param {Object} obj The object to test\n @return {Boolean} true if the passed object is an array or Array-like\n @public\n */\n\n\n function isArray(_obj) {\n let obj = _obj;\n\n if (_env.DEBUG && _utils.HAS_NATIVE_PROXY && typeof _obj === 'object' && _obj !== null) {\n let possibleProxyContent = _obj[_metal.PROXY_CONTENT];\n\n if (possibleProxyContent !== undefined) {\n obj = possibleProxyContent;\n }\n }\n\n if (!obj || obj.setInterval) {\n return false;\n }\n\n if (Array.isArray(obj) || ArrayMixin.detect(obj)) {\n return true;\n }\n\n let type = (0, _typeOf.typeOf)(obj);\n\n if ('array' === type) {\n return true;\n }\n\n let length = obj.length;\n\n if (typeof length === 'number' && length === length && 'object' === type) {\n return true;\n }\n\n return false;\n }\n /*\n This allows us to define computed properties that are not enumerable.\n The primary reason this is important is that when `NativeArray` is\n applied to `Array.prototype` we need to ensure that we do not add _any_\n new enumerable properties.\n */\n\n\n function nonEnumerableComputed() {\n let property = (0, _metal.computed)(...arguments);\n property.enumerable = false;\n return property;\n }\n\n function mapBy(key) {\n return this.map(next => (0, _metal.get)(next, key));\n } // ..........................................................\n // ARRAY\n //\n\n /**\n This mixin implements Observer-friendly Array-like behavior. It is not a\n concrete implementation, but it can be used up by other classes that want\n to appear like arrays.\n \n For example, ArrayProxy is a concrete classes that can\n be instantiated to implement array-like behavior. Both of these classes use\n the Array Mixin by way of the MutableArray mixin, which allows observable\n changes to be made to the underlying array.\n \n This mixin defines methods specifically for collections that provide\n index-ordered access to their contents. When you are designing code that\n needs to accept any kind of Array-like object, you should use these methods\n instead of Array primitives because these will properly notify observers of\n changes to the array.\n \n Although these methods are efficient, they do add a layer of indirection to\n your application so it is a good idea to use them only when you need the\n flexibility of using both true JavaScript arrays and \"virtual\" arrays such\n as controllers and collections.\n \n You can use the methods defined in this module to access and modify array\n contents in a KVO-friendly way. You can also be notified whenever the\n membership of an array changes by using `.observes('myArray.[]')`.\n \n To support `EmberArray` in your own class, you must override two\n primitives to use it: `length()` and `objectAt()`.\n \n @class EmberArray\n @uses Enumerable\n @since Ember 0.9.0\n @public\n */\n\n\n const ArrayMixin = _metal.Mixin.create(_enumerable.default, {\n [EMBER_ARRAY]: true,\n\n /**\n __Required.__ You must implement this method to apply this mixin.\n Your array must support the `length` property. Your replace methods should\n set this property whenever it changes.\n @property {Number} length\n @public\n */\n\n /**\n Returns the object at the given `index`. If the given `index` is negative\n or is greater or equal than the array length, returns `undefined`.\n This is one of the primitives you must implement to support `EmberArray`.\n If your object supports retrieving the value of an array item using `get()`\n (i.e. `myArray.get(0)`), then you do not need to implement this method\n yourself.\n ```javascript\n let arr = ['a', 'b', 'c', 'd'];\n arr.objectAt(0); // 'a'\n arr.objectAt(3); // 'd'\n arr.objectAt(-1); // undefined\n arr.objectAt(4); // undefined\n arr.objectAt(5); // undefined\n ```\n @method objectAt\n @param {Number} idx The index of the item to return.\n @return {*} item at index or undefined\n @public\n */\n\n /**\n This returns the objects at the specified indexes, using `objectAt`.\n ```javascript\n let arr = ['a', 'b', 'c', 'd'];\n arr.objectsAt([0, 1, 2]); // ['a', 'b', 'c']\n arr.objectsAt([2, 3, 4]); // ['c', 'd', undefined]\n ```\n @method objectsAt\n @param {Array} indexes An array of indexes of items to return.\n @return {Array}\n @public\n */\n objectsAt(indexes) {\n return indexes.map(idx => (0, _metal.objectAt)(this, idx));\n },\n\n /**\n This is the handler for the special array content property. If you get\n this property, it will return this. If you set this property to a new\n array, it will replace the current content.\n @property []\n @return this\n @public\n */\n '[]': nonEnumerableComputed({\n get() {\n return this;\n },\n\n set(key, value) {\n this.replace(0, this.length, value);\n return this;\n }\n\n }),\n\n /**\n The first object in the array, or `undefined` if the array is empty.\n @property firstObject\n @return {Object | undefined} The first object in the array\n @public\n */\n firstObject: nonEnumerableComputed(function () {\n return (0, _metal.objectAt)(this, 0);\n }).readOnly(),\n\n /**\n The last object in the array, or `undefined` if the array is empty.\n @property lastObject\n @return {Object | undefined} The last object in the array\n @public\n */\n lastObject: nonEnumerableComputed(function () {\n return (0, _metal.objectAt)(this, this.length - 1);\n }).readOnly(),\n\n // Add any extra methods to EmberArray that are native to the built-in Array.\n\n /**\n Returns a new array that is a slice of the receiver. This implementation\n uses the observable array methods to retrieve the objects for the new\n slice.\n ```javascript\n let arr = ['red', 'green', 'blue'];\n arr.slice(0); // ['red', 'green', 'blue']\n arr.slice(0, 2); // ['red', 'green']\n arr.slice(1, 100); // ['green', 'blue']\n ```\n @method slice\n @param {Number} beginIndex (Optional) index to begin slicing from.\n @param {Number} endIndex (Optional) index to end the slice at (but not included).\n @return {Array} New array with specified slice\n @public\n */\n slice(beginIndex = 0, endIndex) {\n let ret = A();\n let length = this.length;\n\n if (beginIndex < 0) {\n beginIndex = length + beginIndex;\n }\n\n if (endIndex === undefined || endIndex > length) {\n endIndex = length;\n } else if (endIndex < 0) {\n endIndex = length + endIndex;\n }\n\n while (beginIndex < endIndex) {\n ret[ret.length] = (0, _metal.objectAt)(this, beginIndex++);\n }\n\n return ret;\n },\n\n /**\n Returns the index of the given object's first occurrence.\n If no `startAt` argument is given, the starting location to\n search is 0. If it's negative, will count backward from\n the end of the array. Returns -1 if no match is found.\n ```javascript\n let arr = ['a', 'b', 'c', 'd', 'a'];\n arr.indexOf('a'); // 0\n arr.indexOf('z'); // -1\n arr.indexOf('a', 2); // 4\n arr.indexOf('a', -1); // 4\n arr.indexOf('b', 3); // -1\n arr.indexOf('a', 100); // -1\n ```\n @method indexOf\n @param {Object} object the item to search for\n @param {Number} startAt optional starting location to search, default 0\n @return {Number} index or -1 if not found\n @public\n */\n indexOf(object, startAt) {\n return indexOf(this, object, startAt, false);\n },\n\n /**\n Returns the index of the given object's last occurrence.\n If no `startAt` argument is given, the search starts from\n the last position. If it's negative, will count backward\n from the end of the array. Returns -1 if no match is found.\n ```javascript\n let arr = ['a', 'b', 'c', 'd', 'a'];\n arr.lastIndexOf('a'); // 4\n arr.lastIndexOf('z'); // -1\n arr.lastIndexOf('a', 2); // 0\n arr.lastIndexOf('a', -1); // 4\n arr.lastIndexOf('b', 3); // 1\n arr.lastIndexOf('a', 100); // 4\n ```\n @method lastIndexOf\n @param {Object} object the item to search for\n @param {Number} startAt optional starting location to search, default 0\n @return {Number} index or -1 if not found\n @public\n */\n lastIndexOf(object, startAt) {\n let len = this.length;\n\n if (startAt === undefined || startAt >= len) {\n startAt = len - 1;\n }\n\n if (startAt < 0) {\n startAt += len;\n }\n\n for (let idx = startAt; idx >= 0; idx--) {\n if ((0, _metal.objectAt)(this, idx) === object) {\n return idx;\n }\n }\n\n return -1;\n },\n\n // ..........................................................\n // ARRAY OBSERVERS\n //\n\n /**\n Adds an array observer to the receiving array. The array observer object\n normally must implement two methods:\n * `willChange(observedObj, start, removeCount, addCount)` - This method will be\n called just before the array is modified.\n * `didChange(observedObj, start, removeCount, addCount)` - This method will be\n called just after the array is modified.\n Both callbacks will be passed the observed object, starting index of the\n change as well as a count of the items to be removed and added. You can use\n these callbacks to optionally inspect the array during the change, clear\n caches, or do any other bookkeeping necessary.\n In addition to passing a target, you can also include an options hash\n which you can use to override the method names that will be invoked on the\n target.\n @method addArrayObserver\n @param {Object} target The observer object.\n @param {Object} opts Optional hash of configuration options including\n `willChange` and `didChange` option.\n @return {EmberArray} receiver\n @public\n */\n addArrayObserver(target, opts) {\n return (0, _metal.addArrayObserver)(this, target, opts);\n },\n\n /**\n Removes an array observer from the object if the observer is current\n registered. Calling this method multiple times with the same object will\n have no effect.\n @method removeArrayObserver\n @param {Object} target The object observing the array.\n @param {Object} opts Optional hash of configuration options including\n `willChange` and `didChange` option.\n @return {EmberArray} receiver\n @public\n */\n removeArrayObserver(target, opts) {\n return (0, _metal.removeArrayObserver)(this, target, opts);\n },\n\n /**\n Becomes true whenever the array currently has observers watching changes\n on the array.\n @property {Boolean} hasArrayObservers\n @public\n */\n hasArrayObservers: nonEnumerableComputed(function () {\n return (0, _metal.hasListeners)(this, '@array:change') || (0, _metal.hasListeners)(this, '@array:before');\n }),\n\n /**\n If you are implementing an object that supports `EmberArray`, call this\n method just before the array content changes to notify any observers and\n invalidate any related properties. Pass the starting index of the change\n as well as a delta of the amounts to change.\n @method arrayContentWillChange\n @param {Number} startIdx The starting index in the array that will change.\n @param {Number} removeAmt The number of items that will be removed. If you\n pass `null` assumes 0\n @param {Number} addAmt The number of items that will be added. If you\n pass `null` assumes 0.\n @return {EmberArray} receiver\n @public\n */\n arrayContentWillChange(startIdx, removeAmt, addAmt) {\n return (0, _metal.arrayContentWillChange)(this, startIdx, removeAmt, addAmt);\n },\n\n /**\n If you are implementing an object that supports `EmberArray`, call this\n method just after the array content changes to notify any observers and\n invalidate any related properties. Pass the starting index of the change\n as well as a delta of the amounts to change.\n @method arrayContentDidChange\n @param {Number} startIdx The starting index in the array that did change.\n @param {Number} removeAmt The number of items that were removed. If you\n pass `null` assumes 0\n @param {Number} addAmt The number of items that were added. If you\n pass `null` assumes 0.\n @return {EmberArray} receiver\n @public\n */\n arrayContentDidChange(startIdx, removeAmt, addAmt) {\n return (0, _metal.arrayContentDidChange)(this, startIdx, removeAmt, addAmt);\n },\n\n /**\n Iterates through the array, calling the passed function on each\n item. This method corresponds to the `forEach()` method defined in\n JavaScript 1.6.\n The callback method you provide should have the following signature (all\n parameters are optional):\n ```javascript\n function(item, index, array);\n ```\n - `item` is the current item in the iteration.\n - `index` is the current index in the iteration.\n - `array` is the array itself.\n Note that in addition to a callback, you can also pass an optional target\n object that will be set as `this` on the context. This is a good way\n to give your iterator function access to the current object.\n @method forEach\n @param {Function} callback The callback to execute\n @param {Object} [target] The target object to use\n @return {Object} receiver\n @public\n */\n forEach(callback, target = null) {\n (0, _debug.assert)('`forEach` expects a function as first argument.', typeof callback === 'function');\n let length = this.length;\n\n for (let index = 0; index < length; index++) {\n let item = this.objectAt(index);\n callback.call(target, item, index, this);\n }\n\n return this;\n },\n\n /**\n Alias for `mapBy`\n @method getEach\n @param {String} key name of the property\n @return {Array} The mapped array.\n @public\n */\n getEach: mapBy,\n\n /**\n Sets the value on the named property for each member. This is more\n ergonomic than using other methods defined on this helper. If the object\n implements Observable, the value will be changed to `set(),` otherwise\n it will be set directly. `null` objects are skipped.\n @method setEach\n @param {String} key The key to set\n @param {Object} value The object to set\n @return {Object} receiver\n @public\n */\n setEach(key, value) {\n return this.forEach(item => (0, _metal.set)(item, key, value));\n },\n\n /**\n Maps all of the items in the enumeration to another value, returning\n a new array. This method corresponds to `map()` defined in JavaScript 1.6.\n The callback method you provide should have the following signature (all\n parameters are optional):\n ```javascript\n function(item, index, array);\n ```\n - `item` is the current item in the iteration.\n - `index` is the current index in the iteration.\n - `array` is the array itself.\n It should return the mapped value.\n Note that in addition to a callback, you can also pass an optional target\n object that will be set as `this` on the context. This is a good way\n to give your iterator function access to the current object.\n @method map\n @param {Function} callback The callback to execute\n @param {Object} [target] The target object to use\n @return {Array} The mapped array.\n @public\n */\n map(callback, target = null) {\n (0, _debug.assert)('`map` expects a function as first argument.', typeof callback === 'function');\n let ret = A();\n this.forEach((x, idx, i) => ret[idx] = callback.call(target, x, idx, i));\n return ret;\n },\n\n /**\n Similar to map, this specialized function returns the value of the named\n property on all items in the enumeration.\n @method mapBy\n @param {String} key name of the property\n @return {Array} The mapped array.\n @public\n */\n mapBy,\n\n /**\n Returns an array with all of the items in the enumeration that the passed\n function returns true for. This method corresponds to `filter()` defined in\n JavaScript 1.6.\n The callback method you provide should have the following signature (all\n parameters are optional):\n ```javascript\n function(item, index, array);\n ```\n - `item` is the current item in the iteration.\n - `index` is the current index in the iteration.\n - `array` is the array itself.\n It should return `true` to include the item in the results, `false`\n otherwise.\n Note that in addition to a callback, you can also pass an optional target\n object that will be set as `this` on the context. This is a good way\n to give your iterator function access to the current object.\n @method filter\n @param {Function} callback The callback to execute\n @param {Object} [target] The target object to use\n @return {Array} A filtered array.\n @public\n */\n filter(callback, target = null) {\n (0, _debug.assert)('`filter` expects a function as first argument.', typeof callback === 'function');\n let ret = A();\n this.forEach((x, idx, i) => {\n if (callback.call(target, x, idx, i)) {\n ret.push(x);\n }\n });\n return ret;\n },\n\n /**\n Returns an array with all of the items in the enumeration where the passed\n function returns false. This method is the inverse of filter().\n The callback method you provide should have the following signature (all\n parameters are optional):\n ```javascript\n function(item, index, array);\n ```\n - *item* is the current item in the iteration.\n - *index* is the current index in the iteration\n - *array* is the array itself.\n It should return a falsey value to include the item in the results.\n Note that in addition to a callback, you can also pass an optional target\n object that will be set as \"this\" on the context. This is a good way\n to give your iterator function access to the current object.\n @method reject\n @param {Function} callback The callback to execute\n @param {Object} [target] The target object to use\n @return {Array} A rejected array.\n @public\n */\n reject(callback, target = null) {\n (0, _debug.assert)('`reject` expects a function as first argument.', typeof callback === 'function');\n return this.filter(function () {\n return !callback.apply(target, arguments);\n });\n },\n\n /**\n Returns an array with just the items with the matched property. You\n can pass an optional second argument with the target value. Otherwise\n this will match any property that evaluates to `true`.\n @method filterBy\n @param {String} key the property to test\n @param {*} [value] optional value to test against.\n @return {Array} filtered array\n @public\n */\n filterBy() {\n return this.filter(iter(...arguments));\n },\n\n /**\n Returns an array with the items that do not have truthy values for\n key. You can pass an optional second argument with the target value. Otherwise\n this will match any property that evaluates to false.\n @method rejectBy\n @param {String} key the property to test\n @param {*} [value] optional value to test against.\n @return {Array} rejected array\n @public\n */\n rejectBy() {\n return this.reject(iter(...arguments));\n },\n\n /**\n Returns the first item in the array for which the callback returns true.\n This method is similar to the `find()` method defined in ECMAScript 2015.\n The callback method you provide should have the following signature (all\n parameters are optional):\n ```javascript\n function(item, index, array);\n ```\n - `item` is the current item in the iteration.\n - `index` is the current index in the iteration.\n - `array` is the array itself.\n It should return the `true` to include the item in the results, `false`\n otherwise.\n Note that in addition to a callback, you can also pass an optional target\n object that will be set as `this` on the context. This is a good way\n to give your iterator function access to the current object.\n @method find\n @param {Function} callback The callback to execute\n @param {Object} [target] The target object to use\n @return {Object} Found item or `undefined`.\n @public\n */\n find(callback, target = null) {\n (0, _debug.assert)('`find` expects a function as first argument.', typeof callback === 'function');\n return find(this, callback, target);\n },\n\n /**\n Returns the first item with a property matching the passed value. You\n can pass an optional second argument with the target value. Otherwise\n this will match any property that evaluates to `true`.\n This method works much like the more generic `find()` method.\n @method findBy\n @param {String} key the property to test\n @param {String} [value] optional value to test against.\n @return {Object} found item or `undefined`\n @public\n */\n findBy() {\n return find(this, iter(...arguments));\n },\n\n /**\n Returns `true` if the passed function returns true for every item in the\n enumeration. This corresponds with the `every()` method in JavaScript 1.6.\n The callback method you provide should have the following signature (all\n parameters are optional):\n ```javascript\n function(item, index, array);\n ```\n - `item` is the current item in the iteration.\n - `index` is the current index in the iteration.\n - `array` is the array itself.\n It should return the `true` or `false`.\n Note that in addition to a callback, you can also pass an optional target\n object that will be set as `this` on the context. This is a good way\n to give your iterator function access to the current object.\n Example Usage:\n ```javascript\n if (people.every(isEngineer)) {\n Paychecks.addBigBonus();\n }\n ```\n @method every\n @param {Function} callback The callback to execute\n @param {Object} [target] The target object to use\n @return {Boolean}\n @public\n */\n every(callback, target = null) {\n (0, _debug.assert)('`every` expects a function as first argument.', typeof callback === 'function');\n return every(this, callback, target);\n },\n\n /**\n Returns `true` if the passed property resolves to the value of the second\n argument for all items in the array. This method is often simpler/faster\n than using a callback.\n Note that like the native `Array.every`, `isEvery` will return true when called\n on any empty array.\n @method isEvery\n @param {String} key the property to test\n @param {String} [value] optional value to test against. Defaults to `true`\n @return {Boolean}\n @since 1.3.0\n @public\n */\n isEvery() {\n return every(this, iter(...arguments));\n },\n\n /**\n Returns `true` if the passed function returns true for any item in the\n enumeration.\n The callback method you provide should have the following signature (all\n parameters are optional):\n ```javascript\n function(item, index, array);\n ```\n - `item` is the current item in the iteration.\n - `index` is the current index in the iteration.\n - `array` is the array object itself.\n It must return a truthy value (i.e. `true`) to include an item in the\n results. Any non-truthy return value will discard the item from the\n results.\n Note that in addition to a callback, you can also pass an optional target\n object that will be set as `this` on the context. This is a good way\n to give your iterator function access to the current object.\n Usage Example:\n ```javascript\n if (people.any(isManager)) {\n Paychecks.addBiggerBonus();\n }\n ```\n @method any\n @param {Function} callback The callback to execute\n @param {Object} [target] The target object to use\n @return {Boolean} `true` if the passed function returns `true` for any item\n @public\n */\n any(callback, target = null) {\n (0, _debug.assert)('`any` expects a function as first argument.', typeof callback === 'function');\n return any(this, callback, target);\n },\n\n /**\n Returns `true` if the passed property resolves to the value of the second\n argument for any item in the array. This method is often simpler/faster\n than using a callback.\n @method isAny\n @param {String} key the property to test\n @param {String} [value] optional value to test against. Defaults to `true`\n @return {Boolean}\n @since 1.3.0\n @public\n */\n isAny() {\n return any(this, iter(...arguments));\n },\n\n /**\n This will combine the values of the enumerator into a single value. It\n is a useful way to collect a summary value from an enumeration. This\n corresponds to the `reduce()` method defined in JavaScript 1.8.\n The callback method you provide should have the following signature (all\n parameters are optional):\n ```javascript\n function(previousValue, item, index, array);\n ```\n - `previousValue` is the value returned by the last call to the iterator.\n - `item` is the current item in the iteration.\n - `index` is the current index in the iteration.\n - `array` is the array itself.\n Return the new cumulative value.\n In addition to the callback you can also pass an `initialValue`. An error\n will be raised if you do not pass an initial value and the enumerator is\n empty.\n Note that unlike the other methods, this method does not allow you to\n pass a target object to set as this for the callback. It's part of the\n spec. Sorry.\n @method reduce\n @param {Function} callback The callback to execute\n @param {Object} initialValue Initial value for the reduce\n @return {Object} The reduced value.\n @public\n */\n reduce(callback, initialValue) {\n (0, _debug.assert)('`reduce` expects a function as first argument.', typeof callback === 'function');\n let ret = initialValue;\n this.forEach(function (item, i) {\n ret = callback(ret, item, i, this);\n }, this);\n return ret;\n },\n\n /**\n Invokes the named method on every object in the receiver that\n implements it. This method corresponds to the implementation in\n Prototype 1.6.\n @method invoke\n @param {String} methodName the name of the method\n @param {Object...} args optional arguments to pass as well.\n @return {Array} return values from calling invoke.\n @public\n */\n invoke(methodName, ...args) {\n let ret = A();\n this.forEach(item => ret.push((0, _utils.tryInvoke)(item, methodName, args)));\n return ret;\n },\n\n /**\n Simply converts the object into a genuine array. The order is not\n guaranteed. Corresponds to the method implemented by Prototype.\n @method toArray\n @return {Array} the object as an array.\n @public\n */\n toArray() {\n return this.map(item => item);\n },\n\n /**\n Returns a copy of the array with all `null` and `undefined` elements removed.\n ```javascript\n let arr = ['a', null, 'c', undefined];\n arr.compact(); // ['a', 'c']\n ```\n @method compact\n @return {Array} the array without null and undefined elements.\n @public\n */\n compact() {\n return this.filter(value => value != null);\n },\n\n /**\n Returns `true` if the passed object can be found in the array.\n This method is a Polyfill for ES 2016 Array.includes.\n If no `startAt` argument is given, the starting location to\n search is 0. If it's negative, searches from the index of\n `this.length + startAt` by asc.\n ```javascript\n [1, 2, 3].includes(2); // true\n [1, 2, 3].includes(4); // false\n [1, 2, 3].includes(3, 2); // true\n [1, 2, 3].includes(3, 3); // false\n [1, 2, 3].includes(3, -1); // true\n [1, 2, 3].includes(1, -1); // false\n [1, 2, 3].includes(1, -4); // true\n [1, 2, NaN].includes(NaN); // true\n ```\n @method includes\n @param {Object} object The object to search for.\n @param {Number} startAt optional starting location to search, default 0\n @return {Boolean} `true` if object is found in the array.\n @public\n */\n includes(object, startAt) {\n return indexOf(this, object, startAt, true) !== -1;\n },\n\n /**\n Sorts the array by the keys specified in the argument.\n You may provide multiple arguments to sort by multiple properties.\n ```javascript\n let colors = [{name: 'red'}, {name: 'green'}, {name: 'blue'}];\n colors.sortBy('name'); // [{name: 'blue'}, {name: 'green'}, {name: 'red'}]\n ```\n @method sortBy\n @param {String} property name(s) to sort on\n @return {Array} The sorted array.\n @since 1.2.0\n @public\n */\n sortBy() {\n let sortKeys = arguments;\n return this.toArray().sort((a, b) => {\n for (let i = 0; i < sortKeys.length; i++) {\n let key = sortKeys[i];\n let propA = (0, _metal.get)(a, key);\n let propB = (0, _metal.get)(b, key); // return 1 or -1 else continue to the next sortKey\n\n let compareValue = (0, _compare.default)(propA, propB);\n\n if (compareValue) {\n return compareValue;\n }\n }\n\n return 0;\n });\n },\n\n /**\n Returns a new array that contains only unique values. The default\n implementation returns an array regardless of the receiver type.\n ```javascript\n let arr = ['a', 'a', 'b', 'b'];\n arr.uniq(); // ['a', 'b']\n ```\n This only works on primitive data types, e.g. Strings, Numbers, etc.\n @method uniq\n @return {EmberArray}\n @public\n */\n uniq() {\n return uniqBy(this);\n },\n\n /**\n Returns a new array that contains only items containing a unique property value.\n The default implementation returns an array regardless of the receiver type.\n ```javascript\n let arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }];\n arr.uniqBy('value'); // [{ value: 'a' }, { value: 'b' }]\n let arr = [2.2, 2.1, 3.2, 3.3];\n arr.uniqBy(Math.floor); // [2.2, 3.2];\n ```\n @method uniqBy\n @param {String,Function} key\n @return {EmberArray}\n @public\n */\n uniqBy(key) {\n return uniqBy(this, key);\n },\n\n /**\n Returns a new array that excludes the passed value. The default\n implementation returns an array regardless of the receiver type.\n If the receiver does not contain the value it returns the original array.\n ```javascript\n let arr = ['a', 'b', 'a', 'c'];\n arr.without('a'); // ['b', 'c']\n ```\n @method without\n @param {Object} value\n @return {EmberArray}\n @public\n */\n without(value) {\n if (!this.includes(value)) {\n return this; // nothing to do\n } // SameValueZero comparison (NaN !== NaN)\n\n\n let predicate = value === value ? item => item !== value : item => item === item;\n return this.filter(predicate);\n }\n\n });\n /**\n This mixin defines the API for modifying array-like objects. These methods\n can be applied only to a collection that keeps its items in an ordered set.\n It builds upon the Array mixin and adds methods to modify the array.\n One concrete implementations of this class include ArrayProxy.\n \n It is important to use the methods in this class to modify arrays so that\n changes are observable. This allows the binding system in Ember to function\n correctly.\n \n \n Note that an Array can change even if it does not implement this mixin.\n For example, one might implement a SparseArray that cannot be directly\n modified, but if its underlying enumerable changes, it will change also.\n \n @class MutableArray\n @uses EmberArray\n @uses MutableEnumerable\n @public\n */\n\n\n const MutableArray = _metal.Mixin.create(ArrayMixin, _mutable_enumerable.default, {\n /**\n __Required.__ You must implement this method to apply this mixin.\n This is one of the primitives you must implement to support `Array`.\n You should replace amt objects started at idx with the objects in the\n passed array. You should also call `this.arrayContentDidChange()`\n Note that this method is expected to validate the type(s) of objects that it expects.\n @method replace\n @param {Number} idx Starting index in the array to replace. If\n idx >= length, then append to the end of the array.\n @param {Number} amt Number of elements that should be removed from\n the array, starting at *idx*.\n @param {EmberArray} objects An array of zero or more objects that should be\n inserted into the array at *idx*\n @public\n */\n\n /**\n Remove all elements from the array. This is useful if you\n want to reuse an existing array without having to recreate it.\n ```javascript\n let colors = ['red', 'green', 'blue'];\n colors.length; // 3\n colors.clear(); // []\n colors.length; // 0\n ```\n @method clear\n @return {Array} An empty Array.\n @public\n */\n clear() {\n let len = this.length;\n\n if (len === 0) {\n return this;\n }\n\n this.replace(0, len, EMPTY_ARRAY);\n return this;\n },\n\n /**\n This will use the primitive `replace()` method to insert an object at the\n specified index.\n ```javascript\n let colors = ['red', 'green', 'blue'];\n colors.insertAt(2, 'yellow'); // ['red', 'green', 'yellow', 'blue']\n colors.insertAt(5, 'orange'); // Error: Index out of range\n ```\n @method insertAt\n @param {Number} idx index of insert the object at.\n @param {Object} object object to insert\n @return {EmberArray} receiver\n @public\n */\n insertAt(idx, object) {\n insertAt(this, idx, object);\n return this;\n },\n\n /**\n Remove an object at the specified index using the `replace()` primitive\n method. You can pass either a single index, or a start and a length.\n If you pass a start and length that is beyond the\n length this method will throw an assertion.\n ```javascript\n let colors = ['red', 'green', 'blue', 'yellow', 'orange'];\n colors.removeAt(0); // ['green', 'blue', 'yellow', 'orange']\n colors.removeAt(2, 2); // ['green', 'blue']\n colors.removeAt(4, 2); // Error: Index out of range\n ```\n @method removeAt\n @param {Number} start index, start of range\n @param {Number} len length of passing range\n @return {EmberArray} receiver\n @public\n */\n removeAt(start, len) {\n return removeAt(this, start, len);\n },\n\n /**\n Push the object onto the end of the array. Works just like `push()` but it\n is KVO-compliant.\n ```javascript\n let colors = ['red', 'green'];\n colors.pushObject('black'); // ['red', 'green', 'black']\n colors.pushObject(['yellow']); // ['red', 'green', ['yellow']]\n ```\n @method pushObject\n @param {*} obj object to push\n @return object same object passed as a param\n @public\n */\n pushObject(obj) {\n return insertAt(this, this.length, obj);\n },\n\n /**\n Add the objects in the passed array to the end of the array. Defers\n notifying observers of the change until all objects are added.\n ```javascript\n let colors = ['red'];\n colors.pushObjects(['yellow', 'orange']); // ['red', 'yellow', 'orange']\n ```\n @method pushObjects\n @param {EmberArray} objects the objects to add\n @return {EmberArray} receiver\n @public\n */\n pushObjects(objects) {\n this.replace(this.length, 0, objects);\n return this;\n },\n\n /**\n Pop object from array or nil if none are left. Works just like `pop()` but\n it is KVO-compliant.\n ```javascript\n let colors = ['red', 'green', 'blue'];\n colors.popObject(); // 'blue'\n console.log(colors); // ['red', 'green']\n ```\n @method popObject\n @return object\n @public\n */\n popObject() {\n let len = this.length;\n\n if (len === 0) {\n return null;\n }\n\n let ret = (0, _metal.objectAt)(this, len - 1);\n this.removeAt(len - 1, 1);\n return ret;\n },\n\n /**\n Shift an object from start of array or nil if none are left. Works just\n like `shift()` but it is KVO-compliant.\n ```javascript\n let colors = ['red', 'green', 'blue'];\n colors.shiftObject(); // 'red'\n console.log(colors); // ['green', 'blue']\n ```\n @method shiftObject\n @return object\n @public\n */\n shiftObject() {\n if (this.length === 0) {\n return null;\n }\n\n let ret = (0, _metal.objectAt)(this, 0);\n this.removeAt(0);\n return ret;\n },\n\n /**\n Unshift an object to start of array. Works just like `unshift()` but it is\n KVO-compliant.\n ```javascript\n let colors = ['red'];\n colors.unshiftObject('yellow'); // ['yellow', 'red']\n colors.unshiftObject(['black']); // [['black'], 'yellow', 'red']\n ```\n @method unshiftObject\n @param {*} obj object to unshift\n @return object same object passed as a param\n @public\n */\n unshiftObject(obj) {\n return insertAt(this, 0, obj);\n },\n\n /**\n Adds the named objects to the beginning of the array. Defers notifying\n observers until all objects have been added.\n ```javascript\n let colors = ['red'];\n colors.unshiftObjects(['black', 'white']); // ['black', 'white', 'red']\n colors.unshiftObjects('yellow'); // Type Error: 'undefined' is not a function\n ```\n @method unshiftObjects\n @param {Enumberable} objects the objects to add\n @return {EmberArray} receiver\n @public\n */\n unshiftObjects(objects) {\n this.replace(0, 0, objects);\n return this;\n },\n\n /**\n Reverse objects in the array. Works just like `reverse()` but it is\n KVO-compliant.\n @method reverseObjects\n @return {EmberArray} receiver\n @public\n */\n reverseObjects() {\n let len = this.length;\n\n if (len === 0) {\n return this;\n }\n\n let objects = this.toArray().reverse();\n this.replace(0, len, objects);\n return this;\n },\n\n /**\n Replace all the receiver's content with content of the argument.\n If argument is an empty array receiver will be cleared.\n ```javascript\n let colors = ['red', 'green', 'blue'];\n colors.setObjects(['black', 'white']); // ['black', 'white']\n colors.setObjects([]); // []\n ```\n @method setObjects\n @param {EmberArray} objects array whose content will be used for replacing\n the content of the receiver\n @return {EmberArray} receiver with the new content\n @public\n */\n setObjects(objects) {\n if (objects.length === 0) {\n return this.clear();\n }\n\n let len = this.length;\n this.replace(0, len, objects);\n return this;\n },\n\n /**\n Remove all occurrences of an object in the array.\n ```javascript\n let cities = ['Chicago', 'Berlin', 'Lima', 'Chicago'];\n cities.removeObject('Chicago'); // ['Berlin', 'Lima']\n cities.removeObject('Lima'); // ['Berlin']\n cities.removeObject('Tokyo') // ['Berlin']\n ```\n @method removeObject\n @param {*} obj object to remove\n @return {EmberArray} receiver\n @public\n */\n removeObject(obj) {\n let loc = this.length || 0;\n\n while (--loc >= 0) {\n let curObject = (0, _metal.objectAt)(this, loc);\n\n if (curObject === obj) {\n this.removeAt(loc);\n }\n }\n\n return this;\n },\n\n /**\n Removes each object in the passed array from the receiver.\n @method removeObjects\n @param {EmberArray} objects the objects to remove\n @return {EmberArray} receiver\n @public\n */\n removeObjects(objects) {\n (0, _metal.beginPropertyChanges)();\n\n for (let i = objects.length - 1; i >= 0; i--) {\n this.removeObject(objects[i]);\n }\n\n (0, _metal.endPropertyChanges)();\n return this;\n },\n\n /**\n Push the object onto the end of the array if it is not already\n present in the array.\n ```javascript\n let cities = ['Chicago', 'Berlin'];\n cities.addObject('Lima'); // ['Chicago', 'Berlin', 'Lima']\n cities.addObject('Berlin'); // ['Chicago', 'Berlin', 'Lima']\n ```\n @method addObject\n @param {*} obj object to add, if not already present\n @return {EmberArray} receiver\n @public\n */\n addObject(obj) {\n let included = this.includes(obj);\n\n if (!included) {\n this.pushObject(obj);\n }\n\n return this;\n },\n\n /**\n Adds each object in the passed array to the receiver.\n @method addObjects\n @param {EmberArray} objects the objects to add.\n @return {EmberArray} receiver\n @public\n */\n addObjects(objects) {\n (0, _metal.beginPropertyChanges)();\n objects.forEach(obj => this.addObject(obj));\n (0, _metal.endPropertyChanges)();\n return this;\n }\n\n });\n /**\n Creates an `Ember.NativeArray` from an Array-like object.\n Does not modify the original object's contents. `A()` is not needed if\n `EmberENV.EXTEND_PROTOTYPES` is `true` (the default value). However,\n it is recommended that you use `A()` when creating addons for\n ember or when you can not guarantee that `EmberENV.EXTEND_PROTOTYPES`\n will be `true`.\n \n Example\n \n ```app/components/my-component.js\n import Component from '@ember/component';\n import { A } from '@ember/array';\n \n export default Component.extend({\n tagName: 'ul',\n classNames: ['pagination'],\n \n init() {\n this._super(...arguments);\n \n if (!this.get('content')) {\n this.set('content', A());\n this.set('otherContent', A([1,2,3]));\n }\n }\n });\n ```\n \n @method A\n @static\n @for @ember/array\n @return {Ember.NativeArray}\n @public\n */\n // Add Ember.Array to Array.prototype. Remove methods with native\n // implementations and supply some more optimized versions of generic methods\n // because they are so common.\n\n /**\n @module ember\n */\n\n /**\n The NativeArray mixin contains the properties needed to make the native\n Array support MutableArray and all of its dependent APIs. Unless you\n have `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Array` set to\n false, this will be applied automatically. Otherwise you can apply the mixin\n at anytime by calling `Ember.NativeArray.apply(Array.prototype)`.\n \n @class Ember.NativeArray\n @uses MutableArray\n @uses Observable\n @public\n */\n\n\n _exports.MutableArray = MutableArray;\n\n let NativeArray = _metal.Mixin.create(MutableArray, _observable.default, {\n objectAt(idx) {\n return this[idx];\n },\n\n // primitive for array support.\n replace(start, deleteCount, items = EMPTY_ARRAY) {\n (0, _debug.assert)('The third argument to replace needs to be an array.', Array.isArray(items));\n (0, _metal.replaceInNativeArray)(this, start, deleteCount, items);\n return this;\n }\n\n }); // Remove any methods implemented natively so we don't override them\n\n\n _exports.NativeArray = NativeArray;\n const ignore = ['length'];\n NativeArray.keys().forEach(methodName => {\n if (Array.prototype[methodName]) {\n ignore.push(methodName);\n }\n });\n _exports.NativeArray = NativeArray = NativeArray.without(...ignore);\n let A;\n _exports.A = A;\n\n if (_environment.ENV.EXTEND_PROTOTYPES.Array) {\n NativeArray.apply(Array.prototype);\n\n _exports.A = A = function (arr) {\n (0, _debug.deprecate)('`new A()` has been deprecated, please update to calling A as a function: `A()`', !(this instanceof A), {\n id: 'array.new-array-wrapper',\n until: '3.9.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_array-new-array-wrapper'\n });\n return arr || [];\n };\n } else {\n _exports.A = A = function (arr) {\n (0, _debug.deprecate)('`new A()` has been deprecated, please update to calling A as a function: `A()`', !(this instanceof A), {\n id: 'array.new-array-wrapper',\n until: '3.9.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_array-new-array-wrapper'\n });\n\n if (!arr) {\n arr = [];\n }\n\n return ArrayMixin.detect(arr) ? arr : NativeArray.apply(arr);\n };\n }\n\n var _default = ArrayMixin;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/mixins/comparable\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n Implements some standard methods for comparing objects. Add this mixin to\n any class you create that can compare its instances.\n \n You should implement the `compare()` method.\n \n @class Comparable\n @namespace Ember\n @since Ember 0.9\n @private\n */\n var _default = _metal.Mixin.create({\n /**\n __Required.__ You must implement this method to apply this mixin.\n Override to return the result of the comparison of the two parameters. The\n compare method should return:\n - `-1` if `a < b`\n - `0` if `a == b`\n - `1` if `a > b`\n Default implementation raises an exception.\n @method compare\n @param a {Object} the first object to compare\n @param b {Object} the second object to compare\n @return {Number} the result of the comparison\n @private\n */\n compare: null\n });\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/mixins/container_proxy\", [\"exports\", \"@ember/runloop\", \"@ember/-internals/metal\"], function (_exports, _runloop, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n ContainerProxyMixin is used to provide public access to specific\n container functionality.\n \n @class ContainerProxyMixin\n @private\n */\n let containerProxyMixin = {\n /**\n The container stores state.\n @private\n @property {Ember.Container} __container__\n */\n __container__: null,\n\n /**\n Returns an object that can be used to provide an owner to a\n manually created instance.\n Example:\n ```\n import { getOwner } from '@ember/application';\n let owner = getOwner(this);\n User.create(\n owner.ownerInjection(),\n { username: 'rwjblue' }\n )\n ```\n @public\n @method ownerInjection\n @since 2.3.0\n @return {Object}\n */\n ownerInjection() {\n return this.__container__.ownerInjection();\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 @public\n @method lookup\n @param {String} fullName\n @param {Object} options\n @return {any}\n */\n lookup(fullName, options) {\n return this.__container__.lookup(fullName, options);\n },\n\n destroy() {\n let container = this.__container__;\n\n if (container) {\n (0, _runloop.join)(() => {\n container.destroy();\n (0, _runloop.schedule)('destroy', container, 'finalizeDestroy');\n });\n }\n\n this._super();\n },\n\n /**\n Given a fullName return a factory manager.\n This method returns a manager which can be used for introspection of the\n factory's class or for the creation of factory instances with initial\n properties. The manager is an object with the following properties:\n * `class` - The registered or resolved class.\n * `create` - A function that will create an instance of the class with\n any dependencies injected.\n For example:\n ```javascript\n import { getOwner } from '@ember/application';\n let owner = getOwner(otherInstance);\n // the owner is commonly the `applicationInstance`, and can be accessed via\n // an instance initializer.\n let factory = owner.factoryFor('service:bespoke');\n factory.class;\n // The registered or resolved class. For example when used with an Ember-CLI\n // app, this would be the default export from `app/services/bespoke.js`.\n let instance = factory.create({\n someProperty: 'an initial property value'\n });\n // Create an instance with any injections and the passed options as\n // initial properties.\n ```\n Any instances created via the factory's `.create()` method *must* be destroyed\n manually by the caller of `.create()`. Typically, this is done during the creating\n objects own `destroy` or `willDestroy` methods.\n @public\n @method factoryFor\n @param {String} fullName\n @param {Object} options\n @return {FactoryManager}\n */\n factoryFor(fullName, options = {}) {\n return this.__container__.factoryFor(fullName, options);\n }\n\n };\n\n var _default = _metal.Mixin.create(containerProxyMixin);\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/mixins/copyable\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n Implements some standard methods for copying an object. Add this mixin to\n any object you create that can create a copy of itself. This mixin is\n added automatically to the built-in array.\n \n You should generally implement the `copy()` method to return a copy of the\n receiver.\n \n @class Copyable\n @namespace Ember\n @since Ember 0.9\n @deprecated Use 'ember-copy' addon instead\n @private\n */\n var _default = _metal.Mixin.create({\n /**\n __Required.__ You must implement this method to apply this mixin.\n Override to return a copy of the receiver. Default implementation raises\n an exception.\n @method copy\n @param {Boolean} deep if `true`, a deep copy of the object should be made\n @return {Object} copy of receiver\n @private\n */\n copy: null\n });\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/mixins/enumerable\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/enumerable\n @private\n */\n\n /**\n The methods in this mixin have been moved to [MutableArray](https://emberjs.com/api/ember/release/classes/MutableArray). This mixin has\n been intentionally preserved to avoid breaking Enumerable.detect checks\n until the community migrates away from them.\n \n @class Enumerable\n @private\n */\n var _default = _metal.Mixin.create();\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/mixins/evented\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/object\n */\n\n /**\n This mixin allows for Ember objects to subscribe to and emit events.\n \n ```app/utils/person.js\n import EmberObject from '@ember/object';\n import Evented from '@ember/object/evented';\n \n export default EmberObject.extend(Evented, {\n greet() {\n // ...\n this.trigger('greet');\n }\n });\n ```\n \n ```javascript\n var person = Person.create();\n \n person.on('greet', function() {\n console.log('Our person has greeted');\n });\n \n person.greet();\n \n // outputs: 'Our person has greeted'\n ```\n \n You can also chain multiple event subscriptions:\n \n ```javascript\n person.on('greet', function() {\n console.log('Our person has greeted');\n }).one('greet', function() {\n console.log('Offer one-time special');\n }).off('event', this, forgetThis);\n ```\n \n @class Evented\n @public\n */\n var _default = _metal.Mixin.create({\n /**\n Subscribes to a named event with given function.\n ```javascript\n person.on('didLoad', function() {\n // fired once the person has loaded\n });\n ```\n An optional target can be passed in as the 2nd argument that will\n be set as the \"this\" for the callback. This is a good way to give your\n function access to the object triggering the event. When the target\n parameter is used the callback method becomes the third argument.\n @method on\n @param {String} name The name of the event\n @param {Object} [target] The \"this\" binding for the callback\n @param {Function|String} method A function or the name of a function to be called on `target`\n @return this\n @public\n */\n on(name, target, method) {\n (0, _metal.addListener)(this, name, target, method);\n return this;\n },\n\n /**\n Subscribes a function to a named event and then cancels the subscription\n after the first time the event is triggered. It is good to use ``one`` when\n you only care about the first time an event has taken place.\n This function takes an optional 2nd argument that will become the \"this\"\n value for the callback. When the target parameter is used the callback method\n becomes the third argument.\n @method one\n @param {String} name The name of the event\n @param {Object} [target] The \"this\" binding for the callback\n @param {Function|String} method A function or the name of a function to be called on `target`\n @return this\n @public\n */\n one(name, target, method) {\n (0, _metal.addListener)(this, name, target, method, true);\n return this;\n },\n\n /**\n Triggers a named event for the object. Any additional arguments\n will be passed as parameters to the functions that are subscribed to the\n event.\n ```javascript\n person.on('didEat', function(food) {\n console.log('person ate some ' + food);\n });\n person.trigger('didEat', 'broccoli');\n // outputs: person ate some broccoli\n ```\n @method trigger\n @param {String} name The name of the event\n @param {Object...} args Optional arguments to pass on\n @public\n */\n trigger(name, ...args) {\n (0, _metal.sendEvent)(this, name, args);\n },\n\n /**\n Cancels subscription for given name, target, and method.\n @method off\n @param {String} name The name of the event\n @param {Object} target The target of the subscription\n @param {Function|String} method The function or the name of a function of the subscription\n @return this\n @public\n */\n off(name, target, method) {\n (0, _metal.removeListener)(this, name, target, method);\n return this;\n },\n\n /**\n Checks to see if object has any subscriptions for named event.\n @method has\n @param {String} name The name of the event\n @return {Boolean} does the object have a subscription for event\n @public\n */\n has(name) {\n return (0, _metal.hasListeners)(this, name);\n }\n\n });\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/mixins/mutable_enumerable\", [\"exports\", \"@ember/-internals/runtime/lib/mixins/enumerable\", \"@ember/-internals/metal\"], function (_exports, _enumerable, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n The methods in this mixin have been moved to MutableArray. This mixin has\n been intentionally preserved to avoid breaking MutableEnumerable.detect\n checks until the community migrates away from them.\n \n @class MutableEnumerable\n @namespace Ember\n @uses Enumerable\n @private\n */\n var _default = _metal.Mixin.create(_enumerable.default);\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/mixins/observable\", [\"exports\", \"@ember/-internals/metal\", \"@ember/debug\"], function (_exports, _metal, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/object\n */\n\n /**\n ## Overview\n \n This mixin provides properties and property observing functionality, core\n features of the Ember object model.\n \n Properties and observers allow one object to observe changes to a\n property on another object. This is one of the fundamental ways that\n models, controllers and views communicate with each other in an Ember\n application.\n \n Any object that has this mixin applied can be used in observer\n operations. That includes `EmberObject` and most objects you will\n interact with as you write your Ember application.\n \n Note that you will not generally apply this mixin to classes yourself,\n but you will use the features provided by this module frequently, so it\n is important to understand how to use it.\n \n ## Using `get()` and `set()`\n \n Because of Ember's support for bindings and observers, you will always\n access properties using the get method, and set properties using the\n set method. This allows the observing objects to be notified and\n computed properties to be handled properly.\n \n More documentation about `get` and `set` are below.\n \n ## Observing Property Changes\n \n You typically observe property changes simply by using the `observer`\n function in classes that you write.\n \n For example:\n \n ```javascript\n import { observer } from '@ember/object';\n import EmberObject from '@ember/object';\n \n EmberObject.extend({\n valueObserver: observer('value', function(sender, key, value, rev) {\n // Executes whenever the \"value\" property changes\n // See the addObserver method for more information about the callback arguments\n })\n });\n ```\n \n Although this is the most common way to add an observer, this capability\n is actually built into the `EmberObject` class on top of two methods\n defined in this mixin: `addObserver` and `removeObserver`. You can use\n these two methods to add and remove observers yourself if you need to\n do so at runtime.\n \n To add an observer for a property, call:\n \n ```javascript\n object.addObserver('propertyKey', targetObject, targetAction)\n ```\n \n This will call the `targetAction` method on the `targetObject` whenever\n the value of the `propertyKey` changes.\n \n Note that if `propertyKey` is a computed property, the observer will be\n called when any of the property dependencies are changed, even if the\n resulting value of the computed property is unchanged. This is necessary\n because computed properties are not computed until `get` is called.\n \n @class Observable\n @public\n */\n var _default = _metal.Mixin.create({\n /**\n Retrieves the value of a property from the object.\n This method is usually similar to using `object[keyName]` or `object.keyName`,\n however it supports both computed properties and the unknownProperty\n handler.\n Because `get` unifies the syntax for accessing all these kinds\n of properties, it can make many refactorings easier, such as replacing a\n simple property with a computed property, or vice versa.\n ### Computed Properties\n Computed properties are methods defined with the `property` modifier\n declared at the end, such as:\n ```javascript\n import { computed } from '@ember/object';\n fullName: computed('firstName', 'lastName', function() {\n return this.get('firstName') + ' ' + this.get('lastName');\n })\n ```\n When you call `get` on a computed property, the function will be\n called and the return value will be returned instead of the function\n itself.\n ### Unknown Properties\n Likewise, if you try to call `get` on a property whose value is\n `undefined`, the `unknownProperty()` method will be called on the object.\n If this method returns any value other than `undefined`, it will be returned\n instead. This allows you to implement \"virtual\" properties that are\n not defined upfront.\n @method get\n @param {String} keyName The property to retrieve\n @return {Object} The property value or undefined.\n @public\n */\n get(keyName) {\n return (0, _metal.get)(this, keyName);\n },\n\n /**\n To get the values of multiple properties at once, call `getProperties`\n with a list of strings or an array:\n ```javascript\n record.getProperties('firstName', 'lastName', 'zipCode');\n // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n ```\n is equivalent to:\n ```javascript\n record.getProperties(['firstName', 'lastName', 'zipCode']);\n // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n ```\n @method getProperties\n @param {String...|Array} list of keys to get\n @return {Object}\n @public\n */\n getProperties(...args) {\n return (0, _metal.getProperties)(...[this].concat(args));\n },\n\n /**\n Sets the provided key or path to the value.\n ```javascript\n record.set(\"key\", value);\n ```\n This method is generally very similar to calling `object[\"key\"] = value` or\n `object.key = value`, except that it provides support for computed\n properties, the `setUnknownProperty()` method and property observers.\n ### Computed Properties\n If you try to set a value on a key that has a computed property handler\n defined (see the `get()` method for an example), then `set()` will call\n that method, passing both the value and key instead of simply changing\n the value itself. This is useful for those times when you need to\n implement a property that is composed of one or more member\n properties.\n ### Unknown Properties\n If you try to set a value on a key that is undefined in the target\n object, then the `setUnknownProperty()` handler will be called instead. This\n gives you an opportunity to implement complex \"virtual\" properties that\n are not predefined on the object. If `setUnknownProperty()` returns\n undefined, then `set()` will simply set the value on the object.\n ### Property Observers\n In addition to changing the property, `set()` will also register a property\n change with the object. Unless you have placed this call inside of a\n `beginPropertyChanges()` and `endPropertyChanges(),` any \"local\" observers\n (i.e. observer methods declared on the same object), will be called\n immediately. Any \"remote\" observers (i.e. observer methods declared on\n another object) will be placed in a queue and called at a later time in a\n coalesced manner.\n @method set\n @param {String} keyName The property to set\n @param {Object} value The value to set or `null`.\n @return {Object} The passed value\n @public\n */\n set(keyName, value) {\n return (0, _metal.set)(this, keyName, value);\n },\n\n /**\n Sets a list of properties at once. These properties are set inside\n a single `beginPropertyChanges` and `endPropertyChanges` batch, so\n observers will be buffered.\n ```javascript\n record.setProperties({ firstName: 'Charles', lastName: 'Jolley' });\n ```\n @method setProperties\n @param {Object} hash the hash of keys and values to set\n @return {Object} The passed in hash\n @public\n */\n setProperties(hash) {\n return (0, _metal.setProperties)(this, hash);\n },\n\n /**\n Begins a grouping of property changes.\n You can use this method to group property changes so that notifications\n will not be sent until the changes are finished. If you plan to make a\n large number of changes to an object at one time, you should call this\n method at the beginning of the changes to begin deferring change\n notifications. When you are done making changes, call\n `endPropertyChanges()` to deliver the deferred change notifications and end\n deferring.\n @method beginPropertyChanges\n @return {Observable}\n @private\n */\n beginPropertyChanges() {\n (0, _metal.beginPropertyChanges)();\n return this;\n },\n\n /**\n Ends a grouping of property changes.\n You can use this method to group property changes so that notifications\n will not be sent until the changes are finished. If you plan to make a\n large number of changes to an object at one time, you should call\n `beginPropertyChanges()` at the beginning of the changes to defer change\n notifications. When you are done making changes, call this method to\n deliver the deferred change notifications and end deferring.\n @method endPropertyChanges\n @return {Observable}\n @private\n */\n endPropertyChanges() {\n (0, _metal.endPropertyChanges)();\n return this;\n },\n\n /**\n Notify the observer system that a property has just changed.\n Sometimes you need to change a value directly or indirectly without\n actually calling `get()` or `set()` on it. In this case, you can use this\n method instead. Calling this method will notify all observers that the\n property has potentially changed value.\n @method notifyPropertyChange\n @param {String} keyName The property key to be notified about.\n @return {Observable}\n @public\n */\n notifyPropertyChange(keyName) {\n (0, _metal.notifyPropertyChange)(this, keyName);\n return this;\n },\n\n /**\n Adds an observer on a property.\n This is the core method used to register an observer for a property.\n Once you call this method, any time the key's value is set, your observer\n will be notified. Note that the observers are triggered any time the\n value is set, regardless of whether it has actually changed. Your\n observer should be prepared to handle that.\n There are two common invocation patterns for `.addObserver()`:\n \n - Passing two arguments:\n - the name of the property to observe (as a string)\n - the function to invoke (an actual function)\n - Passing three arguments:\n - the name of the property to observe (as a string)\n - the target object (will be used to look up and invoke a\n function on)\n - the name of the function to invoke on the target object\n (as a string).\n ```app/components/my-component.js\n import Component from '@ember/component';\n export default Component.extend({\n init() {\n this._super(...arguments);\n // the following are equivalent:\n // using three arguments\n this.addObserver('foo', this, 'fooDidChange');\n // using two arguments\n this.addObserver('foo', (...args) => {\n this.fooDidChange(...args);\n });\n },\n fooDidChange() {\n // your custom logic code\n }\n });\n ```\n ### Observer Methods\n Observer methods have the following signature:\n ```app/components/my-component.js\n import Component from '@ember/component';\n export default Component.extend({\n init() {\n this._super(...arguments);\n this.addObserver('foo', this, 'fooDidChange');\n },\n fooDidChange(sender, key, value, rev) {\n // your code\n }\n });\n ```\n The `sender` is the object that changed. The `key` is the property that\n changes. The `value` property is currently reserved and unused. The `rev`\n is the last property revision of the object when it changed, which you can\n use to detect if the key value has really changed or not.\n Usually you will not need the value or revision parameters at\n the end. In this case, it is common to write observer methods that take\n only a sender and key value as parameters or, if you aren't interested in\n any of these values, to write an observer that has no parameters at all.\n @method addObserver\n @param {String} key The key to observe\n @param {Object} target The target object to invoke\n @param {String|Function} method The method to invoke\n @return {Observable}\n @public\n */\n addObserver(key, target, method) {\n (0, _metal.addObserver)(this, key, target, method);\n return this;\n },\n\n /**\n Remove an observer you have previously registered on this object. Pass\n the same key, target, and method you passed to `addObserver()` and your\n target will no longer receive notifications.\n @method removeObserver\n @param {String} key The key to observe\n @param {Object} target The target object to invoke\n @param {String|Function} method The method to invoke\n @return {Observable}\n @public\n */\n removeObserver(key, target, method) {\n (0, _metal.removeObserver)(this, key, target, method);\n return this;\n },\n\n /**\n Returns `true` if the object currently has observers registered for a\n particular key. You can use this method to potentially defer performing\n an expensive action until someone begins observing a particular property\n on the object.\n @method hasObserverFor\n @param {String} key Key to check\n @return {Boolean}\n @private\n */\n hasObserverFor(key) {\n return (0, _metal.hasListeners)(this, key + \":change\");\n },\n\n /**\n Retrieves the value of a property, or a default value in the case that the\n property returns `undefined`.\n ```javascript\n person.getWithDefault('lastName', 'Doe');\n ```\n @method getWithDefault\n @param {String} keyName The name of the property to retrieve\n @param {Object} defaultValue The value to return if the property value is undefined\n @return {Object} The property value or the defaultValue.\n @public\n */\n getWithDefault(keyName, defaultValue) {\n return (0, _metal.getWithDefault)(this, keyName, defaultValue);\n },\n\n /**\n Set the value of a property to the current value plus some amount.\n ```javascript\n person.incrementProperty('age');\n team.incrementProperty('score', 2);\n ```\n @method incrementProperty\n @param {String} keyName The name of the property to increment\n @param {Number} increment The amount to increment by. Defaults to 1\n @return {Number} The new property value\n @public\n */\n incrementProperty(keyName, increment = 1) {\n (0, _debug.assert)('Must pass a numeric value to incrementProperty', !isNaN(parseFloat(increment)) && isFinite(increment));\n return (0, _metal.set)(this, keyName, (parseFloat((0, _metal.get)(this, keyName)) || 0) + increment);\n },\n\n /**\n Set the value of a property to the current value minus some amount.\n ```javascript\n player.decrementProperty('lives');\n orc.decrementProperty('health', 5);\n ```\n @method decrementProperty\n @param {String} keyName The name of the property to decrement\n @param {Number} decrement The amount to decrement by. Defaults to 1\n @return {Number} The new property value\n @public\n */\n decrementProperty(keyName, decrement = 1) {\n (0, _debug.assert)('Must pass a numeric value to decrementProperty', !isNaN(parseFloat(decrement)) && isFinite(decrement));\n return (0, _metal.set)(this, keyName, ((0, _metal.get)(this, keyName) || 0) - decrement);\n },\n\n /**\n Set the value of a boolean property to the opposite of its\n current value.\n ```javascript\n starship.toggleProperty('warpDriveEngaged');\n ```\n @method toggleProperty\n @param {String} keyName The name of the property to toggle\n @return {Boolean} The new property value\n @public\n */\n toggleProperty(keyName) {\n return (0, _metal.set)(this, keyName, !(0, _metal.get)(this, keyName));\n },\n\n /**\n Returns the cached value of a computed property, if it exists.\n This allows you to inspect the value of a computed property\n without accidentally invoking it if it is intended to be\n generated lazily.\n @method cacheFor\n @param {String} keyName\n @return {Object} The cached value of the computed property, if any\n @public\n */\n cacheFor(keyName) {\n return (0, _metal.getCachedValueFor)(this, keyName);\n }\n\n });\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/mixins/promise_proxy\", [\"exports\", \"@ember/-internals/metal\", \"@ember/error\"], function (_exports, _metal, _error) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/object\n */\n function tap(proxy, promise) {\n (0, _metal.setProperties)(proxy, {\n isFulfilled: false,\n isRejected: false\n });\n return promise.then(value => {\n if (!proxy.isDestroyed && !proxy.isDestroying) {\n (0, _metal.setProperties)(proxy, {\n content: value,\n isFulfilled: true\n });\n }\n\n return value;\n }, reason => {\n if (!proxy.isDestroyed && !proxy.isDestroying) {\n (0, _metal.setProperties)(proxy, {\n reason,\n isRejected: true\n });\n }\n\n throw reason;\n }, 'Ember: PromiseProxy');\n }\n /**\n A low level mixin making ObjectProxy promise-aware.\n \n ```javascript\n import { resolve } from 'rsvp';\n import $ from 'jquery';\n import ObjectProxy from '@ember/object/proxy';\n import PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n \n let ObjectPromiseProxy = ObjectProxy.extend(PromiseProxyMixin);\n \n let proxy = ObjectPromiseProxy.create({\n promise: resolve($.getJSON('/some/remote/data.json'))\n });\n \n proxy.then(function(json){\n // the json\n }, function(reason) {\n // the reason why you have no json\n });\n ```\n \n the proxy has bindable attributes which\n track the promises life cycle\n \n ```javascript\n proxy.get('isPending') //=> true\n proxy.get('isSettled') //=> false\n proxy.get('isRejected') //=> false\n proxy.get('isFulfilled') //=> false\n ```\n \n When the $.getJSON completes, and the promise is fulfilled\n with json, the life cycle attributes will update accordingly.\n Note that $.getJSON doesn't return an ECMA specified promise,\n it is useful to wrap this with an `RSVP.resolve` so that it behaves\n as a spec compliant promise.\n \n ```javascript\n proxy.get('isPending') //=> false\n proxy.get('isSettled') //=> true\n proxy.get('isRejected') //=> false\n proxy.get('isFulfilled') //=> true\n ```\n \n As the proxy is an ObjectProxy, and the json now its content,\n all the json properties will be available directly from the proxy.\n \n ```javascript\n // Assuming the following json:\n {\n firstName: 'Stefan',\n lastName: 'Penner'\n }\n \n // both properties will accessible on the proxy\n proxy.get('firstName') //=> 'Stefan'\n proxy.get('lastName') //=> 'Penner'\n ```\n \n @class PromiseProxyMixin\n @public\n */\n\n\n var _default = _metal.Mixin.create({\n /**\n If the proxied promise is rejected this will contain the reason\n provided.\n @property reason\n @default null\n @public\n */\n reason: null,\n\n /**\n Once the proxied promise has settled this will become `false`.\n @property isPending\n @default true\n @public\n */\n isPending: (0, _metal.computed)('isSettled', function () {\n return !(0, _metal.get)(this, 'isSettled');\n }).readOnly(),\n\n /**\n Once the proxied promise has settled this will become `true`.\n @property isSettled\n @default false\n @public\n */\n isSettled: (0, _metal.computed)('isRejected', 'isFulfilled', function () {\n return (0, _metal.get)(this, 'isRejected') || (0, _metal.get)(this, 'isFulfilled');\n }).readOnly(),\n\n /**\n Will become `true` if the proxied promise is rejected.\n @property isRejected\n @default false\n @public\n */\n isRejected: false,\n\n /**\n Will become `true` if the proxied promise is fulfilled.\n @property isFulfilled\n @default false\n @public\n */\n isFulfilled: false,\n\n /**\n The promise whose fulfillment value is being proxied by this object.\n This property must be specified upon creation, and should not be\n changed once created.\n Example:\n ```javascript\n import ObjectProxy from '@ember/object/proxy';\n import PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n ObjectProxy.extend(PromiseProxyMixin).create({\n promise: \n });\n ```\n @property promise\n @public\n */\n promise: (0, _metal.computed)({\n get() {\n throw new _error.default(\"PromiseProxy's promise must be set\");\n },\n\n set(key, promise) {\n return tap(this, promise);\n }\n\n }),\n\n /**\n An alias to the proxied promise's `then`.\n See RSVP.Promise.then.\n @method then\n @param {Function} callback\n @return {RSVP.Promise}\n @public\n */\n then: promiseAlias('then'),\n\n /**\n An alias to the proxied promise's `catch`.\n See RSVP.Promise.catch.\n @method catch\n @param {Function} callback\n @return {RSVP.Promise}\n @since 1.3.0\n @public\n */\n catch: promiseAlias('catch'),\n\n /**\n An alias to the proxied promise's `finally`.\n See RSVP.Promise.finally.\n @method finally\n @param {Function} callback\n @return {RSVP.Promise}\n @since 1.3.0\n @public\n */\n finally: promiseAlias('finally')\n });\n\n _exports.default = _default;\n\n function promiseAlias(name) {\n return function () {\n let promise = (0, _metal.get)(this, 'promise');\n return promise[name](...arguments);\n };\n }\n});","enifed(\"@ember/-internals/runtime/lib/mixins/registry_proxy\", [\"exports\", \"@ember/debug\", \"@ember/-internals/metal\"], function (_exports, _debug, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n RegistryProxyMixin is used to provide public access to specific\n registry functionality.\n \n @class RegistryProxyMixin\n @private\n */\n var _default = _metal.Mixin.create({\n __registry__: null,\n\n /**\n Given a fullName return the corresponding factory.\n @public\n @method resolveRegistration\n @param {String} fullName\n @return {Function} fullName's factory\n */\n resolveRegistration(fullName, options) {\n (0, _debug.assert)('fullName must be a proper full name', this.__registry__.isValidFullName(fullName));\n return this.__registry__.resolve(fullName, options);\n },\n\n /**\n Registers a factory that can be used for dependency injection (with\n `inject`) or for service lookup. Each factory is registered with\n a full name including two parts: `type:name`.\n A simple example:\n ```javascript\n import Application from '@ember/application';\n import EmberObject from '@ember/object';\n let App = Application.create();\n App.Orange = EmberObject.extend();\n App.register('fruit:favorite', App.Orange);\n ```\n Ember will resolve factories from the `App` namespace automatically.\n For example `App.CarsController` will be discovered and returned if\n an application requests `controller:cars`.\n An example of registering a controller with a non-standard name:\n ```javascript\n import Application from '@ember/application';\n import Controller from '@ember/controller';\n let App = Application.create();\n let Session = Controller.extend();\n App.register('controller:session', Session);\n // The Session controller can now be treated like a normal controller,\n // despite its non-standard name.\n App.ApplicationController = Controller.extend({\n needs: ['session']\n });\n ```\n Registered factories are **instantiated** by having `create`\n called on them. Additionally they are **singletons**, each time\n they are looked up they return the same instance.\n Some examples modifying that default behavior:\n ```javascript\n import Application from '@ember/application';\n import EmberObject from '@ember/object';\n let App = Application.create();\n App.Person = EmberObject.extend();\n App.Orange = EmberObject.extend();\n App.Email = EmberObject.extend();\n App.session = EmberObject.create();\n App.register('model:user', App.Person, { singleton: false });\n App.register('fruit:favorite', App.Orange);\n App.register('communication:main', App.Email, { singleton: false });\n App.register('session', App.session, { instantiate: false });\n ```\n @method register\n @param fullName {String} type:name (e.g., 'model:user')\n @param factory {any} (e.g., App.Person)\n @param options {Object} (optional) disable instantiation or singleton usage\n @public\n */\n register: registryAlias('register'),\n\n /**\n Unregister a factory.\n ```javascript\n import Application from '@ember/application';\n import EmberObject from '@ember/object';\n let App = Application.create();\n let User = EmberObject.extend();\n App.register('model:user', User);\n App.resolveRegistration('model:user').create() instanceof User //=> true\n App.unregister('model:user')\n App.resolveRegistration('model:user') === undefined //=> true\n ```\n @public\n @method unregister\n @param {String} fullName\n */\n unregister: registryAlias('unregister'),\n\n /**\n Check if a factory is registered.\n @public\n @method hasRegistration\n @param {String} fullName\n @return {Boolean}\n */\n hasRegistration: registryAlias('has'),\n\n /**\n Return a specific registered option for a particular factory.\n @public\n @method registeredOption\n @param {String} fullName\n @param {String} optionName\n @return {Object} options\n */\n registeredOption: registryAlias('getOption'),\n\n /**\n Register options for a particular factory.\n @public\n @method registerOptions\n @param {String} fullName\n @param {Object} options\n */\n registerOptions: registryAlias('options'),\n\n /**\n Return registered options for a particular factory.\n @public\n @method registeredOptions\n @param {String} fullName\n @return {Object} options\n */\n registeredOptions: registryAlias('getOptions'),\n\n /**\n Allow registering options for all factories of a type.\n ```javascript\n import Application from '@ember/application';\n let App = Application.create();\n let appInstance = App.buildInstance();\n // if all of type `connection` must not be singletons\n appInstance.registerOptionsForType('connection', { singleton: false });\n appInstance.register('connection:twitter', TwitterConnection);\n appInstance.register('connection:facebook', FacebookConnection);\n let twitter = appInstance.lookup('connection:twitter');\n let twitter2 = appInstance.lookup('connection:twitter');\n twitter === twitter2; // => false\n let facebook = appInstance.lookup('connection:facebook');\n let facebook2 = appInstance.lookup('connection:facebook');\n facebook === facebook2; // => false\n ```\n @public\n @method registerOptionsForType\n @param {String} type\n @param {Object} options\n */\n registerOptionsForType: registryAlias('optionsForType'),\n\n /**\n Return the registered options for all factories of a type.\n @public\n @method registeredOptionsForType\n @param {String} type\n @return {Object} options\n */\n registeredOptionsForType: registryAlias('getOptionsForType'),\n\n /**\n Define a dependency injection onto a specific factory or all factories\n of a type.\n When Ember instantiates a controller, view, or other framework component\n it can attach a dependency to that component. This is often used to\n provide services to a set of framework components.\n An example of providing a session object to all controllers:\n ```javascript\n import { alias } from '@ember/object/computed';\n import Application from '@ember/application';\n import Controller from '@ember/controller';\n import EmberObject from '@ember/object';\n let App = Application.create();\n let Session = EmberObject.extend({ isAuthenticated: false });\n // A factory must be registered before it can be injected\n App.register('session:main', Session);\n // Inject 'session:main' onto all factories of the type 'controller'\n // with the name 'session'\n App.inject('controller', 'session', 'session:main');\n App.IndexController = Controller.extend({\n isLoggedIn: alias('session.isAuthenticated')\n });\n ```\n Injections can also be performed on specific factories.\n ```javascript\n App.inject(, , )\n App.inject('route', 'source', 'source:main')\n App.inject('route:application', 'email', 'model:email')\n ```\n It is important to note that injections can only be performed on\n classes that are instantiated by Ember itself. Instantiating a class\n directly (via `create` or `new`) bypasses the dependency injection\n system.\n @public\n @method inject\n @param factoryNameOrType {String}\n @param property {String}\n @param injectionName {String}\n **/\n inject: registryAlias('injection')\n });\n\n _exports.default = _default;\n\n function registryAlias(name) {\n return function () {\n return this.__registry__[name](...arguments);\n };\n }\n});","enifed(\"@ember/-internals/runtime/lib/mixins/target_action_support\", [\"exports\", \"@ember/-internals/environment\", \"@ember/-internals/metal\", \"@ember/debug\"], function (_exports, _environment, _metal, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n `Ember.TargetActionSupport` is a mixin that can be included in a class\n to add a `triggerAction` method with semantics similar to the Handlebars\n `{{action}}` helper. In normal Ember usage, the `{{action}}` helper is\n usually the best choice. This mixin is most often useful when you are\n doing more complex event handling in Components.\n \n @class TargetActionSupport\n @namespace Ember\n @extends Mixin\n @private\n */\n var _default = _metal.Mixin.create({\n target: null,\n action: null,\n actionContext: null,\n actionContextObject: (0, _metal.computed)('actionContext', function () {\n let actionContext = (0, _metal.get)(this, 'actionContext');\n\n if (typeof actionContext === 'string') {\n let value = (0, _metal.get)(this, actionContext);\n\n if (value === undefined) {\n value = (0, _metal.get)(_environment.context.lookup, actionContext);\n }\n\n return value;\n } else {\n return actionContext;\n }\n }),\n\n /**\n Send an `action` with an `actionContext` to a `target`. The action, actionContext\n and target will be retrieved from properties of the object. For example:\n ```javascript\n import { alias } from '@ember/object/computed';\n App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n target: alias('controller'),\n action: 'save',\n actionContext: alias('context'),\n click() {\n this.triggerAction(); // Sends the `save` action, along with the current context\n // to the current controller\n }\n });\n ```\n The `target`, `action`, and `actionContext` can be provided as properties of\n an optional object argument to `triggerAction` as well.\n ```javascript\n App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n click() {\n this.triggerAction({\n action: 'save',\n target: this.get('controller'),\n actionContext: this.get('context')\n }); // Sends the `save` action, along with the current context\n // to the current controller\n }\n });\n ```\n The `actionContext` defaults to the object you are mixing `TargetActionSupport` into.\n But `target` and `action` must be specified either as properties or with the argument\n to `triggerAction`, or a combination:\n ```javascript\n import { alias } from '@ember/object/computed';\n App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n target: alias('controller'),\n click() {\n this.triggerAction({\n action: 'save'\n }); // Sends the `save` action, along with a reference to `this`,\n // to the current controller\n }\n });\n ```\n @method triggerAction\n @param opts {Object} (optional, with the optional keys action, target and/or actionContext)\n @return {Boolean} true if the action was sent successfully and did not return false\n @private\n */\n triggerAction(opts = {}) {\n let {\n action,\n target,\n actionContext\n } = opts;\n action = action || (0, _metal.get)(this, 'action');\n target = target || getTarget(this);\n\n if (actionContext === undefined) {\n actionContext = (0, _metal.get)(this, 'actionContextObject') || this;\n }\n\n if (target && action) {\n let ret;\n\n if (target.send) {\n ret = target.send(...[action].concat(actionContext));\n } else {\n (0, _debug.assert)(\"The action '\" + action + \"' did not exist on \" + target, typeof target[action] === 'function');\n ret = target[action](...[].concat(actionContext));\n }\n\n if (ret !== false) {\n return true;\n }\n }\n\n return false;\n }\n\n });\n\n _exports.default = _default;\n\n function getTarget(instance) {\n let target = (0, _metal.get)(instance, 'target');\n\n if (target) {\n if (typeof target === 'string') {\n let value = (0, _metal.get)(instance, target);\n\n if (value === undefined) {\n value = (0, _metal.get)(_environment.context.lookup, target);\n }\n\n return value;\n } else {\n return target;\n }\n }\n\n if (instance._target) {\n return instance._target;\n }\n\n return null;\n }\n});","enifed(\"@ember/-internals/runtime/lib/system/array_proxy\", [\"exports\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/array\", \"@ember/debug\"], function (_exports, _metal, _object, _array, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/array\n */\n const ARRAY_OBSERVER_MAPPING = {\n willChange: '_arrangedContentArrayWillChange',\n didChange: '_arrangedContentArrayDidChange'\n };\n /**\n An ArrayProxy wraps any other object that implements `Array` and/or\n `MutableArray,` forwarding all requests. This makes it very useful for\n a number of binding use cases or other cases where being able to swap\n out the underlying array is useful.\n \n A simple example of usage:\n \n ```javascript\n import { A } from '@ember/array';\n import ArrayProxy from '@ember/array/proxy';\n \n let pets = ['dog', 'cat', 'fish'];\n let ap = ArrayProxy.create({ content: A(pets) });\n \n ap.get('firstObject'); // 'dog'\n ap.set('content', ['amoeba', 'paramecium']);\n ap.get('firstObject'); // 'amoeba'\n ```\n \n This class can also be useful as a layer to transform the contents of\n an array, as they are accessed. This can be done by overriding\n `objectAtContent`:\n \n ```javascript\n import { A } from '@ember/array';\n import ArrayProxy from '@ember/array/proxy';\n \n let pets = ['dog', 'cat', 'fish'];\n let ap = ArrayProxy.create({\n content: A(pets),\n objectAtContent: function(idx) {\n return this.get('content').objectAt(idx).toUpperCase();\n }\n });\n \n ap.get('firstObject'); // . 'DOG'\n ```\n \n When overriding this class, it is important to place the call to\n `_super` *after* setting `content` so the internal observers have\n a chance to fire properly:\n \n ```javascript\n import { A } from '@ember/array';\n import ArrayProxy from '@ember/array/proxy';\n \n export default ArrayProxy.extend({\n init() {\n this.set('content', A(['dog', 'cat', 'fish']));\n this._super(...arguments);\n }\n });\n ```\n \n @class ArrayProxy\n @extends EmberObject\n @uses MutableArray\n @public\n */\n\n class ArrayProxy extends _object.default {\n init() {\n super.init(...arguments);\n /*\n `this._objectsDirtyIndex` determines which indexes in the `this._objects`\n cache are dirty.\n If `this._objectsDirtyIndex === -1` then no indexes are dirty.\n Otherwise, an index `i` is dirty if `i >= this._objectsDirtyIndex`.\n Calling `objectAt` with a dirty index will cause the `this._objects`\n cache to be recomputed.\n */\n\n this._objectsDirtyIndex = 0;\n this._objects = null;\n this._lengthDirty = true;\n this._length = 0;\n this._arrangedContent = null;\n\n this._addArrangedContentArrayObsever();\n }\n\n willDestroy() {\n this._removeArrangedContentArrayObsever();\n }\n /**\n The content array. Must be an object that implements `Array` and/or\n `MutableArray.`\n @property content\n @type EmberArray\n @public\n */\n\n /**\n Should actually retrieve the object at the specified index from the\n content. You can override this method in subclasses to transform the\n content item to something new.\n This method will only be called if content is non-`null`.\n @method objectAtContent\n @param {Number} idx The index to retrieve.\n @return {Object} the value or undefined if none found\n @public\n */\n\n\n objectAtContent(idx) {\n return (0, _metal.objectAt)((0, _metal.get)(this, 'arrangedContent'), idx);\n } // See additional docs for `replace` from `MutableArray`:\n // https://www.emberjs.com/api/ember/3.3/classes/MutableArray/methods/replace?anchor=replace\n\n\n replace(idx, amt, objects) {\n (0, _debug.assert)('Mutating an arranged ArrayProxy is not allowed', (0, _metal.get)(this, 'arrangedContent') === (0, _metal.get)(this, 'content'));\n this.replaceContent(idx, amt, objects);\n }\n /**\n Should actually replace the specified objects on the content array.\n You can override this method in subclasses to transform the content item\n into something new.\n This method will only be called if content is non-`null`.\n @method replaceContent\n @param {Number} idx The starting index\n @param {Number} amt The number of items to remove from the content.\n @param {EmberArray} objects Optional array of objects to insert or null if no\n objects.\n @return {void}\n @public\n */\n\n\n replaceContent(idx, amt, objects) {\n (0, _metal.get)(this, 'content').replace(idx, amt, objects);\n } // Overriding objectAt is not supported.\n\n\n objectAt(idx) {\n if (this._objects === null) {\n this._objects = [];\n }\n\n if (this._objectsDirtyIndex !== -1 && idx >= this._objectsDirtyIndex) {\n let arrangedContent = (0, _metal.get)(this, 'arrangedContent');\n\n if (arrangedContent) {\n let length = this._objects.length = (0, _metal.get)(arrangedContent, 'length');\n\n for (let i = this._objectsDirtyIndex; i < length; i++) {\n this._objects[i] = this.objectAtContent(i);\n }\n } else {\n this._objects.length = 0;\n }\n\n this._objectsDirtyIndex = -1;\n }\n\n return this._objects[idx];\n } // Overriding length is not supported.\n\n\n get length() {\n if (this._lengthDirty) {\n let arrangedContent = (0, _metal.get)(this, 'arrangedContent');\n this._length = arrangedContent ? (0, _metal.get)(arrangedContent, 'length') : 0;\n this._lengthDirty = false;\n }\n\n return this._length;\n }\n\n set length(value) {\n let length = this.length;\n let removedCount = length - value;\n let added;\n\n if (removedCount === 0) {\n return;\n } else if (removedCount < 0) {\n added = new Array(-removedCount);\n removedCount = 0;\n }\n\n let content = (0, _metal.get)(this, 'content');\n\n if (content) {\n (0, _metal.replace)(content, value, removedCount, added);\n\n this._invalidate();\n }\n }\n\n [_metal.PROPERTY_DID_CHANGE](key) {\n if (key === 'arrangedContent') {\n let oldLength = this._objects === null ? 0 : this._objects.length;\n let arrangedContent = (0, _metal.get)(this, 'arrangedContent');\n let newLength = arrangedContent ? (0, _metal.get)(arrangedContent, 'length') : 0;\n\n this._removeArrangedContentArrayObsever();\n\n this.arrayContentWillChange(0, oldLength, newLength);\n\n this._invalidate();\n\n this.arrayContentDidChange(0, oldLength, newLength);\n\n this._addArrangedContentArrayObsever();\n } else if (key === 'content') {\n this._invalidate();\n }\n }\n\n _addArrangedContentArrayObsever() {\n let arrangedContent = (0, _metal.get)(this, 'arrangedContent');\n\n if (arrangedContent) {\n (0, _debug.assert)(\"Can't set ArrayProxy's content to itself\", arrangedContent !== this);\n (0, _debug.assert)(\"ArrayProxy expects an Array or ArrayProxy, but you passed \" + typeof arrangedContent, (0, _array.isArray)(arrangedContent) || arrangedContent.isDestroyed);\n (0, _metal.addArrayObserver)(arrangedContent, this, ARRAY_OBSERVER_MAPPING);\n this._arrangedContent = arrangedContent;\n }\n }\n\n _removeArrangedContentArrayObsever() {\n if (this._arrangedContent) {\n (0, _metal.removeArrayObserver)(this._arrangedContent, this, ARRAY_OBSERVER_MAPPING);\n }\n }\n\n _arrangedContentArrayWillChange() {}\n\n _arrangedContentArrayDidChange(proxy, idx, removedCnt, addedCnt) {\n this.arrayContentWillChange(idx, removedCnt, addedCnt);\n let dirtyIndex = idx;\n\n if (dirtyIndex < 0) {\n let length = (0, _metal.get)(this._arrangedContent, 'length');\n dirtyIndex += length + removedCnt - addedCnt;\n }\n\n if (this._objectsDirtyIndex === -1 || this._objectsDirtyIndex > dirtyIndex) {\n this._objectsDirtyIndex = dirtyIndex;\n }\n\n this._lengthDirty = true;\n this.arrayContentDidChange(idx, removedCnt, addedCnt);\n }\n\n _invalidate() {\n this._objectsDirtyIndex = 0;\n this._lengthDirty = true;\n }\n\n }\n\n _exports.default = ArrayProxy;\n ArrayProxy.reopen(_array.MutableArray, {\n /**\n The array that the proxy pretends to be. In the default `ArrayProxy`\n implementation, this and `content` are the same. Subclasses of `ArrayProxy`\n can override this property to provide things like sorting and filtering.\n @property arrangedContent\n @public\n */\n arrangedContent: (0, _metal.alias)('content')\n });\n});","enifed(\"@ember/-internals/runtime/lib/system/core_object\", [\"exports\", \"@ember/-internals/container\", \"@ember/polyfills\", \"@ember/-internals/utils\", \"@ember/runloop\", \"@ember/-internals/meta\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/mixins/action_handler\", \"@ember/debug\", \"@glimmer/env\"], function (_exports, _container, _polyfills, _utils, _runloop, _meta, _metal, _action_handler, _debug, _env) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/object\n */\n const reopen = _metal.Mixin.prototype.reopen;\n const wasApplied = new _polyfills._WeakSet();\n const factoryMap = new WeakMap();\n const prototypeMixinMap = new WeakMap();\n const DELAY_INIT = Object.freeze({});\n let initCalled; // only used in debug builds to enable the proxy trap\n // using DEBUG here to avoid the extraneous variable when not needed\n\n if (_env.DEBUG) {\n initCalled = new _polyfills._WeakSet();\n }\n\n function initialize(obj, properties) {\n let m = (0, _meta.meta)(obj);\n\n if (properties !== undefined) {\n (0, _debug.assert)('EmberObject.create only accepts objects.', typeof properties === 'object' && properties !== null);\n (0, _debug.assert)('EmberObject.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof _metal.Mixin));\n let concatenatedProperties = obj.concatenatedProperties;\n let mergedProperties = obj.mergedProperties;\n let hasConcatenatedProps = concatenatedProperties !== undefined && concatenatedProperties.length > 0;\n let hasMergedProps = mergedProperties !== undefined && mergedProperties.length > 0;\n let keyNames = Object.keys(properties);\n\n for (let i = 0; i < keyNames.length; i++) {\n let keyName = keyNames[i];\n let value = properties[keyName];\n (0, _debug.assert)('EmberObject.create no longer supports defining computed ' + 'properties. Define computed properties using extend() or reopen() ' + 'before calling create().', !(0, _metal.isClassicDecorator)(value));\n (0, _debug.assert)('EmberObject.create no longer supports defining methods that call _super.', !(typeof value === 'function' && value.toString().indexOf('._super') !== -1));\n (0, _debug.assert)('`actions` must be provided at extend time, not at create time, ' + 'when Ember.ActionHandler is used (i.e. views, controllers & routes).', !(keyName === 'actions' && _action_handler.default.detect(obj)));\n let possibleDesc = (0, _metal.descriptorForProperty)(obj, keyName, m);\n let isDescriptor = possibleDesc !== undefined;\n\n if (!isDescriptor) {\n let baseValue = obj[keyName];\n\n if (hasConcatenatedProps && concatenatedProperties.indexOf(keyName) > -1) {\n if (baseValue) {\n value = (0, _utils.makeArray)(baseValue).concat(value);\n } else {\n value = (0, _utils.makeArray)(value);\n }\n }\n\n if (hasMergedProps && mergedProperties.indexOf(keyName) > -1) {\n value = (0, _polyfills.assign)({}, baseValue, value);\n }\n }\n\n if (isDescriptor) {\n possibleDesc.set(obj, keyName, value);\n } else if (typeof obj.setUnknownProperty === 'function' && !(keyName in obj)) {\n obj.setUnknownProperty(keyName, value);\n } else {\n if (_env.DEBUG) {\n (0, _metal.defineProperty)(obj, keyName, null, value, m); // setup mandatory setter\n } else {\n obj[keyName] = value;\n }\n }\n }\n } // using DEBUG here to avoid the extraneous variable when not needed\n\n\n if (_env.DEBUG) {\n initCalled.add(obj);\n }\n\n obj.init(properties); // re-enable chains\n\n m.unsetInitializing();\n (0, _metal.finishChains)(m);\n (0, _metal.sendEvent)(obj, 'init', undefined, undefined, undefined, m);\n }\n /**\n `CoreObject` is the base class for all Ember constructs. It establishes a\n class system based on Ember's Mixin system, and provides the basis for the\n Ember Object Model. `CoreObject` should generally not be used directly,\n instead you should use `EmberObject`.\n \n ## Usage\n \n You can define a class by extending from `CoreObject` using the `extend`\n method:\n \n ```js\n const Person = CoreObject.extend({\n name: 'Tomster',\n });\n ```\n \n For detailed usage, see the [Object Model](https://guides.emberjs.com/release/object-model/)\n section of the guides.\n \n ## Usage with Native Classes\n \n Native JavaScript `class` syntax can be used to extend from any `CoreObject`\n based class:\n \n ```js\n class Person extends CoreObject {\n init() {\n super.init(...arguments);\n this.name = 'Tomster';\n }\n }\n ```\n \n Some notes about `class` usage:\n \n * `new` syntax is not currently supported with classes that extend from\n `EmberObject` or `CoreObject`. You must continue to use the `create` method\n when making new instances of classes, even if they are defined using native\n class syntax. If you want to use `new` syntax, consider creating classes\n which do _not_ extend from `EmberObject` or `CoreObject`. Ember features,\n such as computed properties and decorators, will still work with base-less\n classes.\n * Instead of using `this._super()`, you must use standard `super` syntax in\n native classes. See the [MDN docs on classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Super_class_calls_with_super)\n for more details.\n * Native classes support using [constructors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Constructor)\n to set up newly-created instances. Ember uses these to, among other things,\n support features that need to retrieve other entities by name, like Service\n injection and `getOwner`. To ensure your custom instance setup logic takes\n place after this important work is done, avoid using the `constructor` in\n favor of `init`.\n * Properties passed to `create` will be available on the instance by the time\n `init` runs, so any code that requires these values should work at that\n time.\n * Using native classes, and switching back to the old Ember Object model is\n fully supported.\n \n @class CoreObject\n @public\n */\n\n\n class CoreObject {\n static _initFactory(factory) {\n factoryMap.set(this, factory);\n }\n\n constructor(properties) {\n // pluck off factory\n let initFactory = factoryMap.get(this.constructor);\n\n if (initFactory !== undefined) {\n factoryMap.delete(this.constructor);\n\n _container.FACTORY_FOR.set(this, initFactory);\n } // prepare prototype...\n\n\n this.constructor.proto();\n let self = this;\n\n if (_env.DEBUG && _utils.HAS_NATIVE_PROXY && typeof self.unknownProperty === 'function') {\n let messageFor = (obj, property) => {\n return \"You attempted to access the `\" + String(property) + \"` property (of \" + obj + \").\\n\" + \"Since Ember 3.1, this is usually fine as you no longer need to use `.get()`\\n\" + \"to access computed properties. However, in this case, the object in question\\n\" + \"is a special kind of Ember object (a proxy). Therefore, it is still necessary\\n\" + (\"to use `.get('\" + String(property) + \"')` in this case.\\n\\n\") + \"If you encountered this error because of third-party code that you don't control,\\n\" + \"there is more information at https://github.com/emberjs/ember.js/issues/16148, and\\n\" + \"you can help us improve this error message by telling us more about what happened in\\n\" + \"this situation.\";\n };\n /* globals Proxy Reflect */\n\n\n self = new Proxy(this, {\n get(target, property, receiver) {\n if (property === _metal.PROXY_CONTENT) {\n return target;\n } else if ( // init called will be set on the proxy, not the target, so get with the receiver\n !initCalled.has(receiver) || typeof property === 'symbol' || (0, _utils.isInternalSymbol)(property) || property === 'toJSON' || property === 'toString' || property === 'toStringExtension' || property === 'didDefineProperty' || property === 'willWatchProperty' || property === 'didUnwatchProperty' || property === 'didAddListener' || property === 'didRemoveListener' || property === 'isDescriptor' || property === '_onLookup' || property in target) {\n return Reflect.get(target, property, receiver);\n }\n\n let value = target.unknownProperty.call(receiver, property);\n\n if (typeof value !== 'function') {\n (0, _debug.assert)(messageFor(receiver, property), value === undefined || value === null);\n }\n }\n\n });\n\n _container.FACTORY_FOR.set(self, initFactory);\n } // disable chains\n\n\n let m = (0, _meta.meta)(self);\n m.setInitializing();\n\n if (properties !== DELAY_INIT) {\n (0, _debug.deprecate)('using `new` with EmberObject has been deprecated. Please use `create` instead, or consider using native classes without extending from EmberObject.', false, {\n id: 'object.new-constructor',\n until: '3.9.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_object-new-constructor'\n });\n initialize(self, properties);\n } // only return when in debug builds and `self` is the proxy created above\n\n\n if (_env.DEBUG && self !== this) {\n return self;\n }\n }\n\n reopen(...args) {\n (0, _metal.applyMixin)(this, args);\n return this;\n }\n /**\n An overridable method called when objects are instantiated. By default,\n does nothing unless it is overridden during class definition.\n Example:\n ```javascript\n import EmberObject from '@ember/object';\n const Person = EmberObject.extend({\n init() {\n alert(`Name is ${this.get('name')}`);\n }\n });\n let steve = Person.create({\n name: 'Steve'\n });\n // alerts 'Name is Steve'.\n ```\n NOTE: If you do override `init` for a framework class like `Ember.View`,\n be sure to call `this._super(...arguments)` in your\n `init` declaration! If you don't, Ember may not have an opportunity to\n do important setup work, and you'll see strange behavior in your\n application.\n @method init\n @public\n */\n\n\n init() {}\n /**\n Defines the properties that will be concatenated from the superclass\n (instead of overridden).\n By default, when you extend an Ember class a property defined in\n the subclass overrides a property with the same name that is defined\n in the superclass. However, there are some cases where it is preferable\n to build up a property's value by combining the superclass' property\n value with the subclass' value. An example of this in use within Ember\n is the `classNames` property of `Ember.View`.\n Here is some sample code showing the difference between a concatenated\n property and a normal one:\n ```javascript\n import EmberObject from '@ember/object';\n const Bar = EmberObject.extend({\n // Configure which properties to concatenate\n concatenatedProperties: ['concatenatedProperty'],\n someNonConcatenatedProperty: ['bar'],\n concatenatedProperty: ['bar']\n });\n const FooBar = Bar.extend({\n someNonConcatenatedProperty: ['foo'],\n concatenatedProperty: ['foo']\n });\n let fooBar = FooBar.create();\n fooBar.get('someNonConcatenatedProperty'); // ['foo']\n fooBar.get('concatenatedProperty'); // ['bar', 'foo']\n ```\n This behavior extends to object creation as well. Continuing the\n above example:\n ```javascript\n let fooBar = FooBar.create({\n someNonConcatenatedProperty: ['baz'],\n concatenatedProperty: ['baz']\n })\n fooBar.get('someNonConcatenatedProperty'); // ['baz']\n fooBar.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n ```\n Adding a single property that is not an array will just add it in the array:\n ```javascript\n let fooBar = FooBar.create({\n concatenatedProperty: 'baz'\n })\n view.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n ```\n Using the `concatenatedProperties` property, we can tell Ember to mix the\n content of the properties.\n In `Component` the `classNames`, `classNameBindings` and\n `attributeBindings` properties are concatenated.\n This feature is available for you to use throughout the Ember object model,\n although typical app developers are likely to use it infrequently. Since\n it changes expectations about behavior of properties, you should properly\n document its usage in each individual concatenated property (to not\n mislead your users to think they can override the property in a subclass).\n @property concatenatedProperties\n @type Array\n @default null\n @public\n */\n\n /**\n Defines the properties that will be merged from the superclass\n (instead of overridden).\n By default, when you extend an Ember class a property defined in\n the subclass overrides a property with the same name that is defined\n in the superclass. However, there are some cases where it is preferable\n to build up a property's value by merging the superclass property value\n with the subclass property's value. An example of this in use within Ember\n is the `queryParams` property of routes.\n Here is some sample code showing the difference between a merged\n property and a normal one:\n ```javascript\n import EmberObject from '@ember/object';\n const Bar = EmberObject.extend({\n // Configure which properties are to be merged\n mergedProperties: ['mergedProperty'],\n someNonMergedProperty: {\n nonMerged: 'superclass value of nonMerged'\n },\n mergedProperty: {\n page: { replace: false },\n limit: { replace: true }\n }\n });\n const FooBar = Bar.extend({\n someNonMergedProperty: {\n completelyNonMerged: 'subclass value of nonMerged'\n },\n mergedProperty: {\n limit: { replace: false }\n }\n });\n let fooBar = FooBar.create();\n fooBar.get('someNonMergedProperty');\n // => { completelyNonMerged: 'subclass value of nonMerged' }\n //\n // Note the entire object, including the nonMerged property of\n // the superclass object, has been replaced\n fooBar.get('mergedProperty');\n // => {\n // page: {replace: false},\n // limit: {replace: false}\n // }\n //\n // Note the page remains from the superclass, and the\n // `limit` property's value of `false` has been merged from\n // the subclass.\n ```\n This behavior is not available during object `create` calls. It is only\n available at `extend` time.\n In `Route` the `queryParams` property is merged.\n This feature is available for you to use throughout the Ember object model,\n although typical app developers are likely to use it infrequently. Since\n it changes expectations about behavior of properties, you should properly\n document its usage in each individual merged property (to not\n mislead your users to think they can override the property in a subclass).\n @property mergedProperties\n @type Array\n @default null\n @public\n */\n\n /**\n Destroyed object property flag.\n if this property is `true` the observers and bindings were already\n removed by the effect of calling the `destroy()` method.\n @property isDestroyed\n @default false\n @public\n */\n\n\n get isDestroyed() {\n return (0, _meta.peekMeta)(this).isSourceDestroyed();\n }\n\n set isDestroyed(value) {\n (0, _debug.assert)(\"You cannot set `\" + this + \".isDestroyed` directly, please use `.destroy()`.\", false);\n }\n /**\n Destruction scheduled flag. The `destroy()` method has been called.\n The object stays intact until the end of the run loop at which point\n the `isDestroyed` flag is set.\n @property isDestroying\n @default false\n @public\n */\n\n\n get isDestroying() {\n return (0, _meta.peekMeta)(this).isSourceDestroying();\n }\n\n set isDestroying(value) {\n (0, _debug.assert)(\"You cannot set `\" + this + \".isDestroying` directly, please use `.destroy()`.\", false);\n }\n /**\n Destroys an object by setting the `isDestroyed` flag and removing its\n metadata, which effectively destroys observers and bindings.\n If you try to set a property on a destroyed object, an exception will be\n raised.\n Note that destruction is scheduled for the end of the run loop and does not\n happen immediately. It will set an isDestroying flag immediately.\n @method destroy\n @return {EmberObject} receiver\n @public\n */\n\n\n destroy() {\n let m = (0, _meta.peekMeta)(this);\n\n if (m.isSourceDestroying()) {\n return;\n }\n\n m.setSourceDestroying();\n (0, _runloop.schedule)('actions', this, this.willDestroy);\n (0, _runloop.schedule)('destroy', this, this._scheduledDestroy, m);\n return this;\n }\n /**\n Override to implement teardown.\n @method willDestroy\n @public\n */\n\n\n willDestroy() {}\n /**\n Invoked by the run loop to actually destroy the object. This is\n scheduled for execution by the `destroy` method.\n @private\n @method _scheduledDestroy\n */\n\n\n _scheduledDestroy(m) {\n if (m.isSourceDestroyed()) {\n return;\n }\n\n (0, _meta.deleteMeta)(this);\n m.setSourceDestroyed();\n }\n /**\n Returns a string representation which attempts to provide more information\n than Javascript's `toString` typically does, in a generic way for all Ember\n objects.\n ```javascript\n import EmberObject from '@ember/object';\n const Person = EmberObject.extend();\n person = Person.create();\n person.toString(); //=> \"\"\n ```\n If the object's class is not defined on an Ember namespace, it will\n indicate it is a subclass of the registered superclass:\n ```javascript\n const Student = Person.extend();\n let student = Student.create();\n student.toString(); //=> \"<(subclass of Person):ember1025>\"\n ```\n If the method `toStringExtension` is defined, its return value will be\n included in the output.\n ```javascript\n const Teacher = Person.extend({\n toStringExtension() {\n return this.get('fullName');\n }\n });\n teacher = Teacher.create();\n teacher.toString(); //=> \"\"\n ```\n @method toString\n @return {String} string representation\n @public\n */\n\n\n toString() {\n let hasToStringExtension = typeof this.toStringExtension === 'function';\n let extension = hasToStringExtension ? \":\" + this.toStringExtension() : '';\n let ret = \"<\" + ((0, _utils.getName)(this) || _container.FACTORY_FOR.get(this) || this.constructor.toString()) + \":\" + (0, _utils.guidFor)(this) + extension + \">\";\n return ret;\n }\n /**\n Creates a new subclass.\n ```javascript\n import EmberObject from '@ember/object';\n const Person = EmberObject.extend({\n say(thing) {\n alert(thing);\n }\n });\n ```\n This defines a new subclass of EmberObject: `Person`. It contains one method: `say()`.\n You can also create a subclass from any existing class by calling its `extend()` method.\n For example, you might want to create a subclass of Ember's built-in `Component` class:\n ```javascript\n import Component from '@ember/component';\n const PersonComponent = Component.extend({\n tagName: 'li',\n classNameBindings: ['isAdministrator']\n });\n ```\n When defining a subclass, you can override methods but still access the\n implementation of your parent class by calling the special `_super()` method:\n ```javascript\n import EmberObject from '@ember/object';\n const Person = EmberObject.extend({\n say(thing) {\n let name = this.get('name');\n alert(`${name} says: ${thing}`);\n }\n });\n const Soldier = Person.extend({\n say(thing) {\n this._super(`${thing}, sir!`);\n },\n march(numberOfHours) {\n alert(`${this.get('name')} marches for ${numberOfHours} hours.`);\n }\n });\n let yehuda = Soldier.create({\n name: 'Yehuda Katz'\n });\n yehuda.say('Yes'); // alerts \"Yehuda Katz says: Yes, sir!\"\n ```\n The `create()` on line #17 creates an *instance* of the `Soldier` class.\n The `extend()` on line #8 creates a *subclass* of `Person`. Any instance\n of the `Person` class will *not* have the `march()` method.\n You can also pass `Mixin` classes to add additional properties to the subclass.\n ```javascript\n import EmberObject from '@ember/object';\n import Mixin from '@ember/object/mixin';\n const Person = EmberObject.extend({\n say(thing) {\n alert(`${this.get('name')} says: ${thing}`);\n }\n });\n const SingingMixin = Mixin.create({\n sing(thing) {\n alert(`${this.get('name')} sings: la la la ${thing}`);\n }\n });\n const BroadwayStar = Person.extend(SingingMixin, {\n dance() {\n alert(`${this.get('name')} dances: tap tap tap tap `);\n }\n });\n ```\n The `BroadwayStar` class contains three methods: `say()`, `sing()`, and `dance()`.\n @method extend\n @static\n @for @ember/object\n @param {Mixin} [mixins]* One or more Mixin classes\n @param {Object} [arguments]* Object containing values to use within the new class\n @public\n */\n\n\n static extend() {\n let Class = class extends this {};\n reopen.apply(Class.PrototypeMixin, arguments);\n return Class;\n }\n /**\n Creates an instance of a class. Accepts either no arguments, or an object\n containing values to initialize the newly instantiated object with.\n ```javascript\n import EmberObject from '@ember/object';\n const Person = EmberObject.extend({\n helloWorld() {\n alert(`Hi, my name is ${this.get('name')}`);\n }\n });\n let tom = Person.create({\n name: 'Tom Dale'\n });\n tom.helloWorld(); // alerts \"Hi, my name is Tom Dale\".\n ```\n `create` will call the `init` function if defined during\n `AnyObject.extend`\n If no arguments are passed to `create`, it will not set values to the new\n instance during initialization:\n ```javascript\n let noName = Person.create();\n noName.helloWorld(); // alerts undefined\n ```\n NOTE: For performance reasons, you cannot declare methods or computed\n properties during `create`. You should instead declare methods and computed\n properties when using `extend`.\n @method create\n @for @ember/object\n @static\n @param [arguments]*\n @public\n */\n\n\n static create(props, extra) {\n let C = this;\n let instance = new C(DELAY_INIT);\n\n if (extra === undefined) {\n initialize(instance, props);\n } else {\n initialize(instance, flattenProps.apply(this, arguments));\n }\n\n return instance;\n }\n /**\n Augments a constructor's prototype with additional\n properties and functions:\n ```javascript\n import EmberObject from '@ember/object';\n const MyObject = EmberObject.extend({\n name: 'an object'\n });\n o = MyObject.create();\n o.get('name'); // 'an object'\n MyObject.reopen({\n say(msg) {\n console.log(msg);\n }\n });\n o2 = MyObject.create();\n o2.say('hello'); // logs \"hello\"\n o.say('goodbye'); // logs \"goodbye\"\n ```\n To add functions and properties to the constructor itself,\n see `reopenClass`\n @method reopen\n @for @ember/object\n @static\n @public\n */\n\n\n static reopen() {\n this.willReopen();\n reopen.apply(this.PrototypeMixin, arguments);\n return this;\n }\n\n static willReopen() {\n let p = this.prototype;\n\n if (wasApplied.has(p)) {\n wasApplied.delete(p); // If the base mixin already exists and was applied, create a new mixin to\n // make sure that it gets properly applied. Reusing the same mixin after\n // the first `proto` call will cause it to get skipped.\n\n if (prototypeMixinMap.has(this)) {\n prototypeMixinMap.set(this, _metal.Mixin.create(this.PrototypeMixin));\n }\n }\n }\n /**\n Augments a constructor's own properties and functions:\n ```javascript\n import EmberObject from '@ember/object';\n const MyObject = EmberObject.extend({\n name: 'an object'\n });\n MyObject.reopenClass({\n canBuild: false\n });\n MyObject.canBuild; // false\n o = MyObject.create();\n ```\n In other words, this creates static properties and functions for the class.\n These are only available on the class and not on any instance of that class.\n ```javascript\n import EmberObject from '@ember/object';\n const Person = EmberObject.extend({\n name: '',\n sayHello() {\n alert(`Hello. My name is ${this.get('name')}`);\n }\n });\n Person.reopenClass({\n species: 'Homo sapiens',\n createPerson(name) {\n return Person.create({ name });\n }\n });\n let tom = Person.create({\n name: 'Tom Dale'\n });\n let yehuda = Person.createPerson('Yehuda Katz');\n tom.sayHello(); // \"Hello. My name is Tom Dale\"\n yehuda.sayHello(); // \"Hello. My name is Yehuda Katz\"\n alert(Person.species); // \"Homo sapiens\"\n ```\n Note that `species` and `createPerson` are *not* valid on the `tom` and `yehuda`\n variables. They are only valid on `Person`.\n To add functions and properties to instances of\n a constructor by extending the constructor's prototype\n see `reopen`\n @method reopenClass\n @for @ember/object\n @static\n @public\n */\n\n\n static reopenClass() {\n (0, _metal.applyMixin)(this, arguments);\n return this;\n }\n\n static detect(obj) {\n if ('function' !== typeof obj) {\n return false;\n }\n\n while (obj) {\n if (obj === this) {\n return true;\n }\n\n obj = obj.superclass;\n }\n\n return false;\n }\n\n static detectInstance(obj) {\n return obj instanceof this;\n }\n /**\n In some cases, you may want to annotate computed properties with additional\n metadata about how they function or what values they operate on. For\n example, computed property functions may close over variables that are then\n no longer available for introspection.\n You can pass a hash of these values to a computed property like this:\n ```javascript\n import { computed } from '@ember/object';\n person: computed(function() {\n let personId = this.get('personId');\n return Person.create({ id: personId });\n }).meta({ type: Person })\n ```\n Once you've done this, you can retrieve the values saved to the computed\n property from your class like this:\n ```javascript\n MyClass.metaForProperty('person');\n ```\n This will return the original hash that was passed to `meta()`.\n @static\n @method metaForProperty\n @param key {String} property name\n @private\n */\n\n\n static metaForProperty(key) {\n let proto = this.proto(); // ensure prototype is initialized\n\n let possibleDesc = (0, _metal.descriptorForProperty)(proto, key);\n (0, _debug.assert)(\"metaForProperty() could not find a computed property with key '\" + key + \"'.\", possibleDesc !== undefined);\n return possibleDesc._meta || {};\n }\n /**\n Iterate over each computed property for the class, passing its name\n and any associated metadata (see `metaForProperty`) to the callback.\n @static\n @method eachComputedProperty\n @param {Function} callback\n @param {Object} binding\n @private\n */\n\n\n static eachComputedProperty(callback, binding = this) {\n this.proto(); // ensure prototype is initialized\n\n let empty = {};\n (0, _meta.meta)(this.prototype).forEachDescriptors((name, descriptor) => {\n if (descriptor.enumerable) {\n let meta = descriptor._meta || empty;\n callback.call(binding, name, meta);\n }\n });\n }\n\n static get PrototypeMixin() {\n let prototypeMixin = prototypeMixinMap.get(this);\n\n if (prototypeMixin === undefined) {\n prototypeMixin = _metal.Mixin.create();\n prototypeMixin.ownerConstructor = this;\n prototypeMixinMap.set(this, prototypeMixin);\n }\n\n return prototypeMixin;\n }\n\n static get superclass() {\n let c = Object.getPrototypeOf(this);\n return c !== Function.prototype ? c : undefined;\n }\n\n static proto() {\n let p = this.prototype;\n\n if (!wasApplied.has(p)) {\n wasApplied.add(p);\n let parent = this.superclass;\n\n if (parent) {\n parent.proto();\n } // If the prototype mixin exists, apply it. In the case of native classes,\n // it will not exist (unless the class has been reopened).\n\n\n if (prototypeMixinMap.has(this)) {\n this.PrototypeMixin.apply(p);\n }\n }\n\n return p;\n }\n\n }\n\n CoreObject.toString = _metal.classToString;\n (0, _utils.setName)(CoreObject, 'Ember.CoreObject');\n CoreObject.isClass = true;\n CoreObject.isMethod = false;\n\n function flattenProps(...props) {\n let {\n concatenatedProperties,\n mergedProperties\n } = this;\n let hasConcatenatedProps = concatenatedProperties !== undefined && concatenatedProperties.length > 0;\n let hasMergedProps = mergedProperties !== undefined && mergedProperties.length > 0;\n let initProperties = {};\n\n for (let i = 0; i < props.length; i++) {\n let properties = props[i];\n (0, _debug.assert)('EmberObject.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof _metal.Mixin));\n let keyNames = Object.keys(properties);\n\n for (let j = 0, k = keyNames.length; j < k; j++) {\n let keyName = keyNames[j];\n let value = properties[keyName];\n\n if (hasConcatenatedProps && concatenatedProperties.indexOf(keyName) > -1) {\n let baseValue = initProperties[keyName];\n\n if (baseValue) {\n value = (0, _utils.makeArray)(baseValue).concat(value);\n } else {\n value = (0, _utils.makeArray)(value);\n }\n }\n\n if (hasMergedProps && mergedProperties.indexOf(keyName) > -1) {\n let baseValue = initProperties[keyName];\n value = (0, _polyfills.assign)({}, baseValue, value);\n }\n\n initProperties[keyName] = value;\n }\n }\n\n return initProperties;\n }\n\n if (_env.DEBUG) {\n /**\n Provides lookup-time type validation for injected properties.\n @private\n @method _onLookup\n */\n CoreObject._onLookup = function injectedPropertyAssertion(debugContainerKey) {\n let [type] = debugContainerKey.split(':');\n let proto = this.proto();\n\n for (let key in proto) {\n let desc = (0, _metal.descriptorForProperty)(proto, key);\n\n if (desc && _metal.DEBUG_INJECTION_FUNCTIONS.has(desc._getter)) {\n (0, _debug.assert)(\"Defining `\" + key + \"` as an injected controller property on a non-controller (`\" + debugContainerKey + \"`) is not allowed.\", type === 'controller' || _metal.DEBUG_INJECTION_FUNCTIONS.get(desc._getter).type !== 'controller');\n }\n }\n };\n /**\n Returns a hash of property names and container names that injected\n properties will lookup on the container lazily.\n @method _lazyInjections\n @return {Object} Hash of all lazy injected property keys to container names\n @private\n */\n\n\n CoreObject._lazyInjections = function () {\n let injections = {};\n let proto = this.proto();\n let key;\n let desc;\n\n for (key in proto) {\n desc = (0, _metal.descriptorForProperty)(proto, key);\n\n if (desc && _metal.DEBUG_INJECTION_FUNCTIONS.has(desc._getter)) {\n let {\n namespace,\n source,\n type,\n name\n } = _metal.DEBUG_INJECTION_FUNCTIONS.get(desc._getter);\n\n injections[key] = {\n namespace,\n source,\n specifier: type + \":\" + (name || key)\n };\n }\n }\n\n return injections;\n };\n }\n\n var _default = CoreObject;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/runtime/lib/system/namespace\", [\"exports\", \"@ember/-internals/metal\", \"@ember/-internals/utils\", \"@ember/-internals/runtime/lib/system/object\"], function (_exports, _metal, _utils, _object) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n // Preloaded into namespaces\n\n /**\n A Namespace is an object usually used to contain other objects or methods\n such as an application or framework. Create a namespace anytime you want\n to define one of these new containers.\n \n # Example Usage\n \n ```javascript\n MyFramework = Ember.Namespace.create({\n VERSION: '1.0.0'\n });\n ```\n \n @class Namespace\n @namespace Ember\n @extends EmberObject\n @public\n */\n class Namespace extends _object.default {\n init() {\n (0, _metal.addNamespace)(this);\n }\n\n toString() {\n let name = (0, _metal.get)(this, 'name') || (0, _metal.get)(this, 'modulePrefix');\n\n if (name) {\n return name;\n }\n\n (0, _metal.findNamespaces)();\n name = (0, _utils.getName)(this);\n\n if (name === undefined) {\n name = (0, _utils.guidFor)(this);\n (0, _utils.setName)(this, name);\n }\n\n return name;\n }\n\n nameClasses() {\n (0, _metal.processNamespace)(this);\n }\n\n destroy() {\n (0, _metal.removeNamespace)(this);\n super.destroy();\n }\n\n }\n\n _exports.default = Namespace;\n Namespace.prototype.isNamespace = true;\n Namespace.NAMESPACES = _metal.NAMESPACES;\n Namespace.NAMESPACES_BY_ID = _metal.NAMESPACES_BY_ID;\n Namespace.processAll = _metal.processAllNamespaces;\n Namespace.byName = _metal.findNamespace;\n});","enifed(\"@ember/-internals/runtime/lib/system/object\", [\"exports\", \"@ember/-internals/container\", \"@ember/-internals/owner\", \"@ember/-internals/utils\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/core_object\", \"@ember/-internals/runtime/lib/mixins/observable\", \"@ember/debug\", \"@glimmer/env\"], function (_exports, _container, _owner, _utils, _metal, _core_object, _observable, _debug, _env) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.FrameworkObject = _exports.default = void 0;\n\n /**\n @module @ember/object\n */\n let OVERRIDE_OWNER = (0, _utils.symbol)('OVERRIDE_OWNER');\n /**\n `EmberObject` is the main base class for all Ember objects. It is a subclass\n of `CoreObject` with the `Observable` mixin applied. For details,\n see the documentation for each of these.\n \n @class EmberObject\n @extends CoreObject\n @uses Observable\n @public\n */\n\n class EmberObject extends _core_object.default {\n get _debugContainerKey() {\n let factory = _container.FACTORY_FOR.get(this);\n\n return factory !== undefined && factory.fullName;\n }\n\n get [_owner.OWNER]() {\n if (this[OVERRIDE_OWNER]) {\n return this[OVERRIDE_OWNER];\n }\n\n let factory = _container.FACTORY_FOR.get(this);\n\n return factory !== undefined && factory.owner;\n } // we need a setter here largely to support\n // folks calling `owner.ownerInjection()` API\n\n\n set [_owner.OWNER](value) {\n this[OVERRIDE_OWNER] = value;\n }\n\n }\n\n _exports.default = EmberObject;\n (0, _utils.setName)(EmberObject, 'Ember.Object');\n\n _observable.default.apply(EmberObject.prototype);\n\n let FrameworkObject = EmberObject;\n _exports.FrameworkObject = FrameworkObject;\n\n if (_env.DEBUG) {\n let INIT_WAS_CALLED = (0, _utils.symbol)('INIT_WAS_CALLED');\n let ASSERT_INIT_WAS_CALLED = (0, _utils.symbol)('ASSERT_INIT_WAS_CALLED');\n _exports.FrameworkObject = FrameworkObject = class FrameworkObject extends EmberObject {\n init() {\n super.init(...arguments);\n this[INIT_WAS_CALLED] = true;\n }\n\n [ASSERT_INIT_WAS_CALLED]() {\n (0, _debug.assert)(\"You must call `this._super(...arguments);` when overriding `init` on a framework object. Please update \" + this + \" to call `this._super(...arguments);` from `init`.\", this[INIT_WAS_CALLED]);\n }\n\n };\n (0, _metal.addListener)(FrameworkObject.prototype, 'init', null, ASSERT_INIT_WAS_CALLED);\n }\n});","enifed(\"@ember/-internals/runtime/lib/system/object_proxy\", [\"exports\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/-proxy\"], function (_exports, _object, _proxy) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n `ObjectProxy` forwards all properties not defined by the proxy itself\n to a proxied `content` object.\n \n ```javascript\n import EmberObject from '@ember/object';\n import ObjectProxy from '@ember/object/proxy';\n \n object = EmberObject.create({\n name: 'Foo'\n });\n \n proxy = ObjectProxy.create({\n content: object\n });\n \n // Access and change existing properties\n proxy.get('name') // 'Foo'\n proxy.set('name', 'Bar');\n object.get('name') // 'Bar'\n \n // Create new 'description' property on `object`\n proxy.set('description', 'Foo is a whizboo baz');\n object.get('description') // 'Foo is a whizboo baz'\n ```\n \n While `content` is unset, setting a property to be delegated will throw an\n Error.\n \n ```javascript\n import ObjectProxy from '@ember/object/proxy';\n \n proxy = ObjectProxy.create({\n content: null,\n flag: null\n });\n proxy.set('flag', true);\n proxy.get('flag'); // true\n proxy.get('foo'); // undefined\n proxy.set('foo', 'data'); // throws Error\n ```\n \n Delegated properties can be bound to and will change when content is updated.\n \n Computed properties on the proxy itself can depend on delegated properties.\n \n ```javascript\n import { computed } from '@ember/object';\n import ObjectProxy from '@ember/object/proxy';\n \n ProxyWithComputedProperty = ObjectProxy.extend({\n fullName: computed('firstName', 'lastName', function() {\n var firstName = this.get('firstName'),\n lastName = this.get('lastName');\n if (firstName && lastName) {\n return firstName + ' ' + lastName;\n }\n return firstName || lastName;\n })\n });\n \n proxy = ProxyWithComputedProperty.create();\n \n proxy.get('fullName'); // undefined\n proxy.set('content', {\n firstName: 'Tom', lastName: 'Dale'\n }); // triggers property change for fullName on proxy\n \n proxy.get('fullName'); // 'Tom Dale'\n ```\n \n @class ObjectProxy\n @extends EmberObject\n @uses Ember.ProxyMixin\n @public\n */\n class ObjectProxy extends _object.default {}\n\n _exports.default = ObjectProxy;\n ObjectProxy.PrototypeMixin.reopen(_proxy.default);\n});","enifed(\"@ember/-internals/runtime/lib/type-of\", [\"exports\", \"@ember/-internals/runtime/lib/system/object\"], function (_exports, _object) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.typeOf = typeOf;\n // ........................................\n // TYPING & ARRAY MESSAGING\n //\n const TYPE_MAP = {\n '[object Boolean]': 'boolean',\n '[object Number]': 'number',\n '[object String]': 'string',\n '[object Function]': 'function',\n '[object Array]': 'array',\n '[object Date]': 'date',\n '[object RegExp]': 'regexp',\n '[object Object]': 'object',\n '[object FileList]': 'filelist'\n };\n const {\n toString\n } = Object.prototype;\n /**\n @module @ember/utils\n */\n\n /**\n Returns a consistent type for the passed object.\n \n Use this instead of the built-in `typeof` to get the type of an item.\n It will return the same result across all browsers and includes a bit\n more detail. Here is what will be returned:\n \n | Return Value | Meaning |\n |---------------|------------------------------------------------------|\n | 'string' | String primitive or String object. |\n | 'number' | Number primitive or Number object. |\n | 'boolean' | Boolean primitive or Boolean object. |\n | 'null' | Null value |\n | 'undefined' | Undefined value |\n | 'function' | A function |\n | 'array' | An instance of Array |\n | 'regexp' | An instance of RegExp |\n | 'date' | An instance of Date |\n | 'filelist' | An instance of FileList |\n | 'class' | An Ember class (created using EmberObject.extend()) |\n | 'instance' | An Ember object instance |\n | 'error' | An instance of the Error object |\n | 'object' | A JavaScript object not inheriting from EmberObject |\n \n Examples:\n \n ```javascript\n import { A } from '@ember/array';\n import { typeOf } from '@ember/utils';\n import EmberObject from '@ember/object';\n \n typeOf(); // 'undefined'\n typeOf(null); // 'null'\n typeOf(undefined); // 'undefined'\n typeOf('michael'); // 'string'\n typeOf(new String('michael')); // 'string'\n typeOf(101); // 'number'\n typeOf(new Number(101)); // 'number'\n typeOf(true); // 'boolean'\n typeOf(new Boolean(true)); // 'boolean'\n typeOf(A); // 'function'\n typeOf([1, 2, 90]); // 'array'\n typeOf(/abc/); // 'regexp'\n typeOf(new Date()); // 'date'\n typeOf(event.target.files); // 'filelist'\n typeOf(EmberObject.extend()); // 'class'\n typeOf(EmberObject.create()); // 'instance'\n typeOf(new Error('teamocil')); // 'error'\n \n // 'normal' JavaScript object\n typeOf({ a: 'b' }); // 'object'\n ```\n \n @method typeOf\n @for @ember/utils\n @param {Object} item the item to check\n @return {String} the type\n @public\n @static\n */\n\n function typeOf(item) {\n if (item === null) {\n return 'null';\n }\n\n if (item === undefined) {\n return 'undefined';\n }\n\n let ret = TYPE_MAP[toString.call(item)] || 'object';\n\n if (ret === 'function') {\n if (_object.default.detect(item)) {\n ret = 'class';\n }\n } else if (ret === 'object') {\n if (item instanceof Error) {\n ret = 'error';\n } else if (item instanceof _object.default) {\n ret = 'instance';\n } else if (item instanceof Date) {\n ret = 'date';\n }\n }\n\n return ret;\n }\n});","enifed(\"@ember/-internals/runtime/tests/array/any-test\", [\"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_array, _internalTestHelpers, _array2) {\n \"use strict\";\n\n class AnyTests extends _internalTestHelpers.AbstractTestCase {\n '@test any should should invoke callback on each item as long as you return false'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n let found = [];\n let result;\n result = obj.any(function (i) {\n found.push(i);\n return false;\n });\n this.assert.equal(result, false, 'return value of obj.any');\n this.assert.deepEqual(found, ary, 'items passed during any() should match');\n }\n\n '@test any should stop invoking when you return true'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n let cnt = ary.length - 2;\n let exp = cnt;\n let found = [];\n let result;\n result = obj.any(function (i) {\n found.push(i);\n return --cnt <= 0;\n });\n this.assert.equal(result, true, 'return value of obj.any');\n this.assert.equal(found.length, exp, 'should invoke proper number of times');\n this.assert.deepEqual(found, ary.slice(0, -2), 'items passed during any() should match');\n }\n\n '@test any should return true if any object matches the callback'() {\n let obj = (0, _array.A)([0, 1, 2]);\n let result;\n result = obj.any(i => Boolean(i));\n this.assert.equal(result, true, 'return value of obj.any');\n }\n\n '@test any should produce correct results even if the matching element is undefined'(assert) {\n let obj = (0, _array.A)([undefined]);\n let result;\n result = obj.any(() => true);\n assert.equal(result, true, 'return value of obj.any');\n }\n\n }\n\n (0, _array2.runArrayTests)('any', AnyTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/apply-test\", [\"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_array, _internalTestHelpers) {\n \"use strict\";\n\n class ArrayPrototypeExtensionSelfReferenceTests extends _internalTestHelpers.AbstractTestCase {\n '@test should not create non-Symbol, enumerable properties that refer to itself'() {\n // Don't want to pollute Array.prototype so we make a fake / simple prototype\n function ThrowAwayArray() {} // Extend our throw-away prototype (like EXTEND_PROTOTYPES.Array would)\n\n\n _array.NativeArray.apply(ThrowAwayArray.prototype); // Create an instance to test\n\n\n let obj = new ThrowAwayArray(); // Make sure that no enumerable properties refer back to the object (creating a cyclic structure)\n\n for (let p in obj) {\n this.assert.notStrictEqual(obj[p], obj, (\"Property \\\"\" + p + \"\\\" is an enumerable part of the prototype\\n so must not refer back to the original array.\\n Otherwise code that explores all properties,\\n such as jQuery.extend and other \\\"deep cloning\\\" functions,\\n will get stuck in an infinite loop.\\n \").replace(/\\s+/g, ' '));\n }\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)(\"NativeArray: apply\", ArrayPrototypeExtensionSelfReferenceTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/compact-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class CompactTests extends _internalTestHelpers.AbstractTestCase {\n '@test removes null and undefined values from enumerable'() {\n let obj = this.newObject([null, 1, false, '', undefined, 0, null]);\n let ary = obj.compact();\n this.assert.deepEqual(ary, [1, false, '', 0]);\n }\n\n }\n\n (0, _array.runArrayTests)('compact', CompactTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/every-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\", \"@ember/-internals/runtime/lib/system/object\"], function (_internalTestHelpers, _array, _object) {\n \"use strict\";\n\n class EveryTest extends _internalTestHelpers.AbstractTestCase {\n '@test every should should invoke callback on each item as long as you return true'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n let found = [];\n let result;\n result = obj.every(function (i) {\n found.push(i);\n return true;\n });\n this.assert.equal(result, true, 'return value of obj.every');\n this.assert.deepEqual(found, ary, 'items passed during every() should match');\n }\n\n '@test every should stop invoking when you return false'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n let cnt = ary.length - 2;\n let exp = cnt;\n let found = [];\n let result;\n result = obj.every(function (i) {\n found.push(i);\n return --cnt > 0;\n });\n this.assert.equal(result, false, 'return value of obj.every');\n this.assert.equal(found.length, exp, 'should invoke proper number of times');\n this.assert.deepEqual(found, ary.slice(0, -2), 'items passed during every() should match');\n }\n\n }\n\n class IsEveryTest extends _internalTestHelpers.AbstractTestCase {\n '@test should return true of every property matches'() {\n let obj = this.newObject([{\n foo: 'foo',\n bar: 'BAZ'\n }, _object.default.create({\n foo: 'foo',\n bar: 'bar'\n })]);\n this.assert.equal(obj.isEvery('foo', 'foo'), true, 'isEvery(foo)');\n this.assert.equal(obj.isEvery('bar', 'bar'), false, 'isEvery(bar)');\n }\n\n '@test should return true of every property is true'() {\n let obj = this.newObject([{\n foo: 'foo',\n bar: true\n }, _object.default.create({\n foo: 'bar',\n bar: false\n })]); // different values - all eval to true\n\n this.assert.equal(obj.isEvery('foo'), true, 'isEvery(foo)');\n this.assert.equal(obj.isEvery('bar'), false, 'isEvery(bar)');\n }\n\n '@test should return true if every property matches null'() {\n let obj = this.newObject([{\n foo: null,\n bar: 'BAZ'\n }, _object.default.create({\n foo: null,\n bar: null\n })]);\n this.assert.equal(obj.isEvery('foo', null), true, \"isEvery('foo', null)\");\n this.assert.equal(obj.isEvery('bar', null), false, \"isEvery('bar', null)\");\n }\n\n '@test should return true if every property is undefined'() {\n let obj = this.newObject([{\n foo: undefined,\n bar: 'BAZ'\n }, _object.default.create({\n bar: undefined\n })]);\n this.assert.equal(obj.isEvery('foo', undefined), true, \"isEvery('foo', undefined)\");\n this.assert.equal(obj.isEvery('bar', undefined), false, \"isEvery('bar', undefined)\");\n }\n\n }\n\n (0, _array.runArrayTests)('every', EveryTest);\n (0, _array.runArrayTests)('isEvery', IsEveryTest);\n});","enifed(\"@ember/-internals/runtime/tests/array/filter-test\", [\"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_object, _internalTestHelpers, _array) {\n \"use strict\";\n\n class FilterTest extends _internalTestHelpers.AbstractTestCase {\n '@test filter should invoke on each item'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n let cnt = ary.length - 2;\n let found = [];\n let result; // return true on all but the last two\n\n result = obj.filter(function (i) {\n found.push(i);\n return --cnt >= 0;\n });\n this.assert.deepEqual(found, ary, 'should have invoked on each item');\n this.assert.deepEqual(result, ary.slice(0, -2), 'filtered array should exclude items');\n }\n\n }\n\n class FilterByTest extends _internalTestHelpers.AbstractTestCase {\n '@test should filter based on object'() {\n let obj, ary;\n ary = [{\n foo: 'foo',\n bar: 'BAZ'\n }, _object.default.create({\n foo: 'foo',\n bar: 'bar'\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.filterBy('foo', 'foo'), ary, 'filterBy(foo)');\n this.assert.deepEqual(obj.filterBy('bar', 'bar'), [ary[1]], 'filterBy(bar)');\n }\n\n '@test should include in result if property is true'() {\n let obj, ary;\n ary = [{\n foo: 'foo',\n bar: true\n }, _object.default.create({\n foo: 'bar',\n bar: false\n })];\n obj = this.newObject(ary); // different values - all eval to true\n\n this.assert.deepEqual(obj.filterBy('foo'), ary, 'filterBy(foo)');\n this.assert.deepEqual(obj.filterBy('bar'), [ary[0]], 'filterBy(bar)');\n }\n\n '@test should filter on second argument if provided'() {\n let obj, ary;\n ary = [{\n name: 'obj1',\n foo: 3\n }, _object.default.create({\n name: 'obj2',\n foo: 2\n }), {\n name: 'obj3',\n foo: 2\n }, _object.default.create({\n name: 'obj4',\n foo: 3\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.filterBy('foo', 3), [ary[0], ary[3]], \"filterBy('foo', 3)')\");\n }\n\n '@test should correctly filter null second argument'() {\n let obj, ary;\n ary = [{\n name: 'obj1',\n foo: 3\n }, _object.default.create({\n name: 'obj2',\n foo: null\n }), {\n name: 'obj3',\n foo: null\n }, _object.default.create({\n name: 'obj4',\n foo: 3\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.filterBy('foo', null), [ary[1], ary[2]], \"filterBy('foo', 3)')\");\n }\n\n '@test should not return all objects on undefined second argument'() {\n let obj, ary;\n ary = [{\n name: 'obj1',\n foo: 3\n }, _object.default.create({\n name: 'obj2',\n foo: 2\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.filterBy('foo', undefined), [], \"filterBy('foo', 3)')\");\n }\n\n '@test should correctly filter explicit undefined second argument'() {\n let obj, ary;\n ary = [{\n name: 'obj1',\n foo: 3\n }, _object.default.create({\n name: 'obj2',\n foo: 3\n }), {\n name: 'obj3',\n foo: undefined\n }, _object.default.create({\n name: 'obj4',\n foo: undefined\n }), {\n name: 'obj5'\n }, _object.default.create({\n name: 'obj6'\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.filterBy('foo', undefined), ary.slice(2), \"filterBy('foo', 3)')\");\n }\n\n '@test should not match undefined properties without second argument'() {\n let obj, ary;\n ary = [{\n name: 'obj1',\n foo: 3\n }, _object.default.create({\n name: 'obj2',\n foo: 3\n }), {\n name: 'obj3',\n foo: undefined\n }, _object.default.create({\n name: 'obj4',\n foo: undefined\n }), {\n name: 'obj5'\n }, _object.default.create({\n name: 'obj6'\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.filterBy('foo'), ary.slice(0, 2), \"filterBy('foo', 3)')\");\n }\n\n }\n\n (0, _array.runArrayTests)('filter', FilterTest);\n (0, _array.runArrayTests)('filter', FilterByTest);\n});","enifed(\"@ember/-internals/runtime/tests/array/find-test\", [\"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_object, _internalTestHelpers, _array) {\n \"use strict\";\n\n class FindTests extends _internalTestHelpers.AbstractTestCase {\n '@test find should invoke callback on each item as long as you return false'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n let found = [];\n let result;\n result = obj.find(function (i) {\n found.push(i);\n return false;\n });\n this.assert.equal(result, undefined, 'return value of obj.find');\n this.assert.deepEqual(found, ary, 'items passed during find() should match');\n }\n\n '@test every should stop invoking when you return true'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n let cnt = ary.length - 2;\n let exp = cnt;\n let found = [];\n let result;\n result = obj.find(function (i) {\n found.push(i);\n return --cnt >= 0;\n });\n this.assert.equal(result, ary[exp - 1], 'return value of obj.find');\n this.assert.equal(found.length, exp, 'should invoke proper number of times');\n this.assert.deepEqual(found, ary.slice(0, -2), 'items passed during find() should match');\n }\n\n }\n\n class FindByTests extends _internalTestHelpers.AbstractTestCase {\n '@test should return first object of property matches'() {\n let ary, obj;\n ary = [{\n foo: 'foo',\n bar: 'BAZ'\n }, _object.default.create({\n foo: 'foo',\n bar: 'bar'\n })];\n obj = this.newObject(ary);\n this.assert.equal(obj.findBy('foo', 'foo'), ary[0], 'findBy(foo)');\n this.assert.equal(obj.findBy('bar', 'bar'), ary[1], 'findBy(bar)');\n }\n\n '@test should return first object with truthy prop'() {\n let ary, obj;\n ary = [{\n foo: 'foo',\n bar: false\n }, _object.default.create({\n foo: 'bar',\n bar: true\n })];\n obj = this.newObject(ary); // different values - all eval to true\n\n this.assert.equal(obj.findBy('foo'), ary[0], 'findBy(foo)');\n this.assert.equal(obj.findBy('bar'), ary[1], 'findBy(bar)');\n }\n\n '@test should return first null property match'() {\n let ary, obj;\n ary = [{\n foo: null,\n bar: 'BAZ'\n }, _object.default.create({\n foo: null,\n bar: null\n })];\n obj = this.newObject(ary);\n this.assert.equal(obj.findBy('foo', null), ary[0], \"findBy('foo', null)\");\n this.assert.equal(obj.findBy('bar', null), ary[1], \"findBy('bar', null)\");\n }\n\n '@test should return first undefined property match'() {\n let ary, obj;\n ary = [{\n foo: undefined,\n bar: 'BAZ'\n }, _object.default.create({})];\n obj = this.newObject(ary);\n this.assert.equal(obj.findBy('foo', undefined), ary[0], \"findBy('foo', undefined)\");\n this.assert.equal(obj.findBy('bar', undefined), ary[1], \"findBy('bar', undefined)\");\n }\n\n }\n\n (0, _array.runArrayTests)('find', FindTests);\n (0, _array.runArrayTests)('findBy', FindByTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/firstObject-test\", [\"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_metal, _internalTestHelpers, _array) {\n \"use strict\";\n\n class FirstObjectTests extends _internalTestHelpers.AbstractTestCase {\n '@test returns first item in enumerable'() {\n let obj = this.newObject();\n this.assert.equal((0, _metal.get)(obj, 'firstObject'), this.toArray(obj)[0]);\n }\n\n '@test returns undefined if enumerable is empty'() {\n let obj = this.newObject([]);\n this.assert.equal((0, _metal.get)(obj, 'firstObject'), undefined);\n }\n\n '@test can not be set'() {\n let obj = this.newObject([]);\n this.assert.equal((0, _metal.get)(obj, 'firstObject'), this.toArray(obj)[0]);\n this.assert.throws(() => {\n (0, _metal.set)(obj, 'firstObject', 'foo!');\n }, /Cannot set read-only property \"firstObject\" on object/);\n }\n\n }\n\n (0, _array.runArrayTests)('firstObject', FirstObjectTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/forEach-test\", [\"@ember/-internals/utils\", \"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_utils, _metal, _internalTestHelpers, _array) {\n \"use strict\";\n\n class ForEachTests extends _internalTestHelpers.AbstractTestCase {\n '@test forEach should iterate over list'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n let found = [];\n obj.forEach(i => found.push(i));\n this.assert.deepEqual(found, ary, 'items passed during forEach should match');\n }\n\n '@test forEach should iterate over list after mutation'() {\n if ((0, _metal.get)(this, 'canTestMutation')) {\n this.assert.expect(0);\n return;\n }\n\n let obj = this.newObject();\n let ary = this.toArray(obj);\n let found = [];\n obj.forEach(i => found.push(i));\n this.assert.deepEqual(found, ary, 'items passed during forEach should match');\n this.mutate(obj);\n ary = this.toArray(obj);\n found = [];\n obj.forEach(i => found.push(i));\n this.assert.deepEqual(found, ary, 'items passed during forEach should match');\n }\n\n '@test 2nd target parameter'() {\n let obj = this.newObject();\n let target = this;\n obj.forEach(() => {// ES6TODO: When transpiled we will end up with \"use strict\" which disables automatically binding to the global context.\n // Therefore, the following test can never pass in strict mode unless we modify the `map` function implementation to\n // use `Ember.lookup` if target is not specified.\n //\n // equal(guidFor(this), guidFor(global), 'should pass the global object as this if no context');\n });\n obj.forEach(() => {\n this.assert.equal((0, _utils.guidFor)(this), (0, _utils.guidFor)(target), 'should pass target as this if context');\n }, target);\n }\n\n '@test callback params'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n let loc = 0;\n obj.forEach((item, idx, enumerable) => {\n this.assert.equal(item, ary[loc], 'item param');\n this.assert.equal(idx, loc, 'idx param');\n this.assert.equal((0, _utils.guidFor)(enumerable), (0, _utils.guidFor)(obj), 'enumerable param');\n loc++;\n });\n }\n\n }\n\n (0, _array.runArrayTests)('forEach', ForEachTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/includes-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class IncludesTests extends _internalTestHelpers.AbstractTestCase {\n '@test includes returns correct value if startAt is positive'() {\n let data = (0, _array.newFixture)(3);\n let obj = this.newObject(data);\n this.assert.equal(obj.includes(data[1], 1), true, 'should return true if included');\n this.assert.equal(obj.includes(data[0], 1), false, 'should return false if not included');\n }\n\n '@test includes returns correct value if startAt is negative'() {\n let data = (0, _array.newFixture)(3);\n let obj = this.newObject(data);\n this.assert.equal(obj.includes(data[1], -2), true, 'should return true if included');\n this.assert.equal(obj.includes(data[0], -2), false, 'should return false if not included');\n }\n\n '@test includes returns true if startAt + length is still negative'() {\n let data = (0, _array.newFixture)(1);\n let obj = this.newObject(data);\n this.assert.equal(obj.includes(data[0], -2), true, 'should return true if included');\n this.assert.equal(obj.includes((0, _array.newFixture)(1), -2), false, 'should return false if not included');\n }\n\n '@test includes returns false if startAt out of bounds'() {\n let data = (0, _array.newFixture)(1);\n let obj = this.newObject(data);\n this.assert.equal(obj.includes(data[0], 2), false, 'should return false if startAt >= length');\n this.assert.equal(obj.includes((0, _array.newFixture)(1), 2), false, 'should return false if startAt >= length');\n }\n\n }\n\n (0, _array.runArrayTests)('includes', IncludesTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/indexOf-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class IndexOfTests extends _internalTestHelpers.AbstractTestCase {\n '@test should return index of object'() {\n let expected = (0, _array.newFixture)(3);\n let obj = this.newObject(expected);\n let len = 3;\n\n for (let idx = 0; idx < len; idx++) {\n this.assert.equal(obj.indexOf(expected[idx]), idx, \"obj.indexOf(\" + expected[idx] + \") should match idx\");\n }\n }\n\n '@test should return -1 when requesting object not in index'() {\n let obj = this.newObject((0, _array.newFixture)(3));\n let foo = {};\n this.assert.equal(obj.indexOf(foo), -1, 'obj.indexOf(foo) should be < 0');\n }\n\n }\n\n (0, _array.runArrayTests)('indexOf', IndexOfTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/invoke-test\", [\"@ember/-internals/runtime/index\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_index, _internalTestHelpers, _array) {\n \"use strict\";\n\n class InvokeTests extends _internalTestHelpers.AbstractTestCase {\n '@test invoke should call on each object that implements'() {\n let cnt, ary, obj;\n\n function F(amt) {\n cnt += amt === undefined ? 1 : amt;\n }\n\n cnt = 0;\n ary = [{\n foo: F\n }, _index.Object.create({\n foo: F\n }), // NOTE: does not impl foo - invoke should just skip\n _index.Object.create({\n bar: F\n }), {\n foo: F\n }];\n obj = this.newObject(ary);\n obj.invoke('foo');\n this.assert.equal(cnt, 3, 'should have invoked 3 times');\n cnt = 0;\n obj.invoke('foo', 2);\n this.assert.equal(cnt, 6, 'should have invoked 3 times, passing param');\n }\n\n '@test invoke should return an array containing the results of each invoked method'(assert) {\n let obj = this.newObject([{\n foo() {\n return 'one';\n }\n\n }, {}, // intentionally not including `foo` method\n {\n foo() {\n return 'two';\n }\n\n }]);\n let result = obj.invoke('foo');\n assert.deepEqual(result, ['one', undefined, 'two']);\n }\n\n '@test invoke should return an extended array (aka Ember.A)'(assert) {\n let obj = this.newObject([{\n foo() {}\n\n }, {\n foo() {}\n\n }]);\n let result = obj.invoke('foo');\n assert.ok(_index.NativeArray.detect(result), 'NativeArray has been applied');\n }\n\n }\n\n (0, _array.runArrayTests)('invoke', InvokeTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/isAny-test\", [\"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_object, _internalTestHelpers, _array) {\n \"use strict\";\n\n class IsAnyTests extends _internalTestHelpers.AbstractTestCase {\n '@test should return true of any property matches'() {\n let obj = this.newObject([{\n foo: 'foo',\n bar: 'BAZ'\n }, _object.default.create({\n foo: 'foo',\n bar: 'bar'\n })]);\n this.assert.equal(obj.isAny('foo', 'foo'), true, 'isAny(foo)');\n this.assert.equal(obj.isAny('bar', 'bar'), true, 'isAny(bar)');\n this.assert.equal(obj.isAny('bar', 'BIFF'), false, 'isAny(BIFF)');\n }\n\n '@test should return true of any property is true'() {\n let obj = this.newObject([{\n foo: 'foo',\n bar: true\n }, _object.default.create({\n foo: 'bar',\n bar: false\n })]); // different values - all eval to true\n\n this.assert.equal(obj.isAny('foo'), true, 'isAny(foo)');\n this.assert.equal(obj.isAny('bar'), true, 'isAny(bar)');\n this.assert.equal(obj.isAny('BIFF'), false, 'isAny(biff)');\n }\n\n '@test should return true if any property matches null'() {\n let obj = this.newObject([{\n foo: null,\n bar: 'bar'\n }, _object.default.create({\n foo: 'foo',\n bar: null\n })]);\n this.assert.equal(obj.isAny('foo', null), true, \"isAny('foo', null)\");\n this.assert.equal(obj.isAny('bar', null), true, \"isAny('bar', null)\");\n }\n\n '@test should return true if any property is undefined'() {\n let obj = this.newObject([{\n foo: undefined,\n bar: 'bar'\n }, _object.default.create({\n foo: 'foo'\n })]);\n this.assert.equal(obj.isAny('foo', undefined), true, \"isAny('foo', undefined)\");\n this.assert.equal(obj.isAny('bar', undefined), true, \"isAny('bar', undefined)\");\n }\n\n '@test should not match undefined properties without second argument'() {\n let obj = this.newObject([{\n foo: undefined\n }, _object.default.create({})]);\n this.assert.equal(obj.isAny('foo'), false, \"isAny('foo', undefined)\");\n }\n\n }\n\n (0, _array.runArrayTests)('isAny', IsAnyTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/lastIndexOf-test\", [\"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_metal, _internalTestHelpers, _array) {\n \"use strict\";\n\n class LastIndexOfTests extends _internalTestHelpers.AbstractTestCase {\n \"@test should return index of object's last occurrence\"() {\n let expected = (0, _array.newFixture)(3);\n let obj = this.newObject(expected);\n let len = 3;\n\n for (let idx = 0; idx < len; idx++) {\n this.assert.equal(obj.lastIndexOf(expected[idx]), idx, \"obj.lastIndexOf(\" + expected[idx] + \") should match idx\");\n }\n }\n\n \"@test should return index of object's last occurrence even startAt search location is equal to length\"() {\n let expected = (0, _array.newFixture)(3);\n let obj = this.newObject(expected);\n let len = 3;\n\n for (let idx = 0; idx < len; idx++) {\n this.assert.equal(obj.lastIndexOf(expected[idx], len), idx, \"obj.lastIndexOfs(\" + expected[idx] + \") should match idx\");\n }\n }\n\n \"@test should return index of object's last occurrence even startAt search location is greater than length\"() {\n let expected = (0, _array.newFixture)(3);\n let obj = this.newObject(expected);\n let len = 3;\n\n for (let idx = 0; idx < len; idx++) {\n this.assert.equal(obj.lastIndexOf(expected[idx], len + 1), idx, \"obj.lastIndexOf(\" + expected[idx] + \") should match idx\");\n }\n }\n\n '@test should return -1 when no match is found'() {\n let obj = this.newObject((0, _array.newFixture)(3));\n let foo = {};\n this.assert.equal(obj.lastIndexOf(foo), -1, 'obj.lastIndexOf(foo) should be -1');\n }\n\n '@test should return -1 when no match is found even startAt search location is equal to length'() {\n let obj = this.newObject((0, _array.newFixture)(3));\n let foo = {};\n this.assert.equal(obj.lastIndexOf(foo, (0, _metal.get)(obj, 'length')), -1, 'obj.lastIndexOf(foo) should be -1');\n }\n\n '@test should return -1 when no match is found even startAt search location is greater than length'() {\n let obj = this.newObject((0, _array.newFixture)(3));\n let foo = {};\n this.assert.equal(obj.lastIndexOf(foo, (0, _metal.get)(obj, 'length') + 1), -1, 'obj.lastIndexOf(foo) should be -1');\n }\n\n }\n\n (0, _array.runArrayTests)('lastIndexOf', LastIndexOfTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/lastObject-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _array, _metal) {\n \"use strict\";\n\n class LastObjectTests extends _internalTestHelpers.AbstractTestCase {\n '@test returns last item in enumerable'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n this.assert.equal((0, _metal.get)(obj, 'lastObject'), ary[ary.length - 1]);\n }\n\n '@test returns undefined if enumerable is empty'() {\n let obj = this.newObject([]);\n this.assert.equal((0, _metal.get)(obj, 'lastObject'), undefined);\n }\n\n '@test can not be set'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n this.assert.equal((0, _metal.get)(obj, 'lastObject'), ary[ary.length - 1]);\n this.assert.throws(function () {\n (0, _metal.set)(obj, 'lastObject', 'foo!');\n }, /Cannot set read-only property \"lastObject\" on object/);\n }\n\n }\n\n (0, _array.runArrayTests)('lastObject', LastObjectTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/map-test\", [\"@ember/-internals/utils\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\", \"@ember/-internals/metal\"], function (_utils, _internalTestHelpers, _array, _metal) {\n \"use strict\";\n\n const mapFunc = item => item ? item.toString() : null;\n\n class MapTests extends _internalTestHelpers.AbstractTestCase {\n '@test map should iterate over list'() {\n let obj = this.newObject();\n let ary = this.toArray(obj).map(mapFunc);\n let found = [];\n found = obj.map(mapFunc);\n this.assert.deepEqual(found, ary, 'mapped arrays should match');\n }\n\n '@test map should iterate over list after mutation'() {\n if ((0, _metal.get)(this, 'canTestMutation')) {\n this.assert.expect(0);\n return;\n }\n\n let obj = this.newObject();\n let ary = this.toArray(obj).map(mapFunc);\n let found;\n found = obj.map(mapFunc);\n this.assert.deepEqual(found, ary, 'items passed during forEach should match');\n this.mutate(obj);\n ary = this.toArray(obj).map(mapFunc);\n found = obj.map(mapFunc);\n this.assert.deepEqual(found, ary, 'items passed during forEach should match');\n }\n\n '@test 2nd target parameter'() {\n let obj = this.newObject();\n let target = this;\n obj.map(() => {// ES6TODO: When transpiled we will end up with \"use strict\" which disables automatically binding to the global context.\n // Therefore, the following test can never pass in strict mode unless we modify the `map` function implementation to\n // use `Ember.lookup` if target is not specified.\n //\n // equal(guidFor(this), guidFor(global), 'should pass the global object as this if no context');\n });\n obj.map(() => {\n this.assert.equal((0, _utils.guidFor)(this), (0, _utils.guidFor)(target), 'should pass target as this if context');\n }, target);\n }\n\n '@test callback params'() {\n let obj = this.newObject();\n let ary = this.toArray(obj);\n let loc = 0;\n obj.map((item, idx, enumerable) => {\n this.assert.equal(item, ary[loc], 'item param');\n this.assert.equal(idx, loc, 'idx param');\n this.assert.equal((0, _utils.guidFor)(enumerable), (0, _utils.guidFor)(obj), 'enumerable param');\n loc++;\n });\n }\n\n }\n\n (0, _array.runArrayTests)('map', MapTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/mapBy-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class MapByTests extends _internalTestHelpers.AbstractTestCase {\n '@test get value of each property'() {\n let obj = this.newObject([{\n a: 1\n }, {\n a: 2\n }]);\n this.assert.equal(obj.mapBy('a').join(''), '12');\n }\n\n '@test should work also through getEach alias'() {\n let obj = this.newObject([{\n a: 1\n }, {\n a: 2\n }]);\n this.assert.equal(obj.getEach('a').join(''), '12');\n }\n\n }\n\n (0, _array.runArrayTests)('mapBy', MapByTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/objectAt-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class ObjectAtTests extends _internalTestHelpers.AbstractTestCase {\n '@test should return object at specified index'() {\n let expected = (0, _array.newFixture)(3);\n let obj = this.newObject(expected);\n let len = expected.length;\n\n for (let idx = 0; idx < len; idx++) {\n this.assert.equal(obj.objectAt(idx), expected[idx], \"obj.objectAt(\" + idx + \") should match\");\n }\n }\n\n '@test should return undefined when requesting objects beyond index'() {\n let obj;\n obj = this.newObject((0, _array.newFixture)(3));\n this.assert.equal(obj.objectAt(obj, 5), undefined, 'should return undefined for obj.objectAt(5) when len = 3');\n obj = this.newObject([]);\n this.assert.equal(obj.objectAt(obj, 0), undefined, 'should return undefined for obj.objectAt(0) when len = 0');\n }\n\n }\n\n (0, _array.runArrayTests)('objectAt', ObjectAtTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/reduce-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class ReduceTests extends _internalTestHelpers.AbstractTestCase {\n '@test collects a summary value from an enumeration'() {\n let obj = this.newObject([1, 2, 3]);\n let res = obj.reduce((previousValue, item) => previousValue + item, 0);\n this.assert.equal(res, 6);\n }\n\n '@test passes index of item to callback'() {\n let obj = this.newObject([1, 2, 3]);\n let res = obj.reduce((previousValue, item, index) => previousValue + index, 0);\n this.assert.equal(res, 3);\n }\n\n '@test passes enumerable object to callback'() {\n let obj = this.newObject([1, 2, 3]);\n let res = obj.reduce((previousValue, item, index, enumerable) => enumerable, 0);\n this.assert.equal(res, obj);\n }\n\n }\n\n (0, _array.runArrayTests)('reduce', ReduceTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/reject-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\", \"@ember/-internals/runtime/lib/system/object\"], function (_internalTestHelpers, _array, _object) {\n \"use strict\";\n\n class RejectTest extends _internalTestHelpers.AbstractTestCase {\n '@test should reject any item that does not meet the condition'() {\n let obj = this.newObject([1, 2, 3, 4]);\n let result;\n result = obj.reject(i => i < 3);\n this.assert.deepEqual(result, [3, 4], 'reject the correct items');\n }\n\n '@test should be the inverse of filter'() {\n let obj = this.newObject([1, 2, 3, 4]);\n\n let isEven = i => i % 2 === 0;\n\n let filtered, rejected;\n filtered = obj.filter(isEven);\n rejected = obj.reject(isEven);\n this.assert.deepEqual(filtered, [2, 4], 'filtered evens');\n this.assert.deepEqual(rejected, [1, 3], 'rejected evens');\n }\n\n }\n\n class RejectByTest extends _internalTestHelpers.AbstractTestCase {\n '@test should reject based on object'() {\n let obj, ary;\n ary = [{\n foo: 'foo',\n bar: 'BAZ'\n }, _object.default.create({\n foo: 'foo',\n bar: 'bar'\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.rejectBy('foo', 'foo'), [], 'rejectBy(foo)');\n this.assert.deepEqual(obj.rejectBy('bar', 'bar'), [ary[0]], 'rejectBy(bar)');\n }\n\n '@test should include in result if property is false'() {\n let obj, ary;\n ary = [{\n foo: false,\n bar: true\n }, _object.default.create({\n foo: false,\n bar: false\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.rejectBy('foo'), ary, 'rejectBy(foo)');\n this.assert.deepEqual(obj.rejectBy('bar'), [ary[1]], 'rejectBy(bar)');\n }\n\n '@test should reject on second argument if provided'() {\n let obj, ary;\n ary = [{\n name: 'obj1',\n foo: 3\n }, _object.default.create({\n name: 'obj2',\n foo: 2\n }), {\n name: 'obj3',\n foo: 2\n }, _object.default.create({\n name: 'obj4',\n foo: 3\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.rejectBy('foo', 3), [ary[1], ary[2]], \"rejectBy('foo', 3)')\");\n }\n\n '@test should correctly reject null second argument'() {\n let obj, ary;\n ary = [{\n name: 'obj1',\n foo: 3\n }, _object.default.create({\n name: 'obj2',\n foo: null\n }), {\n name: 'obj3',\n foo: null\n }, _object.default.create({\n name: 'obj4',\n foo: 3\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.rejectBy('foo', null), [ary[0], ary[3]], \"rejectBy('foo', null)')\");\n }\n\n '@test should correctly reject undefined second argument'() {\n let obj, ary;\n ary = [{\n name: 'obj1',\n foo: 3\n }, _object.default.create({\n name: 'obj2',\n foo: 2\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.rejectBy('bar', undefined), [], \"rejectBy('bar', undefined)')\");\n }\n\n '@test should correctly reject explicit undefined second argument'() {\n let obj, ary;\n ary = [{\n name: 'obj1',\n foo: 3\n }, _object.default.create({\n name: 'obj2',\n foo: 3\n }), {\n name: 'obj3',\n foo: undefined\n }, _object.default.create({\n name: 'obj4',\n foo: undefined\n }), {\n name: 'obj5'\n }, _object.default.create({\n name: 'obj6'\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.rejectBy('foo', undefined), ary.slice(0, 2), \"rejectBy('foo', undefined)')\");\n }\n\n '@test should match undefined, null, or false properties without second argument'() {\n let obj, ary;\n ary = [{\n name: 'obj1',\n foo: 3\n }, _object.default.create({\n name: 'obj2',\n foo: 3\n }), {\n name: 'obj3',\n foo: undefined\n }, _object.default.create({\n name: 'obj4',\n foo: undefined\n }), {\n name: 'obj5'\n }, _object.default.create({\n name: 'obj6'\n }), {\n name: 'obj7',\n foo: null\n }, _object.default.create({\n name: 'obj8',\n foo: null\n }), {\n name: 'obj9',\n foo: false\n }, _object.default.create({\n name: 'obj10',\n foo: false\n })];\n obj = this.newObject(ary);\n this.assert.deepEqual(obj.rejectBy('foo'), ary.slice(2), \"rejectBy('foo')')\");\n }\n\n }\n\n (0, _array.runArrayTests)('reject', RejectTest);\n (0, _array.runArrayTests)('rejectBy', RejectByTest);\n});","enifed(\"@ember/-internals/runtime/tests/array/sortBy-test\", [\"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_metal, _internalTestHelpers, _array) {\n \"use strict\";\n\n class SortByTests extends _internalTestHelpers.AbstractTestCase {\n '@test sort by value of property'() {\n let obj = this.newObject([{\n a: 2\n }, {\n a: 1\n }]);\n let sorted = obj.sortBy('a');\n this.assert.equal((0, _metal.get)(sorted[0], 'a'), 1);\n this.assert.equal((0, _metal.get)(sorted[1], 'a'), 2);\n }\n\n '@test supports multiple propertyNames'() {\n let obj = this.newObject([{\n a: 1,\n b: 2\n }, {\n a: 1,\n b: 1\n }]);\n let sorted = obj.sortBy('a', 'b');\n this.assert.equal((0, _metal.get)(sorted[0], 'b'), 1);\n this.assert.equal((0, _metal.get)(sorted[1], 'b'), 2);\n }\n\n }\n\n (0, _array.runArrayTests)('sortBy', SortByTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/toArray-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class ToArrayTests extends _internalTestHelpers.AbstractTestCase {\n '@test toArray should convert to an array'() {\n let obj = this.newObject();\n this.assert.deepEqual(obj.toArray(), this.toArray(obj));\n }\n\n }\n\n (0, _array.runArrayTests)('toArray', ToArrayTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/uniq-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class UniqTests extends _internalTestHelpers.AbstractTestCase {\n '@test should return new instance with duplicates removed'() {\n let before, after, obj, ret;\n after = (0, _array.newFixture)(3);\n before = [after[0], after[1], after[2], after[1], after[0]];\n obj = this.newObject(before);\n before = obj.toArray(); // in case of set before will be different...\n\n ret = obj.uniq();\n this.assert.deepEqual(this.toArray(ret), after, 'should have removed item');\n this.assert.deepEqual(this.toArray(obj), before, 'should not have changed original');\n }\n\n '@test should return duplicate of same content if no duplicates found'() {\n let item, obj, ret;\n obj = this.newObject((0, _array.newFixture)(3));\n ret = obj.uniq(item);\n this.assert.ok(ret !== obj, 'should not be same object');\n this.assert.deepEqual(this.toArray(ret), this.toArray(obj), 'should be the same content');\n }\n\n }\n\n (0, _array.runArrayTests)('uniq', UniqTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/uniqBy-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class UniqByTests extends _internalTestHelpers.AbstractTestCase {\n '@test should return new instance with duplicates removed'() {\n let numbers = this.newObject([{\n id: 1,\n value: 'one'\n }, {\n id: 2,\n value: 'two'\n }, {\n id: 1,\n value: 'one'\n }]);\n this.assert.deepEqual(numbers.uniqBy('id'), [{\n id: 1,\n value: 'one'\n }, {\n id: 2,\n value: 'two'\n }]);\n }\n\n '@test supports function as key'() {\n let numbers = this.newObject([{\n id: 1,\n value: 'boom'\n }, {\n id: 2,\n value: 'boom'\n }, {\n id: 1,\n value: 'doom'\n }]);\n\n let keyFunction = val => {\n this.assert.equal(arguments.length, 1);\n return val.value;\n };\n\n this.assert.deepEqual(numbers.uniqBy(keyFunction), [{\n id: 1,\n value: 'boom'\n }, {\n id: 1,\n value: 'doom'\n }]);\n }\n\n }\n\n (0, _array.runArrayTests)('uniqBy', UniqByTests);\n});","enifed(\"@ember/-internals/runtime/tests/array/without-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class WithoutTests extends _internalTestHelpers.AbstractTestCase {\n '@test should return new instance with item removed'() {\n let before, after, obj, ret;\n before = (0, _array.newFixture)(3);\n after = [before[0], before[2]];\n obj = this.newObject(before);\n ret = obj.without(before[1]);\n this.assert.deepEqual(this.toArray(ret), after, 'should have removed item');\n this.assert.deepEqual(this.toArray(obj), before, 'should not have changed original');\n }\n\n '@test should remove NaN value'() {\n let before, after, obj, ret;\n before = [...(0, _array.newFixture)(2), NaN];\n after = [before[0], before[1]];\n obj = this.newObject(before);\n ret = obj.without(NaN);\n this.assert.deepEqual(this.toArray(ret), after, 'should have removed item');\n }\n\n '@test should return same instance if object not found'() {\n let item, obj, ret;\n item = (0, _array.newFixture)(1)[0];\n obj = this.newObject((0, _array.newFixture)(3));\n ret = obj.without(item);\n this.assert.equal(ret, obj, 'should be same instance');\n }\n\n }\n\n (0, _array.runArrayTests)('without', WithoutTests);\n});","enifed(\"@ember/-internals/runtime/tests/copyable-array/copy-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class CopyTest extends _internalTestHelpers.AbstractTestCase {\n '@test should return an equivalent copy'() {\n let obj = this.newObject();\n let copy = obj.copy();\n this.assert.ok(this.isEqual(obj, copy), 'old object and new object should be equivalent');\n }\n\n }\n\n (0, _array.runArrayTests)('copy', CopyTest, 'CopyableNativeArray', 'CopyableArray');\n});","enifed(\"@ember/-internals/runtime/tests/core/compare_test\", [\"@ember/-internals/runtime/lib/type-of\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/compare\", \"@ember/-internals/runtime/lib/mixins/comparable\", \"internal-test-helpers\"], function (_typeOf, _object, _compare, _comparable, _internalTestHelpers) {\n \"use strict\";\n\n let data = [];\n\n let Comp = _object.default.extend(_comparable.default);\n\n Comp.reopenClass({\n compare(obj) {\n return obj.get('val');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Ember.compare()', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n data[0] = null;\n data[1] = false;\n data[2] = true;\n data[3] = -12;\n data[4] = 3.5;\n data[5] = 'a string';\n data[6] = 'another string';\n data[7] = 'last string';\n data[8] = [1, 2];\n data[9] = [1, 2, 3];\n data[10] = [1, 3];\n data[11] = {\n a: 'hash'\n };\n data[12] = _object.default.create();\n\n data[13] = function (a) {\n return a;\n };\n\n data[14] = new Date('2012/01/01');\n data[15] = new Date('2012/06/06');\n }\n\n ['@test ordering should work'](assert) {\n let suspect, comparable, failureMessage, suspectIndex, comparableIndex;\n\n for (suspectIndex = 0; suspectIndex < data.length; suspectIndex++) {\n suspect = data[suspectIndex];\n assert.equal((0, _compare.default)(suspect, suspect), 0, suspectIndex + ' should equal itself');\n\n for (comparableIndex = suspectIndex + 1; comparableIndex < data.length; comparableIndex++) {\n comparable = data[comparableIndex];\n failureMessage = 'data[' + suspectIndex + '] (' + (0, _typeOf.typeOf)(suspect) + ') should be smaller than data[' + comparableIndex + '] (' + (0, _typeOf.typeOf)(comparable) + ')';\n assert.equal((0, _compare.default)(suspect, comparable), -1, failureMessage);\n }\n }\n }\n\n ['@test comparables should return values in the range of -1, 0, 1'](assert) {\n let negOne = Comp.create({\n val: -1\n });\n let zero = Comp.create({\n val: 0\n });\n let one = Comp.create({\n val: 1\n });\n assert.equal((0, _compare.default)(negOne, 'a'), -1, 'First item comparable - returns -1 (not negated)');\n assert.equal((0, _compare.default)(zero, 'b'), 0, 'First item comparable - returns 0 (not negated)');\n assert.equal((0, _compare.default)(one, 'c'), 1, 'First item comparable - returns 1 (not negated)');\n assert.equal((0, _compare.default)('a', negOne), 1, 'Second item comparable - returns -1 (negated)');\n assert.equal((0, _compare.default)('b', zero), 0, 'Second item comparable - returns 0 (negated)');\n assert.equal((0, _compare.default)('c', one), -1, 'Second item comparable - returns 1 (negated)');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/core/copy_test\", [\"@ember/-internals/runtime/lib/copy\", \"internal-test-helpers\"], function (_copy, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember Copy Method', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Ember.copy null'](assert) {\n let obj = {\n field: null\n };\n let copied = null;\n expectDeprecation(() => {\n copied = (0, _copy.default)(obj, true);\n }, 'Use ember-copy addon instead of copy method and Copyable mixin.');\n assert.equal(copied.field, null, 'null should still be null');\n }\n\n ['@test Ember.copy date'](assert) {\n let date = new Date(2014, 7, 22);\n let dateCopy = null;\n expectDeprecation(() => {\n dateCopy = (0, _copy.default)(date);\n }, 'Use ember-copy addon instead of copy method and Copyable mixin.');\n assert.equal(date.getTime(), dateCopy.getTime(), 'dates should be equivalent');\n }\n\n ['@test Ember.copy null prototype object'](assert) {\n let obj = Object.create(null);\n obj.foo = 'bar';\n let copied = null;\n expectDeprecation(() => {\n copied = (0, _copy.default)(obj);\n }, 'Use ember-copy addon instead of copy method and Copyable mixin.');\n assert.equal(copied.foo, 'bar', 'bar should still be bar');\n }\n\n ['@test Ember.copy Array'](assert) {\n let array = [1, null, new Date(2015, 9, 9), 'four'];\n let arrayCopy = null;\n expectDeprecation(() => {\n arrayCopy = (0, _copy.default)(array);\n }, 'Use ember-copy addon instead of copy method and Copyable mixin.');\n assert.deepEqual(array, arrayCopy, 'array content cloned successfully in new array');\n }\n\n ['@test Ember.copy cycle detection'](assert) {\n let obj = {\n foo: {\n bar: 'bar'\n }\n };\n obj.foo.foo = obj.foo;\n let cycleCopy = null;\n expectDeprecation(() => {\n cycleCopy = (0, _copy.default)(obj, true);\n }, 'Use ember-copy addon instead of copy method and Copyable mixin.');\n assert.equal(cycleCopy.foo.bar, 'bar');\n assert.notEqual(cycleCopy.foo.foo, obj.foo.foo);\n assert.strictEqual(cycleCopy.foo.foo, cycleCopy.foo.foo);\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/core/isEqual_test\", [\"@ember/-internals/runtime/lib/is-equal\", \"internal-test-helpers\"], function (_isEqual, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('isEqual', class extends _internalTestHelpers.AbstractTestCase {\n ['@test undefined and null'](assert) {\n assert.ok((0, _isEqual.default)(undefined, undefined), 'undefined is equal to undefined');\n assert.ok(!(0, _isEqual.default)(undefined, null), 'undefined is not equal to null');\n assert.ok((0, _isEqual.default)(null, null), 'null is equal to null');\n assert.ok(!(0, _isEqual.default)(null, undefined), 'null is not equal to undefined');\n }\n\n ['@test strings should be equal'](assert) {\n assert.ok(!(0, _isEqual.default)('Hello', 'Hi'), 'different Strings are unequal');\n assert.ok((0, _isEqual.default)('Hello', 'Hello'), 'same Strings are equal');\n }\n\n ['@test numericals should be equal'](assert) {\n assert.ok((0, _isEqual.default)(24, 24), 'same numbers are equal');\n assert.ok(!(0, _isEqual.default)(24, 21), 'different numbers are inequal');\n }\n\n ['@test dates should be equal'](assert) {\n assert.ok((0, _isEqual.default)(new Date(1985, 7, 22), new Date(1985, 7, 22)), 'same dates are equal');\n assert.ok(!(0, _isEqual.default)(new Date(2014, 7, 22), new Date(1985, 7, 22)), 'different dates are not equal');\n }\n\n ['@test array should be equal'](assert) {\n // NOTE: We don't test for array contents -- that would be too expensive.\n assert.ok(!(0, _isEqual.default)([1, 2], [1, 2]), 'two array instances with the same values should not be equal');\n assert.ok(!(0, _isEqual.default)([1, 2], [1]), 'two array instances with different values should not be equal');\n }\n\n ['@test first object implements isEqual should use it'](assert) {\n assert.ok((0, _isEqual.default)({\n isEqual() {\n return true;\n }\n\n }, null), 'should return true always');\n let obj = {\n isEqual() {\n return false;\n }\n\n };\n assert.equal((0, _isEqual.default)(obj, obj), false, 'should return false because isEqual returns false');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/core/is_array_test\", [\"@ember/-internals/runtime/lib/mixins/array\", \"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/browser-environment\", \"internal-test-helpers\"], function (_array, _array_proxy, _object, _browserEnvironment, _internalTestHelpers) {\n \"use strict\";\n\n const global = void 0;\n (0, _internalTestHelpers.moduleFor)('Ember Type Checking', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Ember.isArray'](assert) {\n let numarray = [1, 2, 3];\n let number = 23;\n let strarray = ['Hello', 'Hi'];\n let string = 'Hello';\n let object = {};\n let length = {\n length: 12\n };\n let strangeLength = {\n length: 'yes'\n };\n\n let fn = function () {};\n\n let arrayProxy = _array_proxy.default.create({\n content: (0, _array.A)()\n });\n\n assert.equal((0, _array.isArray)(numarray), true, '[1,2,3]');\n assert.equal((0, _array.isArray)(number), false, '23');\n assert.equal((0, _array.isArray)(strarray), true, '[\"Hello\", \"Hi\"]');\n assert.equal((0, _array.isArray)(string), false, '\"Hello\"');\n assert.equal((0, _array.isArray)(object), false, '{}');\n assert.equal((0, _array.isArray)(length), true, '{ length: 12 }');\n assert.equal((0, _array.isArray)(strangeLength), false, '{ length: \"yes\" }');\n assert.equal((0, _array.isArray)(global), false, 'global');\n assert.equal((0, _array.isArray)(fn), false, 'function() {}');\n assert.equal((0, _array.isArray)(arrayProxy), true, '[]');\n }\n\n '@test Ember.isArray does not trigger proxy assertion when probing for length GH#16495'(assert) {\n let instance = _object.default.extend({\n // intentionally returning non-null / non-undefined\n unknownProperty() {\n return false;\n }\n\n }).create();\n\n assert.equal((0, _array.isArray)(instance), false);\n }\n\n ['@test Ember.isArray(fileList)'](assert) {\n if (_browserEnvironment.window && typeof _browserEnvironment.window.FileList === 'function') {\n let fileListElement = document.createElement('input');\n fileListElement.type = 'file';\n let fileList = fileListElement.files;\n assert.equal((0, _array.isArray)(fileList), false, 'fileList');\n } else {\n assert.ok(true, 'FileList is not present on window');\n }\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/core/is_empty_test\", [\"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_metal, _array_proxy, _array, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember.isEmpty', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Ember.isEmpty'](assert) {\n let arrayProxy = _array_proxy.default.create({\n content: (0, _array.A)()\n });\n\n assert.equal(true, (0, _metal.isEmpty)(arrayProxy), 'for an ArrayProxy that has empty content');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/core/type_of_test\", [\"@ember/-internals/runtime/lib/type-of\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/browser-environment\", \"internal-test-helpers\"], function (_typeOf, _object, _browserEnvironment, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember Type Checking', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Ember.typeOf'](assert) {\n let MockedDate = function () {};\n\n MockedDate.prototype = new Date();\n let mockedDate = new MockedDate();\n let date = new Date();\n let error = new Error('boum');\n let object = {\n a: 'b'\n };\n let a = null;\n let arr = [1, 2, 3];\n let obj = {};\n\n let instance = _object.default.create({\n method() {}\n\n });\n\n assert.equal((0, _typeOf.typeOf)(), 'undefined', 'undefined');\n assert.equal((0, _typeOf.typeOf)(null), 'null', 'null');\n assert.equal((0, _typeOf.typeOf)('Cyril'), 'string', 'Cyril');\n assert.equal((0, _typeOf.typeOf)(101), 'number', '101');\n assert.equal((0, _typeOf.typeOf)(true), 'boolean', 'true');\n assert.equal((0, _typeOf.typeOf)([1, 2, 90]), 'array', '[1,2,90]');\n assert.equal((0, _typeOf.typeOf)(/abc/), 'regexp', '/abc/');\n assert.equal((0, _typeOf.typeOf)(date), 'date', 'new Date()');\n assert.equal((0, _typeOf.typeOf)(mockedDate), 'date', 'mocked date');\n assert.equal((0, _typeOf.typeOf)(error), 'error', 'error');\n assert.equal((0, _typeOf.typeOf)(object), 'object', 'object');\n assert.equal((0, _typeOf.typeOf)(undefined), 'undefined', 'item of type undefined');\n assert.equal((0, _typeOf.typeOf)(a), 'null', 'item of type null');\n assert.equal((0, _typeOf.typeOf)(arr), 'array', 'item of type array');\n assert.equal((0, _typeOf.typeOf)(obj), 'object', 'item of type object');\n assert.equal((0, _typeOf.typeOf)(instance), 'instance', 'item of type instance');\n assert.equal((0, _typeOf.typeOf)(instance.method), 'function', 'item of type function');\n assert.equal((0, _typeOf.typeOf)(_object.default.extend()), 'class', 'item of type class');\n assert.equal((0, _typeOf.typeOf)(new Error()), 'error', 'item of type error');\n }\n\n ['@test Ember.typeOf(fileList)'](assert) {\n if (_browserEnvironment.window && typeof _browserEnvironment.window.FileList === 'function') {\n let fileListElement = document.createElement('input');\n fileListElement.type = 'file';\n let fileList = fileListElement.files;\n assert.equal((0, _typeOf.typeOf)(fileList), 'filelist', 'item of type filelist');\n } else {\n assert.ok(true, 'FileList is not present on window');\n }\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/ext/function_test\", [\"@ember/-internals/environment\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/evented\", \"internal-test-helpers\"], function (_environment, _metal, _object, _evented, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Function.prototype.observes() helper', class extends _internalTestHelpers.AbstractTestCase {\n ['@test global observer helper takes multiple params'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.Function) {\n assert.ok('undefined' === typeof Function.prototype.observes, 'Function.prototype helper disabled');\n return;\n }\n\n let MyMixin = _metal.Mixin.create({\n count: 0,\n foo: function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n }.observes('bar', 'baz')\n });\n\n let obj = (0, _metal.mixin)({}, MyMixin);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj, 'bar', 'BAZ');\n (0, _metal.set)(obj, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 2, 'should invoke observer after change');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Function.prototype.on() helper', class extends _internalTestHelpers.AbstractTestCase {\n ['@test sets up an event listener, and can trigger the function on multiple events'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.Function) {\n assert.ok('undefined' === typeof Function.prototype.on, 'Function.prototype helper disabled');\n return;\n }\n\n let MyMixin = _metal.Mixin.create({\n count: 0,\n foo: function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n }.on('bar', 'baz')\n });\n\n let obj = (0, _metal.mixin)({}, _evented.default, MyMixin);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke listener immediately');\n obj.trigger('bar');\n obj.trigger('baz');\n assert.equal((0, _metal.get)(obj, 'count'), 2, 'should invoke listeners when events trigger');\n }\n\n ['@test can be chained with observes'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.Function) {\n assert.ok('Function.prototype helper disabled');\n return;\n }\n\n let MyMixin = _metal.Mixin.create({\n count: 0,\n bay: 'bay',\n foo: function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n }.observes('bay').on('bar')\n });\n\n let obj = (0, _metal.mixin)({}, _evented.default, MyMixin);\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke listener immediately');\n (0, _metal.set)(obj, 'bay', 'BAY');\n obj.trigger('bar');\n assert.equal((0, _metal.get)(obj, 'count'), 2, 'should invoke observer and listener');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Function.prototype.property() helper', class extends _internalTestHelpers.AbstractTestCase {\n ['@test sets up a ComputedProperty'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.Function) {\n assert.ok('undefined' === typeof Function.prototype.property, 'Function.prototype helper disabled');\n return;\n }\n\n let MyClass = _object.default.extend({\n firstName: null,\n lastName: null,\n fullName: function () {\n return (0, _metal.get)(this, 'firstName') + ' ' + (0, _metal.get)(this, 'lastName');\n }.property('firstName', 'lastName')\n });\n\n let obj = MyClass.create({\n firstName: 'Fred',\n lastName: 'Flinstone'\n });\n assert.equal((0, _metal.get)(obj, 'fullName'), 'Fred Flinstone', 'should return the computed value');\n (0, _metal.set)(obj, 'firstName', 'Wilma');\n assert.equal((0, _metal.get)(obj, 'fullName'), 'Wilma Flinstone', 'should return the new computed value');\n (0, _metal.set)(obj, 'lastName', '');\n assert.equal((0, _metal.get)(obj, 'fullName'), 'Wilma ', 'should return the new computed value');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/ext/rsvp_test\", [\"@ember/runloop\", \"@ember/-internals/error-handling\", \"@ember/-internals/runtime/lib/ext/rsvp\", \"@ember/debug\", \"internal-test-helpers\"], function (_runloop, _errorHandling, _rsvp, _debug, _internalTestHelpers) {\n \"use strict\";\n\n const ORIGINAL_ONERROR = (0, _errorHandling.getOnerror)();\n (0, _internalTestHelpers.moduleFor)('Ember.RSVP', class extends _internalTestHelpers.AbstractTestCase {\n afterEach() {\n (0, _errorHandling.setOnerror)(ORIGINAL_ONERROR);\n }\n\n ['@test Ensure that errors thrown from within a promise are sent to the console'](assert) {\n let error = new Error('Error thrown in a promise for testing purposes.');\n\n try {\n (0, _runloop.run)(function () {\n new _rsvp.default.Promise(function () {\n throw error;\n });\n });\n assert.ok(false, 'expected assertion to be thrown');\n } catch (e) {\n assert.equal(e, error, 'error was re-thrown');\n }\n }\n\n ['@test TransitionAborted errors are not re-thrown'](assert) {\n assert.expect(1);\n let fakeTransitionAbort = {\n name: 'TransitionAborted'\n };\n (0, _runloop.run)(_rsvp.default, 'reject', fakeTransitionAbort);\n assert.ok(true, 'did not throw an error when dealing with TransitionAborted');\n }\n\n ['@test Can reject with non-Error object'](assert) {\n let wasEmberTesting = (0, _debug.isTesting)();\n (0, _debug.setTesting)(false);\n assert.expect(1);\n\n try {\n (0, _runloop.run)(_rsvp.default, 'reject', 'foo');\n } catch (e) {\n assert.equal(e, 'foo', 'should throw with rejection message');\n } finally {\n (0, _debug.setTesting)(wasEmberTesting);\n }\n }\n\n ['@test Can reject with no arguments'](assert) {\n let wasEmberTesting = (0, _debug.isTesting)();\n (0, _debug.setTesting)(false);\n assert.expect(1);\n\n try {\n (0, _runloop.run)(_rsvp.default, 'reject');\n } catch (e) {\n assert.ok(false, 'should not throw');\n } finally {\n (0, _debug.setTesting)(wasEmberTesting);\n }\n\n assert.ok(true);\n }\n\n ['@test rejections like jqXHR which have errorThrown property work'](assert) {\n assert.expect(2);\n let wasEmberTesting = (0, _debug.isTesting)();\n let wasOnError = (0, _errorHandling.getOnerror)();\n\n try {\n (0, _debug.setTesting)(false);\n (0, _errorHandling.setOnerror)(error => {\n assert.equal(error, actualError, 'expected the real error on the jqXHR');\n assert.equal(error.__reason_with_error_thrown__, jqXHR, 'also retains a helpful reference to the rejection reason');\n });\n let actualError = new Error('OMG what really happened');\n let jqXHR = {\n errorThrown: actualError\n };\n (0, _runloop.run)(_rsvp.default, 'reject', jqXHR);\n } finally {\n (0, _errorHandling.setOnerror)(wasOnError);\n (0, _debug.setTesting)(wasEmberTesting);\n }\n }\n\n ['@test rejections where the errorThrown is a string should wrap the sting in an error object'](assert) {\n assert.expect(2);\n let wasEmberTesting = (0, _debug.isTesting)();\n let wasOnError = (0, _errorHandling.getOnerror)();\n\n try {\n (0, _debug.setTesting)(false);\n (0, _errorHandling.setOnerror)(error => {\n assert.equal(error.message, actualError, 'expected the real error on the jqXHR');\n assert.equal(error.__reason_with_error_thrown__, jqXHR, 'also retains a helpful reference to the rejection reason');\n });\n let actualError = 'OMG what really happened';\n let jqXHR = {\n errorThrown: actualError\n };\n (0, _runloop.run)(_rsvp.default, 'reject', jqXHR);\n } finally {\n (0, _errorHandling.setOnerror)(wasOnError);\n (0, _debug.setTesting)(wasEmberTesting);\n }\n }\n\n ['@test rejections can be serialized to JSON'](assert) {\n assert.expect(2);\n let wasEmberTesting = (0, _debug.isTesting)();\n let wasOnError = (0, _errorHandling.getOnerror)();\n\n try {\n (0, _debug.setTesting)(false);\n (0, _errorHandling.setOnerror)(error => {\n assert.equal(error.message, 'a fail');\n assert.ok(JSON.stringify(error), 'Error can be serialized');\n });\n let jqXHR = {\n errorThrown: new Error('a fail')\n };\n (0, _runloop.run)(_rsvp.default, 'reject', jqXHR);\n } finally {\n (0, _errorHandling.setOnerror)(wasOnError);\n (0, _debug.setTesting)(wasEmberTesting);\n }\n }\n\n });\n const reason = 'i failed';\n\n function ajax() {\n return new _rsvp.default.Promise(function (resolve) {\n setTimeout(resolve, 0); // fake true / foreign async\n });\n }\n\n (0, _internalTestHelpers.moduleFor)('Ember.test: rejection assertions', class extends _internalTestHelpers.AbstractTestCase {\n ['@test unambigiously unhandled rejection'](assert) {\n assert.throws(function () {\n (0, _runloop.run)(function () {\n _rsvp.default.Promise.reject(reason);\n }); // something is funky, we should likely assert\n }, reason);\n }\n\n ['@test sync handled'](assert) {\n (0, _runloop.run)(function () {\n _rsvp.default.Promise.reject(reason).catch(function () {});\n }); // handled, we shouldn't need to assert.\n\n assert.ok(true, 'reached end of test');\n }\n\n ['@test handled within the same micro-task (via Ember.RVP.Promise)'](assert) {\n (0, _runloop.run)(function () {\n let rejection = _rsvp.default.Promise.reject(reason);\n\n _rsvp.default.Promise.resolve(1).then(() => rejection.catch(function () {}));\n }); // handled, we shouldn't need to assert.\n\n assert.ok(true, 'reached end of test');\n }\n\n ['@test handled within the same micro-task (via direct run-loop)'](assert) {\n (0, _runloop.run)(function () {\n let rejection = _rsvp.default.Promise.reject(reason);\n\n (0, _runloop.schedule)('afterRender', () => rejection.catch(function () {}));\n }); // handled, we shouldn't need to assert.\n\n assert.ok(true, 'reached end of test');\n }\n\n ['@test handled in the next microTask queue flush (next)'](assert) {\n assert.expect(2);\n let done = assert.async();\n assert.throws(function () {\n (0, _runloop.run)(function () {\n let rejection = _rsvp.default.Promise.reject(reason);\n\n (0, _runloop.next)(() => {\n rejection.catch(function () {});\n assert.ok(true, 'reached end of test');\n done();\n });\n });\n }, reason); // a promise rejection survived a full flush of the run-loop without being handled\n // this is very likely an issue.\n }\n\n ['@test handled in the same microTask Queue flush do to data locality'](assert) {\n // an ambiguous scenario, this may or may not assert\n // it depends on the locality of `user#1`\n let store = {\n find() {\n return _rsvp.default.Promise.resolve(1);\n }\n\n };\n (0, _runloop.run)(function () {\n let rejection = _rsvp.default.Promise.reject(reason);\n\n store.find('user', 1).then(() => rejection.catch(function () {}));\n });\n assert.ok(true, 'reached end of test');\n }\n\n ['@test handled in a different microTask Queue flush do to data locality'](assert) {\n let done = assert.async(); // an ambiguous scenario, this may or may not assert\n // it depends on the locality of `user#1`\n\n let store = {\n find() {\n return ajax();\n }\n\n };\n assert.throws(function () {\n (0, _runloop.run)(function () {\n let rejection = _rsvp.default.Promise.reject(reason);\n\n store.find('user', 1).then(() => {\n rejection.catch(function () {});\n assert.ok(true, 'reached end of test');\n done();\n });\n });\n }, reason);\n }\n\n ['@test handled in the next microTask queue flush (ajax example)'](assert) {\n let done = assert.async();\n assert.throws(function () {\n (0, _runloop.run)(function () {\n let rejection = _rsvp.default.Promise.reject(reason);\n\n ajax().then(() => {\n rejection.catch(function () {});\n assert.ok(true, 'reached end of test');\n done();\n });\n });\n }, reason);\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/helpers/array\", [\"exports\", \"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/mixins/array\", \"@ember/-internals/utils\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/copyable\", \"internal-test-helpers\"], function (_exports, _array_proxy, _array, _utils, _metal, _object, _copyable, _internalTestHelpers) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.newFixture = newFixture;\n _exports.newObjectsFixture = newObjectsFixture;\n _exports.runArrayTests = runArrayTests;\n\n function newFixture(cnt) {\n let ret = [];\n\n while (--cnt >= 0) {\n ret.push((0, _utils.generateGuid)());\n }\n\n return ret;\n }\n\n function newObjectsFixture(cnt) {\n let ret = [];\n let item;\n\n while (--cnt >= 0) {\n item = {};\n (0, _utils.guidFor)(item);\n ret.push(item);\n }\n\n return ret;\n }\n\n const ArrayTestsObserverClass = _object.default.extend({\n init() {\n this._super(...arguments);\n\n this.isEnabled = true;\n this.reset();\n },\n\n reset() {\n this._keys = {};\n this._values = {};\n this._before = null;\n this._after = null;\n return this;\n },\n\n observe(obj, ...keys) {\n if (obj.addObserver) {\n let loc = keys.length;\n\n while (--loc >= 0) {\n obj.addObserver(keys[loc], this, 'propertyDidChange');\n }\n } else {\n this.isEnabled = false;\n }\n\n return this;\n },\n\n observeArray(obj) {\n (0, _metal.addArrayObserver)(obj, this);\n return this;\n },\n\n stopObserveArray(obj) {\n (0, _metal.removeArrayObserver)(obj, this);\n return this;\n },\n\n propertyDidChange(target, key, value) {\n if (this._keys[key] === undefined) {\n this._keys[key] = 0;\n }\n\n this._keys[key]++;\n this._values[key] = value;\n },\n\n arrayWillChange() {\n this.assert.equal(this._before, null, 'should only call once');\n this._before = Array.prototype.slice.call(arguments);\n },\n\n arrayDidChange() {\n this.assert.equal(this._after, null, 'should only call once');\n this._after = Array.prototype.slice.call(arguments);\n },\n\n validate(key, value) {\n if (!this.isEnabled) {\n return true;\n }\n\n if (!this._keys[key]) {\n return false;\n }\n\n if (arguments.length > 1) {\n return this._values[key] === value;\n } else {\n return true;\n }\n },\n\n timesCalled(key) {\n return this._keys[key] || 0;\n }\n\n });\n\n class AbstractArrayHelper {\n beforeEach(assert) {\n this.assert = assert;\n }\n\n newObject(ary) {\n return ary ? ary.slice() : newFixture(3);\n }\n\n toArray(obj) {\n return obj.slice();\n }\n\n newObserver() {\n let ret = ArrayTestsObserverClass.create({\n assert: this.assert\n });\n\n if (arguments.length > 0) {\n ret.observe.apply(ret, arguments);\n }\n\n return ret;\n }\n\n }\n\n class NativeArrayHelpers extends AbstractArrayHelper {\n newObject(ary) {\n return (0, _array.A)(super.newObject(ary));\n }\n\n mutate(obj) {\n obj.pushObject(obj.length + 1);\n }\n\n }\n\n class CopyableNativeArray extends AbstractArrayHelper {\n newObject() {\n return (0, _array.A)([(0, _utils.generateGuid)()]);\n }\n\n isEqual(a, b) {\n if (!(a instanceof Array)) {\n return false;\n }\n\n if (!(b instanceof Array)) {\n return false;\n }\n\n if (a.length !== b.length) {\n return false;\n }\n\n return a[0] === b[0];\n }\n\n }\n\n class CopyableArray extends AbstractArrayHelper {\n newObject() {\n return CopyableObject.create();\n }\n\n isEqual(a, b) {\n if (!(a instanceof CopyableObject) || !(b instanceof CopyableObject)) {\n return false;\n }\n\n return (0, _metal.get)(a, 'id') === (0, _metal.get)(b, 'id');\n }\n\n }\n\n class ArrayProxyHelpers extends AbstractArrayHelper {\n newObject(ary) {\n return _array_proxy.default.create({\n content: (0, _array.A)(super.newObject(ary))\n });\n }\n\n mutate(obj) {\n obj.pushObject((0, _metal.get)(obj, 'length') + 1);\n }\n\n toArray(obj) {\n return obj.toArray ? obj.toArray() : obj.slice();\n }\n\n }\n /*\n Implement a basic fake mutable array. This validates that any non-native\n enumerable can impl this API.\n */\n\n\n const TestArray = _object.default.extend(_array.default, {\n _content: null,\n\n init() {\n this._content = this._content || [];\n },\n\n // some methods to modify the array so we can test changes. Note that\n // arrays can be modified even if they don't implement MutableArray. The\n // MutableArray is just a standard API for mutation but not required.\n addObject(obj) {\n let idx = this._content.length;\n (0, _metal.arrayContentWillChange)(this, idx, 0, 1);\n\n this._content.push(obj);\n\n (0, _metal.arrayContentDidChange)(this, idx, 0, 1);\n },\n\n removeFirst() {\n (0, _metal.arrayContentWillChange)(this, 0, 1, 0);\n\n this._content.shift();\n\n (0, _metal.arrayContentDidChange)(this, 0, 1, 0);\n },\n\n objectAt(idx) {\n return this._content[idx];\n },\n\n length: (0, _metal.computed)(function () {\n return this._content.length;\n })\n });\n /*\n Implement a basic fake mutable array. This validates that any non-native\n enumerable can impl this API.\n */\n\n\n const TestMutableArray = _object.default.extend(_array.MutableArray, {\n _content: null,\n\n init(ary = []) {\n this._content = (0, _array.A)(ary);\n },\n\n replace(idx, amt, objects) {\n let args = objects ? objects.slice() : [];\n let removeAmt = amt;\n let addAmt = args.length;\n (0, _metal.arrayContentWillChange)(this, idx, removeAmt, addAmt);\n args.unshift(amt);\n args.unshift(idx);\n\n this._content.splice.apply(this._content, args);\n\n (0, _metal.arrayContentDidChange)(this, idx, removeAmt, addAmt);\n return this;\n },\n\n objectAt(idx) {\n return this._content[idx];\n },\n\n length: (0, _metal.computed)(function () {\n return this._content.length;\n }),\n\n slice() {\n return this._content.slice();\n }\n\n });\n\n const CopyableObject = _object.default.extend(_copyable.default, {\n id: null,\n\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'id', (0, _utils.generateGuid)());\n },\n\n copy() {\n let ret = CopyableObject.create();\n (0, _metal.set)(ret, 'id', (0, _metal.get)(this, 'id'));\n return ret;\n }\n\n });\n\n class MutableArrayHelpers extends NativeArrayHelpers {\n newObject(ary) {\n return TestMutableArray.create(super.newObject(ary));\n } // allows for testing of the basic enumerable after an internal mutation\n\n\n mutate(obj) {\n obj.addObject(this.getFixture(1)[0]);\n }\n\n }\n\n class EmberArrayHelpers extends MutableArrayHelpers {\n newObject(ary) {\n return TestArray.create(super.newObject(ary));\n }\n\n }\n\n function runArrayTests(name, Tests, ...types) {\n if (types.length > 0) {\n types.forEach(type => {\n switch (type) {\n case 'ArrayProxy':\n (0, _internalTestHelpers.moduleFor)(\"ArrayProxy: \" + name, Tests, ArrayProxyHelpers);\n break;\n\n case 'EmberArray':\n (0, _internalTestHelpers.moduleFor)(\"EmberArray: \" + name, Tests, EmberArrayHelpers);\n break;\n\n case 'MutableArray':\n (0, _internalTestHelpers.moduleFor)(\"MutableArray: \" + name, Tests, EmberArrayHelpers);\n break;\n\n case 'CopyableArray':\n (0, _internalTestHelpers.moduleFor)(\"CopyableArray: \" + name, Tests, CopyableArray);\n break;\n\n case 'CopyableNativeArray':\n (0, _internalTestHelpers.moduleFor)(\"CopyableNativeArray: \" + name, Tests, CopyableNativeArray);\n break;\n\n case 'NativeArray':\n (0, _internalTestHelpers.moduleFor)(\"NativeArray: \" + name, Tests, EmberArrayHelpers);\n break;\n }\n });\n } else {\n (0, _internalTestHelpers.moduleFor)(\"ArrayProxy: \" + name, Tests, ArrayProxyHelpers);\n (0, _internalTestHelpers.moduleFor)(\"EmberArray: \" + name, Tests, EmberArrayHelpers);\n (0, _internalTestHelpers.moduleFor)(\"MutableArray: \" + name, Tests, MutableArrayHelpers);\n (0, _internalTestHelpers.moduleFor)(\"NativeArray: \" + name, Tests, NativeArrayHelpers);\n }\n }\n});","enifed(\"@ember/-internals/runtime/tests/inject_test\", [\"@ember/-internals/metal\", \"@glimmer/env\", \"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_metal, _env, _object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('inject', class extends _internalTestHelpers.AbstractTestCase {\n ['@test attempting to inject a nonexistent container key should error']() {\n let owner = (0, _internalTestHelpers.buildOwner)();\n\n let AnObject = _object.default.extend({\n foo: (0, _metal.inject)('bar', 'baz')\n });\n\n owner.register('foo:main', AnObject);\n expectAssertion(() => {\n owner.lookup('foo:main');\n }, /Attempting to inject an unknown injection: 'bar:baz'/);\n }\n\n ['@test factories should return a list of lazy injection full names'](assert) {\n if (_env.DEBUG) {\n let AnObject = _object.default.extend({\n foo: (0, _metal.inject)('foo', 'bar'),\n bar: (0, _metal.inject)('quux')\n });\n\n assert.deepEqual(AnObject._lazyInjections(), {\n foo: {\n specifier: 'foo:bar',\n source: undefined,\n namespace: undefined\n },\n bar: {\n specifier: 'quux:bar',\n source: undefined,\n namespace: undefined\n }\n }, 'should return injected container keys');\n } else {\n assert.expect(0);\n }\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/legacy_1x/mixins/observable/chained_test\", [\"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_runloop, _metal, _object, _array, _internalTestHelpers) {\n \"use strict\";\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * changed obj.set() and obj.get() to Ember.set() and Ember.get()\n * changed obj.addObserver() to addObserver()\n */\n (0, _internalTestHelpers.moduleFor)('Ember.Observable - Observing with @each', class extends _internalTestHelpers.AbstractTestCase {\n ['@test chained observers on enumerable properties are triggered when the observed property of any item changes'](assert) {\n let family = _object.default.create({\n momma: null\n });\n\n let momma = _object.default.create({\n children: []\n });\n\n let child1 = _object.default.create({\n name: 'Bartholomew'\n });\n\n let child2 = _object.default.create({\n name: 'Agnes'\n });\n\n let child3 = _object.default.create({\n name: 'Dan'\n });\n\n let child4 = _object.default.create({\n name: 'Nancy'\n });\n\n (0, _metal.set)(family, 'momma', momma);\n (0, _metal.set)(momma, 'children', (0, _array.A)([child1, child2, child3]));\n let observerFiredCount = 0;\n (0, _metal.addObserver)(family, 'momma.children.@each.name', this, function () {\n observerFiredCount++;\n });\n observerFiredCount = 0;\n (0, _runloop.run)(() => (0, _metal.get)(momma, 'children').setEach('name', 'Juan'));\n assert.equal(observerFiredCount, 3, 'observer fired after changing child names');\n observerFiredCount = 0;\n (0, _runloop.run)(() => (0, _metal.get)(momma, 'children').pushObject(child4));\n assert.equal(observerFiredCount, 1, 'observer fired after adding a new item');\n observerFiredCount = 0;\n (0, _runloop.run)(() => (0, _metal.set)(child4, 'name', 'Herbert'));\n assert.equal(observerFiredCount, 1, 'observer fired after changing property on new object');\n (0, _metal.set)(momma, 'children', []);\n observerFiredCount = 0;\n (0, _runloop.run)(() => (0, _metal.set)(child1, 'name', 'Hanna'));\n assert.equal(observerFiredCount, 0, 'observer did not fire after removing changing property on a removed object');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/legacy_1x/mixins/observable/observable_test\", [\"@ember/-internals/environment\", \"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/string\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/observable\", \"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_environment, _runloop, _metal, _string, _object, _observable, _array, _internalTestHelpers) {\n \"use strict\";\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * Added ObservableObject which applies the Ember.Observable mixin.\n * Changed reference to Ember.T_FUNCTION to 'function'\n * Changed all references to sc_super to this._super(...arguments)\n * Changed Ember.objectForPropertyPath() to Ember.getPath()\n * Removed allPropertiesDidChange test - no longer supported\n * Changed test that uses 'ObjectE' as path to 'objectE' to reflect new\n rule on using capital letters for property paths.\n * Removed test passing context to addObserver. context param is no longer\n supported.\n * removed test in observer around line 862 that expected key/value to be\n the last item in the chained path. Should be root and chained path\n \n */\n // ========================================================================\n // Ember.Observable Tests\n // ========================================================================\n var object, ObjectC, ObjectD, objectA, objectB, lookup;\n\n var ObservableObject = _object.default.extend(_observable.default);\n\n var originalLookup = _environment.context.lookup; // ..........................................................\n // GET()\n //\n\n (0, _internalTestHelpers.moduleFor)('object.get()', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n object = ObservableObject.extend(_observable.default, {\n computed: (0, _metal.computed)(function () {\n return 'value';\n }),\n\n method() {\n return 'value';\n },\n\n unknownProperty(key) {\n this.lastUnknownProperty = key;\n return 'unknown';\n }\n\n }).create({\n normal: 'value',\n numberVal: 24,\n toggleVal: true,\n nullProperty: null\n });\n }\n\n ['@test should get normal properties'](assert) {\n assert.equal(object.get('normal'), 'value');\n }\n\n ['@test should call computed properties and return their result'](assert) {\n assert.equal(object.get('computed'), 'value');\n }\n\n ['@test should return the function for a non-computed property'](assert) {\n var value = object.get('method');\n assert.equal(typeof value, 'function');\n }\n\n ['@test should return null when property value is null'](assert) {\n assert.equal(object.get('nullProperty'), null);\n }\n\n ['@test should call unknownProperty when value is undefined'](assert) {\n assert.equal(object.get('unknown'), 'unknown');\n assert.equal(object.lastUnknownProperty, 'unknown');\n }\n\n }); // ..........................................................\n // Ember.GET()\n //\n\n (0, _internalTestHelpers.moduleFor)('Ember.get()', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n objectA = ObservableObject.extend({\n computed: (0, _metal.computed)(function () {\n return 'value';\n }),\n\n method() {\n return 'value';\n },\n\n unknownProperty(key) {\n this.lastUnknownProperty = key;\n return 'unknown';\n }\n\n }).create({\n normal: 'value',\n numberVal: 24,\n toggleVal: true,\n nullProperty: null\n });\n objectB = {\n normal: 'value',\n nullProperty: null\n };\n }\n\n ['@test should get normal properties on Ember.Observable'](assert) {\n assert.equal((0, _metal.get)(objectA, 'normal'), 'value');\n }\n\n ['@test should call computed properties on Ember.Observable and return their result'](assert) {\n assert.equal((0, _metal.get)(objectA, 'computed'), 'value');\n }\n\n ['@test should return the function for a non-computed property on Ember.Observable'](assert) {\n var value = (0, _metal.get)(objectA, 'method');\n assert.equal(typeof value, 'function');\n }\n\n ['@test should return null when property value is null on Ember.Observable'](assert) {\n assert.equal((0, _metal.get)(objectA, 'nullProperty'), null);\n }\n\n ['@test should call unknownProperty when value is undefined on Ember.Observable'](assert) {\n assert.equal((0, _metal.get)(objectA, 'unknown'), 'unknown');\n assert.equal(objectA.lastUnknownProperty, 'unknown');\n }\n\n ['@test should get normal properties on standard objects'](assert) {\n assert.equal((0, _metal.get)(objectB, 'normal'), 'value');\n }\n\n ['@test should return null when property is null on standard objects'](assert) {\n assert.equal((0, _metal.get)(objectB, 'nullProperty'), null);\n }\n\n ['@test raise if the provided object is undefined']() {\n expectAssertion(function () {\n (0, _metal.get)(undefined, 'key');\n }, /Cannot call get with 'key' on an undefined object/i);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Ember.get() with paths', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should return a property at a given path relative to the passed object'](assert) {\n var foo = ObservableObject.create({\n bar: ObservableObject.extend({\n baz: (0, _metal.computed)(function () {\n return 'blargh';\n })\n }).create()\n });\n assert.equal((0, _metal.get)(foo, 'bar.baz'), 'blargh');\n }\n\n ['@test should return a property at a given path relative to the passed object - JavaScript hash'](assert) {\n var foo = {\n bar: {\n baz: 'blargh'\n }\n };\n assert.equal((0, _metal.get)(foo, 'bar.baz'), 'blargh');\n }\n\n }); // ..........................................................\n // SET()\n //\n\n (0, _internalTestHelpers.moduleFor)('object.set()', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n object = ObservableObject.extend({\n computed: (0, _metal.computed)({\n get() {\n return this._computed;\n },\n\n set(key, value) {\n this._computed = value;\n return this._computed;\n }\n\n }),\n\n method(key, value) {\n if (value !== undefined) {\n this._method = value;\n }\n\n return this._method;\n },\n\n unknownProperty() {\n return this._unknown;\n },\n\n setUnknownProperty(key, value) {\n this._unknown = value;\n return this._unknown;\n },\n\n // normal property\n normal: 'value',\n // computed property\n _computed: 'computed',\n // method, but not a property\n _method: 'method',\n // null property\n nullProperty: null,\n // unknown property\n _unknown: 'unknown'\n }).create();\n }\n\n ['@test should change normal properties and return the value'](assert) {\n var ret = object.set('normal', 'changed');\n assert.equal(object.get('normal'), 'changed');\n assert.equal(ret, 'changed');\n }\n\n ['@test should call computed properties passing value and return the value'](assert) {\n var ret = object.set('computed', 'changed');\n assert.equal(object.get('_computed'), 'changed');\n assert.equal(ret, 'changed');\n }\n\n ['@test should change normal properties when passing undefined'](assert) {\n var ret = object.set('normal', undefined);\n assert.equal(object.get('normal'), undefined);\n assert.equal(ret, undefined);\n }\n\n ['@test should replace the function for a non-computed property and return the value'](assert) {\n var ret = object.set('method', 'changed');\n assert.equal(object.get('_method'), 'method'); // make sure this was NOT run\n\n assert.ok(typeof object.get('method') !== 'function');\n assert.equal(ret, 'changed');\n }\n\n ['@test should replace prover when property value is null'](assert) {\n var ret = object.set('nullProperty', 'changed');\n assert.equal(object.get('nullProperty'), 'changed');\n assert.equal(ret, 'changed');\n }\n\n ['@test should call unknownProperty with value when property is undefined'](assert) {\n var ret = object.set('unknown', 'changed');\n assert.equal(object.get('_unknown'), 'changed');\n assert.equal(ret, 'changed');\n }\n\n }); // ..........................................................\n // COMPUTED PROPERTIES\n //\n\n (0, _internalTestHelpers.moduleFor)('Computed properties', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n lookup = _environment.context.lookup = {};\n expectDeprecation(() => {\n object = ObservableObject.extend({\n computed: (0, _metal.computed)({\n get() {\n this.computedCalls.push('getter-called');\n return 'computed';\n },\n\n set(key, value) {\n this.computedCalls.push(value);\n }\n\n }).volatile(),\n computedCached: (0, _metal.computed)({\n get() {\n this.computedCachedCalls.push('getter-called');\n return 'computedCached';\n },\n\n set: function (key, value) {\n this.computedCachedCalls.push(value);\n }\n }),\n dependent: (0, _metal.computed)('changer', {\n get() {\n this.dependentCalls.push('getter-called');\n return 'dependent';\n },\n\n set(key, value) {\n this.dependentCalls.push(value);\n }\n\n }).volatile(),\n dependentFront: (0, _metal.computed)('changer', {\n get() {\n this.dependentFrontCalls.push('getter-called');\n return 'dependentFront';\n },\n\n set(key, value) {\n this.dependentFrontCalls.push(value);\n }\n\n }).volatile(),\n dependentCached: (0, _metal.computed)('changer', {\n get() {\n this.dependentCachedCalls.push('getter-called!');\n return 'dependentCached';\n },\n\n set(key, value) {\n this.dependentCachedCalls.push(value);\n }\n\n }),\n inc: (0, _metal.computed)('changer', function () {\n return this.incCallCount++;\n }),\n nestedInc: (0, _metal.computed)('inc', function () {\n (0, _metal.get)(this, 'inc');\n return this.nestedIncCallCount++;\n }),\n isOn: (0, _metal.computed)('state', {\n get() {\n return this.get('state') === 'on';\n },\n\n set() {\n this.set('state', 'on');\n return this.get('state') === 'on';\n }\n\n }).volatile(),\n isOff: (0, _metal.computed)('state', {\n get() {\n return this.get('state') === 'off';\n },\n\n set() {\n this.set('state', 'off');\n return this.get('state') === 'off';\n }\n\n }).volatile()\n }).create({\n computedCalls: [],\n computedCachedCalls: [],\n changer: 'foo',\n dependentCalls: [],\n dependentFrontCalls: [],\n dependentCachedCalls: [],\n incCallCount: 0,\n nestedIncCallCount: 0,\n state: 'on'\n });\n });\n }\n\n afterEach() {\n _environment.context.lookup = originalLookup;\n }\n\n ['@test getting values should call function return value'](assert) {\n // get each property twice. Verify return.\n var keys = (0, _string.w)('computed computedCached dependent dependentFront dependentCached');\n keys.forEach(function (key) {\n assert.equal(object.get(key), key, \"Try #1: object.get(\" + key + \") should run function\");\n assert.equal(object.get(key), key, \"Try #2: object.get(\" + key + \") should run function\");\n }); // verify each call count. cached should only be called once\n\n (0, _string.w)('computedCalls dependentFrontCalls dependentCalls').forEach(key => {\n assert.equal(object[key].length, 2, \"non-cached property \" + key + \" should be called 2x\");\n });\n (0, _string.w)('computedCachedCalls dependentCachedCalls').forEach(key => {\n assert.equal(object[key].length, 1, \"non-cached property \" + key + \" should be called 1x\");\n });\n }\n\n ['@test setting values should call function return value'](assert) {\n // get each property twice. Verify return.\n var keys = (0, _string.w)('computed dependent dependentFront computedCached dependentCached');\n var values = (0, _string.w)('value1 value2');\n keys.forEach(key => {\n assert.equal(object.set(key, values[0]), values[0], \"Try #1: object.set(\" + key + \", \" + values[0] + \") should run function\");\n assert.equal(object.set(key, values[1]), values[1], \"Try #2: object.set(\" + key + \", \" + values[1] + \") should run function\");\n assert.equal(object.set(key, values[1]), values[1], \"Try #3: object.set(\" + key + \", \" + values[1] + \") should not run function since it is setting same value as before\");\n }); // verify each call count. cached should only be called once\n\n keys.forEach(key => {\n var calls = object[key + 'Calls'];\n var idx, expectedLength; // Cached properties first check their cached value before setting the\n // property. Other properties blindly call set.\n\n expectedLength = 3;\n assert.equal(calls.length, expectedLength, \"set(\" + key + \") should be called the right amount of times\");\n\n for (idx = 0; idx < 2; idx++) {\n assert.equal(calls[idx], values[idx], \"call #\" + (idx + 1) + \" to set(\" + key + \") should have passed value \" + values[idx]);\n }\n });\n }\n\n ['@test notify change should clear cache'](assert) {\n // call get several times to collect call count\n object.get('computedCached'); // should run func\n\n object.get('computedCached'); // should not run func\n\n object.notifyPropertyChange('computedCached');\n object.get('computedCached'); // should run again\n\n assert.equal(object.computedCachedCalls.length, 2, 'should have invoked method 2x');\n }\n\n ['@test change dependent should clear cache'](assert) {\n // call get several times to collect call count\n var ret1 = object.get('inc'); // should run func\n\n assert.equal(object.get('inc'), ret1, 'multiple calls should not run cached prop');\n object.set('changer', 'bar');\n assert.equal(object.get('inc'), ret1 + 1, 'should increment after dependent key changes'); // should run again\n }\n\n ['@test just notifying change of dependent should clear cache'](assert) {\n // call get several times to collect call count\n var ret1 = object.get('inc'); // should run func\n\n assert.equal(object.get('inc'), ret1, 'multiple calls should not run cached prop');\n object.notifyPropertyChange('changer');\n assert.equal(object.get('inc'), ret1 + 1, 'should increment after dependent key changes'); // should run again\n }\n\n ['@test changing dependent should clear nested cache'](assert) {\n // call get several times to collect call count\n var ret1 = object.get('nestedInc'); // should run func\n\n assert.equal(object.get('nestedInc'), ret1, 'multiple calls should not run cached prop');\n object.set('changer', 'bar');\n assert.equal(object.get('nestedInc'), ret1 + 1, 'should increment after dependent key changes'); // should run again\n }\n\n ['@test just notifying change of dependent should clear nested cache'](assert) {\n // call get several times to collect call count\n var ret1 = object.get('nestedInc'); // should run func\n\n assert.equal(object.get('nestedInc'), ret1, 'multiple calls should not run cached prop');\n object.notifyPropertyChange('changer');\n assert.equal(object.get('nestedInc'), ret1 + 1, 'should increment after dependent key changes'); // should run again\n } // This verifies a specific bug encountered where observers for computed\n // properties would fire before their prop caches were cleared.\n\n\n ['@test change dependent should clear cache when observers of dependent are called'](assert) {\n // call get several times to collect call count\n var ret1 = object.get('inc'); // should run func\n\n assert.equal(object.get('inc'), ret1, 'multiple calls should not run cached prop'); // add observer to verify change...\n\n object.addObserver('inc', this, function () {\n assert.equal(object.get('inc'), ret1 + 1, 'should increment after dependent key changes'); // should run again\n }); // now run\n\n object.set('changer', 'bar');\n }\n\n ['@test setting one of two computed properties that depend on a third property should clear the kvo cache'](assert) {\n // we have to call set twice to fill up the cache\n object.set('isOff', true);\n object.set('isOn', true); // setting isOff to true should clear the kvo cache\n\n object.set('isOff', true);\n assert.equal(object.get('isOff'), true, 'object.isOff should be true');\n assert.equal(object.get('isOn'), false, 'object.isOn should be false');\n }\n\n ['@test dependent keys should be able to be specified as property paths'](assert) {\n var depObj = ObservableObject.extend({\n menuPrice: (0, _metal.computed)('menu.price', function () {\n return this.get('menu.price');\n })\n }).create({\n menu: ObservableObject.create({\n price: 5\n })\n });\n assert.equal(depObj.get('menuPrice'), 5, 'precond - initial value returns 5');\n depObj.set('menu.price', 6);\n assert.equal(depObj.get('menuPrice'), 6, 'cache is properly invalidated after nested property changes');\n }\n\n ['@test cacheable nested dependent keys should clear after their dependencies update'](assert) {\n assert.ok(true);\n var DepObj;\n (0, _runloop.run)(function () {\n lookup.DepObj = DepObj = ObservableObject.extend({\n price: (0, _metal.computed)('restaurant.menu.price', function () {\n return this.get('restaurant.menu.price');\n })\n }).create({\n restaurant: ObservableObject.create({\n menu: ObservableObject.create({\n price: 5\n })\n })\n });\n });\n assert.equal(DepObj.get('price'), 5, 'precond - computed property is correct');\n (0, _runloop.run)(function () {\n DepObj.set('restaurant.menu.price', 10);\n });\n assert.equal(DepObj.get('price'), 10, 'cacheable computed properties are invalidated even if no run loop occurred');\n (0, _runloop.run)(function () {\n DepObj.set('restaurant.menu.price', 20);\n });\n assert.equal(DepObj.get('price'), 20, 'cacheable computed properties are invalidated after a second get before a run loop');\n assert.equal(DepObj.get('price'), 20, 'precond - computed properties remain correct after a run loop');\n (0, _runloop.run)(function () {\n DepObj.set('restaurant.menu', ObservableObject.create({\n price: 15\n }));\n });\n assert.equal(DepObj.get('price'), 15, 'cacheable computed properties are invalidated after a middle property changes');\n (0, _runloop.run)(function () {\n DepObj.set('restaurant.menu', ObservableObject.create({\n price: 25\n }));\n });\n assert.equal(DepObj.get('price'), 25, 'cacheable computed properties are invalidated after a middle property changes again, before a run loop');\n }\n\n }); // ..........................................................\n // OBSERVABLE OBJECTS\n //\n\n (0, _internalTestHelpers.moduleFor)('Observable objects & object properties ', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n object = ObservableObject.extend({\n getEach() {\n var keys = ['normal', 'abnormal'];\n var ret = [];\n\n for (var idx = 0; idx < keys.length; idx++) {\n ret[ret.length] = this.get(keys[idx]);\n }\n\n return ret;\n },\n\n newObserver() {\n this.abnormal = 'changedValueObserved';\n },\n\n testObserver: (0, _metal.observer)('normal', function () {\n this.abnormal = 'removedObserver';\n }),\n testArrayObserver: (0, _metal.observer)('normalArray.[]', function () {\n this.abnormal = 'notifiedObserver';\n })\n }).create({\n normal: 'value',\n abnormal: 'zeroValue',\n numberVal: 24,\n toggleVal: true,\n observedProperty: 'beingWatched',\n testRemove: 'observerToBeRemoved',\n normalArray: (0, _array.A)([1, 2, 3, 4, 5])\n });\n }\n\n ['@test incrementProperty and decrementProperty'](assert) {\n var newValue = object.incrementProperty('numberVal');\n assert.equal(25, newValue, 'numerical value incremented');\n object.numberVal = 24;\n newValue = object.decrementProperty('numberVal');\n assert.equal(23, newValue, 'numerical value decremented');\n object.numberVal = 25;\n newValue = object.incrementProperty('numberVal', 5);\n assert.equal(30, newValue, 'numerical value incremented by specified increment');\n object.numberVal = 25;\n newValue = object.incrementProperty('numberVal', -5);\n assert.equal(20, newValue, 'minus numerical value incremented by specified increment');\n object.numberVal = 25;\n newValue = object.incrementProperty('numberVal', 0);\n assert.equal(25, newValue, 'zero numerical value incremented by specified increment');\n expectAssertion(function () {\n newValue = object.incrementProperty('numberVal', 0 - void 0); // Increment by NaN\n }, /Must pass a numeric value to incrementProperty/i);\n expectAssertion(function () {\n newValue = object.incrementProperty('numberVal', 'Ember'); // Increment by non-numeric String\n }, /Must pass a numeric value to incrementProperty/i);\n expectAssertion(function () {\n newValue = object.incrementProperty('numberVal', 1 / 0); // Increment by Infinity\n }, /Must pass a numeric value to incrementProperty/i);\n assert.equal(25, newValue, 'Attempting to increment by non-numeric values should not increment value');\n object.numberVal = 25;\n newValue = object.decrementProperty('numberVal', 5);\n assert.equal(20, newValue, 'numerical value decremented by specified increment');\n object.numberVal = 25;\n newValue = object.decrementProperty('numberVal', -5);\n assert.equal(30, newValue, 'minus numerical value decremented by specified increment');\n object.numberVal = 25;\n newValue = object.decrementProperty('numberVal', 0);\n assert.equal(25, newValue, 'zero numerical value decremented by specified increment');\n expectAssertion(function () {\n newValue = object.decrementProperty('numberVal', 0 - void 0); // Decrement by NaN\n }, /Must pass a numeric value to decrementProperty/i);\n expectAssertion(function () {\n newValue = object.decrementProperty('numberVal', 'Ember'); // Decrement by non-numeric String\n }, /Must pass a numeric value to decrementProperty/i);\n expectAssertion(function () {\n newValue = object.decrementProperty('numberVal', 1 / 0); // Decrement by Infinity\n }, /Must pass a numeric value to decrementProperty/i);\n assert.equal(25, newValue, 'Attempting to decrement by non-numeric values should not decrement value');\n }\n\n ['@test toggle function, should be boolean'](assert) {\n assert.equal(object.toggleProperty('toggleVal', true, false), object.get('toggleVal'));\n assert.equal(object.toggleProperty('toggleVal', true, false), object.get('toggleVal'));\n assert.equal(object.toggleProperty('toggleVal', undefined, undefined), object.get('toggleVal'));\n }\n\n ['@test should notify array observer when array changes'](assert) {\n (0, _metal.get)(object, 'normalArray').replace(0, 0, [6]);\n assert.equal(object.abnormal, 'notifiedObserver', 'observer should be notified');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('object.addObserver()', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n ObjectC = ObservableObject.create({\n objectE: ObservableObject.create({\n propertyVal: 'chainedProperty'\n }),\n normal: 'value',\n normal1: 'zeroValue',\n normal2: 'dependentValue',\n incrementor: 10,\n\n action() {\n this.normal1 = 'newZeroValue';\n },\n\n observeOnceAction() {\n this.incrementor = this.incrementor + 1;\n },\n\n chainedObserver() {\n this.normal2 = 'chainedPropertyObserved';\n }\n\n });\n }\n\n ['@test should register an observer for a property'](assert) {\n ObjectC.addObserver('normal', ObjectC, 'action');\n ObjectC.set('normal', 'newValue');\n assert.equal(ObjectC.normal1, 'newZeroValue');\n }\n\n ['@test should register an observer for a property - Special case of chained property'](assert) {\n ObjectC.addObserver('objectE.propertyVal', ObjectC, 'chainedObserver');\n ObjectC.objectE.set('propertyVal', 'chainedPropertyValue');\n assert.equal('chainedPropertyObserved', ObjectC.normal2);\n ObjectC.normal2 = 'dependentValue';\n ObjectC.set('objectE', '');\n assert.equal('chainedPropertyObserved', ObjectC.normal2);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('object.removeObserver()', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n ObjectD = ObservableObject.create({\n objectF: ObservableObject.create({\n propertyVal: 'chainedProperty'\n }),\n normal: 'value',\n normal1: 'zeroValue',\n normal2: 'dependentValue',\n ArrayKeys: ['normal', 'normal1'],\n\n addAction() {\n this.normal1 = 'newZeroValue';\n },\n\n removeAction() {\n this.normal2 = 'newDependentValue';\n },\n\n removeChainedObserver() {\n this.normal2 = 'chainedPropertyObserved';\n },\n\n observableValue: 'hello world',\n\n observer1() {// Just an observer\n },\n\n observer2() {\n this.removeObserver('observableValue', null, 'observer1');\n this.removeObserver('observableValue', null, 'observer2');\n this.hasObserverFor('observableValue'); // Tickle 'getMembers()'\n\n this.removeObserver('observableValue', null, 'observer3');\n },\n\n observer3() {// Just an observer\n }\n\n });\n }\n\n ['@test should unregister an observer for a property'](assert) {\n ObjectD.addObserver('normal', ObjectD, 'addAction');\n ObjectD.set('normal', 'newValue');\n assert.equal(ObjectD.normal1, 'newZeroValue');\n ObjectD.set('normal1', 'zeroValue');\n ObjectD.removeObserver('normal', ObjectD, 'addAction');\n ObjectD.set('normal', 'newValue');\n assert.equal(ObjectD.normal1, 'zeroValue');\n }\n\n [\"@test should unregister an observer for a property - special case when key has a '.' in it.\"](assert) {\n ObjectD.addObserver('objectF.propertyVal', ObjectD, 'removeChainedObserver');\n ObjectD.objectF.set('propertyVal', 'chainedPropertyValue');\n ObjectD.removeObserver('objectF.propertyVal', ObjectD, 'removeChainedObserver');\n ObjectD.normal2 = 'dependentValue';\n ObjectD.objectF.set('propertyVal', 'removedPropertyValue');\n assert.equal('dependentValue', ObjectD.normal2);\n ObjectD.set('objectF', '');\n assert.equal('dependentValue', ObjectD.normal2);\n }\n\n ['@test removing an observer inside of an observer shouldn’t cause any problems'](assert) {\n // The observable system should be protected against clients removing\n // observers in the middle of observer notification.\n var encounteredError = false;\n\n try {\n ObjectD.addObserver('observableValue', null, 'observer1');\n ObjectD.addObserver('observableValue', null, 'observer2');\n ObjectD.addObserver('observableValue', null, 'observer3');\n (0, _runloop.run)(function () {\n ObjectD.set('observableValue', 'hi world');\n });\n } catch (e) {\n encounteredError = true;\n }\n\n assert.equal(encounteredError, false);\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/legacy_1x/mixins/observable/propertyChanges_test\", [\"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/observable\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_object, _observable, _metal, _internalTestHelpers) {\n \"use strict\";\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * Create ObservableObject which includes Ember.Observable\n * Remove test that tests internal _kvo_changeLevel property. This is an\n implementation detail.\n * Remove test for allPropertiesDidChange\n * Removed star observer test. no longer supported\n * Removed property revision test. no longer supported\n */\n // ========================================================================\n // Ember.Observable Tests\n // ========================================================================\n const ObservableObject = _object.default.extend(_observable.default);\n\n let ObjectA;\n (0, _internalTestHelpers.moduleFor)('object.propertyChanges', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n ObjectA = ObservableObject.extend({\n action: (0, _metal.observer)('foo', function () {\n this.set('prop', 'changedPropValue');\n }),\n notifyAction: (0, _metal.observer)('newFoo', function () {\n this.set('newProp', 'changedNewPropValue');\n }),\n notifyAllAction: (0, _metal.observer)('prop', function () {\n this.set('newFoo', 'changedNewFooValue');\n }),\n\n starObserver(target, key) {\n this.starProp = key;\n }\n\n }).create({\n starProp: null,\n foo: 'fooValue',\n prop: 'propValue',\n newFoo: 'newFooValue',\n newProp: 'newPropValue'\n });\n }\n\n ['@test should observe the changes within the nested begin / end property changes'](assert) {\n //start the outer nest\n ObjectA.beginPropertyChanges(); // Inner nest\n\n ObjectA.beginPropertyChanges();\n ObjectA.set('foo', 'changeFooValue');\n assert.equal(ObjectA.prop, 'propValue');\n ObjectA.endPropertyChanges(); //end inner nest\n\n ObjectA.set('prop', 'changePropValue');\n assert.equal(ObjectA.newFoo, 'newFooValue'); //close the outer nest\n\n ObjectA.endPropertyChanges();\n assert.equal(ObjectA.prop, 'changedPropValue');\n assert.equal(ObjectA.newFoo, 'changedNewFooValue');\n }\n\n ['@test should observe the changes within the begin and end property changes'](assert) {\n ObjectA.beginPropertyChanges();\n ObjectA.set('foo', 'changeFooValue');\n assert.equal(ObjectA.prop, 'propValue');\n ObjectA.endPropertyChanges();\n assert.equal(ObjectA.prop, 'changedPropValue');\n }\n\n ['@test should indicate that the property of an object has just changed'](assert) {\n //change the value of foo.\n ObjectA.set('foo', 'changeFooValue'); // Indicate the subscribers of foo that the value has just changed\n\n ObjectA.notifyPropertyChange('foo', null); // Values of prop has just changed\n\n assert.equal(ObjectA.prop, 'changedPropValue');\n }\n\n ['@test should notify that the property of an object has changed'](assert) {\n // Notify to its subscriber that the values of 'newFoo' will be changed. In this\n // case the observer is \"newProp\". Therefore this will call the notifyAction function\n // and value of \"newProp\" will be changed.\n ObjectA.notifyPropertyChange('newFoo', 'fooValue'); //value of newProp changed.\n\n assert.equal(ObjectA.newProp, 'changedNewPropValue');\n }\n\n ['@test should invalidate function property cache when notifyPropertyChange is called'](assert) {\n let a;\n expectDeprecation(() => {\n a = ObservableObject.extend({\n b: (0, _metal.computed)({\n get() {\n return this._b;\n },\n\n set(key, value) {\n this._b = value;\n return this;\n }\n\n }).volatile()\n }).create({\n _b: null\n });\n }, /Setting a computed property as volatile has been deprecated/);\n a.set('b', 'foo');\n assert.equal(a.get('b'), 'foo', 'should have set the correct value for property b');\n a._b = 'bar';\n a.notifyPropertyChange('b');\n a.set('b', 'foo');\n assert.equal(a.get('b'), 'foo', 'should have invalidated the cache so that the newly set value is actually set');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/legacy_1x/system/object/base_test\", [\"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_metal, _object, _internalTestHelpers) {\n \"use strict\";\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * Changed get(obj, ) and set(obj, ) to Ember.get() and Ember.set()\n * Removed obj.instanceOf() and obj.kindOf() tests. use obj instanceof Foo\n instead\n * Removed respondsTo() and tryToPerform() tests. Can be brought back in a\n utils package.\n * Removed destroy() test. You can impl yourself but not built in\n * Changed Class.subclassOf() test to Class.detect()\n * Remove broken test for 'superclass' property.\n * Removed obj.didChangeFor()\n */\n // ========================================================================\n // EmberObject Base Tests\n // ========================================================================\n let obj, obj1; // global variables\n\n (0, _internalTestHelpers.moduleFor)('A new EmberObject instance', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _object.default.create({\n foo: 'bar',\n total: 12345,\n\n aMethodThatExists() {},\n\n aMethodThatReturnsTrue() {\n return true;\n },\n\n aMethodThatReturnsFoobar() {\n return 'Foobar';\n },\n\n aMethodThatReturnsFalse() {\n return false;\n }\n\n });\n }\n\n afterEach() {\n obj = undefined;\n }\n\n ['@test Should return its properties when requested using EmberObject#get'](assert) {\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar');\n assert.equal((0, _metal.get)(obj, 'total'), 12345);\n }\n\n ['@test Should allow changing of those properties by calling EmberObject#set'](assert) {\n assert.equal((0, _metal.get)(obj, 'foo'), 'bar');\n assert.equal((0, _metal.get)(obj, 'total'), 12345);\n (0, _metal.set)(obj, 'foo', 'Chunky Bacon');\n (0, _metal.set)(obj, 'total', 12);\n assert.equal((0, _metal.get)(obj, 'foo'), 'Chunky Bacon');\n assert.equal((0, _metal.get)(obj, 'total'), 12);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('EmberObject superclass and subclasses', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _object.default.extend({\n method1() {\n return 'hello';\n }\n\n });\n obj1 = obj.extend();\n }\n\n afterEach() {\n obj = undefined;\n obj1 = undefined;\n }\n\n ['@test Checking the detect() function on an object and its subclass'](assert) {\n assert.equal(obj.detect(obj1), true);\n assert.equal(obj1.detect(obj), false);\n }\n\n ['@test Checking the detectInstance() function on an object and its subclass'](assert) {\n assert.ok(_object.default.detectInstance(obj.create()));\n assert.ok(obj.detectInstance(obj.create()));\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/legacy_1x/system/object/concatenated_test\", [\"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_metal, _object, _internalTestHelpers) {\n \"use strict\";\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * changed get(obj, ) and set(obj, ) to Ember.get() and Ember.set()\n * converted uses of obj.isEqual() to use deepEqual() test since isEqual is not\n always defined\n */\n function K() {\n return this;\n }\n\n let klass;\n (0, _internalTestHelpers.moduleFor)('EmberObject Concatenated Properties', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n klass = _object.default.extend({\n concatenatedProperties: ['values', 'functions'],\n values: ['a', 'b', 'c'],\n functions: [K]\n });\n }\n\n ['@test concatenates instances'](assert) {\n let obj = klass.create({\n values: ['d', 'e', 'f']\n });\n let values = (0, _metal.get)(obj, 'values');\n let expected = ['a', 'b', 'c', 'd', 'e', 'f'];\n assert.deepEqual(values, expected, \"should concatenate values property (expected: \" + expected + \", got: \" + values + \")\");\n }\n\n ['@test concatenates subclasses'](assert) {\n let subKlass = klass.extend({\n values: ['d', 'e', 'f']\n });\n let obj = subKlass.create();\n let values = (0, _metal.get)(obj, 'values');\n let expected = ['a', 'b', 'c', 'd', 'e', 'f'];\n assert.deepEqual(values, expected, \"should concatenate values property (expected: \" + expected + \", got: \" + values + \")\");\n }\n\n ['@test concatenates reopen'](assert) {\n klass.reopen({\n values: ['d', 'e', 'f']\n });\n let obj = klass.create();\n let values = (0, _metal.get)(obj, 'values');\n let expected = ['a', 'b', 'c', 'd', 'e', 'f'];\n assert.deepEqual(values, expected, \"should concatenate values property (expected: \" + expected + \", got: \" + values + \")\");\n }\n\n ['@test concatenates mixin'](assert) {\n let mixin = {\n values: ['d', 'e']\n };\n let subKlass = klass.extend(mixin, {\n values: ['f']\n });\n let obj = subKlass.create();\n let values = (0, _metal.get)(obj, 'values');\n let expected = ['a', 'b', 'c', 'd', 'e', 'f'];\n assert.deepEqual(values, expected, \"should concatenate values property (expected: \" + expected + \", got: \" + values + \")\");\n }\n\n ['@test concatenates reopen, subclass, and instance'](assert) {\n klass.reopen({\n values: ['d']\n });\n let subKlass = klass.extend({\n values: ['e']\n });\n let obj = subKlass.create({\n values: ['f']\n });\n let values = (0, _metal.get)(obj, 'values');\n let expected = ['a', 'b', 'c', 'd', 'e', 'f'];\n assert.deepEqual(values, expected, \"should concatenate values property (expected: \" + expected + \", got: \" + values + \")\");\n }\n\n ['@test concatenates subclasses when the values are functions'](assert) {\n let subKlass = klass.extend({\n functions: K\n });\n let obj = subKlass.create();\n let values = (0, _metal.get)(obj, 'functions');\n let expected = [K, K];\n assert.deepEqual(values, expected, \"should concatenate functions property (expected: \" + expected + \", got: \" + values + \")\");\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/mixins/array_test\", [\"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_metal, _object, _array, _internalTestHelpers) {\n \"use strict\";\n\n /*\n Implement a basic fake mutable array. This validates that any non-native\n enumerable can impl this API.\n */\n const TestArray = _object.default.extend(_array.default, {\n _content: null,\n\n init() {\n this._content = this._content || [];\n },\n\n // some methods to modify the array so we can test changes. Note that\n // arrays can be modified even if they don't implement MutableArray. The\n // MutableArray is just a standard API for mutation but not required.\n addObject(obj) {\n let idx = this._content.length;\n (0, _metal.arrayContentWillChange)(this, idx, 0, 1);\n\n this._content.push(obj);\n\n (0, _metal.arrayContentDidChange)(this, idx, 0, 1);\n },\n\n removeFirst() {\n (0, _metal.arrayContentWillChange)(this, 0, 1, 0);\n\n this._content.shift();\n\n (0, _metal.arrayContentDidChange)(this, 0, 1, 0);\n },\n\n objectAt(idx) {\n return this._content[idx];\n },\n\n length: (0, _metal.computed)(function () {\n return this._content.length;\n })\n });\n\n (0, _internalTestHelpers.moduleFor)('Ember.Array', class extends _internalTestHelpers.AbstractTestCase {\n ['@test the return value of slice has Ember.Array applied'](assert) {\n let x = _object.default.extend(_array.default).create({\n length: 0\n });\n\n let y = x.slice(1);\n assert.equal(_array.default.detect(y), true, 'mixin should be applied');\n }\n\n ['@test slice supports negative index arguments'](assert) {\n let testArray = TestArray.create({\n _content: [1, 2, 3, 4]\n });\n assert.deepEqual(testArray.slice(-2), [3, 4], 'slice(-2)');\n assert.deepEqual(testArray.slice(-2, -1), [3], 'slice(-2, -1');\n assert.deepEqual(testArray.slice(-2, -2), [], 'slice(-2, -2)');\n assert.deepEqual(testArray.slice(-1, -2), [], 'slice(-1, -2)');\n assert.deepEqual(testArray.slice(-4, 1), [1], 'slice(-4, 1)');\n assert.deepEqual(testArray.slice(-4, 5), [1, 2, 3, 4], 'slice(-4, 5)');\n assert.deepEqual(testArray.slice(-4), [1, 2, 3, 4], 'slice(-4)');\n assert.deepEqual(testArray.slice(0, -1), [1, 2, 3], 'slice(0, -1)');\n assert.deepEqual(testArray.slice(0, -4), [], 'slice(0, -4)');\n assert.deepEqual(testArray.slice(0, -3), [1], 'slice(0, -3)');\n }\n\n }); // ..........................................................\n // CONTENT DID CHANGE\n //\n\n const DummyArray = _object.default.extend(_array.default, {\n length: 0,\n\n objectAt(idx) {\n return 'ITEM-' + idx;\n }\n\n });\n\n let obj, observer; // ..........................................................\n // NOTIFY ARRAY OBSERVERS\n //\n\n (0, _internalTestHelpers.moduleFor)('mixins/array/arrayContent[Will|Did]Change', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should notify observers of []'](assert) {\n obj = DummyArray.extend({\n enumerablePropertyDidChange: (0, _metal.observer)('[]', function () {\n this._count++;\n })\n }).create({\n _count: 0\n });\n assert.equal(obj._count, 0, 'should not have invoked yet');\n (0, _metal.arrayContentWillChange)(obj, 0, 1, 1);\n (0, _metal.arrayContentDidChange)(obj, 0, 1, 1);\n assert.equal(obj._count, 1, 'should have invoked');\n }\n\n }); // ..........................................................\n // NOTIFY CHANGES TO LENGTH\n //\n\n (0, _internalTestHelpers.moduleFor)('notify observers of length', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach(assert) {\n obj = DummyArray.extend({\n lengthDidChange: (0, _metal.observer)('length', function () {\n this._after++;\n })\n }).create({\n _after: 0\n });\n assert.equal(obj._after, 0, 'should not have fired yet');\n }\n\n afterEach() {\n obj = null;\n }\n\n ['@test should notify observers when call with no params'](assert) {\n (0, _metal.arrayContentWillChange)(obj);\n assert.equal(obj._after, 0);\n (0, _metal.arrayContentDidChange)(obj);\n assert.equal(obj._after, 1);\n } // API variation that included items only\n\n\n ['@test should not notify when passed lengths are same'](assert) {\n (0, _metal.arrayContentWillChange)(obj, 0, 1, 1);\n assert.equal(obj._after, 0);\n (0, _metal.arrayContentDidChange)(obj, 0, 1, 1);\n assert.equal(obj._after, 0);\n }\n\n ['@test should notify when passed lengths are different'](assert) {\n (0, _metal.arrayContentWillChange)(obj, 0, 1, 2);\n assert.equal(obj._after, 0);\n (0, _metal.arrayContentDidChange)(obj, 0, 1, 2);\n assert.equal(obj._after, 1);\n }\n\n }); // ..........................................................\n // NOTIFY ARRAY OBSERVER\n //\n\n (0, _internalTestHelpers.moduleFor)('notify array observers', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach(assert) {\n obj = DummyArray.create();\n observer = _object.default.extend({\n arrayWillChange() {\n assert.equal(this._before, null); // should only call once\n\n this._before = Array.prototype.slice.call(arguments);\n },\n\n arrayDidChange() {\n assert.equal(this._after, null); // should only call once\n\n this._after = Array.prototype.slice.call(arguments);\n }\n\n }).create({\n _before: null,\n _after: null\n });\n (0, _metal.addArrayObserver)(obj, observer);\n }\n\n afterEach() {\n obj = observer = null;\n }\n\n ['@test should notify array observers when called with no params'](assert) {\n (0, _metal.arrayContentWillChange)(obj);\n assert.deepEqual(observer._before, [obj, 0, -1, -1]);\n (0, _metal.arrayContentDidChange)(obj);\n assert.deepEqual(observer._after, [obj, 0, -1, -1]);\n } // API variation that included items only\n\n\n ['@test should notify when called with same length items'](assert) {\n (0, _metal.arrayContentWillChange)(obj, 0, 1, 1);\n assert.deepEqual(observer._before, [obj, 0, 1, 1]);\n (0, _metal.arrayContentDidChange)(obj, 0, 1, 1);\n assert.deepEqual(observer._after, [obj, 0, 1, 1]);\n }\n\n ['@test should notify when called with diff length items'](assert) {\n (0, _metal.arrayContentWillChange)(obj, 0, 2, 1);\n assert.deepEqual(observer._before, [obj, 0, 2, 1]);\n (0, _metal.arrayContentDidChange)(obj, 0, 2, 1);\n assert.deepEqual(observer._after, [obj, 0, 2, 1]);\n }\n\n ['@test removing array observer should disable'](assert) {\n (0, _metal.removeArrayObserver)(obj, observer);\n (0, _metal.arrayContentWillChange)(obj);\n assert.deepEqual(observer._before, null);\n (0, _metal.arrayContentDidChange)(obj);\n assert.deepEqual(observer._after, null);\n }\n\n }); // ..........................................................\n // @each\n //\n\n let ary;\n (0, _internalTestHelpers.moduleFor)('EmberArray.@each support', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n ary = TestArray.create({\n _content: [{\n isDone: true,\n desc: 'Todo 1'\n }, {\n isDone: false,\n desc: 'Todo 2'\n }, {\n isDone: true,\n desc: 'Todo 3'\n }, {\n isDone: false,\n desc: 'Todo 4'\n }]\n });\n }\n\n afterEach() {\n ary = null;\n }\n\n ['@test adding an object should notify (@each.isDone)'](assert) {\n let called = 0;\n\n let observerObject = _object.default.create({\n wasCalled() {\n called++;\n }\n\n });\n\n (0, _metal.addObserver)(ary, '@each.isDone', observerObject, 'wasCalled');\n ary.addObject(_object.default.create({\n desc: 'foo',\n isDone: false\n }));\n assert.equal(called, 1, 'calls observer when object is pushed');\n }\n\n ['@test using @each to observe arrays that does not return objects raise error'](assert) {\n let called = 0;\n\n let observerObject = _object.default.create({\n wasCalled() {\n called++;\n }\n\n });\n\n ary = TestArray.create({\n objectAt(idx) {\n return (0, _metal.get)(this._content[idx], 'desc');\n }\n\n });\n (0, _metal.addObserver)(ary, '@each.isDone', observerObject, 'wasCalled');\n expectAssertion(() => {\n ary.addObject(_object.default.create({\n desc: 'foo',\n isDone: false\n }));\n }, /When using @each to observe the array/);\n assert.equal(called, 0, 'not calls observer when object is pushed');\n }\n\n ['@test `objectAt` returns correct object'](assert) {\n let arr = ['first', 'second', 'third', 'fourth'];\n assert.equal((0, _metal.objectAt)(arr, 2), 'third');\n assert.equal((0, _metal.objectAt)(arr, 4), undefined);\n }\n\n ['@test should be clear caches for computed properties that have dependent keys on arrays that are changed after object initialization'](assert) {\n let obj = _object.default.extend({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'resources', (0, _array.A)());\n },\n\n common: (0, _metal.computed)('resources.@each.common', function () {\n return (0, _metal.get)((0, _metal.objectAt)((0, _metal.get)(this, 'resources'), 0), 'common');\n })\n }).create();\n\n (0, _metal.get)(obj, 'resources').pushObject(_object.default.create({\n common: 'HI!'\n }));\n assert.equal('HI!', (0, _metal.get)(obj, 'common'));\n (0, _metal.set)((0, _metal.objectAt)((0, _metal.get)(obj, 'resources'), 0), 'common', 'BYE!');\n assert.equal('BYE!', (0, _metal.get)(obj, 'common'));\n }\n\n ['@test observers that contain @each in the path should fire only once the first time they are accessed'](assert) {\n let count = 0;\n\n let obj = _object.default.extend({\n init() {\n this._super(...arguments); // Observer does not fire on init\n\n\n (0, _metal.set)(this, 'resources', (0, _array.A)());\n },\n\n commonDidChange: (0, _metal.observer)('resources.@each.common', () => count++)\n }).create(); // Observer fires second time when new object is added\n\n\n (0, _metal.get)(obj, 'resources').pushObject(_object.default.create({\n common: 'HI!'\n })); // Observer fires third time when property on an object is changed\n\n (0, _metal.set)((0, _metal.objectAt)((0, _metal.get)(obj, 'resources'), 0), 'common', 'BYE!');\n assert.equal(count, 2, 'observers should only be called once');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/mixins/comparable_test\", [\"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/compare\", \"@ember/-internals/runtime/lib/mixins/comparable\", \"internal-test-helpers\"], function (_metal, _object, _compare, _comparable, _internalTestHelpers) {\n \"use strict\";\n\n const Rectangle = _object.default.extend(_comparable.default, {\n length: 0,\n width: 0,\n\n area() {\n return (0, _metal.get)(this, 'length') * (0, _metal.get)(this, 'width');\n },\n\n compare(a, b) {\n return (0, _compare.default)(a.area(), b.area());\n }\n\n });\n\n let r1, r2;\n (0, _internalTestHelpers.moduleFor)('Comparable', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n r1 = Rectangle.create({\n length: 6,\n width: 12\n });\n r2 = Rectangle.create({\n length: 6,\n width: 13\n });\n }\n\n ['@test should be comparable and return the correct result'](assert) {\n assert.equal(_comparable.default.detect(r1), true);\n assert.equal((0, _compare.default)(r1, r1), 0);\n assert.equal((0, _compare.default)(r1, r2), -1);\n assert.equal((0, _compare.default)(r2, r1), 1);\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/mixins/container_proxy_test\", [\"@ember/-internals/owner\", \"@ember/-internals/container\", \"@ember/-internals/runtime/lib/mixins/container_proxy\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/runloop\", \"internal-test-helpers\"], function (_owner, _container, _container_proxy, _object, _runloop, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('@ember/-internals/runtime/mixins/container_proxy', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n this.Owner = _object.default.extend(_container_proxy.default);\n this.instance = this.Owner.create();\n this.registry = new _container.Registry();\n this.instance.__container__ = new _container.Container(this.registry, {\n owner: this.instance\n });\n }\n\n ['@test provides ownerInjection helper method'](assert) {\n let result = this.instance.ownerInjection();\n assert.equal(result[_owner.OWNER], this.instance, 'returns an object with the OWNER symbol');\n }\n\n ['@test actions queue completes before destruction'](assert) {\n assert.expect(1);\n this.registry.register('service:auth', _object.default.extend({\n willDestroy() {\n assert.ok((0, _owner.getOwner)(this).lookup('service:auth'), 'can still lookup');\n }\n\n }));\n let service = this.instance.lookup('service:auth');\n (0, _runloop.run)(() => {\n (0, _runloop.schedule)('actions', service, 'destroy');\n this.instance.destroy();\n });\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/mixins/enumerable_test\", [\"@ember/-internals/runtime/lib/mixins/enumerable\", \"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_enumerable, _array_proxy, _array, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Enumerable', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should be mixed into A()'](assert) {\n assert.ok(_enumerable.default.detect((0, _array.A)()));\n }\n\n ['@test should be mixed into ArrayProxy'](assert) {\n assert.ok(_enumerable.default.detect(_array_proxy.default.create()));\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/mixins/evented_test\", [\"@ember/-internals/runtime/lib/mixins/evented\", \"@ember/-internals/runtime/lib/system/core_object\", \"internal-test-helpers\"], function (_evented, _core_object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember.Evented', class extends _internalTestHelpers.AbstractTestCase {\n ['@test works properly on proxy-ish objects'](assert) {\n let eventedProxyObj = _core_object.default.extend(_evented.default, {\n unknownProperty() {\n return true;\n }\n\n }).create();\n\n let noop = function () {};\n\n eventedProxyObj.on('foo', noop);\n eventedProxyObj.off('foo', noop);\n assert.ok(true, 'An assertion was triggered');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/mixins/mutable_enumerable_test\", [\"@ember/-internals/runtime/lib/mixins/mutable_enumerable\", \"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_mutable_enumerable, _array_proxy, _array, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('MutableEnumerable', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should be mixed into A()'](assert) {\n assert.ok(_mutable_enumerable.default.detect((0, _array.A)()));\n }\n\n ['@test should be mixed into ArrayProxy'](assert) {\n assert.ok(_mutable_enumerable.default.detect(_array_proxy.default.create()));\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/mixins/observable_test\", [\"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_metal, _object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('mixins/observable', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should be able to use getProperties to get a POJO of provided keys'](assert) {\n let obj = _object.default.create({\n firstName: 'Steve',\n lastName: 'Jobs',\n companyName: 'Apple, Inc.'\n });\n\n let pojo = obj.getProperties('firstName', 'lastName');\n assert.equal('Steve', pojo.firstName);\n assert.equal('Jobs', pojo.lastName);\n }\n\n ['@test should be able to use getProperties with array parameter to get a POJO of provided keys'](assert) {\n let obj = _object.default.create({\n firstName: 'Steve',\n lastName: 'Jobs',\n companyName: 'Apple, Inc.'\n });\n\n let pojo = obj.getProperties(['firstName', 'lastName']);\n assert.equal('Steve', pojo.firstName);\n assert.equal('Jobs', pojo.lastName);\n }\n\n ['@test should be able to use setProperties to set multiple properties at once'](assert) {\n let obj = _object.default.create({\n firstName: 'Steve',\n lastName: 'Jobs',\n companyName: 'Apple, Inc.'\n });\n\n obj.setProperties({\n firstName: 'Tim',\n lastName: 'Cook'\n });\n assert.equal('Tim', obj.get('firstName'));\n assert.equal('Cook', obj.get('lastName'));\n }\n\n ['@test calling setProperties completes safely despite exceptions'](assert) {\n let exc = new Error('Something unexpected happened!');\n\n let obj = _object.default.extend({\n companyName: (0, _metal.computed)({\n get() {\n return 'Apple, Inc.';\n },\n\n set() {\n throw exc;\n }\n\n })\n }).create({\n firstName: 'Steve',\n lastName: 'Jobs'\n });\n\n let firstNameChangedCount = 0;\n (0, _metal.addObserver)(obj, 'firstName', () => firstNameChangedCount++);\n\n try {\n obj.setProperties({\n firstName: 'Tim',\n lastName: 'Cook',\n companyName: 'Fruit Co., Inc.'\n });\n } catch (err) {\n if (err !== exc) {\n throw err;\n }\n }\n\n assert.equal(firstNameChangedCount, 1, 'firstName should have fired once');\n }\n\n ['@test should be able to retrieve cached values of computed properties without invoking the computed property'](assert) {\n let obj = _object.default.extend({\n foo: (0, _metal.computed)(function () {\n return 'foo';\n })\n }).create({\n bar: 'bar'\n });\n\n assert.equal(obj.cacheFor('foo'), undefined, 'should return undefined if no value has been cached');\n (0, _metal.get)(obj, 'foo');\n assert.equal((0, _metal.get)(obj, 'foo'), 'foo', 'precond - should cache the value');\n assert.equal(obj.cacheFor('foo'), 'foo', 'should return the cached value after it is invoked');\n assert.equal(obj.cacheFor('bar'), undefined, 'returns undefined if the value is not a computed property');\n }\n\n ['@test incrementProperty should work even if value is number in string'](assert) {\n let obj = _object.default.create({\n age: '24'\n });\n\n obj.incrementProperty('age');\n assert.equal(25, obj.get('age'));\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/mixins/promise_proxy_test\", [\"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object_proxy\", \"@ember/-internals/runtime/lib/mixins/promise_proxy\", \"@ember/-internals/runtime/lib/ext/rsvp\", \"rsvp\", \"internal-test-helpers\"], function (_runloop, _metal, _object_proxy, _promise_proxy, _rsvp, RSVP, _internalTestHelpers) {\n \"use strict\";\n\n let ObjectPromiseProxy;\n (0, _internalTestHelpers.moduleFor)('Ember.PromiseProxy - ObjectProxy', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n ObjectPromiseProxy = _object_proxy.default.extend(_promise_proxy.default);\n }\n\n afterEach() {\n RSVP.on('error', _rsvp.onerrorDefault);\n }\n\n ['@test present on ember namespace'](assert) {\n assert.ok(_promise_proxy.default, 'expected PromiseProxyMixin to exist');\n }\n\n ['@test no promise, invoking then should raise'](assert) {\n let proxy = ObjectPromiseProxy.create();\n assert.throws(function () {\n proxy.then(function () {\n return this;\n }, function () {\n return this;\n });\n }, new RegExp(\"PromiseProxy's promise must be set\"));\n }\n\n ['@test fulfillment'](assert) {\n let value = {\n firstName: 'stef',\n lastName: 'penner'\n };\n let deferred = RSVP.defer();\n let proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n let didFulfillCount = 0;\n let didRejectCount = 0;\n proxy.then(() => didFulfillCount++, () => didRejectCount++);\n assert.equal((0, _metal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n assert.equal((0, _metal.get)(proxy, 'reason'), undefined, 'expects the proxy to have no reason');\n assert.equal((0, _metal.get)(proxy, 'isPending'), true, 'expects the proxy to indicate that it is loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), false, 'expects the proxy to indicate that it is not settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n assert.equal(didFulfillCount, 0, 'should not yet have been fulfilled');\n assert.equal(didRejectCount, 0, 'should not yet have been rejected');\n (0, _runloop.run)(deferred, 'resolve', value);\n assert.equal(didFulfillCount, 1, 'should have been fulfilled');\n assert.equal(didRejectCount, 0, 'should not have been rejected');\n assert.equal((0, _metal.get)(proxy, 'content'), value, 'expects the proxy to have content');\n assert.equal((0, _metal.get)(proxy, 'reason'), undefined, 'expects the proxy to still have no reason');\n assert.equal((0, _metal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is no longer loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), true, 'expects the proxy to indicate that it is fulfilled');\n (0, _runloop.run)(deferred, 'resolve', value);\n assert.equal(didFulfillCount, 1, 'should still have been only fulfilled once');\n assert.equal(didRejectCount, 0, 'should still not have been rejected');\n (0, _runloop.run)(deferred, 'reject', value);\n assert.equal(didFulfillCount, 1, 'should still have been only fulfilled once');\n assert.equal(didRejectCount, 0, 'should still not have been rejected');\n assert.equal((0, _metal.get)(proxy, 'content'), value, 'expects the proxy to have still have same content');\n assert.equal((0, _metal.get)(proxy, 'reason'), undefined, 'expects the proxy still to have no reason');\n assert.equal((0, _metal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is no longer loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), true, 'expects the proxy to indicate that it is fulfilled'); // rest of the promise semantics are tested in directly in RSVP\n }\n\n ['@test rejection'](assert) {\n let reason = new Error('failure');\n let deferred = RSVP.defer();\n let proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n let didFulfillCount = 0;\n let didRejectCount = 0;\n proxy.then(() => didFulfillCount++, () => didRejectCount++);\n assert.equal((0, _metal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n assert.equal((0, _metal.get)(proxy, 'reason'), undefined, 'expects the proxy to have no reason');\n assert.equal((0, _metal.get)(proxy, 'isPending'), true, 'expects the proxy to indicate that it is loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), false, 'expects the proxy to indicate that it is not settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n assert.equal(didFulfillCount, 0, 'should not yet have been fulfilled');\n assert.equal(didRejectCount, 0, 'should not yet have been rejected');\n (0, _runloop.run)(deferred, 'reject', reason);\n assert.equal(didFulfillCount, 0, 'should not yet have been fulfilled');\n assert.equal(didRejectCount, 1, 'should have been rejected');\n assert.equal((0, _metal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n assert.equal((0, _metal.get)(proxy, 'reason'), reason, 'expects the proxy to have a reason');\n assert.equal((0, _metal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is not longer loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), true, 'expects the proxy to indicate that it is rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n (0, _runloop.run)(deferred, 'reject', reason);\n assert.equal(didFulfillCount, 0, 'should stll not yet have been fulfilled');\n assert.equal(didRejectCount, 1, 'should still remain rejected');\n (0, _runloop.run)(deferred, 'resolve', 1);\n assert.equal(didFulfillCount, 0, 'should stll not yet have been fulfilled');\n assert.equal(didRejectCount, 1, 'should still remain rejected');\n assert.equal((0, _metal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n assert.equal((0, _metal.get)(proxy, 'reason'), reason, 'expects the proxy to have a reason');\n assert.equal((0, _metal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is not longer loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), true, 'expects the proxy to indicate that it is rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n } // https://github.com/emberjs/ember.js/issues/15694\n\n\n ['@test rejection without specifying reason'](assert) {\n let deferred = RSVP.defer();\n let proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n let didFulfillCount = 0;\n let didRejectCount = 0;\n proxy.then(() => didFulfillCount++, () => didRejectCount++);\n assert.equal((0, _metal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n assert.equal((0, _metal.get)(proxy, 'reason'), undefined, 'expects the proxy to have no reason');\n assert.equal((0, _metal.get)(proxy, 'isPending'), true, 'expects the proxy to indicate that it is loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), false, 'expects the proxy to indicate that it is not settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n assert.equal(didFulfillCount, 0, 'should not yet have been fulfilled');\n assert.equal(didRejectCount, 0, 'should not yet have been rejected');\n (0, _runloop.run)(deferred, 'reject');\n assert.equal(didFulfillCount, 0, 'should not yet have been fulfilled');\n assert.equal(didRejectCount, 1, 'should have been rejected');\n assert.equal((0, _metal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n assert.equal((0, _metal.get)(proxy, 'reason'), undefined, 'expects the proxy to have a reason');\n assert.equal((0, _metal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is not longer loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), true, 'expects the proxy to indicate that it is rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n }\n\n [\"@test unhandled rejects still propagate to RSVP.on('error', ...) \"](assert) {\n assert.expect(1);\n RSVP.on('error', onerror);\n RSVP.off('error', _rsvp.onerrorDefault);\n let expectedReason = new Error('failure');\n let deferred = RSVP.defer();\n let proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n proxy.get('promise');\n\n function onerror(reason) {\n assert.equal(reason, expectedReason, 'expected reason');\n }\n\n RSVP.on('error', onerror);\n RSVP.off('error', _rsvp.onerrorDefault);\n (0, _runloop.run)(deferred, 'reject', expectedReason);\n RSVP.on('error', _rsvp.onerrorDefault);\n RSVP.off('error', onerror);\n (0, _runloop.run)(deferred, 'reject', expectedReason);\n RSVP.on('error', _rsvp.onerrorDefault);\n RSVP.off('error', onerror);\n }\n\n ['@test should work with promise inheritance'](assert) {\n class PromiseSubclass extends RSVP.Promise {}\n\n let proxy = ObjectPromiseProxy.create({\n promise: new PromiseSubclass(() => {})\n });\n assert.ok(proxy.then() instanceof PromiseSubclass, 'promise proxy respected inheritance');\n }\n\n ['@test should reset isFulfilled and isRejected when promise is reset'](assert) {\n let deferred = _rsvp.default.defer();\n\n let proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n assert.equal((0, _metal.get)(proxy, 'isPending'), true, 'expects the proxy to indicate that it is loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), false, 'expects the proxy to indicate that it is not settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n (0, _runloop.run)(deferred, 'resolve');\n assert.equal((0, _metal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is no longer loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), true, 'expects the proxy to indicate that it is fulfilled');\n\n let anotherDeferred = _rsvp.default.defer();\n\n proxy.set('promise', anotherDeferred.promise);\n assert.equal((0, _metal.get)(proxy, 'isPending'), true, 'expects the proxy to indicate that it is loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), false, 'expects the proxy to indicate that it is not settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n (0, _runloop.run)(anotherDeferred, 'reject');\n assert.equal((0, _metal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is not longer loading');\n assert.equal((0, _metal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n assert.equal((0, _metal.get)(proxy, 'isRejected'), true, 'expects the proxy to indicate that it is rejected');\n assert.equal((0, _metal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n }\n\n ['@test should have content when isFulfilled is set'](assert) {\n let deferred = _rsvp.default.defer();\n\n let proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n proxy.addObserver('isFulfilled', () => assert.equal((0, _metal.get)(proxy, 'content'), true));\n (0, _runloop.run)(deferred, 'resolve', true);\n }\n\n ['@test should have reason when isRejected is set'](assert) {\n let error = new Error('Y U REJECT?!?');\n\n let deferred = _rsvp.default.defer();\n\n let proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n proxy.addObserver('isRejected', () => assert.equal((0, _metal.get)(proxy, 'reason'), error));\n\n try {\n (0, _runloop.run)(deferred, 'reject', error);\n } catch (e) {\n assert.equal(e, error);\n }\n }\n\n ['@test should not error if promise is resolved after proxy has been destroyed'](assert) {\n let deferred = _rsvp.default.defer();\n\n let proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n proxy.then(() => {}, () => {});\n (0, _runloop.run)(proxy, 'destroy');\n (0, _runloop.run)(deferred, 'resolve', true);\n assert.ok(true, 'resolving the promise after the proxy has been destroyed does not raise an error');\n }\n\n ['@test should not error if promise is rejected after proxy has been destroyed'](assert) {\n let deferred = _rsvp.default.defer();\n\n let proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n proxy.then(() => {}, () => {});\n (0, _runloop.run)(proxy, 'destroy');\n (0, _runloop.run)(deferred, 'reject', 'some reason');\n assert.ok(true, 'rejecting the promise after the proxy has been destroyed does not raise an error');\n }\n\n ['@test promise chain is not broken if promised is resolved after proxy has been destroyed'](assert) {\n let deferred = _rsvp.default.defer();\n\n let expectedValue = {};\n let receivedValue;\n let didResolveCount = 0;\n let proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n proxy.then(value => {\n receivedValue = value;\n didResolveCount++;\n }, () => {});\n (0, _runloop.run)(proxy, 'destroy');\n (0, _runloop.run)(deferred, 'resolve', expectedValue);\n assert.equal(didResolveCount, 1, 'callback called');\n assert.equal(receivedValue, expectedValue, 'passed value is the value the promise was resolved with');\n }\n\n ['@test promise chain is not broken if promised is rejected after proxy has been destroyed'](assert) {\n let deferred = _rsvp.default.defer();\n\n let expectedReason = 'some reason';\n let receivedReason;\n let didRejectCount = 0;\n let proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n proxy.then(() => {}, reason => {\n receivedReason = reason;\n didRejectCount++;\n });\n (0, _runloop.run)(proxy, 'destroy');\n (0, _runloop.run)(deferred, 'reject', expectedReason);\n assert.equal(didRejectCount, 1, 'callback called');\n assert.equal(receivedReason, expectedReason, 'passed reason is the reason the promise was rejected for');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/mixins/target_action_support_test\", [\"@ember/-internals/environment\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/target_action_support\", \"internal-test-helpers\"], function (_environment, _object, _target_action_support, _internalTestHelpers) {\n \"use strict\";\n\n let originalLookup = _environment.context.lookup;\n let lookup;\n (0, _internalTestHelpers.moduleFor)('TargetActionSupport', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n _environment.context.lookup = lookup = {};\n }\n\n afterEach() {\n _environment.context.lookup = originalLookup;\n }\n\n ['@test it should return false if no target or action are specified'](assert) {\n assert.expect(1);\n\n let obj = _object.default.extend(_target_action_support.default).create();\n\n assert.ok(false === obj.triggerAction(), 'no target or action was specified');\n }\n\n ['@test it should support actions specified as strings'](assert) {\n assert.expect(2);\n\n let obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n anEvent() {\n assert.ok(true, 'anEvent method was called');\n }\n\n }),\n action: 'anEvent'\n });\n\n assert.ok(true === obj.triggerAction(), 'a valid target and action were specified');\n }\n\n ['@test it should invoke the send() method on objects that implement it'](assert) {\n assert.expect(3);\n\n let obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n send(evt, context) {\n assert.equal(evt, 'anEvent', 'send() method was invoked with correct event name');\n assert.equal(context, obj, 'send() method was invoked with correct context');\n }\n\n }),\n action: 'anEvent'\n });\n\n assert.ok(true === obj.triggerAction(), 'a valid target and action were specified');\n }\n\n ['@test it should find targets specified using a property path'](assert) {\n assert.expect(2);\n let Test = {};\n lookup.Test = Test;\n Test.targetObj = _object.default.create({\n anEvent() {\n assert.ok(true, 'anEvent method was called on global object');\n }\n\n });\n\n let myObj = _object.default.extend(_target_action_support.default).create({\n target: 'Test.targetObj',\n action: 'anEvent'\n });\n\n assert.ok(true === myObj.triggerAction(), 'a valid target and action were specified');\n }\n\n ['@test it should use an actionContext object specified as a property on the object'](assert) {\n assert.expect(2);\n\n let obj = _object.default.extend(_target_action_support.default).create({\n action: 'anEvent',\n actionContext: {},\n target: _object.default.create({\n anEvent(ctx) {\n assert.ok(obj.actionContext === ctx, 'anEvent method was called with the expected context');\n }\n\n })\n });\n\n assert.ok(true === obj.triggerAction(), 'a valid target and action were specified');\n }\n\n ['@test it should find an actionContext specified as a property path'](assert) {\n assert.expect(2);\n let Test = {};\n lookup.Test = Test;\n Test.aContext = {};\n\n let obj = _object.default.extend(_target_action_support.default).create({\n action: 'anEvent',\n actionContext: 'Test.aContext',\n target: _object.default.create({\n anEvent(ctx) {\n assert.ok(Test.aContext === ctx, 'anEvent method was called with the expected context');\n }\n\n })\n });\n\n assert.ok(true === obj.triggerAction(), 'a valid target and action were specified');\n }\n\n ['@test it should use the target specified in the argument'](assert) {\n assert.expect(2);\n\n let targetObj = _object.default.create({\n anEvent() {\n assert.ok(true, 'anEvent method was called');\n }\n\n });\n\n let obj = _object.default.extend(_target_action_support.default).create({\n action: 'anEvent'\n });\n\n assert.ok(true === obj.triggerAction({\n target: targetObj\n }), 'a valid target and action were specified');\n }\n\n ['@test it should use the action specified in the argument'](assert) {\n assert.expect(2);\n\n let obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n anEvent() {\n assert.ok(true, 'anEvent method was called');\n }\n\n })\n });\n\n assert.ok(true === obj.triggerAction({\n action: 'anEvent'\n }), 'a valid target and action were specified');\n }\n\n ['@test it should use the actionContext specified in the argument'](assert) {\n assert.expect(2);\n let context = {};\n\n let obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n anEvent(ctx) {\n assert.ok(context === ctx, 'anEvent method was called with the expected context');\n }\n\n }),\n action: 'anEvent'\n });\n\n assert.ok(true === obj.triggerAction({\n actionContext: context\n }), 'a valid target and action were specified');\n }\n\n ['@test it should allow multiple arguments from actionContext'](assert) {\n assert.expect(3);\n let param1 = 'someParam';\n let param2 = 'someOtherParam';\n\n let obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n anEvent(first, second) {\n assert.ok(first === param1, 'anEvent method was called with the expected first argument');\n assert.ok(second === param2, 'anEvent method was called with the expected second argument');\n }\n\n }),\n action: 'anEvent'\n });\n\n assert.ok(true === obj.triggerAction({\n actionContext: [param1, param2]\n }), 'a valid target and action were specified');\n }\n\n ['@test it should use a null value specified in the actionContext argument'](assert) {\n assert.expect(2);\n\n let obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n anEvent(ctx) {\n assert.ok(null === ctx, 'anEvent method was called with the expected context (null)');\n }\n\n }),\n action: 'anEvent'\n });\n\n assert.ok(true === obj.triggerAction({\n actionContext: null\n }), 'a valid target and action were specified');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/addObject-test\", [\"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_metal, _internalTestHelpers, _array) {\n \"use strict\";\n\n class AddObjectTest extends _internalTestHelpers.AbstractTestCase {\n '@test should return receiver'() {\n let before = (0, _array.newFixture)(3);\n let obj = this.newObject(before);\n this.assert.equal(obj.addObject(before[1]), obj, 'should return receiver');\n }\n\n '@test [A,B].addObject(C) => [A,B,C] + notify'() {\n let before = (0, _array.newFixture)(2);\n let item = (0, _array.newFixture)(1)[0];\n let after = [before[0], before[1], item];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.addObject(item);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n }\n }\n\n '@test [A,B,C].addObject(A) => [A,B,C] + NO notify'() {\n let before = (0, _array.newFixture)(3);\n let after = before;\n let item = before[0];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.addObject(item); // note: item in set\n\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n this.assert.equal(observer.validate('[]'), false, 'should NOT have notified []');\n this.assert.equal(observer.validate('@each'), false, 'should NOT have notified @each');\n this.assert.equal(observer.validate('length'), false, 'should NOT have notified length');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n }\n\n }\n\n (0, _array.runArrayTests)('addObject', AddObjectTest, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/clear-test\", [\"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_metal, _internalTestHelpers, _array) {\n \"use strict\";\n\n class ClearTests extends _internalTestHelpers.AbstractTestCase {\n '@test [].clear() => [] + notify'() {\n let before = [];\n let after = [];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal(obj.clear(), obj, 'return self');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.validate('[]'), false, 'should NOT have notified [] once');\n this.assert.equal(observer.validate('@each'), false, 'should NOT have notified @each once');\n this.assert.equal(observer.validate('length'), false, 'should NOT have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n\n '@test [X].clear() => [] + notify'() {\n var obj, before, after, observer;\n before = (0, _array.newFixture)(1);\n after = [];\n obj = this.newObject(before);\n observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal(obj.clear(), obj, 'return self');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n }\n\n }\n\n (0, _array.runArrayTests)('clear', ClearTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/insertAt-test\", [\"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_metal, _internalTestHelpers, _array) {\n \"use strict\";\n\n class InsertAtTests extends _internalTestHelpers.AbstractTestCase {\n '@test [].insertAt(0, X) => [X] + notify'() {\n let after = (0, _array.newFixture)(1);\n let obj = this.newObject([]);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.insertAt(0, after[0]);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] did change once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each did change once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length did change once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject did change once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject did change once');\n }\n\n '@test [].insertAt(200,X) => OUT_OF_RANGE_EXCEPTION exception'() {\n let obj = this.newObject([]);\n let item = (0, _array.newFixture)(1)[0];\n expectAssertion(() => obj.insertAt(200, item), /`insertAt` index provided is out of range/);\n }\n\n '@test [A].insertAt(0, X) => [X,A] + notify'() {\n let item = (0, _array.newFixture)(1)[0];\n let before = (0, _array.newFixture)(1);\n let after = [item, before[0]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.insertAt(0, item);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n\n '@test [A].insertAt(1, X) => [A,X] + notify'() {\n let item = (0, _array.newFixture)(1)[0];\n let before = (0, _array.newFixture)(1);\n let after = [before[0], item];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.insertAt(1, item);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n }\n\n '@test [A].insertAt(200,X) => OUT_OF_RANGE exception'() {\n let obj = this.newObject((0, _array.newFixture)(1));\n let that = this;\n this.assert.throws(() => obj.insertAt(200, that.newFixture(1)[0]), Error);\n }\n\n '@test [A,B,C].insertAt(0,X) => [X,A,B,C] + notify'() {\n let item = (0, _array.newFixture)(1)[0];\n let before = (0, _array.newFixture)(3);\n let after = [item, before[0], before[1], before[2]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.insertAt(0, item);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n\n '@test [A,B,C].insertAt(1,X) => [A,X,B,C] + notify'() {\n let item = (0, _array.newFixture)(1)[0];\n let before = (0, _array.newFixture)(3);\n let after = [before[0], item, before[1], before[2]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n let objectAtCalls = [];\n let objectAt = obj.objectAt;\n\n obj.objectAt = ix => {\n objectAtCalls.push(ix);\n return objectAt.call(obj, ix);\n };\n\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n objectAtCalls.splice(0, objectAtCalls.length);\n obj.insertAt(1, item);\n this.assert.deepEqual(objectAtCalls, [], 'objectAt is not called when only inserting items');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n\n '@test [A,B,C].insertAt(3,X) => [A,B,C,X] + notify'() {\n let item = (0, _array.newFixture)(1)[0];\n let before = (0, _array.newFixture)(3);\n let after = [before[0], before[1], before[2], item];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.insertAt(3, item);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n }\n\n }\n\n (0, _array.runArrayTests)('instertAt', InsertAtTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/popObject-test\", [\"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_metal, _internalTestHelpers, _array) {\n \"use strict\";\n\n class PopObjectTests extends _internalTestHelpers.AbstractTestCase {\n '@test [].popObject() => [] + returns undefined + NO notify'() {\n let obj = this.newObject([]);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal(obj.popObject(), undefined, 'popObject results');\n this.assert.deepEqual(this.toArray(obj), [], 'post item results');\n this.assert.equal(observer.validate('[]'), false, 'should NOT have notified []');\n this.assert.equal(observer.validate('@each'), false, 'should NOT have notified @each');\n this.assert.equal(observer.validate('length'), false, 'should NOT have notified length');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n\n '@test [X].popObject() => [] + notify'() {\n let before = (0, _array.newFixture)(1);\n let after = [];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n let ret = obj.popObject();\n this.assert.equal(ret, before[0], 'return object');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n }\n\n '@test [A,B,C].popObject() => [A,B] + notify'() {\n let before = (0, _array.newFixture)(3);\n let after = [before[0], before[1]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n let ret = obj.popObject();\n this.assert.equal(ret, before[2], 'return object');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n }\n\n }\n\n (0, _array.runArrayTests)('popObject', PopObjectTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/pushObject-test\", [\"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_metal, _internalTestHelpers, _array) {\n \"use strict\";\n\n class PushObjectTests extends _internalTestHelpers.AbstractTestCase {\n '@test returns pushed object'() {\n let exp = (0, _array.newFixture)(1)[0];\n let obj = this.newObject([]);\n this.assert.equal(obj.pushObject(exp), exp, 'should return pushed object');\n }\n\n '@test [].pushObject(X) => [X] + notify'() {\n let before = [];\n let after = (0, _array.newFixture)(1);\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.pushObject(after[0]);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n }\n\n '@test [A,B,C].pushObject(X) => [A,B,C,X] + notify'() {\n let before = (0, _array.newFixture)(3);\n let item = (0, _array.newFixture)(1)[0];\n let after = [before[0], before[1], before[2], item];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.pushObject(item);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n }\n\n '@test [A,B,C,C].pushObject(A) => [A,B,C,C] + notify'() {\n let before = (0, _array.newFixture)(3);\n let item = before[2]; // note same object as current tail. should end up twice\n\n let after = [before[0], before[1], before[2], item];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.pushObject(item);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n this.assert.equal(observer.validate('lastObject'), true, 'should have notified lastObject');\n }\n\n }\n\n (0, _array.runArrayTests)('pushObject', PushObjectTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/pushObjects-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class PushObjectsTests extends _internalTestHelpers.AbstractTestCase {\n '@test should raise exception if not Ember.Enumerable is passed to pushObjects'() {\n let obj = this.newObject([]);\n expectAssertion(() => obj.pushObjects('string'));\n }\n\n }\n\n (0, _array.runArrayTests)('pushObjects', PushObjectsTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/removeAt-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\", \"@ember/-internals/runtime/lib/mixins/array\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _array, _array2, _metal) {\n \"use strict\";\n\n class RemoveAtTests extends _internalTestHelpers.AbstractTestCase {\n '@test removeAt([X], 0) => [] + notify'() {\n let before = (0, _array.newFixture)(1);\n let after = [];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal((0, _array2.removeAt)(obj, 0), obj, 'return self');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n }\n\n '@test removeAt([], 200) => OUT_OF_RANGE_EXCEPTION exception'() {\n let obj = this.newObject([]);\n expectAssertion(() => (0, _array2.removeAt)(obj, 200), /`removeAt` index provided is out of range/);\n }\n\n '@test removeAt([A,B], 0) => [B] + notify'() {\n let before = (0, _array.newFixture)(2);\n let after = [before[1]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal((0, _array2.removeAt)(obj, 0), obj, 'return self');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n\n '@test removeAt([A,B], 1) => [A] + notify'() {\n let before = (0, _array.newFixture)(2);\n let after = [before[0]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal((0, _array2.removeAt)(obj, 1), obj, 'return self');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n }\n\n '@test removeAt([A,B,C], 1) => [A,C] + notify'() {\n let before = (0, _array.newFixture)(3);\n let after = [before[0], before[2]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal((0, _array2.removeAt)(obj, 1), obj, 'return self');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n\n '@test removeAt([A,B,C,D], 1,2) => [A,D] + notify'() {\n let before = (0, _array.newFixture)(4);\n let after = [before[0], before[3]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal((0, _array2.removeAt)(obj, 1, 2), obj, 'return self');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n\n '@test [A,B,C,D].removeAt(1,2) => [A,D] + notify'() {\n var obj, before, after, observer;\n before = (0, _array.newFixture)(4);\n after = [before[0], before[3]];\n obj = this.newObject(before);\n observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal(obj.removeAt(1, 2), obj, 'return self');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n\n }\n\n (0, _array.runArrayTests)('removeAt', RemoveAtTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/removeObject-test\", [\"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_metal, _internalTestHelpers, _array) {\n \"use strict\";\n\n class RemoveObjectTests extends _internalTestHelpers.AbstractTestCase {\n '@test should return receiver'() {\n let before = (0, _array.newFixture)(3);\n let obj = this.newObject(before);\n this.assert.equal(obj.removeObject(before[1]), obj, 'should return receiver');\n }\n\n '@test [A,B,C].removeObject(B) => [A,C] + notify'() {\n let before = (0, _array.newFixture)(3);\n let after = [before[0], before[2]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.removeObject(before[1]);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n }\n\n '@test [A,B,C].removeObject(D) => [A,B,C]'() {\n let before = (0, _array.newFixture)(3);\n let after = before;\n let item = (0, _array.newFixture)(1)[0];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.removeObject(item); // note: item not in set\n\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n this.assert.equal(observer.validate('[]'), false, 'should NOT have notified []');\n this.assert.equal(observer.validate('@each'), false, 'should NOT have notified @each');\n this.assert.equal(observer.validate('length'), false, 'should NOT have notified length');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n }\n\n }\n\n (0, _array.runArrayTests)('removeObject', RemoveObjectTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/removeObjects-test\", [\"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\", \"@ember/-internals/runtime/lib/mixins/array\"], function (_metal, _internalTestHelpers, _array, _array2) {\n \"use strict\";\n\n class RemoveObjectsTests extends _internalTestHelpers.AbstractTestCase {\n '@test should return receiver'() {\n let before = (0, _array2.A)((0, _array.newFixture)(3));\n let obj = before;\n this.assert.equal(obj.removeObjects(before[1]), obj, 'should return receiver');\n }\n\n '@test [A,B,C].removeObjects([B]) => [A,C] + notify'() {\n let before = (0, _array2.A)((0, _array.newFixture)(3));\n let after = [before[0], before[2]];\n let obj = before;\n let observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([before[1]]);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n }\n\n '@test [{A},{B},{C}].removeObjects([{B}]) => [{A},{C}] + notify'() {\n let before = (0, _array2.A)((0, _array.newObjectsFixture)(3));\n let after = [before[0], before[2]];\n let obj = before;\n let observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([before[1]]);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n }\n\n '@test [A,B,C].removeObjects([A,B]) => [C] + notify'() {\n let before = (0, _array2.A)((0, _array.newFixture)(3));\n let after = [before[2]];\n let obj = before;\n let observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([before[0], before[1]]);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n }\n\n '@test [{A},{B},{C}].removeObjects([{A},{B}]) => [{C}] + notify'() {\n let before = (0, _array2.A)((0, _array.newObjectsFixture)(3));\n let after = [before[2]];\n let obj = before;\n let observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([before[0], before[1]]);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n }\n\n '@test [A,B,C].removeObjects([A,B,C]) => [] + notify'() {\n let before = (0, _array2.A)((0, _array.newFixture)(3));\n let after = [];\n let obj = before;\n let observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([before[0], before[1], before[2]]);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject');\n }\n }\n\n '@test [{A},{B},{C}].removeObjects([{A},{B},{C}]) => [] + notify'() {\n let before = (0, _array2.A)((0, _array.newObjectsFixture)(3));\n let after = [];\n let obj = before;\n let observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects(before);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject');\n this.assert.equal(observer.validate('lastObject'), 1, 'should have notified lastObject');\n }\n }\n\n '@test [A,B,C].removeObjects([D]) => [A,B,C]'() {\n let before = (0, _array2.A)((0, _array.newFixture)(3));\n let after = before;\n let item = (0, _array.newFixture)(1)[0];\n let obj = before;\n let observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([item]); // Note: item not in set\n\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n this.assert.equal(observer.validate('[]'), false, 'should NOT have notified []');\n this.assert.equal(observer.validate('length'), false, 'should NOT have notified length');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n }\n\n }\n\n (0, _array.runArrayTests)('removeObjects', RemoveObjectsTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/replace-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _array) {\n \"use strict\";\n\n class ReplaceTests extends _internalTestHelpers.AbstractTestCase {\n \"@test [].replace(0,0,'X') => ['X'] + notify\"() {\n let exp = (0, _array.newFixture)(1);\n let obj = this.newObject([]);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.replace(0, 0, exp);\n this.assert.deepEqual(this.toArray(obj), exp, 'post item results');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n }\n\n '@test [].replace(0,0,\"X\") => [\"X\"] + avoid calling objectAt and notifying fistObject/lastObject when not in cache'() {\n var obj, exp, observer;\n var called = 0;\n exp = (0, _array.newFixture)(1);\n obj = this.newObject([]);\n\n obj.objectAt = function () {\n called++;\n };\n\n observer = this.newObserver(obj, 'firstObject', 'lastObject');\n obj.replace(0, 0, exp);\n this.assert.equal(called, 0, 'should NOT have called objectAt upon replace when firstObject/lastObject are not cached');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject since not cached');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject since not cached');\n }\n\n '@test [A,B,C,D].replace(1,2,X) => [A,X,D] + notify'() {\n let before = (0, _array.newFixture)(4);\n let replace = (0, _array.newFixture)(1);\n let after = [before[0], replace[0], before[3]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.replace(1, 2, replace);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n\n '@test [A,B,C,D].replace(1,2,[X,Y]) => [A,X,Y,D] + notify'() {\n let before = (0, _array.newFixture)(4);\n let replace = (0, _array.newFixture)(2);\n let after = [before[0], replace[0], replace[1], before[3]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.replace(1, 2, replace);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.validate('length'), false, 'should NOT have notified length');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n\n '@test [A,B].replace(1,0,[X,Y]) => [A,X,Y,B] + notify'() {\n let before = (0, _array.newFixture)(2);\n let replace = (0, _array.newFixture)(2);\n let after = [before[0], replace[0], replace[1], before[1]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.replace(1, 0, replace);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n\n '@test [A,B,C,D].replace(2,2) => [A,B] + notify'() {\n let before = (0, _array.newFixture)(4);\n let after = [before[0], before[1]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.replace(2, 2);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n }\n\n '@test [A,B,C,D].replace(-1,1) => [A,B,C] + notify'() {\n let before = (0, _array.newFixture)(4);\n let after = [before[0], before[1], before[2]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.replace(-1, 1);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n }\n\n '@test Adding object should notify array observer'() {\n let fixtures = (0, _array.newFixture)(4);\n let obj = this.newObject(fixtures);\n let observer = this.newObserver(obj).observeArray(obj);\n let item = (0, _array.newFixture)(1)[0];\n obj.replace(2, 2, [item]);\n this.assert.deepEqual(observer._before, [obj, 2, 2, 1], 'before');\n this.assert.deepEqual(observer._after, [obj, 2, 2, 1], 'after');\n }\n\n }\n\n (0, _array.runArrayTests)('replace', ReplaceTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/reverseObjects-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _array, _metal) {\n \"use strict\";\n\n class ReverseObjectsTests extends _internalTestHelpers.AbstractTestCase {\n '@test [A,B,C].reverseObjects() => [] + notify'() {\n let before = (0, _array.newFixture)(3);\n let after = [before[2], before[1], before[0]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal(obj.reverseObjects(), obj, 'return self');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 0, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n }\n\n }\n\n (0, _array.runArrayTests)('reverseObjects', ReverseObjectsTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/setObjects-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _array, _metal) {\n \"use strict\";\n\n class SetObjectsTests extends _internalTestHelpers.AbstractTestCase {\n '@test [A,B,C].setObjects([]) = > [] + notify'() {\n let before = (0, _array.newFixture)(3);\n let after = [];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal(obj.setObjects(after), obj, 'return self');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n }\n\n '@test [A,B,C].setObjects([D, E, F, G]) = > [D, E, F, G] + notify'() {\n let before = (0, _array.newFixture)(3);\n let after = (0, _array.newFixture)(4);\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal(obj.setObjects(after), obj, 'return self');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n }\n\n }\n\n (0, _array.runArrayTests)('setObjects', SetObjectsTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/shiftObject-test\", [\"internal-test-helpers\", \"@ember/-internals/runtime/tests/helpers/array\", \"@ember/-internals/metal\"], function (_internalTestHelpers, _array, _metal) {\n \"use strict\";\n\n class ShiftObjectTests extends _internalTestHelpers.AbstractTestCase {\n '@test [].shiftObject() => [] + returns undefined + NO notify'() {\n let before = [];\n let after = [];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal(obj.shiftObject(), undefined);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.validate('[]', undefined, 1), false, 'should NOT have notified [] once');\n this.assert.equal(observer.validate('@each', undefined, 1), false, 'should NOT have notified @each once');\n this.assert.equal(observer.validate('length', undefined, 1), false, 'should NOT have notified length once');\n this.assert.equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n\n '@test [X].shiftObject() => [] + notify'() {\n let before = (0, _array.newFixture)(1);\n let after = [];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal(obj.shiftObject(), before[0], 'should return object');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n }\n\n '@test [A,B,C].shiftObject() => [B,C] + notify'() {\n let before = (0, _array.newFixture)(3);\n let after = [before[1], before[2]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n this.assert.equal(obj.shiftObject(), before[0], 'should return object');\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n\n }\n\n (0, _array.runArrayTests)('shiftObject', ShiftObjectTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/unshiftObject-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _metal, _array) {\n \"use strict\";\n\n class UnshiftObjectTests extends _internalTestHelpers.AbstractTestCase {\n '@test returns unshifted object'() {\n let obj = this.newObject([]);\n let item = (0, _array.newFixture)(1)[0];\n this.assert.equal(obj.unshiftObject(item), item, 'should return unshifted object');\n }\n\n '@test [].unshiftObject(X) => [X] + notify'() {\n let before = [];\n let item = (0, _array.newFixture)(1)[0];\n let after = [item];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.unshiftObject(item);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n }\n\n '@test [A,B,C].unshiftObject(X) => [X,A,B,C] + notify'() {\n let before = (0, _array.newFixture)(3);\n let item = (0, _array.newFixture)(1)[0];\n let after = [item, before[0], before[1], before[2]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.unshiftObject(item);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n\n '@test [A,B,C].unshiftObject(A) => [A,A,B,C] + notify'() {\n let before = (0, _array.newFixture)(3);\n let item = before[0]; // note same object as current head. should end up twice\n\n let after = [item, before[0], before[1], before[2]];\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.unshiftObject(item);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), true, 'should have notified firstObject');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n\n }\n\n (0, _array.runArrayTests)('unshiftObject', UnshiftObjectTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/mutable-array/unshiftObjects-test\", [\"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/tests/helpers/array\"], function (_internalTestHelpers, _metal, _array) {\n \"use strict\";\n\n class UnshiftObjectsTests extends _internalTestHelpers.AbstractTestCase {\n '@test returns receiver'() {\n let obj = this.newObject([]);\n let items = (0, _array.newFixture)(3);\n this.assert.equal(obj.unshiftObjects(items), obj, 'should return receiver');\n }\n\n '@test [].unshiftObjects([A,B,C]) => [A,B,C] + notify'() {\n let before = [];\n let items = (0, _array.newFixture)(3);\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.unshiftObjects(items);\n this.assert.deepEqual(this.toArray(obj), items, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), items.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n }\n\n '@test [A,B,C].unshiftObjects([X,Y]) => [X,Y,A,B,C] + notify'() {\n let before = (0, _array.newFixture)(3);\n let items = (0, _array.newFixture)(2);\n let after = items.concat(before);\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.unshiftObjects(items);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n\n '@test [A,B,C].unshiftObjects([A,B]) => [A,B,A,B,C] + notify'() {\n let before = (0, _array.newFixture)(3);\n let items = [before[0], before[1]]; // note same object as current head. should end up twice\n\n let after = items.concat(before);\n let obj = this.newObject(before);\n let observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject');\n /* Prime the cache */\n\n obj.unshiftObjects(items);\n this.assert.deepEqual(this.toArray(obj), after, 'post item results');\n this.assert.equal((0, _metal.get)(obj, 'length'), after.length, 'length');\n this.assert.equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n this.assert.equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n this.assert.equal(observer.timesCalled('length'), 1, 'should have notified length once');\n this.assert.equal(observer.validate('firstObject'), true, 'should NOT have notified firstObject');\n this.assert.equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n\n }\n\n (0, _array.runArrayTests)('unshiftObjects', UnshiftObjectsTests, 'MutableArray', 'NativeArray', 'ArrayProxy');\n});","enifed(\"@ember/-internals/runtime/tests/system/array_proxy/arranged_content_test\", [\"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_runloop, _metal, _array_proxy, _array, _internalTestHelpers) {\n \"use strict\";\n\n let array;\n (0, _internalTestHelpers.moduleFor)('ArrayProxy - arrangedContent', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n (0, _runloop.run)(() => {\n array = _array_proxy.default.extend({\n arrangedContent: (0, _metal.computed)('content.[]', function () {\n let content = this.get('content');\n return content && (0, _array.A)(content.slice().sort((a, b) => {\n if (a == null) {\n a = -1;\n }\n\n if (b == null) {\n b = -1;\n }\n\n return b - a;\n }));\n })\n }).create({\n content: (0, _array.A)([1, 2, 4, 5])\n });\n });\n }\n\n afterEach() {\n (0, _runloop.run)(() => array.destroy());\n }\n\n ['@test compact - returns arrangedContent without nulls and undefined'](assert) {\n (0, _runloop.run)(() => array.set('content', (0, _array.A)([1, 3, null, 2, undefined])));\n assert.deepEqual(array.compact(), [3, 2, 1]);\n }\n\n ['@test indexOf - returns index of object in arrangedContent'](assert) {\n assert.equal(array.indexOf(4), 1, 'returns arranged index');\n }\n\n ['@test lastIndexOf - returns last index of object in arrangedContent'](assert) {\n array.get('content').pushObject(4);\n assert.equal(array.lastIndexOf(4), 2, 'returns last arranged index');\n }\n\n ['@test objectAt - returns object at index in arrangedContent'](assert) {\n assert.equal((0, _metal.objectAt)(array, 1), 4, 'returns object at index');\n } // Not sure if we need a specific test for it, since it's internal\n\n\n ['@test objectAtContent - returns object at index in arrangedContent'](assert) {\n assert.equal(array.objectAtContent(1), 4, 'returns object at index');\n }\n\n ['@test objectsAt - returns objects at indices in arrangedContent'](assert) {\n assert.deepEqual(array.objectsAt([0, 2, 4]), [5, 2, undefined], 'returns objects at indices');\n }\n\n ['@test replace - mutating an arranged ArrayProxy is not allowed']() {\n expectAssertion(() => {\n array.replace(0, 0, [3]);\n }, /Mutating an arranged ArrayProxy is not allowed/);\n }\n\n ['@test replaceContent - does a standard array replace on content'](assert) {\n (0, _runloop.run)(() => array.replaceContent(1, 2, [3]));\n assert.deepEqual(array.get('content'), [1, 3, 5]);\n }\n\n ['@test slice - returns a slice of the arrangedContent'](assert) {\n assert.deepEqual(array.slice(1, 3), [4, 2], 'returns sliced arrangedContent');\n }\n\n ['@test toArray - returns copy of arrangedContent'](assert) {\n assert.deepEqual(array.toArray(), [5, 4, 2, 1]);\n }\n\n ['@test without - returns arrangedContent without object'](assert) {\n assert.deepEqual(array.without(2), [5, 4, 1], 'returns arranged without object');\n }\n\n ['@test lastObject - returns last arranged object'](assert) {\n assert.equal(array.get('lastObject'), 1, 'returns last arranged object');\n }\n\n ['@test firstObject - returns first arranged object'](assert) {\n assert.equal(array.get('firstObject'), 5, 'returns first arranged object');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ArrayProxy - arrangedContent matching content', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n (0, _runloop.run)(function () {\n array = _array_proxy.default.create({\n content: (0, _array.A)([1, 2, 4, 5])\n });\n });\n }\n\n afterEach() {\n (0, _runloop.run)(function () {\n array.destroy();\n });\n }\n\n ['@test insertAt - inserts object at specified index'](assert) {\n (0, _runloop.run)(function () {\n array.insertAt(2, 3);\n });\n assert.deepEqual(array.get('content'), [1, 2, 3, 4, 5]);\n }\n\n ['@test replace - does a standard array replace'](assert) {\n (0, _runloop.run)(function () {\n array.replace(1, 2, [3]);\n });\n assert.deepEqual(array.get('content'), [1, 3, 5]);\n }\n\n ['@test reverseObjects - reverses content'](assert) {\n (0, _runloop.run)(function () {\n array.reverseObjects();\n });\n assert.deepEqual(array.get('content'), [5, 4, 2, 1]);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ArrayProxy - arrangedContent with transforms', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n (0, _runloop.run)(function () {\n array = _array_proxy.default.extend({\n arrangedContent: (0, _metal.computed)('content.[]', function () {\n let content = this.get('content');\n return content && (0, _array.A)(content.slice().sort(function (a, b) {\n if (a == null) {\n a = -1;\n }\n\n if (b == null) {\n b = -1;\n }\n\n return b - a;\n }));\n }),\n\n objectAtContent(idx) {\n let obj = (0, _metal.objectAt)(this.get('arrangedContent'), idx);\n return obj && obj.toString();\n }\n\n }).create({\n content: (0, _array.A)([1, 2, 4, 5])\n });\n });\n }\n\n afterEach() {\n (0, _runloop.run)(function () {\n array.destroy();\n });\n }\n\n ['@test indexOf - returns index of object in arrangedContent'](assert) {\n assert.equal(array.indexOf('4'), 1, 'returns arranged index');\n }\n\n ['@test lastIndexOf - returns last index of object in arrangedContent'](assert) {\n array.get('content').pushObject(4);\n assert.equal(array.lastIndexOf('4'), 2, 'returns last arranged index');\n }\n\n ['@test objectAt - returns object at index in arrangedContent'](assert) {\n assert.equal((0, _metal.objectAt)(array, 1), '4', 'returns object at index');\n } // Not sure if we need a specific test for it, since it's internal\n\n\n ['@test objectAtContent - returns object at index in arrangedContent'](assert) {\n assert.equal(array.objectAtContent(1), '4', 'returns object at index');\n }\n\n ['@test objectsAt - returns objects at indices in arrangedContent'](assert) {\n assert.deepEqual(array.objectsAt([0, 2, 4]), ['5', '2', undefined], 'returns objects at indices');\n }\n\n ['@test slice - returns a slice of the arrangedContent'](assert) {\n assert.deepEqual(array.slice(1, 3), ['4', '2'], 'returns sliced arrangedContent');\n }\n\n ['@test toArray - returns copy of arrangedContent'](assert) {\n assert.deepEqual(array.toArray(), ['5', '4', '2', '1']);\n }\n\n ['@test without - returns arrangedContent without object'](assert) {\n assert.deepEqual(array.without('2'), ['5', '4', '1'], 'returns arranged without object');\n }\n\n ['@test lastObject - returns last arranged object'](assert) {\n assert.equal(array.get('lastObject'), '1', 'returns last arranged object');\n }\n\n ['@test firstObject - returns first arranged object'](assert) {\n assert.equal(array.get('firstObject'), '5', 'returns first arranged object');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ArrayProxy - with transforms', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n (0, _runloop.run)(function () {\n array = _array_proxy.default.extend({\n objectAtContent(idx) {\n let obj = (0, _metal.objectAt)(this.get('arrangedContent'), idx);\n return obj && obj.toString();\n }\n\n }).create({\n content: (0, _array.A)([1, 2, 4, 5])\n });\n });\n }\n\n afterEach() {\n (0, _runloop.run)(function () {\n array.destroy();\n });\n }\n\n ['@test popObject - removes last object in arrangedContent'](assert) {\n let popped = array.popObject();\n assert.equal(popped, '5', 'returns last object');\n assert.deepEqual(array.toArray(), ['1', '2', '4'], 'removes from content');\n }\n\n ['@test removeObject - removes object from content'](assert) {\n array.removeObject('2');\n assert.deepEqual(array.toArray(), ['1', '4', '5']);\n }\n\n ['@test removeObjects - removes objects from content'](assert) {\n array.removeObjects(['2', '4', '6']);\n assert.deepEqual(array.toArray(), ['1', '5']);\n }\n\n ['@test shiftObject - removes from start of arrangedContent'](assert) {\n let shifted = array.shiftObject();\n assert.equal(shifted, '1', 'returns first object');\n assert.deepEqual(array.toArray(), ['2', '4', '5'], 'removes object from content');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/array_proxy/array_observer_test\", [\"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_metal, _array_proxy, _array, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ArrayProxy - array observers', class extends _internalTestHelpers.AbstractTestCase {\n ['@test mutating content'](assert) {\n assert.expect(4);\n let content = (0, _array.A)(['x', 'y', 'z']);\n\n let proxy = _array_proxy.default.create({\n content\n });\n\n proxy.addArrayObserver({\n arrayWillChange(proxy, startIndex, removeCount, addCount) {\n assert.deepEqual([startIndex, removeCount, addCount], [1, 1, 3]);\n assert.deepEqual(proxy.toArray(), ['x', 'y', 'z']);\n },\n\n arrayDidChange(proxy, startIndex, removeCount, addCount) {\n assert.deepEqual([startIndex, removeCount, addCount], [1, 1, 3]);\n assert.deepEqual(proxy.toArray(), ['x', 'a', 'b', 'c', 'z']);\n }\n\n });\n proxy.toArray();\n content.replace(1, 1, ['a', 'b', 'c']);\n }\n\n ['@test assigning content'](assert) {\n assert.expect(4);\n let content = (0, _array.A)(['x', 'y', 'z']);\n\n let proxy = _array_proxy.default.create({\n content\n });\n\n proxy.addArrayObserver({\n arrayWillChange(proxy, startIndex, removeCount, addCount) {\n assert.deepEqual([startIndex, removeCount, addCount], [0, 3, 5]);\n assert.deepEqual(proxy.toArray(), ['x', 'y', 'z']);\n },\n\n arrayDidChange(proxy, startIndex, removeCount, addCount) {\n assert.deepEqual([startIndex, removeCount, addCount], [0, 3, 5]);\n assert.deepEqual(proxy.toArray(), ['a', 'b', 'c', 'd', 'e']);\n }\n\n });\n proxy.toArray();\n (0, _metal.set)(proxy, 'content', (0, _array.A)(['a', 'b', 'c', 'd', 'e']));\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/array_proxy/content_change_test\", [\"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_runloop, _metal, _array_proxy, _array, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ArrayProxy - content change', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test The ArrayProxy doesn't explode when assigned a destroyed object\"](assert) {\n let proxy1 = _array_proxy.default.create();\n\n let proxy2 = _array_proxy.default.create();\n\n (0, _runloop.run)(() => proxy1.destroy());\n (0, _metal.set)(proxy2, 'content', proxy1);\n assert.ok(true, 'No exception was raised');\n }\n\n ['@test should update if content changes while change events are deferred'](assert) {\n let proxy = _array_proxy.default.create();\n\n assert.deepEqual(proxy.toArray(), []);\n (0, _metal.changeProperties)(() => {\n proxy.set('content', (0, _array.A)([1, 2, 3]));\n assert.deepEqual(proxy.toArray(), [1, 2, 3]);\n });\n }\n\n ['@test objectAt recomputes the object cache correctly'](assert) {\n let indexes = [];\n\n let proxy = _array_proxy.default.extend({\n objectAtContent(index) {\n indexes.push(index);\n return this.content[index];\n }\n\n }).create({\n content: (0, _array.A)([1, 2, 3, 4, 5])\n });\n\n assert.deepEqual(indexes, []);\n assert.deepEqual(proxy.objectAt(0), 1);\n assert.deepEqual(indexes, [0, 1, 2, 3, 4]);\n indexes.length = 0;\n proxy.set('content', (0, _array.A)([1, 2, 3]));\n assert.deepEqual(proxy.objectAt(0), 1);\n assert.deepEqual(indexes, [0, 1, 2]);\n indexes.length = 0;\n proxy.content.replace(2, 0, [4, 5]);\n assert.deepEqual(proxy.objectAt(0), 1);\n assert.deepEqual(proxy.objectAt(1), 2);\n assert.deepEqual(indexes, []);\n assert.deepEqual(proxy.objectAt(2), 4);\n assert.deepEqual(indexes, [2, 3, 4]);\n }\n\n ['@test negative indexes are handled correctly'](assert) {\n let indexes = [];\n\n let proxy = _array_proxy.default.extend({\n objectAtContent(index) {\n indexes.push(index);\n return this.content[index];\n }\n\n }).create({\n content: (0, _array.A)([1, 2, 3, 4, 5])\n });\n\n assert.deepEqual(proxy.toArray(), [1, 2, 3, 4, 5]);\n indexes.length = 0;\n proxy.content.replace(-1, 0, [7]);\n proxy.content.replace(-2, 0, [6]);\n assert.deepEqual(proxy.toArray(), [1, 2, 3, 4, 6, 7, 5]);\n assert.deepEqual(indexes, [4, 5, 6]);\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/array_proxy/length_test\", [\"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/metal\", \"@ember/object/computed\", \"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_array_proxy, _object, _metal, _computed, _array, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember.ArrayProxy - content change (length)', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should update length for null content'](assert) {\n let proxy = _array_proxy.default.create({\n content: (0, _array.A)([1, 2, 3])\n });\n\n assert.equal(proxy.get('length'), 3, 'precond - length is 3');\n proxy.set('content', null);\n assert.equal(proxy.get('length'), 0, 'length updates');\n }\n\n ['@test should update length for null content when there is a computed property watching length'](assert) {\n let proxy = _array_proxy.default.extend({\n isEmpty: (0, _computed.not)('length')\n }).create({\n content: (0, _array.A)([1, 2, 3])\n });\n\n assert.equal(proxy.get('length'), 3, 'precond - length is 3'); // Consume computed property that depends on length\n\n proxy.get('isEmpty'); // update content\n\n proxy.set('content', null);\n assert.equal(proxy.get('length'), 0, 'length updates');\n }\n\n ['@test getting length does not recompute the object cache'](assert) {\n let indexes = [];\n\n let proxy = _array_proxy.default.extend({\n objectAtContent(index) {\n indexes.push(index);\n return this.content[index];\n }\n\n }).create({\n content: (0, _array.A)([1, 2, 3, 4, 5])\n });\n\n assert.equal((0, _metal.get)(proxy, 'length'), 5);\n assert.deepEqual(indexes, []);\n indexes.length = 0;\n proxy.set('content', (0, _array.A)([6, 7, 8]));\n assert.equal((0, _metal.get)(proxy, 'length'), 3);\n assert.deepEqual(indexes, []);\n indexes.length = 0;\n proxy.content.replace(1, 0, [1, 2, 3]);\n assert.equal((0, _metal.get)(proxy, 'length'), 6);\n assert.deepEqual(indexes, []);\n }\n\n '@test accessing length after content set to null'(assert) {\n let obj = _array_proxy.default.create({\n content: ['foo', 'bar']\n });\n\n assert.equal(obj.length, 2, 'precond');\n (0, _metal.set)(obj, 'content', null);\n assert.equal(obj.length, 0, 'length is 0 without content');\n assert.deepEqual(obj.content, null, 'content was updated');\n }\n\n '@test accessing length after content set to null in willDestroy'(assert) {\n let obj = _array_proxy.default.extend({\n willDestroy() {\n this.set('content', null);\n\n this._super(...arguments);\n }\n\n }).create({\n content: ['foo', 'bar']\n });\n\n assert.equal(obj.length, 2, 'precond');\n (0, _internalTestHelpers.runTask)(() => obj.destroy());\n assert.equal(obj.length, 0, 'length is 0 without content');\n assert.deepEqual(obj.content, null, 'content was updated');\n }\n\n '@test setting length to 0'(assert) {\n let obj = _array_proxy.default.create({\n content: ['foo', 'bar']\n });\n\n assert.equal(obj.length, 2, 'precond');\n (0, _metal.set)(obj, 'length', 0);\n assert.equal(obj.length, 0, 'length was updated');\n assert.deepEqual(obj.content, [], 'content length was truncated');\n }\n\n '@test setting length to smaller value'(assert) {\n let obj = _array_proxy.default.create({\n content: ['foo', 'bar']\n });\n\n assert.equal(obj.length, 2, 'precond');\n (0, _metal.set)(obj, 'length', 1);\n assert.equal(obj.length, 1, 'length was updated');\n assert.deepEqual(obj.content, ['foo'], 'content length was truncated');\n }\n\n '@test setting length to larger value'(assert) {\n let obj = _array_proxy.default.create({\n content: ['foo', 'bar']\n });\n\n assert.equal(obj.length, 2, 'precond');\n (0, _metal.set)(obj, 'length', 3);\n assert.equal(obj.length, 3, 'length was updated');\n assert.deepEqual(obj.content, ['foo', 'bar', undefined], 'content length was updated');\n }\n\n '@test setting length after content set to null'(assert) {\n let obj = _array_proxy.default.create({\n content: ['foo', 'bar']\n });\n\n assert.equal(obj.length, 2, 'precond');\n (0, _metal.set)(obj, 'content', null);\n assert.equal(obj.length, 0, 'length was updated');\n (0, _metal.set)(obj, 'length', 0);\n assert.equal(obj.length, 0, 'length is still updated');\n }\n\n '@test setting length to greater than zero'(assert) {\n let obj = _array_proxy.default.create({\n content: ['foo', 'bar']\n });\n\n assert.equal(obj.length, 2, 'precond');\n (0, _metal.set)(obj, 'length', 1);\n assert.equal(obj.length, 1, 'length was updated');\n assert.deepEqual(obj.content, ['foo'], 'content length was truncated');\n }\n\n ['@test array proxy + aliasedProperty complex test'](assert) {\n let aCalled, bCalled, cCalled, dCalled, eCalled;\n aCalled = bCalled = cCalled = dCalled = eCalled = 0;\n\n let obj = _object.default.extend({\n colors: (0, _computed.oneWay)('model'),\n length: (0, _computed.oneWay)('colors.length'),\n a: (0, _metal.observer)('length', () => aCalled++),\n b: (0, _metal.observer)('colors.length', () => bCalled++),\n c: (0, _metal.observer)('colors.content.length', () => cCalled++),\n d: (0, _metal.observer)('colors.[]', () => dCalled++),\n e: (0, _metal.observer)('colors.content.[]', () => eCalled++)\n }).create();\n\n obj.set('model', _array_proxy.default.create({\n content: (0, _array.A)(['red', 'yellow', 'blue'])\n }));\n assert.equal(obj.get('colors.content.length'), 3);\n assert.equal(obj.get('colors.length'), 3);\n assert.equal(obj.get('length'), 3);\n assert.equal(aCalled, 1, 'expected observer `length` to be called ONCE');\n assert.equal(bCalled, 1, 'expected observer `colors.length` to be called ONCE');\n assert.equal(cCalled, 1, 'expected observer `colors.content.length` to be called ONCE');\n assert.equal(dCalled, 1, 'expected observer `colors.[]` to be called ONCE');\n assert.equal(eCalled, 1, 'expected observer `colors.content.[]` to be called ONCE');\n obj.get('colors').pushObjects(['green', 'red']);\n assert.equal(obj.get('colors.content.length'), 5);\n assert.equal(obj.get('colors.length'), 5);\n assert.equal(obj.get('length'), 5);\n assert.equal(aCalled, 2, 'expected observer `length` to be called TWICE');\n assert.equal(bCalled, 2, 'expected observer `colors.length` to be called TWICE');\n assert.equal(cCalled, 2, 'expected observer `colors.content.length` to be called TWICE');\n assert.equal(dCalled, 2, 'expected observer `colors.[]` to be called TWICE');\n assert.equal(eCalled, 2, 'expected observer `colors.content.[]` to be called TWICE');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/array_proxy/watching_and_listening_test\", [\"@ember/-internals/meta\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_meta, _metal, _array_proxy, _array, _internalTestHelpers) {\n \"use strict\";\n\n function sortedListenersFor(obj, eventName) {\n let listeners = (0, _meta.peekMeta)(obj).matchingListeners(eventName) || [];\n let keys = [];\n\n for (let i = 0; i < listeners.length; i += 3) {\n keys.push(listeners[i + 1]);\n }\n\n return keys.sort();\n }\n\n (0, _internalTestHelpers.moduleFor)('ArrayProxy - watching and listening', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test setting 'content' adds listeners correctly\"](assert) {\n let content = (0, _array.A)();\n\n let proxy = _array_proxy.default.create();\n\n assert.deepEqual(sortedListenersFor(content, '@array:before'), []);\n assert.deepEqual(sortedListenersFor(content, '@array:change'), []);\n proxy.set('content', content);\n assert.deepEqual(sortedListenersFor(content, '@array:before'), ['_arrangedContentArrayWillChange']);\n assert.deepEqual(sortedListenersFor(content, '@array:change'), ['_arrangedContentArrayDidChange']);\n }\n\n [\"@test changing 'content' adds and removes listeners correctly\"](assert) {\n let content1 = (0, _array.A)();\n let content2 = (0, _array.A)();\n\n let proxy = _array_proxy.default.create({\n content: content1\n });\n\n assert.deepEqual(sortedListenersFor(content1, '@array:before'), ['_arrangedContentArrayWillChange']);\n assert.deepEqual(sortedListenersFor(content1, '@array:change'), ['_arrangedContentArrayDidChange']);\n proxy.set('content', content2);\n assert.deepEqual(sortedListenersFor(content1, '@array:before'), []);\n assert.deepEqual(sortedListenersFor(content1, '@array:change'), []);\n assert.deepEqual(sortedListenersFor(content2, '@array:before'), ['_arrangedContentArrayWillChange']);\n assert.deepEqual(sortedListenersFor(content2, '@array:change'), ['_arrangedContentArrayDidChange']);\n }\n\n [\"@test regression test for https://github.com/emberjs/ember.js/issues/12475\"](assert) {\n let item1a = {\n id: 1\n };\n let item1b = {\n id: 2\n };\n let item1c = {\n id: 3\n };\n let content1 = (0, _array.A)([item1a, item1b, item1c]);\n\n let proxy = _array_proxy.default.create({\n content: content1\n });\n\n let obj = {\n proxy\n };\n (0, _metal.defineProperty)(obj, 'ids', (0, _metal.computed)('proxy.@each.id', function () {\n return (0, _metal.get)(this, 'proxy').mapBy('id');\n })); // These manually added observers are to simulate the observers added by the\n // rendering process in a template like:\n //\n // {{#each items as |item|}}\n // {{item.id}}\n // {{/each}}\n\n (0, _metal.addObserver)(item1a, 'id', function () {});\n (0, _metal.addObserver)(item1b, 'id', function () {});\n (0, _metal.addObserver)(item1c, 'id', function () {}); // The EachProxy has not yet been consumed. Only the manually added\n // observers are watching.\n\n assert.equal((0, _metal.watcherCount)(item1a, 'id'), 1);\n assert.equal((0, _metal.watcherCount)(item1b, 'id'), 1);\n assert.equal((0, _metal.watcherCount)(item1c, 'id'), 1); // Consume the each proxy. This causes the EachProxy to add two observers\n // per item: one for \"before\" events and one for \"after\" events.\n\n assert.deepEqual((0, _metal.get)(obj, 'ids'), [1, 2, 3]); // For each item, the two each proxy observers and one manual added observer\n // are watching.\n\n assert.equal((0, _metal.watcherCount)(item1a, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item1b, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item1c, 'id'), 2); // This should be a no-op because observers do not fire if the value\n // 1. is an object and 2. is the same as the old value.\n\n proxy.set('content', content1);\n assert.equal((0, _metal.watcherCount)(item1a, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item1b, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item1c, 'id'), 2); // This is repeated to catch the regression. It should still be a no-op.\n\n proxy.set('content', content1);\n assert.equal((0, _metal.watcherCount)(item1a, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item1b, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item1c, 'id'), 2); // Set the content to a new array with completely different items and\n // repeat the process.\n\n let item2a = {\n id: 4\n };\n let item2b = {\n id: 5\n };\n let item2c = {\n id: 6\n };\n let content2 = (0, _array.A)([item2a, item2b, item2c]);\n (0, _metal.addObserver)(item2a, 'id', function () {});\n (0, _metal.addObserver)(item2b, 'id', function () {});\n (0, _metal.addObserver)(item2c, 'id', function () {});\n proxy.set('content', content2);\n assert.deepEqual((0, _metal.get)(obj, 'ids'), [4, 5, 6]);\n assert.equal((0, _metal.watcherCount)(item2a, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item2b, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item2c, 'id'), 2); // Ensure that the observers added by the EachProxy on all items in the\n // first content array have been torn down.\n\n assert.equal((0, _metal.watcherCount)(item1a, 'id'), 1);\n assert.equal((0, _metal.watcherCount)(item1b, 'id'), 1);\n assert.equal((0, _metal.watcherCount)(item1c, 'id'), 1);\n proxy.set('content', content2);\n assert.equal((0, _metal.watcherCount)(item2a, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item2b, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item2c, 'id'), 2);\n proxy.set('content', content2);\n assert.equal((0, _metal.watcherCount)(item2a, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item2b, 'id'), 2);\n assert.equal((0, _metal.watcherCount)(item2c, 'id'), 2);\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/core_object_test\", [\"@ember/-internals/owner\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/core_object\", \"internal-test-helpers\"], function (_owner, _metal, _core_object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember.CoreObject', class extends _internalTestHelpers.AbstractTestCase {\n ['@test throws deprecation with new (one arg)']() {\n expectDeprecation(() => {\n new _core_object.default({\n firstName: 'Stef',\n lastName: 'Penner'\n });\n }, /using `new` with EmberObject has been deprecated/);\n }\n\n ['@test throws deprecation with new (> 1 arg)']() {\n expectDeprecation(() => {\n new _core_object.default({\n firstName: 'Stef',\n lastName: 'Penner'\n }, {\n other: 'name'\n });\n }, /using `new` with EmberObject has been deprecated/);\n }\n\n ['@test toString should be not be added as a property when calling toString()'](assert) {\n let obj = _core_object.default.create({\n firstName: 'Foo',\n lastName: 'Bar'\n });\n\n obj.toString();\n assert.notOk(obj.hasOwnProperty('toString'), 'Calling toString() should not create a toString class property');\n }\n\n ['@test should not trigger proxy assertion when retrieving a proxy with (GH#16263)'](assert) {\n let someProxyishThing = _core_object.default.extend({\n unknownProperty() {\n return true;\n }\n\n }).create();\n\n let obj = _core_object.default.create({\n someProxyishThing\n });\n\n let proxy = (0, _metal.get)(obj, 'someProxyishThing');\n assert.equal((0, _metal.get)(proxy, 'lolol'), true, 'should be able to get data from a proxy');\n }\n\n ['@test should not trigger proxy assertion when retrieving a re-registered proxy (GH#16610)'](assert) {\n let owner = (0, _internalTestHelpers.buildOwner)();\n\n let someProxyishThing = _core_object.default.extend({\n unknownProperty() {\n return true;\n }\n\n }).create(); // emulates ember-engines's process of registering services provided\n // by the host app down to the engine\n\n\n owner.register('thing:one', someProxyishThing, {\n instantiate: false\n });\n assert.equal(owner.lookup('thing:one'), someProxyishThing);\n }\n\n ['@test should not trigger proxy assertion when probing for a \"symbol\"'](assert) {\n let proxy = _core_object.default.extend({\n unknownProperty() {\n return true;\n }\n\n }).create();\n\n assert.equal((0, _metal.get)(proxy, 'lolol'), true, 'should be able to get data from a proxy'); // should not trigger an assertion\n\n (0, _owner.getOwner)(proxy);\n }\n\n ['@test can use getOwner in a proxy init GH#16484'](assert) {\n let owner = {};\n let options = {};\n (0, _owner.setOwner)(options, owner);\n\n _core_object.default.extend({\n init() {\n this._super(...arguments);\n\n let localOwner = (0, _owner.getOwner)(this);\n assert.equal(localOwner, owner, 'should be able to `getOwner` in init');\n },\n\n unknownProperty() {\n return undefined;\n }\n\n }).create(options);\n }\n\n ['@test observed properties are enumerable when set GH#14594'](assert) {\n let callCount = 0;\n\n let Test = _core_object.default.extend({\n myProp: null,\n anotherProp: undefined,\n didChangeMyProp: (0, _metal.observer)('myProp', function () {\n callCount++;\n })\n });\n\n let test = Test.create();\n (0, _metal.set)(test, 'id', '3');\n (0, _metal.set)(test, 'myProp', {\n id: 1\n });\n assert.deepEqual(Object.keys(test).sort(), ['id', 'myProp']);\n (0, _metal.set)(test, 'anotherProp', 'nice');\n assert.deepEqual(Object.keys(test).sort(), ['anotherProp', 'id', 'myProp']);\n assert.equal(callCount, 1);\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/namespace/base_test\", [\"@ember/-internals/environment\", \"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/utils\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/system/namespace\", \"internal-test-helpers\"], function (_environment, _runloop, _metal, _utils, _object, _namespace, _internalTestHelpers) {\n \"use strict\";\n\n const originalLookup = _environment.context.lookup;\n let lookup;\n (0, _internalTestHelpers.moduleFor)('Namespace', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n (0, _metal.setNamespaceSearchDisabled)(false);\n lookup = _environment.context.lookup = {};\n }\n\n afterEach() {\n (0, _metal.setNamespaceSearchDisabled)(false);\n\n for (let prop in lookup) {\n if (lookup[prop]) {\n (0, _runloop.run)(lookup[prop], 'destroy');\n }\n }\n\n _environment.context.lookup = originalLookup;\n }\n\n ['@test Namespace should be a subclass of EmberObject'](assert) {\n assert.ok(_object.default.detect(_namespace.default));\n }\n\n ['@test Namespace should be duck typed'](assert) {\n let namespace = _namespace.default.create();\n\n try {\n assert.ok((0, _metal.get)(namespace, 'isNamespace'), 'isNamespace property is true');\n } finally {\n (0, _runloop.run)(namespace, 'destroy');\n }\n }\n\n ['@test Namespace is found and named'](assert) {\n let nsA = lookup.NamespaceA = _namespace.default.create();\n\n assert.equal(nsA.toString(), 'NamespaceA', 'namespaces should have a name if they are on lookup');\n\n let nsB = lookup.NamespaceB = _namespace.default.create();\n\n assert.equal(nsB.toString(), 'NamespaceB', 'namespaces work if created after the first namespace processing pass');\n }\n\n ['@test Classes under an Namespace are properly named'](assert) {\n let nsA = lookup.NamespaceA = _namespace.default.create();\n\n nsA.Foo = _object.default.extend();\n assert.equal(nsA.Foo.toString(), 'NamespaceA.Foo', 'Classes pick up their parent namespace');\n nsA.Bar = _object.default.extend();\n assert.equal(nsA.Bar.toString(), 'NamespaceA.Bar', 'New Classes get the naming treatment too');\n\n let nsB = lookup.NamespaceB = _namespace.default.create();\n\n nsB.Foo = _object.default.extend();\n assert.equal(nsB.Foo.toString(), 'NamespaceB.Foo', 'Classes in new namespaces get the naming treatment');\n } //test(\"Classes under Ember are properly named\", function() {\n // // ES6TODO: This test does not work reliably when running independent package build with Broccoli config.\n // Ember.TestObject = EmberObject.extend({});\n // equal(Ember.TestObject.toString(), \"Ember.TestObject\", \"class under Ember is given a string representation\");\n //});\n\n\n ['@test Lowercase namespaces are no longer supported'](assert) {\n let nsC = lookup.namespaceC = _namespace.default.create();\n\n assert.equal(nsC.toString(), (0, _utils.guidFor)(nsC));\n }\n\n ['@test A namespace can be assigned a custom name'](assert) {\n let nsA = _namespace.default.create({\n name: 'NamespaceA'\n });\n\n try {\n let nsB = lookup.NamespaceB = _namespace.default.create({\n name: 'CustomNamespaceB'\n });\n\n nsA.Foo = _object.default.extend();\n nsB.Foo = _object.default.extend();\n assert.equal(nsA.Foo.toString(), 'NamespaceA.Foo', \"The namespace's name is used when the namespace is not in the lookup object\");\n assert.equal(nsB.Foo.toString(), 'CustomNamespaceB.Foo', \"The namespace's name is used when the namespace is in the lookup object\");\n } finally {\n (0, _runloop.run)(nsA, 'destroy');\n }\n }\n\n ['@test Calling namespace.nameClasses() eagerly names all classes'](assert) {\n (0, _metal.setNamespaceSearchDisabled)(true);\n\n let namespace = lookup.NS = _namespace.default.create();\n\n namespace.ClassA = _object.default.extend();\n namespace.ClassB = _object.default.extend();\n\n _namespace.default.processAll();\n\n assert.equal(namespace.ClassA.toString(), 'NS.ClassA');\n assert.equal(namespace.ClassB.toString(), 'NS.ClassB');\n }\n\n ['@test A namespace can be looked up by its name'](assert) {\n let NS = lookup.NS = _namespace.default.create();\n\n let UI = lookup.UI = _namespace.default.create();\n\n let CF = lookup.CF = _namespace.default.create();\n\n assert.equal(_namespace.default.byName('NS'), NS);\n assert.equal(_namespace.default.byName('UI'), UI);\n assert.equal(_namespace.default.byName('CF'), CF);\n }\n\n ['@test A nested namespace can be looked up by its name'](assert) {\n let UI = lookup.UI = _namespace.default.create();\n\n UI.Nav = _namespace.default.create();\n assert.equal(_namespace.default.byName('UI.Nav'), UI.Nav);\n (0, _runloop.run)(UI.Nav, 'destroy');\n }\n\n ['@test Destroying a namespace before caching lookup removes it from the list of namespaces'](assert) {\n let CF = lookup.CF = _namespace.default.create();\n\n (0, _runloop.run)(CF, 'destroy');\n assert.equal(_namespace.default.byName('CF'), undefined, 'namespace can not be found after destroyed');\n }\n\n ['@test Destroying a namespace after looking up removes it from the list of namespaces'](assert) {\n let CF = lookup.CF = _namespace.default.create();\n\n assert.equal(_namespace.default.byName('CF'), CF, 'precondition - namespace can be looked up by name');\n (0, _runloop.run)(CF, 'destroy');\n assert.equal(_namespace.default.byName('CF'), undefined, 'namespace can not be found after destroyed');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/native_array/a_test\", [\"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_array, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember.A', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Ember.A'](assert) {\n assert.deepEqual((0, _array.A)([1, 2]), [1, 2], 'array values were not be modified');\n assert.deepEqual((0, _array.A)(), [], 'returned an array with no arguments');\n assert.deepEqual((0, _array.A)(null), [], 'returned an array with a null argument');\n assert.ok(_array.default.detect((0, _array.A)()), 'returned an ember array');\n assert.ok(_array.default.detect((0, _array.A)([1, 2])), 'returned an ember array');\n }\n\n ['@test new Ember.A'](assert) {\n expectDeprecation(() => {\n assert.deepEqual(new _array.A([1, 2]), [1, 2], 'array values were not be modified');\n assert.deepEqual(new _array.A(), [], 'returned an array with no arguments');\n assert.deepEqual(new _array.A(null), [], 'returned an array with a null argument');\n assert.ok(_array.default.detect(new _array.A()), 'returned an ember array');\n assert.ok(_array.default.detect(new _array.A([1, 2])), 'returned an ember array');\n });\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/native_array/replace_test\", [\"@ember/-internals/runtime/lib/mixins/array\", \"internal-test-helpers\"], function (_array, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('NativeArray.replace', class extends _internalTestHelpers.AbstractTestCase {\n ['@test raises assertion if third argument is not an array']() {\n expectAssertion(function () {\n (0, _array.A)([1, 2, 3]).replace(1, 1, '');\n }, 'The third argument to replace needs to be an array.');\n }\n\n ['@test it does not raise an assertion if third parameter is not passed'](assert) {\n assert.deepEqual((0, _array.A)([1, 2, 3]).replace(1, 2), (0, _array.A)([1]), 'no assertion raised');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/computed_test\", [\"@ember/-internals/metal\", \"@ember/object/computed\", \"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_metal, _computed, _object, _internalTestHelpers) {\n \"use strict\";\n\n function K() {\n return this;\n }\n\n function testWithDefault(assert, expect, x, y, z) {\n assert.equal((0, _metal.get)(x, y), expect);\n assert.equal((0, _metal.getWithDefault)(x, y, z), expect);\n assert.equal(x.getWithDefault(y, z), expect);\n }\n\n (0, _internalTestHelpers.moduleFor)('EmberObject computed property', class extends _internalTestHelpers.AbstractTestCase {\n ['@test computed property on instance'](assert) {\n let MyClass = _object.default.extend({\n foo: (0, _metal.computed)(function () {\n return 'FOO';\n })\n });\n\n testWithDefault(assert, 'FOO', MyClass.create(), 'foo');\n }\n\n ['@test computed property on subclass'](assert) {\n let MyClass = _object.default.extend({\n foo: (0, _metal.computed)(function () {\n return 'FOO';\n })\n });\n\n let Subclass = MyClass.extend({\n foo: (0, _metal.computed)(function () {\n return 'BAR';\n })\n });\n testWithDefault(assert, 'BAR', Subclass.create(), 'foo');\n }\n\n ['@test replacing computed property with regular val'](assert) {\n let MyClass = _object.default.extend({\n foo: (0, _metal.computed)(function () {\n return 'FOO';\n })\n });\n\n let Subclass = MyClass.extend({\n foo: 'BAR'\n });\n testWithDefault(assert, 'BAR', Subclass.create(), 'foo');\n }\n\n ['@test complex depndent keys'](assert) {\n let MyClass = _object.default.extend({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'bar', {\n baz: 'BIFF'\n });\n },\n\n count: 0,\n foo: (0, _metal.computed)('bar.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n return (0, _metal.get)((0, _metal.get)(this, 'bar'), 'baz') + ' ' + (0, _metal.get)(this, 'count');\n })\n });\n\n let Subclass = MyClass.extend({\n count: 20\n });\n let obj1 = MyClass.create();\n let obj2 = Subclass.create();\n testWithDefault(assert, 'BIFF 1', obj1, 'foo');\n testWithDefault(assert, 'BIFF 21', obj2, 'foo');\n (0, _metal.set)((0, _metal.get)(obj1, 'bar'), 'baz', 'BLARG');\n testWithDefault(assert, 'BLARG 2', obj1, 'foo');\n testWithDefault(assert, 'BIFF 21', obj2, 'foo');\n (0, _metal.set)((0, _metal.get)(obj2, 'bar'), 'baz', 'BOOM');\n testWithDefault(assert, 'BLARG 2', obj1, 'foo');\n testWithDefault(assert, 'BOOM 22', obj2, 'foo');\n }\n\n ['@test complex dependent keys changing complex dependent keys'](assert) {\n let MyClass = _object.default.extend({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'bar', {\n baz: 'BIFF'\n });\n },\n\n count: 0,\n foo: (0, _metal.computed)('bar.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n return (0, _metal.get)((0, _metal.get)(this, 'bar'), 'baz') + ' ' + (0, _metal.get)(this, 'count');\n })\n });\n\n let Subclass = MyClass.extend({\n init() {\n this._super(...arguments);\n\n (0, _metal.set)(this, 'bar2', {\n baz: 'BIFF2'\n });\n },\n\n count: 0,\n foo: (0, _metal.computed)('bar2.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n return (0, _metal.get)((0, _metal.get)(this, 'bar2'), 'baz') + ' ' + (0, _metal.get)(this, 'count');\n })\n });\n let obj2 = Subclass.create();\n testWithDefault(assert, 'BIFF2 1', obj2, 'foo');\n (0, _metal.set)((0, _metal.get)(obj2, 'bar'), 'baz', 'BLARG');\n testWithDefault(assert, 'BIFF2 1', obj2, 'foo'); // should not invalidate property\n\n (0, _metal.set)((0, _metal.get)(obj2, 'bar2'), 'baz', 'BLARG');\n testWithDefault(assert, 'BLARG 2', obj2, 'foo'); // should not invalidate property\n }\n\n ['@test can retrieve metadata for a computed property'](assert) {\n let MyClass = _object.default.extend({\n computedProperty: (0, _metal.computed)(function () {}).meta({\n key: 'keyValue'\n })\n });\n\n assert.equal((0, _metal.get)(MyClass.metaForProperty('computedProperty'), 'key'), 'keyValue', 'metadata saved on the computed property can be retrieved');\n\n let ClassWithNoMetadata = _object.default.extend({\n computedProperty: (0, _metal.computed)(function () {}),\n staticProperty: 12\n });\n\n assert.equal(typeof ClassWithNoMetadata.metaForProperty('computedProperty'), 'object', 'returns empty hash if no metadata has been saved');\n expectAssertion(function () {\n ClassWithNoMetadata.metaForProperty('nonexistentProperty');\n }, \"metaForProperty() could not find a computed property with key 'nonexistentProperty'.\");\n expectAssertion(function () {\n ClassWithNoMetadata.metaForProperty('staticProperty');\n }, \"metaForProperty() could not find a computed property with key 'staticProperty'.\");\n }\n\n ['@test overriding a computed property with null removes it from eachComputedProperty iteration'](assert) {\n let MyClass = _object.default.extend({\n foo: (0, _metal.computed)(function () {}),\n fooDidChange: (0, _metal.observer)('foo', function () {}),\n bar: (0, _metal.computed)(function () {})\n });\n\n let SubClass = MyClass.extend({\n foo: null\n });\n let list = [];\n SubClass.eachComputedProperty(name => list.push(name));\n assert.deepEqual(list.sort(), ['bar'], 'overridding with null removes from eachComputedProperty listing');\n }\n\n ['@test can iterate over a list of computed properties for a class'](assert) {\n let MyClass = _object.default.extend({\n foo: (0, _metal.computed)(function () {}),\n fooDidChange: (0, _metal.observer)('foo', function () {}),\n bar: (0, _metal.computed)(function () {}),\n qux: (0, _metal.alias)('foo')\n });\n\n let SubClass = MyClass.extend({\n baz: (0, _metal.computed)(function () {})\n });\n SubClass.reopen({\n bat: (0, _metal.computed)(function () {}).meta({\n iAmBat: true\n })\n });\n let list = [];\n MyClass.eachComputedProperty(function (name) {\n list.push(name);\n });\n assert.deepEqual(list.sort(), ['bar', 'foo', 'qux'], 'watched and unwatched computed properties are iterated');\n list = [];\n SubClass.eachComputedProperty(function (name, meta) {\n list.push(name);\n\n if (name === 'bat') {\n assert.deepEqual(meta, {\n iAmBat: true\n });\n } else {\n assert.deepEqual(meta, {});\n }\n });\n assert.deepEqual(list.sort(), ['bar', 'bat', 'baz', 'foo', 'qux'], 'all inherited properties are included');\n }\n\n ['@test list of properties updates when an additional property is added (such cache busting)'](assert) {\n let MyClass = _object.default.extend({\n foo: (0, _metal.computed)(K),\n fooDidChange: (0, _metal.observer)('foo', function () {}),\n bar: (0, _metal.computed)(K)\n });\n\n let list = [];\n MyClass.eachComputedProperty(function (name) {\n list.push(name);\n });\n assert.deepEqual(list.sort(), ['bar', 'foo'].sort(), 'expected two computed properties');\n MyClass.reopen({\n baz: (0, _metal.computed)(K)\n });\n MyClass.create(); // force apply mixins\n\n list = [];\n MyClass.eachComputedProperty(function (name) {\n list.push(name);\n });\n assert.deepEqual(list.sort(), ['bar', 'foo', 'baz'].sort(), 'expected three computed properties');\n (0, _metal.defineProperty)(MyClass.prototype, 'qux', (0, _metal.computed)(K));\n list = [];\n MyClass.eachComputedProperty(function (name) {\n list.push(name);\n });\n assert.deepEqual(list.sort(), ['bar', 'foo', 'baz', 'qux'].sort(), 'expected four computed properties');\n }\n\n ['@test Calling _super in call outside the immediate function of a CP getter works'](assert) {\n function macro(callback) {\n return (0, _metal.computed)(function () {\n return callback.call(this);\n });\n }\n\n let MyClass = _object.default.extend({\n foo: (0, _metal.computed)(function () {\n return 'FOO';\n })\n });\n\n let SubClass = MyClass.extend({\n foo: macro(function () {\n return this._super();\n })\n });\n assert.ok((0, _metal.get)(SubClass.create(), 'foo'), 'FOO', 'super value is fetched');\n }\n\n ['@test Calling _super in apply outside the immediate function of a CP getter works'](assert) {\n function macro(callback) {\n return (0, _metal.computed)(function () {\n return callback.apply(this);\n });\n }\n\n let MyClass = _object.default.extend({\n foo: (0, _metal.computed)(function () {\n return 'FOO';\n })\n });\n\n let SubClass = MyClass.extend({\n foo: macro(function () {\n return this._super();\n })\n });\n assert.ok((0, _metal.get)(SubClass.create(), 'foo'), 'FOO', 'super value is fetched');\n }\n\n ['@test observing computed.reads prop and overriding it in create() works'](assert) {\n let Obj = _object.default.extend({\n name: (0, _computed.oneWay)('model.name'),\n nameDidChange: (0, _metal.observer)('name', function () {})\n });\n\n let obj1 = Obj.create({\n name: '1'\n });\n let obj2 = Obj.create({\n name: '2'\n });\n assert.equal(obj1.get('name'), '1');\n assert.equal(obj2.get('name'), '2');\n }\n\n ['@test can declare dependent keys with .property()'](assert) {\n let Obj;\n expectDeprecation(() => {\n Obj = _object.default.extend({\n foo: (0, _metal.computed)(function () {\n return this.bar;\n }).property('bar')\n });\n }, /Setting dependency keys using the `.property\\(\\)` modifier has been deprecated/);\n let obj = Obj.create({\n bar: 1\n });\n assert.equal(obj.get('foo'), 1);\n obj.set('bar', 2);\n assert.equal(obj.get('foo'), 2);\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/create_test\", [\"@ember/-internals/owner\", \"@ember/-internals/metal\", \"@glimmer/env\", \"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_owner, _metal, _env, _object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('EmberObject.create', class extends _internalTestHelpers.AbstractTestCase {\n ['@test simple properties are set'](assert) {\n let o = _object.default.create({\n ohai: 'there'\n });\n\n assert.equal(o.get('ohai'), 'there');\n }\n\n ['@test calls computed property setters'](assert) {\n let MyClass = _object.default.extend({\n foo: (0, _metal.computed)({\n get() {\n return \"this is not the value you're looking for\";\n },\n\n set(key, value) {\n return value;\n }\n\n })\n });\n\n let o = MyClass.create({\n foo: 'bar'\n });\n assert.equal(o.get('foo'), 'bar');\n }\n\n ['@test sets up mandatory setters for watched simple properties'](assert) {\n if (_env.DEBUG) {\n let MyClass = _object.default.extend({\n foo: null,\n bar: null,\n fooDidChange: (0, _metal.observer)('foo', function () {})\n });\n\n let o = MyClass.create({\n foo: 'bar',\n bar: 'baz'\n });\n assert.equal(o.get('foo'), 'bar');\n let descriptor = Object.getOwnPropertyDescriptor(o, 'foo');\n assert.ok(descriptor.set, 'Mandatory setter was setup');\n descriptor = Object.getOwnPropertyDescriptor(o, 'bar');\n assert.ok(!descriptor.set, 'Mandatory setter was not setup');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test calls setUnknownProperty if defined'](assert) {\n let setUnknownPropertyCalled = false;\n\n let MyClass = _object.default.extend({\n setUnknownProperty()\n /* key, value */\n {\n setUnknownPropertyCalled = true;\n }\n\n });\n\n MyClass.create({\n foo: 'bar'\n });\n assert.ok(setUnknownPropertyCalled, 'setUnknownProperty was called');\n }\n\n ['@test throws if you try to define a computed property']() {\n expectAssertion(function () {\n _object.default.create({\n foo: (0, _metal.computed)(function () {})\n });\n }, 'EmberObject.create no longer supports defining computed properties. Define computed properties using extend() or reopen() before calling create().');\n }\n\n ['@test throws if you try to call _super in a method']() {\n expectAssertion(function () {\n _object.default.create({\n foo() {\n this._super(...arguments);\n }\n\n });\n }, 'EmberObject.create no longer supports defining methods that call _super.');\n }\n\n [\"@test throws if you try to 'mixin' a definition\"]() {\n let myMixin = _metal.Mixin.create({\n adder(arg1, arg2) {\n return arg1 + arg2;\n }\n\n });\n\n expectAssertion(function () {\n _object.default.create(myMixin);\n }, 'EmberObject.create no longer supports mixing in other definitions, use .extend & .create separately instead.');\n }\n\n ['@test inherits properties from passed in EmberObject'](assert) {\n let baseObj = _object.default.create({\n foo: 'bar'\n });\n\n let secondaryObj = _object.default.create(baseObj);\n\n assert.equal(secondaryObj.foo, baseObj.foo, 'Em.O.create inherits properties from EmberObject parameter');\n }\n\n ['@test throws if you try to pass anything a string as a parameter']() {\n let expected = 'EmberObject.create only accepts objects.';\n expectAssertion(() => _object.default.create('some-string'), expected);\n }\n\n ['@test EmberObject.create can take undefined as a parameter'](assert) {\n let o = _object.default.create(undefined);\n\n assert.deepEqual(_object.default.create(), o);\n }\n\n ['@test can use getOwner in a proxy init GH#16484'](assert) {\n let owner = {};\n let options = {};\n (0, _owner.setOwner)(options, owner);\n\n _object.default.extend({\n init() {\n this._super(...arguments);\n\n let localOwner = (0, _owner.getOwner)(this);\n assert.equal(localOwner, owner, 'should be able to `getOwner` in init');\n },\n\n unknownProperty() {\n return undefined;\n }\n\n }).create(options);\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/destroy_test\", [\"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/meta\", \"@ember/-internals/runtime/lib/system/object\", \"@glimmer/env\", \"internal-test-helpers\"], function (_runloop, _metal, _meta, _object, _env, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('@ember/-internals/runtime/system/object/destroy_test', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should schedule objects to be destroyed at the end of the run loop'](assert) {\n let obj = _object.default.create();\n\n let meta;\n (0, _runloop.run)(() => {\n obj.destroy();\n meta = (0, _meta.peekMeta)(obj);\n assert.ok(meta, 'meta is not destroyed immediately');\n assert.ok((0, _metal.get)(obj, 'isDestroying'), 'object is marked as destroying immediately');\n assert.ok(!(0, _metal.get)(obj, 'isDestroyed'), 'object is not destroyed immediately');\n });\n meta = (0, _meta.peekMeta)(obj);\n assert.ok((0, _metal.get)(obj, 'isDestroyed'), 'object is destroyed after run loop finishes');\n } // MANDATORY_SETTER moves value to meta.values\n // a destroyed object removes meta but leaves the accessor\n // that looks it up\n\n\n ['@test should raise an exception when modifying watched properties on a destroyed object'](assert) {\n if (_env.DEBUG) {\n let obj = _object.default.extend({\n fooDidChange: (0, _metal.observer)('foo', function () {})\n }).create({\n foo: 'bar'\n });\n\n (0, _runloop.run)(() => obj.destroy());\n assert.throws(() => (0, _metal.set)(obj, 'foo', 'baz'), Error, 'raises an exception');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test observers should not fire after an object has been destroyed'](assert) {\n let count = 0;\n\n let obj = _object.default.extend({\n fooDidChange: (0, _metal.observer)('foo', function () {\n count++;\n })\n }).create();\n\n obj.set('foo', 'bar');\n assert.equal(count, 1, 'observer was fired once');\n (0, _runloop.run)(() => {\n (0, _metal.beginPropertyChanges)();\n obj.set('foo', 'quux');\n obj.destroy();\n (0, _metal.endPropertyChanges)();\n });\n assert.equal(count, 1, 'observer was not called after object was destroyed');\n }\n\n ['@test destroyed objects should not see each others changes during teardown but a long lived object should'](assert) {\n let shouldChange = 0;\n let shouldNotChange = 0;\n let objs = {};\n\n let A = _object.default.extend({\n objs: objs,\n isAlive: true,\n\n willDestroy() {\n this.set('isAlive', false);\n },\n\n bDidChange: (0, _metal.observer)('objs.b.isAlive', function () {\n shouldNotChange++;\n }),\n cDidChange: (0, _metal.observer)('objs.c.isAlive', function () {\n shouldNotChange++;\n })\n });\n\n let B = _object.default.extend({\n objs: objs,\n isAlive: true,\n\n willDestroy() {\n this.set('isAlive', false);\n },\n\n aDidChange: (0, _metal.observer)('objs.a.isAlive', function () {\n shouldNotChange++;\n }),\n cDidChange: (0, _metal.observer)('objs.c.isAlive', function () {\n shouldNotChange++;\n })\n });\n\n let C = _object.default.extend({\n objs: objs,\n isAlive: true,\n\n willDestroy() {\n this.set('isAlive', false);\n },\n\n aDidChange: (0, _metal.observer)('objs.a.isAlive', function () {\n shouldNotChange++;\n }),\n bDidChange: (0, _metal.observer)('objs.b.isAlive', function () {\n shouldNotChange++;\n })\n });\n\n let LongLivedObject = _object.default.extend({\n objs: objs,\n isAliveDidChange: (0, _metal.observer)('objs.a.isAlive', function () {\n shouldChange++;\n })\n });\n\n objs.a = A.create();\n objs.b = B.create();\n objs.c = C.create();\n LongLivedObject.create();\n (0, _runloop.run)(() => {\n let keys = Object.keys(objs);\n\n for (let i = 0; i < keys.length; i++) {\n objs[keys[i]].destroy();\n }\n });\n assert.equal(shouldNotChange, 0, 'destroyed graph objs should not see change in willDestroy');\n assert.equal(shouldChange, 1, 'long lived should see change in willDestroy');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/detectInstance_test\", [\"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/object/detectInstance', class extends _internalTestHelpers.AbstractTestCase {\n ['@test detectInstance detects instances correctly'](assert) {\n let A = _object.default.extend();\n\n let B = A.extend();\n let C = A.extend();\n\n let o = _object.default.create();\n\n let a = A.create();\n let b = B.create();\n let c = C.create();\n assert.ok(_object.default.detectInstance(o), 'o is an instance of EmberObject');\n assert.ok(_object.default.detectInstance(a), 'a is an instance of EmberObject');\n assert.ok(_object.default.detectInstance(b), 'b is an instance of EmberObject');\n assert.ok(_object.default.detectInstance(c), 'c is an instance of EmberObject');\n assert.ok(!A.detectInstance(o), 'o is not an instance of A');\n assert.ok(A.detectInstance(a), 'a is an instance of A');\n assert.ok(A.detectInstance(b), 'b is an instance of A');\n assert.ok(A.detectInstance(c), 'c is an instance of A');\n assert.ok(!B.detectInstance(o), 'o is not an instance of B');\n assert.ok(!B.detectInstance(a), 'a is not an instance of B');\n assert.ok(B.detectInstance(b), 'b is an instance of B');\n assert.ok(!B.detectInstance(c), 'c is not an instance of B');\n assert.ok(!C.detectInstance(o), 'o is not an instance of C');\n assert.ok(!C.detectInstance(a), 'a is not an instance of C');\n assert.ok(!C.detectInstance(b), 'b is not an instance of C');\n assert.ok(C.detectInstance(c), 'c is an instance of C');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/detect_test\", [\"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/object/detect', class extends _internalTestHelpers.AbstractTestCase {\n ['@test detect detects classes correctly'](assert) {\n let A = _object.default.extend();\n\n let B = A.extend();\n let C = A.extend();\n assert.ok(_object.default.detect(_object.default), 'EmberObject is an EmberObject class');\n assert.ok(_object.default.detect(A), 'A is an EmberObject class');\n assert.ok(_object.default.detect(B), 'B is an EmberObject class');\n assert.ok(_object.default.detect(C), 'C is an EmberObject class');\n assert.ok(!A.detect(_object.default), 'EmberObject is not an A class');\n assert.ok(A.detect(A), 'A is an A class');\n assert.ok(A.detect(B), 'B is an A class');\n assert.ok(A.detect(C), 'C is an A class');\n assert.ok(!B.detect(_object.default), 'EmberObject is not a B class');\n assert.ok(!B.detect(A), 'A is not a B class');\n assert.ok(B.detect(B), 'B is a B class');\n assert.ok(!B.detect(C), 'C is not a B class');\n assert.ok(!C.detect(_object.default), 'EmberObject is not a C class');\n assert.ok(!C.detect(A), 'A is not a C class');\n assert.ok(!C.detect(B), 'B is not a C class');\n assert.ok(C.detect(C), 'C is a C class');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/es-compatibility-test\", [\"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_object, _metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('EmberObject ES Compatibility', class extends _internalTestHelpers.AbstractTestCase {\n ['@test extending an Ember.Object'](assert) {\n let calls = [];\n\n class MyObject extends _object.default {\n constructor() {\n calls.push('constructor');\n super(...arguments);\n this.postInitProperty = 'post-init-property';\n }\n\n init() {\n calls.push('init');\n super.init(...arguments);\n this.initProperty = 'init-property';\n }\n\n }\n\n let myObject = MyObject.create({\n passedProperty: 'passed-property'\n });\n assert.deepEqual(calls, ['constructor', 'init'], 'constructor then init called (create)');\n assert.equal(myObject.postInitProperty, 'post-init-property', 'constructor property available on instance (create)');\n assert.equal(myObject.initProperty, 'init-property', 'init property available on instance (create)');\n assert.equal(myObject.passedProperty, 'passed-property', 'passed property available on instance (create)');\n }\n\n ['@test normal method super'](assert) {\n let calls = [];\n\n let Foo = _object.default.extend({\n method() {\n calls.push('foo');\n }\n\n });\n\n let Bar = Foo.extend({\n method() {\n this._super();\n\n calls.push('bar');\n }\n\n });\n\n class Baz extends Bar {\n method() {\n super.method();\n calls.push('baz');\n }\n\n }\n\n let Qux = Baz.extend({\n method() {\n this._super();\n\n calls.push('qux');\n }\n\n });\n let Quux = Qux.extend({\n method() {\n this._super();\n\n calls.push('quux');\n }\n\n });\n\n class Corge extends Quux {\n method() {\n super.method();\n calls.push('corge');\n }\n\n }\n\n let callValues = ['foo', 'bar', 'baz', 'qux', 'quux', 'corge'];\n [Foo, Bar, Baz, Qux, Quux, Corge].forEach((Class, index) => {\n calls = [];\n Class.create().method();\n assert.deepEqual(calls, callValues.slice(0, index + 1), 'chain of static methods called with super');\n });\n }\n\n ['@test static method super'](assert) {\n let calls;\n\n let Foo = _object.default.extend();\n\n Foo.reopenClass({\n method() {\n calls.push('foo');\n }\n\n });\n let Bar = Foo.extend();\n Bar.reopenClass({\n method() {\n this._super();\n\n calls.push('bar');\n }\n\n });\n\n class Baz extends Bar {\n static method() {\n super.method();\n calls.push('baz');\n }\n\n }\n\n let Qux = Baz.extend();\n Qux.reopenClass({\n method() {\n this._super();\n\n calls.push('qux');\n }\n\n });\n let Quux = Qux.extend();\n Quux.reopenClass({\n method() {\n this._super();\n\n calls.push('quux');\n }\n\n });\n\n class Corge extends Quux {\n static method() {\n super.method();\n calls.push('corge');\n }\n\n }\n\n let callValues = ['foo', 'bar', 'baz', 'qux', 'quux', 'corge'];\n [Foo, Bar, Baz, Qux, Quux, Corge].forEach((Class, index) => {\n calls = [];\n Class.method();\n assert.deepEqual(calls, callValues.slice(0, index + 1), 'chain of static methods called with super');\n });\n }\n\n ['@test using mixins'](assert) {\n let Mixin1 = _metal.Mixin.create({\n property1: 'data-1'\n });\n\n let Mixin2 = _metal.Mixin.create({\n property2: 'data-2'\n });\n\n class MyObject extends _object.default.extend(Mixin1, Mixin2) {}\n\n let myObject = MyObject.create();\n assert.equal(myObject.property1, 'data-1', 'includes the first mixin');\n assert.equal(myObject.property2, 'data-2', 'includes the second mixin');\n }\n\n ['@test using instanceof'](assert) {\n class MyObject extends _object.default {}\n\n let myObject = MyObject.create();\n assert.ok(myObject instanceof MyObject);\n assert.ok(myObject instanceof _object.default);\n }\n\n ['@test using Ember.Object#detect'](assert) {\n let Parent = _object.default.extend();\n\n class Child extends Parent {}\n\n let Grandchild = Child.extend();\n assert.ok(Parent.detect(Child), 'Parent.detect(Child)');\n assert.ok(Child.detect(Grandchild), 'Child.detect(Grandchild)');\n }\n\n ['@test extending an ES subclass of EmberObject'](assert) {\n let calls = [];\n\n class SubEmberObject extends _object.default {\n constructor() {\n calls.push('constructor');\n super(...arguments);\n }\n\n init() {\n calls.push('init');\n super.init(...arguments);\n }\n\n }\n\n class MyObject extends SubEmberObject {}\n\n MyObject.create();\n assert.deepEqual(calls, ['constructor', 'init'], 'constructor then init called (create)');\n }\n\n ['@test calling extend on an ES subclass of EmberObject'](assert) {\n let calls = [];\n\n class SubEmberObject extends _object.default {\n constructor() {\n calls.push('before constructor');\n super(...arguments);\n calls.push('after constructor');\n this.foo = 123;\n }\n\n init() {\n calls.push('init');\n super.init(...arguments);\n }\n\n }\n\n let MyObject = SubEmberObject.extend({});\n MyObject.create();\n assert.deepEqual(calls, ['before constructor', 'after constructor', 'init'], 'constructor then init called (create)');\n let obj = MyObject.create({\n foo: 456,\n bar: 789\n });\n assert.equal(obj.foo, 456, 'sets class fields on instance correctly');\n assert.equal(obj.bar, 789, 'sets passed in properties on instance correctly');\n }\n\n ['@test calling metaForProperty on a native class works'](assert) {\n assert.expect(0);\n\n class SubEmberObject extends _object.default {}\n\n (0, _metal.defineProperty)(SubEmberObject.prototype, 'foo', (0, _metal.computed)('foo', {\n get() {\n return 'bar';\n }\n\n })); // able to get meta without throwing an error\n\n SubEmberObject.metaForProperty('foo');\n }\n\n '@test observes / removeObserver on / removeListener interop'(assert) {\n let fooDidChangeBase = 0;\n let fooDidChangeA = 0;\n let fooDidChangeB = 0;\n let someEventBase = 0;\n let someEventA = 0;\n let someEventB = 0;\n\n class A extends _object.default.extend({\n fooDidChange: (0, _metal.observer)('foo', function () {\n fooDidChangeBase++;\n }),\n onSomeEvent: (0, _metal.on)('someEvent', function () {\n someEventBase++;\n })\n }) {\n init() {\n super.init();\n this.foo = 'bar';\n }\n\n fooDidChange() {\n super.fooDidChange();\n fooDidChangeA++;\n }\n\n onSomeEvent() {\n super.onSomeEvent();\n someEventA++;\n }\n\n }\n\n class B extends A {\n fooDidChange() {\n super.fooDidChange();\n fooDidChangeB++;\n }\n\n onSomeEvent() {\n super.onSomeEvent();\n someEventB++;\n }\n\n }\n\n (0, _metal.removeObserver)(B.prototype, 'foo', null, 'fooDidChange');\n (0, _metal.removeListener)(B.prototype, 'someEvent', null, 'onSomeEvent');\n assert.equal(fooDidChangeBase, 0);\n assert.equal(fooDidChangeA, 0);\n assert.equal(fooDidChangeB, 0);\n assert.equal(someEventBase, 0);\n assert.equal(someEventA, 0);\n assert.equal(someEventB, 0);\n let a = A.create();\n a.set('foo', 'something');\n assert.equal(fooDidChangeBase, 1);\n assert.equal(fooDidChangeA, 1);\n assert.equal(fooDidChangeB, 0);\n (0, _metal.sendEvent)(a, 'someEvent');\n assert.equal(someEventBase, 1);\n assert.equal(someEventA, 1);\n assert.equal(someEventB, 0);\n let b = B.create();\n b.set('foo', 'something');\n assert.equal(fooDidChangeBase, 1);\n assert.equal(fooDidChangeA, 1);\n assert.equal(fooDidChangeB, 0);\n (0, _metal.sendEvent)(b, 'someEvent');\n assert.equal(someEventBase, 1);\n assert.equal(someEventA, 1);\n assert.equal(someEventB, 0);\n }\n\n '@test super and _super interop between old and new methods'(assert) {\n let calls = [];\n let changes = [];\n let events = [];\n let lastProps;\n\n class A extends _object.default {\n init(props) {\n calls.push('A init');\n lastProps = props;\n }\n\n }\n\n let Mixin1 = _metal.Mixin.create({\n init() {\n calls.push('Mixin1 init before _super');\n\n this._super(...arguments);\n\n calls.push('Mixin1 init after _super');\n }\n\n });\n\n let Mixin2 = _metal.Mixin.create({\n init() {\n calls.push('Mixin2 init before _super');\n\n this._super(...arguments);\n\n calls.push('Mixin2 init after _super');\n }\n\n });\n\n class B extends A.extend(Mixin1, Mixin2) {\n init() {\n calls.push('B init before super.init');\n super.init(...arguments);\n calls.push('B init after super.init');\n }\n\n onSomeEvent(evt) {\n events.push(\"B onSomeEvent \" + evt);\n }\n\n fullNameDidChange() {\n changes.push('B fullNameDidChange');\n }\n\n } // // define a CP\n\n\n (0, _metal.defineProperty)(B.prototype, 'full', (0, _metal.computed)('first', 'last', {\n get() {\n return this.first + ' ' + this.last;\n }\n\n })); // Only string observers are allowed for prototypes\n\n (0, _metal.addObserver)(B.prototype, 'full', null, 'fullNameDidChange'); // Only string listeners are allowed for prototypes\n\n (0, _metal.addListener)(B.prototype, 'someEvent', null, 'onSomeEvent');\n B.reopen({\n init() {\n calls.push('reopen init before _super');\n\n this._super(...arguments);\n\n calls.push('reopen init after _super');\n }\n\n });\n let C = B.extend({\n init() {\n calls.push('C init before _super');\n\n this._super(...arguments);\n\n calls.push('C init after _super');\n },\n\n onSomeEvent(evt) {\n calls.push('C onSomeEvent before _super');\n\n this._super(evt);\n\n calls.push('C onSomeEvent after _super');\n },\n\n fullNameDidChange() {\n calls.push('C fullNameDidChange before _super');\n\n this._super();\n\n calls.push('C fullNameDidChange after _super');\n }\n\n });\n\n class D extends C {\n init() {\n calls.push('D init before super.init');\n super.init(...arguments);\n calls.push('D init after super.init');\n }\n\n onSomeEvent(evt) {\n events.push('D onSomeEvent before super.onSomeEvent');\n super.onSomeEvent(evt);\n events.push('D onSomeEvent after super.onSomeEvent');\n }\n\n fullNameDidChange() {\n changes.push('D fullNameDidChange before super.fullNameDidChange');\n super.fullNameDidChange();\n changes.push('D fullNameDidChange after super.fullNameDidChange');\n }\n\n triggerSomeEvent(...args) {\n (0, _metal.sendEvent)(this, 'someEvent', args);\n }\n\n }\n\n assert.deepEqual(calls, [], 'nothing has been called');\n assert.deepEqual(changes, [], 'full has not changed');\n assert.deepEqual(events, [], 'onSomeEvent has not been triggered');\n let d = D.create({\n first: 'Robert',\n last: 'Jackson'\n });\n assert.deepEqual(calls, ['D init before super.init', 'C init before _super', 'reopen init before _super', 'B init before super.init', 'Mixin2 init before _super', 'Mixin1 init before _super', 'A init', 'Mixin1 init after _super', 'Mixin2 init after _super', 'B init after super.init', 'reopen init after _super', 'C init after _super', 'D init after super.init']);\n assert.deepEqual(changes, [], 'full has not changed');\n assert.deepEqual(events, [], 'onSomeEvent has not been triggered');\n assert.deepEqual(lastProps, {\n first: 'Robert',\n last: 'Jackson'\n });\n assert.equal(d.full, 'Robert Jackson');\n d.setProperties({\n first: 'Kris',\n last: 'Selden'\n });\n assert.deepEqual(changes, ['D fullNameDidChange before super.fullNameDidChange', 'B fullNameDidChange', 'D fullNameDidChange after super.fullNameDidChange']);\n assert.equal(d.full, 'Kris Selden');\n d.triggerSomeEvent('event arg');\n assert.deepEqual(events, ['D onSomeEvent before super.onSomeEvent', 'B onSomeEvent event arg', 'D onSomeEvent after super.onSomeEvent']);\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/events_test\", [\"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/evented\", \"internal-test-helpers\"], function (_object, _evented, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Object events', class extends _internalTestHelpers.AbstractTestCase {\n ['@test a listener can be added to an object'](assert) {\n let count = 0;\n\n let F = function () {\n count++;\n };\n\n let obj = _object.default.extend(_evented.default).create();\n\n obj.on('event!', F);\n obj.trigger('event!');\n assert.equal(count, 1, 'the event was triggered');\n obj.trigger('event!');\n assert.equal(count, 2, 'the event was triggered');\n }\n\n ['@test a listener can be added and removed automatically the first time it is triggered'](assert) {\n let count = 0;\n\n let F = function () {\n count++;\n };\n\n let obj = _object.default.extend(_evented.default).create();\n\n obj.one('event!', F);\n obj.trigger('event!');\n assert.equal(count, 1, 'the event was triggered');\n obj.trigger('event!');\n assert.equal(count, 1, 'the event was not triggered again');\n }\n\n ['@test triggering an event can have arguments'](assert) {\n let self, args;\n\n let obj = _object.default.extend(_evented.default).create();\n\n obj.on('event!', function () {\n args = [].slice.call(arguments);\n self = this;\n });\n obj.trigger('event!', 'foo', 'bar');\n assert.deepEqual(args, ['foo', 'bar']);\n assert.equal(self, obj);\n }\n\n ['@test a listener can be added and removed automatically and have arguments'](assert) {\n let self, args;\n let count = 0;\n\n let obj = _object.default.extend(_evented.default).create();\n\n obj.one('event!', function () {\n args = [].slice.call(arguments);\n self = this;\n count++;\n });\n obj.trigger('event!', 'foo', 'bar');\n assert.deepEqual(args, ['foo', 'bar']);\n assert.equal(self, obj);\n assert.equal(count, 1, 'the event is triggered once');\n obj.trigger('event!', 'baz', 'bat');\n assert.deepEqual(args, ['foo', 'bar']);\n assert.equal(count, 1, 'the event was not triggered again');\n assert.equal(self, obj);\n }\n\n ['@test binding an event can specify a different target'](assert) {\n let self, args;\n\n let obj = _object.default.extend(_evented.default).create();\n\n let target = {};\n obj.on('event!', target, function () {\n args = [].slice.call(arguments);\n self = this;\n });\n obj.trigger('event!', 'foo', 'bar');\n assert.deepEqual(args, ['foo', 'bar']);\n assert.equal(self, target);\n }\n\n ['@test a listener registered with one can take method as string and can be added with different target'](assert) {\n let count = 0;\n let target = {};\n\n target.fn = function () {\n count++;\n };\n\n let obj = _object.default.extend(_evented.default).create();\n\n obj.one('event!', target, 'fn');\n obj.trigger('event!');\n assert.equal(count, 1, 'the event was triggered');\n obj.trigger('event!');\n assert.equal(count, 1, 'the event was not triggered again');\n }\n\n ['@test a listener registered with one can be removed with off'](assert) {\n let obj = _object.default.extend(_evented.default, {\n F() {}\n\n }).create();\n\n let F = function () {};\n\n obj.one('event!', F);\n obj.one('event!', obj, 'F');\n assert.equal(obj.has('event!'), true, 'has events');\n obj.off('event!', F);\n obj.off('event!', obj, 'F');\n assert.equal(obj.has('event!'), false, 'has no more events');\n }\n\n ['@test adding and removing listeners should be chainable'](assert) {\n let obj = _object.default.extend(_evented.default).create();\n\n let F = function () {};\n\n let ret = obj.on('event!', F);\n assert.equal(ret, obj, '#on returns self');\n ret = obj.off('event!', F);\n assert.equal(ret, obj, '#off returns self');\n ret = obj.one('event!', F);\n assert.equal(ret, obj, '#one returns self');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/extend_test\", [\"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_metal, _object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('EmberObject.extend', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Basic extend'](assert) {\n let SomeClass = _object.default.extend({\n foo: 'BAR'\n });\n\n assert.ok(SomeClass.isClass, 'A class has isClass of true');\n let obj = SomeClass.create();\n assert.equal(obj.foo, 'BAR');\n }\n\n ['@test Sub-subclass'](assert) {\n let SomeClass = _object.default.extend({\n foo: 'BAR'\n });\n\n let AnotherClass = SomeClass.extend({\n bar: 'FOO'\n });\n let obj = AnotherClass.create();\n assert.equal(obj.foo, 'BAR');\n assert.equal(obj.bar, 'FOO');\n }\n\n ['@test Overriding a method several layers deep'](assert) {\n let SomeClass = _object.default.extend({\n fooCnt: 0,\n\n foo() {\n this.fooCnt++;\n },\n\n barCnt: 0,\n\n bar() {\n this.barCnt++;\n }\n\n });\n\n let AnotherClass = SomeClass.extend({\n barCnt: 0,\n\n bar() {\n this.barCnt++;\n\n this._super(...arguments);\n }\n\n });\n let FinalClass = AnotherClass.extend({\n fooCnt: 0,\n\n foo() {\n this.fooCnt++;\n\n this._super(...arguments);\n }\n\n });\n let obj = FinalClass.create();\n obj.foo();\n obj.bar();\n assert.equal(obj.fooCnt, 2, 'should invoke both');\n assert.equal(obj.barCnt, 2, 'should invoke both'); // Try overriding on create also\n\n obj = FinalClass.extend({\n foo() {\n this.fooCnt++;\n\n this._super(...arguments);\n }\n\n }).create();\n obj.foo();\n obj.bar();\n assert.equal(obj.fooCnt, 3, 'should invoke final as well');\n assert.equal(obj.barCnt, 2, 'should invoke both');\n }\n\n ['@test With concatenatedProperties'](assert) {\n let SomeClass = _object.default.extend({\n things: 'foo',\n concatenatedProperties: ['things']\n });\n\n let AnotherClass = SomeClass.extend({\n things: 'bar'\n });\n let YetAnotherClass = SomeClass.extend({\n things: 'baz'\n });\n let some = SomeClass.create();\n let another = AnotherClass.create();\n let yetAnother = YetAnotherClass.create();\n assert.deepEqual(some.get('things'), ['foo'], 'base class should have just its value');\n assert.deepEqual(another.get('things'), ['foo', 'bar'], \"subclass should have base class' and its own\");\n assert.deepEqual(yetAnother.get('things'), ['foo', 'baz'], \"subclass should have base class' and its own\");\n }\n\n ['@test With concatenatedProperties class properties'](assert) {\n let SomeClass = _object.default.extend();\n\n SomeClass.reopenClass({\n concatenatedProperties: ['things'],\n things: 'foo'\n });\n let AnotherClass = SomeClass.extend();\n AnotherClass.reopenClass({\n things: 'bar'\n });\n let YetAnotherClass = SomeClass.extend();\n YetAnotherClass.reopenClass({\n things: 'baz'\n });\n let some = SomeClass.create();\n let another = AnotherClass.create();\n let yetAnother = YetAnotherClass.create();\n assert.deepEqual((0, _metal.get)(some.constructor, 'things'), ['foo'], 'base class should have just its value');\n assert.deepEqual((0, _metal.get)(another.constructor, 'things'), ['foo', 'bar'], \"subclass should have base class' and its own\");\n assert.deepEqual((0, _metal.get)(yetAnother.constructor, 'things'), ['foo', 'baz'], \"subclass should have base class' and its own\");\n }\n\n ['@test Overriding a computed property with an observer'](assert) {\n let Parent = _object.default.extend({\n foo: (0, _metal.computed)(function () {\n return 'FOO';\n })\n });\n\n let seen = [];\n let Child = Parent.extend({\n foo: (0, _metal.observer)('bar', function () {\n seen.push(this.get('bar'));\n })\n });\n let child = Child.create({\n bar: 0\n });\n assert.deepEqual(seen, []);\n child.set('bar', 1);\n assert.deepEqual(seen, [1]);\n child.set('bar', 2);\n assert.deepEqual(seen, [1, 2]);\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/observer_test\", [\"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_runloop, _metal, _object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('EmberObject observer', class extends _internalTestHelpers.AbstractTestCase {\n ['@test observer on class'](assert) {\n let MyClass = _object.default.extend({\n count: 0,\n foo: (0, _metal.observer)('bar', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let obj = MyClass.create();\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj, 'bar', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n ['@test observer on subclass'](assert) {\n let MyClass = _object.default.extend({\n count: 0,\n foo: (0, _metal.observer)('bar', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let Subclass = MyClass.extend({\n foo: (0, _metal.observer)('baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n let obj = Subclass.create();\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj, 'bar', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer after change');\n (0, _metal.set)(obj, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n ['@test observer on instance'](assert) {\n let obj = _object.default.extend({\n foo: (0, _metal.observer)('bar', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n }).create({\n count: 0\n });\n\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj, 'bar', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n ['@test observer on instance overriding class'](assert) {\n let MyClass = _object.default.extend({\n count: 0,\n foo: (0, _metal.observer)('bar', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let obj = MyClass.extend({\n foo: (0, _metal.observer)('baz', function () {\n // <-- change property we observe\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n }).create();\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer immediately');\n (0, _metal.set)(obj, 'bar', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer after change');\n (0, _metal.set)(obj, 'baz', 'BAZ');\n assert.equal((0, _metal.get)(obj, 'count'), 1, 'should invoke observer after change');\n }\n\n ['@test observer should not fire after being destroyed'](assert) {\n let obj = _object.default.extend({\n count: 0,\n foo: (0, _metal.observer)('bar', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n }).create();\n\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'precond - should not invoke observer immediately');\n (0, _runloop.run)(() => obj.destroy());\n expectAssertion(function () {\n (0, _metal.set)(obj, 'bar', 'BAZ');\n }, \"calling set on destroyed object: \" + obj + \".bar = BAZ\");\n assert.equal((0, _metal.get)(obj, 'count'), 0, 'should not invoke observer after change');\n } // ..........................................................\n // COMPLEX PROPERTIES\n //\n\n\n ['@test chain observer on class'](assert) {\n let MyClass = _object.default.extend({\n count: 0,\n foo: (0, _metal.observer)('bar.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let obj1 = MyClass.create({\n bar: {\n baz: 'biff'\n }\n });\n let obj2 = MyClass.create({\n bar: {\n baz: 'biff2'\n }\n });\n assert.equal((0, _metal.get)(obj1, 'count'), 0, 'should not invoke yet');\n assert.equal((0, _metal.get)(obj2, 'count'), 0, 'should not invoke yet');\n (0, _metal.set)((0, _metal.get)(obj1, 'bar'), 'baz', 'BIFF1');\n assert.equal((0, _metal.get)(obj1, 'count'), 1, 'should invoke observer on obj1');\n assert.equal((0, _metal.get)(obj2, 'count'), 0, 'should not invoke yet');\n (0, _metal.set)((0, _metal.get)(obj2, 'bar'), 'baz', 'BIFF2');\n assert.equal((0, _metal.get)(obj1, 'count'), 1, 'should not invoke again');\n assert.equal((0, _metal.get)(obj2, 'count'), 1, 'should invoke observer on obj2');\n }\n\n ['@test chain observer on class'](assert) {\n let MyClass = _object.default.extend({\n count: 0,\n foo: (0, _metal.observer)('bar.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n });\n\n let obj1 = MyClass.extend().create({\n bar: {\n baz: 'biff'\n }\n });\n let obj2 = MyClass.extend({\n foo: (0, _metal.observer)('bar2.baz', function () {\n (0, _metal.set)(this, 'count', (0, _metal.get)(this, 'count') + 1);\n })\n }).create({\n bar: {\n baz: 'biff2'\n },\n bar2: {\n baz: 'biff3'\n }\n });\n assert.equal((0, _metal.get)(obj1, 'count'), 0, 'should not invoke yet');\n assert.equal((0, _metal.get)(obj2, 'count'), 0, 'should not invoke yet');\n (0, _metal.set)((0, _metal.get)(obj1, 'bar'), 'baz', 'BIFF1');\n assert.equal((0, _metal.get)(obj1, 'count'), 1, 'should invoke observer on obj1');\n assert.equal((0, _metal.get)(obj2, 'count'), 0, 'should not invoke yet');\n (0, _metal.set)((0, _metal.get)(obj2, 'bar'), 'baz', 'BIFF2');\n assert.equal((0, _metal.get)(obj1, 'count'), 1, 'should not invoke again');\n assert.equal((0, _metal.get)(obj2, 'count'), 0, 'should not invoke yet');\n (0, _metal.set)((0, _metal.get)(obj2, 'bar2'), 'baz', 'BIFF3');\n assert.equal((0, _metal.get)(obj1, 'count'), 1, 'should not invoke again');\n assert.equal((0, _metal.get)(obj2, 'count'), 1, 'should invoke observer on obj2');\n }\n\n ['@test chain observer on class that has a reference to an uninitialized object will finish chains that reference it'](assert) {\n let changed = false;\n\n let ChildClass = _object.default.extend({\n parent: null,\n parentOneTwoDidChange: (0, _metal.observer)('parent.one.two', function () {\n changed = true;\n })\n });\n\n let ParentClass = _object.default.extend({\n one: {\n two: 'old'\n },\n\n init() {\n this.child = ChildClass.create({\n parent: this\n });\n }\n\n });\n\n let parent = ParentClass.create();\n assert.equal(changed, false, 'precond');\n (0, _metal.set)(parent, 'one.two', 'new');\n assert.equal(changed, true, 'child should have been notified of change to path');\n (0, _metal.set)(parent, 'one', {\n two: 'newer'\n });\n assert.equal(changed, true, 'child should have been notified of change to path');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/reopenClass_test\", [\"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_metal, _object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/object/reopenClass', class extends _internalTestHelpers.AbstractTestCase {\n ['@test adds new properties to subclass'](assert) {\n let Subclass = _object.default.extend();\n\n Subclass.reopenClass({\n foo() {\n return 'FOO';\n },\n\n bar: 'BAR'\n });\n assert.equal(Subclass.foo(), 'FOO', 'Adds method');\n assert.equal((0, _metal.get)(Subclass, 'bar'), 'BAR', 'Adds property');\n }\n\n ['@test class properties inherited by subclasses'](assert) {\n let Subclass = _object.default.extend();\n\n Subclass.reopenClass({\n foo() {\n return 'FOO';\n },\n\n bar: 'BAR'\n });\n let SubSub = Subclass.extend();\n assert.equal(SubSub.foo(), 'FOO', 'Adds method');\n assert.equal((0, _metal.get)(SubSub, 'bar'), 'BAR', 'Adds property');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/reopen_test\", [\"@ember/-internals/metal\", \"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_metal, _object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/core_object/reopen', class extends _internalTestHelpers.AbstractTestCase {\n ['@test adds new properties to subclass instance'](assert) {\n let Subclass = _object.default.extend();\n\n Subclass.reopen({\n foo() {\n return 'FOO';\n },\n\n bar: 'BAR'\n });\n assert.equal(Subclass.create().foo(), 'FOO', 'Adds method');\n assert.equal((0, _metal.get)(Subclass.create(), 'bar'), 'BAR', 'Adds property');\n }\n\n ['@test reopened properties inherited by subclasses'](assert) {\n let Subclass = _object.default.extend();\n\n let SubSub = Subclass.extend();\n Subclass.reopen({\n foo() {\n return 'FOO';\n },\n\n bar: 'BAR'\n });\n assert.equal(SubSub.create().foo(), 'FOO', 'Adds method');\n assert.equal((0, _metal.get)(SubSub.create(), 'bar'), 'BAR', 'Adds property');\n }\n\n ['@test allows reopening already instantiated classes'](assert) {\n let Subclass = _object.default.extend();\n\n Subclass.create();\n Subclass.reopen({\n trololol: true\n });\n assert.equal(Subclass.create().get('trololol'), true, 'reopen works');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/strict-mode-test\", [\"@ember/-internals/runtime/lib/system/object\", \"internal-test-helpers\"], function (_object, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('strict mode tests', class extends _internalTestHelpers.AbstractTestCase {\n ['@test __superWrapper does not throw errors in strict mode'](assert) {\n let Foo = _object.default.extend({\n blah() {\n return 'foo';\n }\n\n });\n\n let Bar = Foo.extend({\n blah() {\n return 'bar';\n },\n\n callBlah() {\n let blah = this.blah;\n return blah();\n }\n\n });\n let bar = Bar.create();\n assert.equal(bar.callBlah(), 'bar', 'can call local function without call/apply');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object/toString_test\", [\"@ember/runloop\", \"@ember/-internals/utils\", \"@ember/-internals/environment\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/system/namespace\", \"internal-test-helpers\"], function (_runloop, _utils, _environment, _object, _namespace, _internalTestHelpers) {\n \"use strict\";\n\n let originalLookup = _environment.context.lookup;\n let lookup;\n (0, _internalTestHelpers.moduleFor)('system/object/toString', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n _environment.context.lookup = lookup = {};\n }\n\n afterEach() {\n _environment.context.lookup = originalLookup;\n }\n\n ['@test toString() returns the same value if called twice'](assert) {\n let Foo = _namespace.default.create();\n\n Foo.toString = function () {\n return 'Foo';\n };\n\n Foo.Bar = _object.default.extend();\n assert.equal(Foo.Bar.toString(), 'Foo.Bar');\n assert.equal(Foo.Bar.toString(), 'Foo.Bar');\n let obj = Foo.Bar.create();\n assert.equal(obj.toString(), '');\n assert.equal(obj.toString(), '');\n assert.equal(Foo.Bar.toString(), 'Foo.Bar');\n (0, _runloop.run)(Foo, 'destroy');\n }\n\n ['@test toString on a class returns a useful value when nested in a namespace'](assert) {\n let obj;\n\n let Foo = _namespace.default.create();\n\n Foo.toString = function () {\n return 'Foo';\n };\n\n Foo.Bar = _object.default.extend();\n assert.equal(Foo.Bar.toString(), 'Foo.Bar');\n obj = Foo.Bar.create();\n assert.equal(obj.toString(), '');\n Foo.Baz = Foo.Bar.extend();\n assert.equal(Foo.Baz.toString(), 'Foo.Baz');\n obj = Foo.Baz.create();\n assert.equal(obj.toString(), '');\n obj = Foo.Bar.create();\n assert.equal(obj.toString(), '');\n (0, _runloop.run)(Foo, 'destroy');\n }\n\n ['@test toString on a namespace finds the namespace in lookup'](assert) {\n let Foo = lookup.Foo = _namespace.default.create();\n\n assert.equal(Foo.toString(), 'Foo');\n (0, _runloop.run)(Foo, 'destroy');\n }\n\n ['@test toString on a namespace finds the namespace in lookup'](assert) {\n let Foo = lookup.Foo = _namespace.default.create();\n\n let obj;\n Foo.Bar = _object.default.extend();\n assert.equal(Foo.Bar.toString(), 'Foo.Bar');\n obj = Foo.Bar.create();\n assert.equal(obj.toString(), '');\n (0, _runloop.run)(Foo, 'destroy');\n }\n\n ['@test toString on a namespace falls back to modulePrefix, if defined'](assert) {\n let Foo = _namespace.default.create({\n modulePrefix: 'foo'\n });\n\n assert.equal(Foo.toString(), 'foo');\n (0, _runloop.run)(Foo, 'destroy');\n }\n\n ['@test toString includes toStringExtension if defined'](assert) {\n let Foo = _object.default.extend({\n toStringExtension() {\n return 'fooey';\n }\n\n });\n\n let foo = Foo.create();\n\n let Bar = _object.default.extend({});\n\n let bar = Bar.create(); // simulate these classes being defined on a Namespace\n\n (0, _utils.setName)(Foo, 'Foo');\n (0, _utils.setName)(Bar, 'Bar');\n assert.equal(bar.toString(), '', 'does not include toStringExtension part');\n assert.equal(foo.toString(), '', 'Includes toStringExtension result');\n }\n\n });\n});","enifed(\"@ember/-internals/runtime/tests/system/object_proxy_test\", [\"@glimmer/env\", \"@ember/-internals/metal\", \"@ember/-internals/utils\", \"@ember/-internals/runtime/lib/system/object_proxy\", \"internal-test-helpers\"], function (_env, _metal, _utils, _object_proxy, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ObjectProxy', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should not proxy properties passed to create'](assert) {\n let Proxy = _object_proxy.default.extend({\n cp: (0, _metal.computed)({\n get() {\n return this._cp;\n },\n\n set(key, value) {\n this._cp = value;\n return this._cp;\n }\n\n })\n });\n\n let proxy = Proxy.create({\n prop: 'Foo',\n cp: 'Bar'\n });\n assert.equal((0, _metal.get)(proxy, 'prop'), 'Foo', 'should not have tried to proxy set');\n assert.equal(proxy._cp, 'Bar', 'should use CP setter');\n }\n\n ['@test should proxy properties to content'](assert) {\n let content = {\n firstName: 'Tom',\n lastName: 'Dale',\n\n unknownProperty(key) {\n return key + ' unknown';\n }\n\n };\n\n let proxy = _object_proxy.default.create();\n\n assert.equal((0, _metal.get)(proxy, 'firstName'), undefined, 'get on proxy without content should return undefined');\n expectAssertion(() => {\n (0, _metal.set)(proxy, 'firstName', 'Foo');\n }, /Cannot delegate set\\('firstName', Foo\\) to the 'content'/i);\n (0, _metal.set)(proxy, 'content', content);\n assert.equal((0, _metal.get)(proxy, 'firstName'), 'Tom', 'get on proxy with content should forward to content');\n assert.equal((0, _metal.get)(proxy, 'lastName'), 'Dale', 'get on proxy with content should forward to content');\n assert.equal((0, _metal.get)(proxy, 'foo'), 'foo unknown', 'get on proxy with content should forward to content');\n (0, _metal.set)(proxy, 'lastName', 'Huda');\n assert.equal((0, _metal.get)(content, 'lastName'), 'Huda', 'content should have new value from set on proxy');\n assert.equal((0, _metal.get)(proxy, 'lastName'), 'Huda', 'proxy should have new value from set on proxy');\n (0, _metal.set)(proxy, 'content', {\n firstName: 'Yehuda',\n lastName: 'Katz'\n });\n assert.equal((0, _metal.get)(proxy, 'firstName'), 'Yehuda', 'proxy should reflect updated content');\n assert.equal((0, _metal.get)(proxy, 'lastName'), 'Katz', 'proxy should reflect updated content');\n }\n\n ['@test getting proxied properties with Ember.get should work'](assert) {\n let proxy = _object_proxy.default.create({\n content: {\n foo: 'FOO'\n }\n });\n\n assert.equal((0, _metal.get)(proxy, 'foo'), 'FOO');\n }\n\n [\"@test JSON.stringify doens't assert\"](assert) {\n let proxy = _object_proxy.default.create({\n content: {\n foo: 'FOO'\n }\n });\n\n assert.equal(JSON.stringify(proxy), JSON.stringify({\n content: {\n foo: 'FOO'\n }\n }));\n }\n\n ['@test calling a function on the proxy avoids the assertion'](assert) {\n if (_env.DEBUG && _utils.HAS_NATIVE_PROXY) {\n let proxy = _object_proxy.default.extend({\n init() {\n if (!this.foobar) {\n this.foobar = function () {\n let content = (0, _metal.get)(this, 'content');\n return content.foobar.apply(content, []);\n };\n }\n }\n\n }).create({\n content: {\n foobar() {\n return 'xoxo';\n }\n\n }\n });\n\n assert.equal(proxy.foobar(), 'xoxo', 'should be able to use a function from a proxy');\n } else {\n assert.expect(0);\n }\n }\n\n [\"@test setting a property on the proxy avoids the assertion\"](assert) {\n let proxy = _object_proxy.default.create({\n toJSON: undefined,\n content: {\n toJSON() {\n return 'hello';\n }\n\n }\n });\n\n assert.equal(JSON.stringify(proxy), JSON.stringify({\n content: 'hello'\n }));\n }\n\n [\"@test setting a property on the proxy's prototype avoids the assertion\"](assert) {\n let proxy = _object_proxy.default.extend({\n toJSON: null\n }).create({\n content: {\n toJSON() {\n return 'hello';\n }\n\n }\n });\n\n assert.equal(JSON.stringify(proxy), JSON.stringify({\n content: 'hello'\n }));\n }\n\n ['@test getting proxied properties with [] should be an error'](assert) {\n if (_env.DEBUG && _utils.HAS_NATIVE_PROXY) {\n let proxy = _object_proxy.default.create({\n content: {\n foo: 'FOO'\n }\n });\n\n expectAssertion(() => proxy.foo, /\\.get\\('foo'\\)/);\n } else {\n assert.expect(0);\n }\n }\n\n ['@test should work with watched properties'](assert) {\n let content1 = {\n firstName: 'Tom',\n lastName: 'Dale'\n };\n let content2 = {\n firstName: 'Yehuda',\n lastName: 'Katz'\n };\n let count = 0;\n let last;\n\n let Proxy = _object_proxy.default.extend({\n fullName: (0, _metal.computed)('firstName', 'lastName', function () {\n let firstName = this.get('firstName');\n let lastName = this.get('lastName');\n\n if (firstName && lastName) {\n return firstName + ' ' + lastName;\n }\n\n return firstName || lastName;\n })\n });\n\n let proxy = Proxy.create();\n (0, _metal.addObserver)(proxy, 'fullName', function () {\n last = (0, _metal.get)(proxy, 'fullName');\n count++;\n }); // proxy without content returns undefined\n\n assert.equal((0, _metal.get)(proxy, 'fullName'), undefined); // setting content causes all watched properties to change\n\n (0, _metal.set)(proxy, 'content', content1); // both dependent keys changed\n\n assert.equal(count, 2);\n assert.equal(last, 'Tom Dale'); // setting property in content causes proxy property to change\n\n (0, _metal.set)(content1, 'lastName', 'Huda');\n assert.equal(count, 3);\n assert.equal(last, 'Tom Huda'); // replacing content causes all watched properties to change\n\n (0, _metal.set)(proxy, 'content', content2); // both dependent keys changed\n\n assert.equal(count, 5);\n assert.equal(last, 'Yehuda Katz'); // content1 is no longer watched\n\n assert.ok(!(0, _metal.isWatching)(content1, 'firstName'), 'not watching firstName');\n assert.ok(!(0, _metal.isWatching)(content1, 'lastName'), 'not watching lastName'); // setting property in new content\n\n (0, _metal.set)(content2, 'firstName', 'Tomhuda');\n assert.equal(last, 'Tomhuda Katz');\n assert.equal(count, 6); // setting property in proxy syncs with new content\n\n (0, _metal.set)(proxy, 'lastName', 'Katzdale');\n assert.equal(count, 7);\n assert.equal(last, 'Tomhuda Katzdale');\n assert.equal((0, _metal.get)(content2, 'firstName'), 'Tomhuda');\n assert.equal((0, _metal.get)(content2, 'lastName'), 'Katzdale');\n }\n\n ['@test set and get should work with paths'](assert) {\n let content = {\n foo: {\n bar: 'baz'\n }\n };\n\n let proxy = _object_proxy.default.create({\n content\n });\n\n let count = 0;\n proxy.set('foo.bar', 'hello');\n assert.equal(proxy.get('foo.bar'), 'hello');\n assert.equal(proxy.get('content.foo.bar'), 'hello');\n proxy.addObserver('foo.bar', function () {\n count++;\n });\n proxy.set('foo.bar', 'bye');\n assert.equal(count, 1);\n assert.equal(proxy.get('foo.bar'), 'bye');\n assert.equal(proxy.get('content.foo.bar'), 'bye');\n }\n\n ['@test should transition between watched and unwatched strategies'](assert) {\n let content = {\n foo: 'foo'\n };\n\n let proxy = _object_proxy.default.create({\n content: content\n });\n\n let count = 0;\n\n function observer() {\n count++;\n }\n\n assert.equal((0, _metal.get)(proxy, 'foo'), 'foo');\n (0, _metal.set)(content, 'foo', 'bar');\n assert.equal((0, _metal.get)(proxy, 'foo'), 'bar');\n (0, _metal.set)(proxy, 'foo', 'foo');\n assert.equal((0, _metal.get)(content, 'foo'), 'foo');\n assert.equal((0, _metal.get)(proxy, 'foo'), 'foo');\n (0, _metal.addObserver)(proxy, 'foo', observer);\n assert.equal(count, 0);\n assert.equal((0, _metal.get)(proxy, 'foo'), 'foo');\n (0, _metal.set)(content, 'foo', 'bar');\n assert.equal(count, 1);\n assert.equal((0, _metal.get)(proxy, 'foo'), 'bar');\n (0, _metal.set)(proxy, 'foo', 'foo');\n assert.equal(count, 2);\n assert.equal((0, _metal.get)(content, 'foo'), 'foo');\n assert.equal((0, _metal.get)(proxy, 'foo'), 'foo');\n (0, _metal.removeObserver)(proxy, 'foo', observer);\n (0, _metal.set)(content, 'foo', 'bar');\n assert.equal((0, _metal.get)(proxy, 'foo'), 'bar');\n (0, _metal.set)(proxy, 'foo', 'foo');\n assert.equal((0, _metal.get)(content, 'foo'), 'foo');\n assert.equal((0, _metal.get)(proxy, 'foo'), 'foo');\n }\n\n ['@test setting `undefined` to a proxied content property should override its existing value'](assert) {\n let proxyObject = _object_proxy.default.create({\n content: {\n prop: 'emberjs'\n }\n });\n\n (0, _metal.set)(proxyObject, 'prop', undefined);\n assert.equal((0, _metal.get)(proxyObject, 'prop'), undefined, 'sets the `undefined` value to the proxied content');\n }\n\n ['@test should not throw or deprecate when adding an observer to an ObjectProxy based class'](assert) {\n assert.expect(0);\n\n _object_proxy.default.extend({\n observe: (0, _metal.observer)('foo', function () {})\n }).create();\n }\n\n });\n});","enifed(\"@ember/-internals/utils/index\", [\"exports\", \"@ember/-internals/utils/lib/symbol\", \"@ember/-internals/utils/lib/dictionary\", \"@ember/-internals/utils/lib/get-own-property-descriptors\", \"@ember/-internals/utils/lib/guid\", \"@ember/-internals/utils/lib/intern\", \"@ember/-internals/utils/lib/super\", \"@ember/-internals/utils/lib/inspect\", \"@ember/-internals/utils/lib/lookup-descriptor\", \"@ember/-internals/utils/lib/invoke\", \"@ember/-internals/utils/lib/make-array\", \"@ember/-internals/utils/lib/name\", \"@ember/-internals/utils/lib/to-string\", \"@ember/-internals/utils/lib/symbol-utils\", \"@ember/-internals/utils/lib/proxy-utils\", \"@ember/-internals/utils/lib/is_proxy\", \"@ember/-internals/utils/lib/cache\"], function (_exports, _symbol, _dictionary, _getOwnPropertyDescriptors, _guid, _intern, _super, _inspect, _lookupDescriptor, _invoke, _makeArray, _name, _toString, _symbolUtils, _proxyUtils, _is_proxy, _cache) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.NAME_KEY = _exports.setProxy = _exports.isProxy = _exports.HAS_NATIVE_PROXY = _exports.HAS_NATIVE_SYMBOL = _exports.setName = _exports.getName = _exports.tryInvoke = _exports.canInvoke = _exports.setListeners = _exports.setObservers = _exports.getListeners = _exports.getObservers = _exports.wrap = _exports.ROOT = _exports.checkHasSuper = _exports.guidFor = _exports.generateGuid = _exports.GUID_KEY = _exports.uuid = _exports.isInternalSymbol = _exports.Cache = _exports.toString = _exports.makeArray = _exports.lookupDescriptor = _exports.inspect = _exports.intern = _exports.getOwnPropertyDescriptors = _exports.dictionary = _exports.symbol = void 0;\n _exports.symbol = _symbol.default;\n _exports.isInternalSymbol = _symbol.isInternalSymbol;\n _exports.dictionary = _dictionary.default;\n _exports.getOwnPropertyDescriptors = _getOwnPropertyDescriptors.default;\n _exports.uuid = _guid.uuid;\n _exports.GUID_KEY = _guid.GUID_KEY;\n _exports.generateGuid = _guid.generateGuid;\n _exports.guidFor = _guid.guidFor;\n _exports.intern = _intern.default;\n _exports.checkHasSuper = _super.checkHasSuper;\n _exports.ROOT = _super.ROOT;\n _exports.wrap = _super.wrap;\n _exports.getObservers = _super.getObservers;\n _exports.getListeners = _super.getListeners;\n _exports.setObservers = _super.setObservers;\n _exports.setListeners = _super.setListeners;\n _exports.inspect = _inspect.default;\n _exports.lookupDescriptor = _lookupDescriptor.default;\n _exports.canInvoke = _invoke.canInvoke;\n _exports.tryInvoke = _invoke.tryInvoke;\n _exports.makeArray = _makeArray.default;\n _exports.getName = _name.getName;\n _exports.setName = _name.setName;\n _exports.toString = _toString.default;\n _exports.HAS_NATIVE_SYMBOL = _symbolUtils.HAS_NATIVE_SYMBOL;\n _exports.HAS_NATIVE_PROXY = _proxyUtils.HAS_NATIVE_PROXY;\n _exports.isProxy = _is_proxy.isProxy;\n _exports.setProxy = _is_proxy.setProxy;\n _exports.Cache = _cache.default;\n\n /*\n This package will be eagerly parsed and should have no dependencies on external\n packages.\n \n It is intended to be used to share utility methods that will be needed\n by every Ember application (and is **not** a dumping ground of useful utilities).\n \n Utility methods that are needed in < 80% of cases should be placed\n elsewhere (so they can be lazily evaluated / parsed).\n */\n const NAME_KEY = (0, _symbol.default)('NAME_KEY');\n _exports.NAME_KEY = NAME_KEY;\n});","enifed(\"@ember/-internals/utils/lib/cache\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class Cache {\n constructor(limit, func, store) {\n this.limit = limit;\n this.func = func;\n this.store = store;\n this.size = 0;\n this.misses = 0;\n this.hits = 0;\n this.store = store || new Map();\n }\n\n get(key) {\n if (this.store.has(key)) {\n this.hits++;\n return this.store.get(key);\n } else {\n this.misses++;\n return this.set(key, this.func(key));\n }\n }\n\n set(key, value) {\n if (this.limit > this.size) {\n this.size++;\n this.store.set(key, value);\n }\n\n return value;\n }\n\n purge() {\n this.store.clear();\n this.size = 0;\n this.hits = 0;\n this.misses = 0;\n }\n\n }\n\n _exports.default = Cache;\n});","enifed(\"@ember/-internals/utils/lib/dictionary\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = makeDictionary;\n\n // the delete is meant to hint at runtimes that this object should remain in\n // dictionary mode. This is clearly a runtime specific hack, but currently it\n // appears worthwhile in some usecases. Please note, these deletes do increase\n // the cost of creation dramatically over a plain Object.create. And as this\n // only makes sense for long-lived dictionaries that aren't instantiated often.\n function makeDictionary(parent) {\n let dict = Object.create(parent);\n dict['_dict'] = null;\n delete dict['_dict'];\n return dict;\n }\n});","enifed(\"@ember/-internals/utils/lib/get-own-property-descriptors\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n let getOwnPropertyDescriptors;\n\n if (Object.getOwnPropertyDescriptors !== undefined) {\n getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors;\n } else {\n getOwnPropertyDescriptors = function (obj) {\n let descriptors = {};\n Object.keys(obj).forEach(key => {\n descriptors[key] = Object.getOwnPropertyDescriptor(obj, key);\n });\n return descriptors;\n };\n }\n\n var _default = getOwnPropertyDescriptors;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/utils/lib/guid\", [\"exports\", \"@ember/-internals/utils/lib/intern\", \"@ember/-internals/utils/lib/spec\"], function (_exports, _intern, _spec) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.uuid = uuid;\n _exports.generateGuid = generateGuid;\n _exports.guidFor = guidFor;\n _exports.GUID_KEY = void 0;\n\n /**\n @module @ember/object\n */\n\n /**\n Previously we used `Ember.$.uuid`, however `$.uuid` has been removed from\n jQuery master. We'll just bootstrap our own uuid now.\n \n @private\n @return {Number} the uuid\n */\n let _uuid = 0;\n /**\n Generates a universally unique identifier. This method\n is used internally by Ember for assisting with\n the generation of GUID's and other unique identifiers.\n \n @public\n @return {Number} [description]\n */\n\n function uuid() {\n return ++_uuid;\n }\n /**\n Prefix used for guids through out Ember.\n @private\n @property GUID_PREFIX\n @for Ember\n @type String\n @final\n */\n\n\n const GUID_PREFIX = 'ember'; // Used for guid generation...\n\n const OBJECT_GUIDS = new WeakMap();\n const NON_OBJECT_GUIDS = new Map();\n /**\n A unique key used to assign guids and other private metadata to objects.\n If you inspect an object in your browser debugger you will often see these.\n They can be safely ignored.\n \n On browsers that support it, these properties are added with enumeration\n disabled so they won't show up when you iterate over your properties.\n \n @private\n @property GUID_KEY\n @for Ember\n @type String\n @final\n */\n\n const GUID_KEY = (0, _intern.default)(\"__ember\" + Date.now());\n /**\n Generates a new guid, optionally saving the guid to the object that you\n pass in. You will rarely need to use this method. Instead you should\n call `guidFor(obj)`, which return an existing guid if available.\n \n @private\n @method generateGuid\n @static\n @for @ember/object/internals\n @param {Object} [obj] Object the guid will be used for. If passed in, the guid will\n be saved on the object and reused whenever you pass the same object\n again.\n \n If no object is passed, just generate a new guid.\n @param {String} [prefix] Prefix to place in front of the guid. Useful when you want to\n separate the guid into separate namespaces.\n @return {String} the guid\n */\n\n _exports.GUID_KEY = GUID_KEY;\n\n function generateGuid(obj, prefix = GUID_PREFIX) {\n let guid = prefix + uuid();\n\n if ((0, _spec.isObject)(obj)) {\n OBJECT_GUIDS.set(obj, guid);\n }\n\n return guid;\n }\n /**\n Returns a unique id for the object. If the object does not yet have a guid,\n one will be assigned to it. You can call this on any object,\n `EmberObject`-based or not.\n \n You can also use this method on DOM Element objects.\n \n @public\n @static\n @method guidFor\n @for @ember/object/internals\n @param {Object} obj any object, string, number, Element, or primitive\n @return {String} the unique guid for this instance.\n */\n\n\n function guidFor(value) {\n let guid;\n\n if ((0, _spec.isObject)(value)) {\n guid = OBJECT_GUIDS.get(value);\n\n if (guid === undefined) {\n guid = GUID_PREFIX + uuid();\n OBJECT_GUIDS.set(value, guid);\n }\n } else {\n guid = NON_OBJECT_GUIDS.get(value);\n\n if (guid === undefined) {\n let type = typeof value;\n\n if (type === 'string') {\n guid = 'st' + uuid();\n } else if (type === 'number') {\n guid = 'nu' + uuid();\n } else if (type === 'symbol') {\n guid = 'sy' + uuid();\n } else {\n guid = '(' + value + ')';\n }\n\n NON_OBJECT_GUIDS.set(value, guid);\n }\n }\n\n return guid;\n }\n});","enifed(\"@ember/-internals/utils/lib/inspect\", [\"exports\", \"@ember/polyfills\"], function (_exports, _polyfills) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = inspect;\n const {\n toString: objectToString\n } = Object.prototype;\n const {\n toString: functionToString\n } = Function.prototype;\n const {\n isArray\n } = Array;\n const {\n keys: objectKeys\n } = Object;\n const {\n stringify\n } = JSON;\n const LIST_LIMIT = 100;\n const DEPTH_LIMIT = 4;\n const SAFE_KEY = /^[\\w$]+$/;\n /**\n @module @ember/debug\n */\n\n /**\n Convenience method to inspect an object. This method will attempt to\n convert the object into a useful string description.\n \n It is a pretty simple implementation. If you want something more robust,\n use something like JSDump: https://github.com/NV/jsDump\n \n @method inspect\n @static\n @param {Object} obj The object you want to inspect.\n @return {String} A description of the object\n @since 1.4.0\n @private\n */\n\n function inspect(obj) {\n // detect Node util.inspect call inspect(depth: number, opts: object)\n if (typeof obj === 'number' && arguments.length === 2) {\n return this;\n }\n\n return inspectValue(obj, 0);\n }\n\n function inspectValue(value, depth, seen) {\n let valueIsArray = false;\n\n switch (typeof value) {\n case 'undefined':\n return 'undefined';\n\n case 'object':\n if (value === null) return 'null';\n\n if (isArray(value)) {\n valueIsArray = true;\n break;\n } // is toString Object.prototype.toString or undefined then traverse\n\n\n if (value.toString === objectToString || value.toString === undefined) {\n break;\n } // custom toString\n\n\n return value.toString();\n\n case 'function':\n return value.toString === functionToString ? value.name ? \"[Function:\" + value.name + \"]\" : \"[Function]\" : value.toString();\n\n case 'string':\n return stringify(value);\n\n case 'symbol':\n case 'boolean':\n case 'number':\n default:\n return value.toString();\n }\n\n if (seen === undefined) {\n seen = new _polyfills._WeakSet();\n } else {\n if (seen.has(value)) return \"[Circular]\";\n }\n\n seen.add(value);\n return valueIsArray ? inspectArray(value, depth + 1, seen) : inspectObject(value, depth + 1, seen);\n }\n\n function inspectKey(key) {\n return SAFE_KEY.test(key) ? key : stringify(key);\n }\n\n function inspectObject(obj, depth, seen) {\n if (depth > DEPTH_LIMIT) {\n return '[Object]';\n }\n\n let s = '{';\n let keys = objectKeys(obj);\n\n for (let i = 0; i < keys.length; i++) {\n s += i === 0 ? ' ' : ', ';\n\n if (i >= LIST_LIMIT) {\n s += \"... \" + (keys.length - LIST_LIMIT) + \" more keys\";\n break;\n }\n\n let key = keys[i];\n s += inspectKey(key) + ': ' + inspectValue(obj[key], depth, seen);\n }\n\n s += ' }';\n return s;\n }\n\n function inspectArray(arr, depth, seen) {\n if (depth > DEPTH_LIMIT) {\n return '[Array]';\n }\n\n let s = '[';\n\n for (let i = 0; i < arr.length; i++) {\n s += i === 0 ? ' ' : ', ';\n\n if (i >= LIST_LIMIT) {\n s += \"... \" + (arr.length - LIST_LIMIT) + \" more items\";\n break;\n }\n\n s += inspectValue(arr[i], depth, seen);\n }\n\n s += ' ]';\n return s;\n }\n});","enifed(\"@ember/-internals/utils/lib/intern\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = intern;\n\n /**\n Strongly hint runtimes to intern the provided string.\n \n When do I need to use this function?\n \n For the most part, never. Pre-mature optimization is bad, and often the\n runtime does exactly what you need it to, and more often the trade-off isn't\n worth it.\n \n Why?\n \n Runtimes store strings in at least 2 different representations:\n Ropes and Symbols (interned strings). The Rope provides a memory efficient\n data-structure for strings created from concatenation or some other string\n manipulation like splitting.\n \n Unfortunately checking equality of different ropes can be quite costly as\n runtimes must resort to clever string comparison algorithms. These\n algorithms typically cost in proportion to the length of the string.\n Luckily, this is where the Symbols (interned strings) shine. As Symbols are\n unique by their string content, equality checks can be done by pointer\n comparison.\n \n How do I know if my string is a rope or symbol?\n \n Typically (warning general sweeping statement, but truthy in runtimes at\n present) static strings created as part of the JS source are interned.\n Strings often used for comparisons can be interned at runtime if some\n criteria are met. One of these criteria can be the size of the entire rope.\n For example, in chrome 38 a rope longer then 12 characters will not\n intern, nor will segments of that rope.\n \n Some numbers: http://jsperf.com/eval-vs-keys/8\n \n Known Trick™\n \n @private\n @return {String} interned version of the provided string\n */\n function intern(str) {\n let obj = {};\n obj[str] = 1;\n\n for (let key in obj) {\n if (key === str) {\n return key;\n }\n }\n\n return str;\n }\n});","enifed(\"@ember/-internals/utils/lib/invoke\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.canInvoke = canInvoke;\n _exports.tryInvoke = tryInvoke;\n\n /**\n Checks to see if the `methodName` exists on the `obj`.\n \n ```javascript\n let foo = { bar: function() { return 'bar'; }, baz: null };\n \n Ember.canInvoke(foo, 'bar'); // true\n Ember.canInvoke(foo, 'baz'); // false\n Ember.canInvoke(foo, 'bat'); // false\n ```\n \n @method canInvoke\n @for Ember\n @param {Object} obj The object to check for the method\n @param {String} methodName The method name to check for\n @return {Boolean}\n @private\n */\n function canInvoke(obj, methodName) {\n return obj !== null && obj !== undefined && typeof obj[methodName] === 'function';\n }\n /**\n @module @ember/utils\n */\n\n /**\n Checks to see if the `methodName` exists on the `obj`,\n and if it does, invokes it with the arguments passed.\n \n ```javascript\n import { tryInvoke } from '@ember/utils';\n \n let d = new Date('03/15/2013');\n \n tryInvoke(d, 'getTime'); // 1363320000000\n tryInvoke(d, 'setFullYear', [2014]); // 1394856000000\n tryInvoke(d, 'noSuchMethod', [2014]); // undefined\n ```\n \n @method tryInvoke\n @for @ember/utils\n @static\n @param {Object} obj The object to check for the method\n @param {String} methodName The method name to check for\n @param {Array} [args] The arguments to pass to the method\n @return {*} the return value of the invoked method or undefined if it cannot be invoked\n @public\n */\n\n\n function tryInvoke(obj, methodName, args) {\n if (canInvoke(obj, methodName)) {\n let method = obj[methodName];\n return method.apply(obj, args);\n }\n }\n});","enifed(\"@ember/-internals/utils/lib/is_proxy\", [\"exports\", \"@ember/polyfills\", \"@ember/-internals/utils/lib/spec\"], function (_exports, _polyfills, _spec) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isProxy = isProxy;\n _exports.setProxy = setProxy;\n const PROXIES = new _polyfills._WeakSet();\n\n function isProxy(value) {\n if ((0, _spec.isObject)(value)) {\n return PROXIES.has(value);\n }\n\n return false;\n }\n\n function setProxy(object) {\n if ((0, _spec.isObject)(object)) {\n PROXIES.add(object);\n }\n }\n});","enifed(\"@ember/-internals/utils/lib/lookup-descriptor\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = lookupDescriptor;\n\n function lookupDescriptor(obj, keyName) {\n let current = obj;\n\n do {\n let descriptor = Object.getOwnPropertyDescriptor(current, keyName);\n\n if (descriptor !== undefined) {\n return descriptor;\n }\n\n current = Object.getPrototypeOf(current);\n } while (current !== null);\n\n return null;\n }\n});","enifed(\"@ember/-internals/utils/lib/make-array\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = makeArray;\n const {\n isArray\n } = Array;\n\n function makeArray(obj) {\n if (obj === null || obj === undefined) {\n return [];\n }\n\n return isArray(obj) ? obj : [obj];\n }\n});","enifed(\"@ember/-internals/utils/lib/name\", [\"exports\", \"@ember/-internals/utils/lib/spec\"], function (_exports, _spec) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setName = setName;\n _exports.getName = getName;\n const NAMES = new WeakMap();\n\n function setName(obj, name) {\n if ((0, _spec.isObject)(obj)) NAMES.set(obj, name);\n }\n\n function getName(obj) {\n return NAMES.get(obj);\n }\n});","enifed(\"@ember/-internals/utils/lib/proxy-utils\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.HAS_NATIVE_PROXY = void 0;\n const HAS_NATIVE_PROXY = typeof Proxy === 'function';\n _exports.HAS_NATIVE_PROXY = HAS_NATIVE_PROXY;\n});","enifed(\"@ember/-internals/utils/lib/spec\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isObject = isObject;\n\n /**\n Returns whether Type(value) is Object.\n \n Useful for checking whether a value is a valid WeakMap key.\n \n Refs: https://tc39.github.io/ecma262/#sec-typeof-operator-runtime-semantics-evaluation\n https://tc39.github.io/ecma262/#sec-weakmap.prototype.set\n \n @private\n @function isObject\n */\n function isObject(value) {\n return value !== null && (typeof value === 'object' || typeof value === 'function');\n }\n});","enifed(\"@ember/-internals/utils/lib/super\", [\"exports\", \"@ember/polyfills\"], function (_exports, _polyfills) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setObservers = setObservers;\n _exports.getObservers = getObservers;\n _exports.setListeners = setListeners;\n _exports.getListeners = getListeners;\n _exports.wrap = wrap;\n _exports.ROOT = _exports.checkHasSuper = void 0;\n const HAS_SUPER_PATTERN = /\\.(_super|call\\(this|apply\\(this)/;\n const fnToString = Function.prototype.toString;\n\n const checkHasSuper = (() => {\n let sourceAvailable = fnToString.call(function () {\n return this;\n }).indexOf('return this') > -1;\n\n if (sourceAvailable) {\n return function checkHasSuper(func) {\n return HAS_SUPER_PATTERN.test(fnToString.call(func));\n };\n }\n\n return function checkHasSuper() {\n return true;\n };\n })();\n\n _exports.checkHasSuper = checkHasSuper;\n const HAS_SUPER_MAP = new WeakMap();\n const ROOT = Object.freeze(function () {});\n _exports.ROOT = ROOT;\n HAS_SUPER_MAP.set(ROOT, false);\n\n function hasSuper(func) {\n let hasSuper = HAS_SUPER_MAP.get(func);\n\n if (hasSuper === undefined) {\n hasSuper = checkHasSuper(func);\n HAS_SUPER_MAP.set(func, hasSuper);\n }\n\n return hasSuper;\n }\n\n const OBSERVERS_MAP = new WeakMap();\n\n function setObservers(func, observers) {\n if (observers) {\n OBSERVERS_MAP.set(func, observers);\n }\n }\n\n function getObservers(func) {\n return OBSERVERS_MAP.get(func);\n }\n\n const LISTENERS_MAP = new WeakMap();\n\n function setListeners(func, listeners) {\n if (listeners) {\n LISTENERS_MAP.set(func, listeners);\n }\n }\n\n function getListeners(func) {\n return LISTENERS_MAP.get(func);\n }\n\n const IS_WRAPPED_FUNCTION_SET = new _polyfills._WeakSet();\n /**\n Wraps the passed function so that `this._super` will point to the superFunc\n when the function is invoked. This is the primitive we use to implement\n calls to super.\n \n @private\n @method wrap\n @for Ember\n @param {Function} func The function to call\n @param {Function} superFunc The super function.\n @return {Function} wrapped function.\n */\n\n function wrap(func, superFunc) {\n if (!hasSuper(func)) {\n return func;\n } // ensure an unwrapped super that calls _super is wrapped with a terminal _super\n\n\n if (!IS_WRAPPED_FUNCTION_SET.has(superFunc) && hasSuper(superFunc)) {\n return _wrap(func, _wrap(superFunc, ROOT));\n }\n\n return _wrap(func, superFunc);\n }\n\n function _wrap(func, superFunc) {\n function superWrapper() {\n let orig = this._super;\n this._super = superFunc;\n let ret = func.apply(this, arguments);\n this._super = orig;\n return ret;\n }\n\n IS_WRAPPED_FUNCTION_SET.add(superWrapper);\n setObservers(superWrapper, getObservers(func));\n setListeners(superWrapper, getListeners(func));\n return superWrapper;\n }\n});","enifed(\"@ember/-internals/utils/lib/symbol-utils\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.HAS_NATIVE_SYMBOL = void 0;\n\n const HAS_NATIVE_SYMBOL = function () {\n if (typeof Symbol !== 'function') {\n return false;\n } // use `Object`'s `.toString` directly to prevent us from detecting\n // polyfills as native\n\n\n return Object.prototype.toString.call(Symbol()) === '[object Symbol]';\n }();\n\n _exports.HAS_NATIVE_SYMBOL = HAS_NATIVE_SYMBOL;\n});","enifed(\"@ember/-internals/utils/lib/symbol\", [\"exports\", \"@ember/-internals/utils/lib/guid\", \"@ember/-internals/utils/lib/intern\"], function (_exports, _guid, _intern) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isInternalSymbol = isInternalSymbol;\n _exports.default = symbol;\n const GENERATED_SYMBOLS = [];\n\n function isInternalSymbol(possibleSymbol) {\n return GENERATED_SYMBOLS.indexOf(possibleSymbol) !== -1;\n }\n\n function symbol(debugName) {\n // TODO: Investigate using platform symbols, but we do not\n // want to require non-enumerability for this API, which\n // would introduce a large cost.\n let id = _guid.GUID_KEY + Math.floor(Math.random() * Date.now());\n let symbol = (0, _intern.default)(\"__\" + debugName + id + \"__\");\n GENERATED_SYMBOLS.push(symbol);\n return symbol;\n }\n});","enifed(\"@ember/-internals/utils/lib/to-string\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = toString;\n const objectToString = Object.prototype.toString;\n\n function isNone(obj) {\n return obj === null || obj === undefined;\n }\n /*\n A `toString` util function that supports objects without a `toString`\n method, e.g. an object created with `Object.create(null)`.\n */\n\n\n function toString(obj) {\n if (typeof obj === 'string') {\n return obj;\n }\n\n if (null === obj) return 'null';\n if (undefined === obj) return 'undefined';\n\n if (Array.isArray(obj)) {\n // Reimplement Array.prototype.join according to spec (22.1.3.13)\n // Changing ToString(element) with this safe version of ToString.\n let r = '';\n\n for (let k = 0; k < obj.length; k++) {\n if (k > 0) {\n r += ',';\n }\n\n if (!isNone(obj[k])) {\n r += toString(obj[k]);\n }\n }\n\n return r;\n }\n\n if (typeof obj.toString === 'function') {\n return obj.toString();\n }\n\n return objectToString.call(obj);\n }\n});","enifed(\"@ember/-internals/utils/tests/cache_test\", [\"@ember/-internals/utils\", \"internal-test-helpers\"], function (_utils, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Cache', class extends _internalTestHelpers.AbstractTestCase {\n ['@test basic'](assert) {\n let cache = new _utils.Cache(100, key => key.toUpperCase());\n assert.equal(cache.get('foo'), 'FOO');\n assert.equal(cache.get('bar'), 'BAR');\n assert.equal(cache.get('foo'), 'FOO');\n }\n\n ['@test explicit sets'](assert) {\n let cache = new _utils.Cache(100, key => key.toUpperCase());\n assert.equal(cache.get('foo'), 'FOO');\n assert.equal(cache.set('foo', 'FOO!!!'), 'FOO!!!');\n assert.equal(cache.get('foo'), 'FOO!!!');\n assert.strictEqual(cache.set('foo', undefined), undefined);\n assert.strictEqual(cache.get('foo'), undefined);\n }\n\n ['@test caches computation correctly'](assert) {\n let count = 0;\n let cache = new _utils.Cache(100, key => {\n count++;\n return key.toUpperCase();\n });\n assert.equal(count, 0);\n cache.get('foo');\n assert.equal(count, 1);\n cache.get('bar');\n assert.equal(count, 2);\n cache.get('bar');\n assert.equal(count, 2);\n cache.get('foo');\n assert.equal(count, 2);\n }\n\n ['@test handles undefined value correctly'](assert) {\n let count = 0;\n let cache = new _utils.Cache(100, () => {\n count++;\n });\n assert.equal(count, 0);\n assert.strictEqual(cache.get('foo'), undefined);\n assert.equal(count, 1);\n assert.strictEqual(cache.get('bar'), undefined);\n assert.equal(count, 2);\n assert.strictEqual(cache.get('bar'), undefined);\n assert.equal(count, 2);\n assert.strictEqual(cache.get('foo'), undefined);\n assert.equal(count, 2);\n }\n\n ['@test continues working after reaching cache limit'](assert) {\n let cache = new _utils.Cache(3, key => key.toUpperCase());\n cache.get('a');\n cache.get('b');\n cache.get('c');\n assert.equal(cache.get('d'), 'D');\n assert.equal(cache.get('a'), 'A');\n assert.equal(cache.get('b'), 'B');\n assert.equal(cache.get('c'), 'C');\n }\n\n });\n});","enifed(\"@ember/-internals/utils/tests/can_invoke_test\", [\"@ember/-internals/utils\", \"internal-test-helpers\"], function (_utils, _internalTestHelpers) {\n \"use strict\";\n\n let obj;\n (0, _internalTestHelpers.moduleFor)('Ember.canInvoke', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n obj = {\n foobar: 'foobar',\n\n aMethodThatExists() {}\n\n };\n }\n\n teardown() {\n obj = undefined;\n }\n\n [\"@test should return false if the object doesn't exist\"](assert) {\n assert.equal((0, _utils.canInvoke)(undefined, 'aMethodThatDoesNotExist'), false);\n }\n\n ['@test should return true for falsy values that have methods'](assert) {\n assert.equal((0, _utils.canInvoke)(false, 'valueOf'), true);\n assert.equal((0, _utils.canInvoke)('', 'charAt'), true);\n assert.equal((0, _utils.canInvoke)(0, 'toFixed'), true);\n }\n\n ['@test should return true if the method exists on the object'](assert) {\n assert.equal((0, _utils.canInvoke)(obj, 'aMethodThatExists'), true);\n }\n\n [\"@test should return false if the method doesn't exist on the object\"](assert) {\n assert.equal((0, _utils.canInvoke)(obj, 'aMethodThatDoesNotExist'), false);\n }\n\n ['@test should return false if the property exists on the object but is a non-function'](assert) {\n assert.equal((0, _utils.canInvoke)(obj, 'foobar'), false);\n }\n\n });\n});","enifed(\"@ember/-internals/utils/tests/checkHasSuper_test\", [\"@ember/-internals/browser-environment\", \"@ember/-internals/utils\", \"internal-test-helpers\"], function (_browserEnvironment, _utils, _internalTestHelpers) {\n \"use strict\";\n\n // Only run this test on browsers that we are certain should have function\n // source available. This allows the test suite to continue to pass on other\n // platforms that correctly (for them) fall back to the \"always wrap\" code.\n if (_browserEnvironment.isChrome || _browserEnvironment.isFirefox) {\n (0, _internalTestHelpers.moduleFor)('checkHasSuper', class extends _internalTestHelpers.AbstractTestCase {\n ['@test does not super wrap needlessly [GH #12462]'](assert) {\n assert.notOk((0, _utils.checkHasSuper)(function () {}), 'empty function does not have super');\n }\n\n });\n }\n});","enifed(\"@ember/-internals/utils/tests/generate_guid_test\", [\"@ember/-internals/utils\", \"internal-test-helpers\"], function (_utils, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember.generateGuid', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Prefix'](assert) {\n let a = {};\n assert.ok((0, _utils.generateGuid)(a, 'tyrell').indexOf('tyrell') > -1, 'guid can be prefixed');\n }\n\n });\n});","enifed(\"@ember/-internals/utils/tests/guid_for_test\", [\"@ember/-internals/utils\", \"internal-test-helpers\"], function (_utils, _internalTestHelpers) {\n \"use strict\";\n\n function sameGuid(assert, a, b, message) {\n assert.equal((0, _utils.guidFor)(a), (0, _utils.guidFor)(b), message);\n }\n\n function diffGuid(assert, a, b, message) {\n assert.ok((0, _utils.guidFor)(a) !== (0, _utils.guidFor)(b), message);\n }\n\n function nanGuid(assert, obj) {\n let type = typeof obj;\n assert.ok(isNaN(parseInt((0, _utils.guidFor)(obj), 0)), 'guids for ' + type + \"don't parse to numbers\");\n }\n\n (0, _internalTestHelpers.moduleFor)('guidFor', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Object'](assert) {\n let a = {};\n let b = {};\n sameGuid(assert, a, a, 'same object always yields same guid');\n diffGuid(assert, a, b, 'different objects yield different guids');\n nanGuid(assert, a);\n }\n\n ['@test strings'](assert) {\n let a = 'string A';\n let aprime = 'string A';\n let b = 'String B';\n sameGuid(assert, a, a, 'same string always yields same guid');\n sameGuid(assert, a, aprime, 'identical strings always yield the same guid');\n diffGuid(assert, a, b, 'different strings yield different guids');\n nanGuid(assert, a);\n }\n\n ['@test numbers'](assert) {\n let a = 23;\n let aprime = 23;\n let b = 34;\n sameGuid(assert, a, a, 'same numbers always yields same guid');\n sameGuid(assert, a, aprime, 'identical numbers always yield the same guid');\n diffGuid(assert, a, b, 'different numbers yield different guids');\n nanGuid(assert, a);\n }\n\n ['@test symbols'](assert) {\n if (_utils.HAS_NATIVE_SYMBOL) {\n assert.ok(true, 'symbols are not supported on this browser');\n return;\n }\n\n let a = Symbol('a');\n let b = Symbol('b');\n sameGuid(assert, a, a, 'same symbols always yields same guid');\n diffGuid(assert, a, b, 'different symbols yield different guids');\n nanGuid(assert, a);\n }\n\n ['@test booleans'](assert) {\n let a = true;\n let aprime = true;\n let b = false;\n sameGuid(assert, a, a, 'same booleans always yields same guid');\n sameGuid(assert, a, aprime, 'identical booleans always yield the same guid');\n diffGuid(assert, a, b, 'different boolean yield different guids');\n nanGuid(assert, a);\n nanGuid(assert, b);\n }\n\n ['@test null and undefined'](assert) {\n let a = null;\n let aprime = null;\n let b;\n sameGuid(assert, a, a, 'null always returns the same guid');\n sameGuid(assert, b, b, 'undefined always returns the same guid');\n sameGuid(assert, a, aprime, 'different nulls return the same guid');\n diffGuid(assert, a, b, 'null and undefined return different guids');\n nanGuid(assert, a);\n nanGuid(assert, b);\n }\n\n ['@test arrays'](assert) {\n let a = ['a', 'b', 'c'];\n let aprime = ['a', 'b', 'c'];\n let b = ['1', '2', '3'];\n sameGuid(assert, a, a, 'same instance always yields same guid');\n diffGuid(assert, a, aprime, 'identical arrays always yield the same guid');\n diffGuid(assert, a, b, 'different arrays yield different guids');\n nanGuid(assert, a);\n }\n\n });\n});","enifed(\"@ember/-internals/utils/tests/inspect_test\", [\"@ember/-internals/utils\", \"internal-test-helpers\"], function (_utils, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember.inspect', class extends _internalTestHelpers.AbstractTestCase {\n ['@test strings'](assert) {\n assert.equal((0, _utils.inspect)('foo'), '\"foo\"');\n }\n\n ['@test numbers'](assert) {\n assert.equal((0, _utils.inspect)(2.6), '2.6');\n }\n\n ['@test null'](assert) {\n assert.equal((0, _utils.inspect)(null), 'null');\n }\n\n ['@test undefined'](assert) {\n assert.equal((0, _utils.inspect)(undefined), 'undefined');\n }\n\n ['@test true'](assert) {\n assert.equal((0, _utils.inspect)(true), 'true');\n }\n\n ['@test false'](assert) {\n assert.equal((0, _utils.inspect)(false), 'false');\n }\n\n ['@test object'](assert) {\n assert.equal((0, _utils.inspect)({}), '{ }');\n assert.equal((0, _utils.inspect)({\n foo: 'bar'\n }), '{ foo: \"bar\" }');\n let obj = {\n foo() {\n return this;\n }\n\n }; // IE 11 doesn't have function name\n\n if (obj.foo.name) {\n assert.equal((0, _utils.inspect)(obj), \"{ foo: [Function:foo] }\");\n } else {\n assert.equal((0, _utils.inspect)(obj), \"{ foo: [Function] }\");\n }\n }\n\n ['@test objects without a prototype'](assert) {\n let prototypelessObj = Object.create(null);\n prototypelessObj.a = 1;\n prototypelessObj.b = [Object.create(null)];\n assert.equal((0, _utils.inspect)({\n foo: prototypelessObj\n }), '{ foo: { a: 1, b: [ { } ] } }');\n }\n\n ['@test array'](assert) {\n assert.equal((0, _utils.inspect)([1, 2, 3]), '[ 1, 2, 3 ]');\n }\n\n ['@test array list limit'](assert) {\n let a = [];\n\n for (let i = 0; i < 120; i++) {\n a.push(1);\n }\n\n assert.equal((0, _utils.inspect)(a), \"[ \" + a.slice(0, 100).join(', ') + \", ... 20 more items ]\");\n }\n\n ['@test object list limit'](assert) {\n let obj = {};\n let pairs = [];\n\n for (let i = 0; i < 120; i++) {\n obj['key' + i] = i;\n pairs.push(\"key\" + i + \": \" + i);\n }\n\n assert.equal((0, _utils.inspect)(obj), \"{ \" + pairs.slice(0, 100).join(', ') + \", ... 20 more keys }\");\n }\n\n ['@test depth limit'](assert) {\n assert.equal((0, _utils.inspect)([[[['here', {\n a: 1\n }, [1]]]]]), '[ [ [ [ \"here\", [Object], [Array] ] ] ] ]');\n }\n\n ['@test odd key'](assert) {\n assert.equal((0, _utils.inspect)({\n [\"Hello world!\\nHow are you?\"]: 1\n }), '{ \"Hello world!\\\\nHow are you?\": 1 }');\n }\n\n ['@test node call'](assert) {\n let obj = {\n a: 1\n };\n obj.inspect = _utils.inspect;\n let depth = 2;\n let options = {};\n assert.equal(obj.inspect(depth, options), obj);\n }\n\n ['@test cycle'](assert) {\n let obj = {};\n obj.a = obj;\n let arr = [obj];\n arr.push(arr);\n assert.equal((0, _utils.inspect)(arr), '[ { a: [Circular] }, [Circular] ]');\n }\n\n ['@test custom toString'](assert) {\n class Component {\n static toString() {\n return '@ember/component';\n }\n\n toString() {\n return \"<\" + this.constructor + \":ember234>\";\n }\n\n }\n\n assert.equal((0, _utils.inspect)([new Component(), Component]), '[ <@ember/component:ember234>, @ember/component ]');\n }\n\n ['@test regexp'](assert) {\n assert.equal((0, _utils.inspect)(/regexp/), '/regexp/');\n }\n\n ['@test date'](assert) {\n let inspected = (0, _utils.inspect)(new Date('Sat Apr 30 2011 13:24:11'));\n assert.ok(inspected.match(/Sat Apr 30/), 'The inspected date has its date');\n assert.ok(inspected.match(/2011/), 'The inspected date has its year');\n assert.ok(inspected.match(/13:24:11/), 'The inspected date has its time');\n }\n\n ['@test inspect outputs the toString() representation of Symbols'](assert) {\n if (_utils.HAS_NATIVE_SYMBOL) {\n let symbol = Symbol('test');\n assert.equal((0, _utils.inspect)(symbol), 'Symbol(test)');\n } else {\n assert.expect(0);\n }\n }\n\n });\n});","enifed(\"@ember/-internals/utils/tests/is_proxy_test\", [\"@ember/-internals/utils\", \"internal-test-helpers\"], function (_utils, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('@ember/-internals/utils isProxy', class extends _internalTestHelpers.AbstractTestCase {\n ['@test basic'](assert) {\n let proxy = {};\n (0, _utils.setProxy)(proxy);\n assert.equal((0, _utils.isProxy)(proxy), true);\n assert.equal((0, _utils.isProxy)({}), false);\n assert.equal((0, _utils.isProxy)(undefined), false);\n assert.equal((0, _utils.isProxy)(null), false);\n }\n\n });\n});","enifed(\"@ember/-internals/utils/tests/make_array_test\", [\"@ember/-internals/utils\", \"internal-test-helpers\"], function (_utils, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember.makeArray', class extends _internalTestHelpers.AbstractTestCase {\n ['@test undefined'](assert) {\n assert.deepEqual((0, _utils.makeArray)(), []);\n assert.deepEqual((0, _utils.makeArray)(undefined), []);\n }\n\n ['@test null'](assert) {\n assert.deepEqual((0, _utils.makeArray)(null), []);\n }\n\n ['@test string'](assert) {\n assert.deepEqual((0, _utils.makeArray)('lindsay'), ['lindsay']);\n }\n\n ['@test number'](assert) {\n assert.deepEqual((0, _utils.makeArray)(0), [0]);\n assert.deepEqual((0, _utils.makeArray)(1), [1]);\n }\n\n ['@test array'](assert) {\n assert.deepEqual((0, _utils.makeArray)([1, 2, 42]), [1, 2, 42]);\n }\n\n ['@test true'](assert) {\n assert.deepEqual((0, _utils.makeArray)(true), [true]);\n }\n\n ['@test false'](assert) {\n assert.deepEqual((0, _utils.makeArray)(false), [false]);\n }\n\n ['@test object'](assert) {\n assert.deepEqual((0, _utils.makeArray)({}), [{}]);\n }\n\n });\n});","enifed(\"@ember/-internals/utils/tests/to-string-test\", [\"@ember/-internals/utils\", \"internal-test-helpers\"], function (_utils, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('@ember/-internals/utils toString', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test toString uses an object's toString method when available\"](assert) {\n let obj = {\n toString() {\n return 'bob';\n }\n\n };\n assert.strictEqual((0, _utils.toString)(obj), 'bob');\n }\n\n ['@test toString falls back to Object.prototype.toString'](assert) {\n let obj = Object.create(null);\n assert.strictEqual((0, _utils.toString)(obj), {}.toString());\n }\n\n ['@test toString does not fail when called on Arrays with objects without toString method'](assert) {\n let obj = Object.create(null);\n let arr = [obj, 2];\n assert.strictEqual((0, _utils.toString)(arr), {}.toString() + \",2\");\n }\n\n });\n});","enifed(\"@ember/-internals/utils/tests/try_invoke_test\", [\"@ember/-internals/utils\", \"internal-test-helpers\"], function (_utils, _internalTestHelpers) {\n \"use strict\";\n\n let obj;\n (0, _internalTestHelpers.moduleFor)('Ember.tryInvoke', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n obj = {\n aMethodThatExists() {\n return true;\n },\n\n aMethodThatTakesArguments(arg1, arg2) {\n return arg1 === arg2;\n }\n\n };\n }\n\n teardown() {\n obj = undefined;\n }\n\n [\"@test should return undefined when the object doesn't exist\"](assert) {\n assert.equal((0, _utils.tryInvoke)(undefined, 'aMethodThatDoesNotExist'), undefined);\n }\n\n [\"@test should return undefined when asked to perform a method that doesn't exist on the object\"](assert) {\n assert.equal((0, _utils.tryInvoke)(obj, 'aMethodThatDoesNotExist'), undefined);\n }\n\n ['@test should return what the method returns when asked to perform a method that exists on the object'](assert) {\n assert.equal((0, _utils.tryInvoke)(obj, 'aMethodThatExists'), true);\n }\n\n ['@test should return what the method returns when asked to perform a method that takes arguments and exists on the object'](assert) {\n assert.equal((0, _utils.tryInvoke)(obj, 'aMethodThatTakesArguments', [true, true]), true);\n }\n\n });\n});","enifed(\"@ember/-internals/views/index\", [\"exports\", \"@ember/-internals/views/lib/system/jquery\", \"@ember/-internals/views/lib/system/utils\", \"@ember/-internals/views/lib/system/event_dispatcher\", \"@ember/-internals/views/lib/component_lookup\", \"@ember/-internals/views/lib/mixins/text_support\", \"@ember/-internals/views/lib/views/core_view\", \"@ember/-internals/views/lib/mixins/class_names_support\", \"@ember/-internals/views/lib/mixins/child_views_support\", \"@ember/-internals/views/lib/mixins/view_state_support\", \"@ember/-internals/views/lib/mixins/view_support\", \"@ember/-internals/views/lib/mixins/action_support\", \"@ember/-internals/views/lib/compat/attrs\", \"@ember/-internals/views/lib/system/lookup_partial\", \"@ember/-internals/views/lib/utils/lookup-component\", \"@ember/-internals/views/lib/system/action_manager\"], function (_exports, _jquery, _utils, _event_dispatcher, _component_lookup, _text_support, _core_view, _class_names_support, _child_views_support, _view_state_support, _view_support, _action_support, _attrs, _lookup_partial, _lookupComponent, _action_manager) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.hasPartial = _exports.MUTABLE_CELL = _exports.constructStyleDeprecationMessage = _exports.clearViewElement = _exports.clearElementView = _exports.setViewElement = _exports.setElementView = _exports.getViewElement = _exports.getElementView = _exports.getViewId = _exports.getChildViews = _exports.getRootViews = _exports.getViewBoundingClientRect = _exports.getViewClientRects = _exports.getViewBounds = _exports.isSimpleClick = _exports.addChildView = _exports.jQueryDisabled = _exports.ActionManager = _exports.lookupComponent = _exports.lookupPartial = _exports.ActionSupport = _exports.ViewMixin = _exports.ViewStateSupport = _exports.ChildViewsSupport = _exports.ClassNamesSupport = _exports.CoreView = _exports.TextSupport = _exports.ComponentLookup = _exports.EventDispatcher = _exports.jQuery = void 0;\n _exports.jQuery = _jquery.default;\n _exports.jQueryDisabled = _jquery.jQueryDisabled;\n _exports.addChildView = _utils.addChildView;\n _exports.isSimpleClick = _utils.isSimpleClick;\n _exports.getViewBounds = _utils.getViewBounds;\n _exports.getViewClientRects = _utils.getViewClientRects;\n _exports.getViewBoundingClientRect = _utils.getViewBoundingClientRect;\n _exports.getRootViews = _utils.getRootViews;\n _exports.getChildViews = _utils.getChildViews;\n _exports.getViewId = _utils.getViewId;\n _exports.getElementView = _utils.getElementView;\n _exports.getViewElement = _utils.getViewElement;\n _exports.setElementView = _utils.setElementView;\n _exports.setViewElement = _utils.setViewElement;\n _exports.clearElementView = _utils.clearElementView;\n _exports.clearViewElement = _utils.clearViewElement;\n _exports.constructStyleDeprecationMessage = _utils.constructStyleDeprecationMessage;\n _exports.EventDispatcher = _event_dispatcher.default;\n _exports.ComponentLookup = _component_lookup.default;\n _exports.TextSupport = _text_support.default;\n _exports.CoreView = _core_view.default;\n _exports.ClassNamesSupport = _class_names_support.default;\n _exports.ChildViewsSupport = _child_views_support.default;\n _exports.ViewStateSupport = _view_state_support.default;\n _exports.ViewMixin = _view_support.default;\n _exports.ActionSupport = _action_support.default;\n _exports.MUTABLE_CELL = _attrs.MUTABLE_CELL;\n _exports.lookupPartial = _lookup_partial.default;\n _exports.hasPartial = _lookup_partial.hasPartial;\n _exports.lookupComponent = _lookupComponent.default;\n _exports.ActionManager = _action_manager.default;\n});","enifed(\"@ember/-internals/views/lib/compat/attrs\", [\"exports\", \"@ember/-internals/utils\"], function (_exports, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.MUTABLE_CELL = void 0;\n let MUTABLE_CELL = (0, _utils.symbol)('MUTABLE_CELL');\n _exports.MUTABLE_CELL = MUTABLE_CELL;\n});","enifed(\"@ember/-internals/views/lib/compat/fallback-view-registry\", [\"exports\", \"@ember/-internals/utils\"], function (_exports, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n var _default = (0, _utils.dictionary)(null);\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/component_lookup\", [\"exports\", \"@ember/-internals/runtime\"], function (_exports, _runtime) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n var _default = _runtime.Object.extend({\n componentFor(name, owner, options) {\n let fullName = \"component:\" + name;\n return owner.factoryFor(fullName, options);\n },\n\n layoutFor(name, owner, options) {\n let templateFullName = \"template:components/\" + name;\n return owner.lookup(templateFullName, options);\n }\n\n });\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/mixins/action_support\", [\"exports\", \"@ember/-internals/utils\", \"@ember/-internals/metal\", \"@ember/debug\", \"@ember/-internals/views/lib/compat/attrs\", \"@ember/deprecated-features\"], function (_exports, _utils, _metal, _debug, _attrs, _deprecatedFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n const mixinObj = {\n send(actionName, ...args) {\n (0, _debug.assert)(\"Attempted to call .send() with the action '\" + actionName + \"' on the destroyed object '\" + this + \"'.\", !this.isDestroying && !this.isDestroyed);\n let action = this.actions && this.actions[actionName];\n\n if (action) {\n let shouldBubble = action.apply(this, args) === true;\n\n if (!shouldBubble) {\n return;\n }\n }\n\n let target = (0, _metal.get)(this, 'target');\n\n if (target) {\n (0, _debug.assert)(\"The `target` for \" + this + \" (\" + target + \") does not have a `send` method\", typeof target.send === 'function');\n target.send(...arguments);\n } else {\n (0, _debug.assert)((0, _utils.inspect)(this) + \" had no action handler for: \" + actionName, action);\n }\n }\n\n };\n\n if (_deprecatedFeatures.SEND_ACTION) {\n /**\n Calls an action passed to a component.\n For example a component for playing or pausing music may translate click events\n into action notifications of \"play\" or \"stop\" depending on some internal state\n of the component:\n ```app/components/play-button.js\n import Component from '@ember/component';\n export default Component.extend({\n click() {\n if (this.get('isPlaying')) {\n this.sendAction('play');\n } else {\n this.sendAction('stop');\n }\n }\n });\n ```\n The actions \"play\" and \"stop\" must be passed to this `play-button` component:\n ```handlebars\n {{! app/templates/application.hbs }}\n {{play-button play=(action \"musicStarted\") stop=(action \"musicStopped\")}}\n ```\n When the component receives a browser `click` event it translate this\n interaction into application-specific semantics (\"play\" or \"stop\") and\n calls the specified action.\n ```app/controller/application.js\n import Controller from '@ember/controller';\n export default Controller.extend({\n actions: {\n musicStarted() {\n // called when the play button is clicked\n // and the music started playing\n },\n musicStopped() {\n // called when the play button is clicked\n // and the music stopped playing\n }\n }\n });\n ```\n If no action is passed to `sendAction` a default name of \"action\"\n is assumed.\n ```app/components/next-button.js\n import Component from '@ember/component';\n export default Component.extend({\n click() {\n this.sendAction();\n }\n });\n ```\n ```handlebars\n {{! app/templates/application.hbs }}\n {{next-button action=(action \"playNextSongInAlbum\")}}\n ```\n ```app/controllers/application.js\n import Controller from '@ember/controller';\n export default Controller.extend({\n actions: {\n playNextSongInAlbum() {\n ...\n }\n }\n });\n ```\n @method sendAction\n @param [action] {String} the action to call\n @param [params] {*} arguments for the action\n @public\n @deprecated\n */\n let sendAction = function sendAction(action, ...contexts) {\n (0, _debug.assert)(\"Attempted to call .sendAction() with the action '\" + action + \"' on the destroyed object '\" + this + \"'.\", !this.isDestroying && !this.isDestroyed);\n (0, _debug.deprecate)(\"You called \" + (0, _utils.inspect)(this) + \".sendAction(\" + (typeof action === 'string' ? \"\\\"\" + action + \"\\\"\" : '') + \") but Component#sendAction is deprecated. Please use closure actions instead.\", false, {\n id: 'ember-component.send-action',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_ember-component-send-action'\n });\n let actionName; // Send the default action\n\n if (action === undefined) {\n action = 'action';\n }\n\n actionName = (0, _metal.get)(this, \"attrs.\" + action) || (0, _metal.get)(this, action);\n actionName = validateAction(this, actionName); // If no action name for that action could be found, just abort.\n\n if (actionName === undefined) {\n return;\n }\n\n if (typeof actionName === 'function') {\n actionName(...contexts);\n } else {\n this.triggerAction({\n action: actionName,\n actionContext: contexts\n });\n }\n };\n\n let validateAction = function validateAction(component, actionName) {\n if (actionName && actionName[_attrs.MUTABLE_CELL]) {\n actionName = actionName.value;\n }\n\n (0, _debug.assert)(\"The default action was triggered on the component \" + component.toString() + \", but the action name (\" + actionName + \") was not a string.\", actionName === null || actionName === undefined || typeof actionName === 'string' || typeof actionName === 'function');\n return actionName;\n };\n\n mixinObj.sendAction = sendAction;\n }\n /**\n @class ActionSupport\n @namespace Ember\n @private\n */\n\n\n var _default = _metal.Mixin.create(mixinObj);\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/mixins/child_views_support\", [\"exports\", \"@ember/-internals/metal\", \"@ember/-internals/views/lib/system/utils\"], function (_exports, _metal, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n var _default = _metal.Mixin.create({\n /**\n Array of child views. You should never edit this array directly.\n @property childViews\n @type Array\n @default []\n @private\n */\n childViews: (0, _metal.nativeDescDecorator)({\n configurable: false,\n enumerable: false,\n\n get() {\n return (0, _utils.getChildViews)(this);\n }\n\n }),\n\n appendChild(view) {\n (0, _utils.addChildView)(this, view);\n }\n\n });\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/mixins/class_names_support\", [\"exports\", \"@ember/-internals/metal\", \"@ember/debug\"], function (_exports, _metal, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n const EMPTY_ARRAY = Object.freeze([]);\n /**\n @class ClassNamesSupport\n @namespace Ember\n @private\n */\n\n var _default = _metal.Mixin.create({\n concatenatedProperties: ['classNames', 'classNameBindings'],\n\n init() {\n this._super(...arguments);\n\n (0, _debug.assert)(\"Only arrays are allowed for 'classNameBindings'\", (0, _metal.descriptorForProperty)(this, 'classNameBindings') === undefined && Array.isArray(this.classNameBindings));\n (0, _debug.assert)(\"Only arrays of static class strings are allowed for 'classNames'. For dynamic classes, use 'classNameBindings'.\", (0, _metal.descriptorForProperty)(this, 'classNames') === undefined && Array.isArray(this.classNames));\n },\n\n /**\n Standard CSS class names to apply to the view's outer element. This\n property automatically inherits any class names defined by the view's\n superclasses as well.\n @property classNames\n @type Array\n @default ['ember-view']\n @public\n */\n classNames: EMPTY_ARRAY,\n\n /**\n A list of properties of the view to apply as class names. If the property\n is a string value, the value of that string will be applied as a class\n name.\n ```javascript\n // Applies the 'high' class to the view element\n import Component from '@ember/component';\n Component.extend({\n classNameBindings: ['priority'],\n priority: 'high'\n });\n ```\n If the value of the property is a Boolean, the name of that property is\n added as a dasherized class name.\n ```javascript\n // Applies the 'is-urgent' class to the view element\n import Component from '@ember/component';\n Component.extend({\n classNameBindings: ['isUrgent'],\n isUrgent: true\n });\n ```\n If you would prefer to use a custom value instead of the dasherized\n property name, you can pass a binding like this:\n ```javascript\n // Applies the 'urgent' class to the view element\n import Component from '@ember/component';\n Component.extend({\n classNameBindings: ['isUrgent:urgent'],\n isUrgent: true\n });\n ```\n If you would like to specify a class that should only be added when the\n property is false, you can declare a binding like this:\n ```javascript\n // Applies the 'disabled' class to the view element\n import Component from '@ember/component';\n Component.extend({\n classNameBindings: ['isEnabled::disabled'],\n isEnabled: false\n });\n ```\n This list of properties is inherited from the component's superclasses as well.\n @property classNameBindings\n @type Array\n @default []\n @public\n */\n classNameBindings: EMPTY_ARRAY\n });\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/mixins/text_support\", [\"exports\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"@ember/canary-features\", \"@ember/debug\", \"@ember/deprecated-features\"], function (_exports, _metal, _runtime, _canaryFeatures, _debug, _deprecatedFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n const KEY_EVENTS = {\n 13: 'insertNewline',\n 27: 'cancel'\n };\n /**\n `TextSupport` is a shared mixin used by both `TextField` and\n `TextArea`. `TextSupport` adds a number of methods that allow you to\n specify a controller action to invoke when a certain event is fired on your\n text field or textarea. The specified controller action would get the current\n value of the field passed in as the only argument unless the value of\n the field is empty. In that case, the instance of the field itself is passed\n in as the only argument.\n \n Let's use the pressing of the escape key as an example. If you wanted to\n invoke a controller action when a user presses the escape key while on your\n field, you would use the `escape-press` attribute on your field like so:\n \n ```handlebars\n {{! application.hbs}}\n \n {{input escape-press='alertUser'}}\n ```\n \n ```javascript\n import Application from '@ember/application';\n import Controller from '@ember/controller';\n App = Application.create();\n \n App.ApplicationController = Controller.extend({\n actions: {\n alertUser: function ( currentValue ) {\n alert( 'escape pressed, current value: ' + currentValue );\n }\n }\n });\n ```\n \n The following chart is a visual representation of what takes place when the\n escape key is pressed in this scenario:\n \n ```\n The Template\n +---------------------------+\n | |\n | escape-press='alertUser' |\n | | TextSupport Mixin\n +----+----------------------+ +-------------------------------+\n | | cancel method |\n | escape button pressed | |\n +-------------------------------> | checks for the `escape-press` |\n | attribute and pulls out the |\n +-------------------------------+ | `alertUser` value |\n | action name 'alertUser' +-------------------------------+\n | sent to controller\n v\n Controller\n +------------------------------------------ +\n | |\n | actions: { |\n | alertUser: function( currentValue ){ |\n | alert( 'the esc key was pressed!' ) |\n | } |\n | } |\n | |\n +-------------------------------------------+\n ```\n \n Here are the events that we currently support along with the name of the\n attribute you would need to use on your field. To reiterate, you would use the\n attribute name like so:\n \n ```handlebars\n {{input attribute-name='controllerAction'}}\n ```\n \n ```\n +--------------------+----------------+\n | | |\n | event | attribute name |\n +--------------------+----------------+\n | new line inserted | insert-newline |\n | | |\n | enter key pressed | enter |\n | | |\n | cancel key pressed | escape-press |\n | | |\n | focusin | focus-in |\n | | |\n | focusout | focus-out |\n | | |\n | keypress | key-press |\n | | |\n | keyup | key-up |\n | | |\n | keydown | key-down |\n +--------------------+----------------+\n ```\n \n @class TextSupport\n @namespace Ember\n @uses Ember.TargetActionSupport\n @extends Mixin\n @private\n */\n\n var _default = _metal.Mixin.create(_runtime.TargetActionSupport, {\n value: '',\n attributeBindings: ['autocapitalize', 'autocorrect', 'autofocus', 'disabled', 'form', 'maxlength', 'minlength', 'placeholder', 'readonly', 'required', 'selectionDirection', 'spellcheck', 'tabindex', 'title'],\n placeholder: null,\n disabled: false,\n maxlength: null,\n\n init() {\n this._super(...arguments);\n\n this.on('paste', this, this._elementValueDidChange);\n this.on('cut', this, this._elementValueDidChange);\n this.on('input', this, this._elementValueDidChange);\n },\n\n /**\n Whether the `keyUp` event that triggers an `action` to be sent continues\n propagating to other views.\n By default, when the user presses the return key on their keyboard and\n the text field has an `action` set, the action will be sent to the view's\n controller and the key event will stop propagating.\n If you would like parent views to receive the `keyUp` event even after an\n action has been dispatched, set `bubbles` to true.\n @property bubbles\n @type Boolean\n @default false\n @private\n */\n bubbles: false,\n\n interpretKeyEvents(event) {\n let map = KEY_EVENTS;\n let method = map[event.keyCode];\n\n this._elementValueDidChange();\n\n if (method) {\n return this[method](event);\n }\n },\n\n _elementValueDidChange() {\n (0, _metal.set)(this, 'value', this.element.value);\n },\n\n change(event) {\n this._elementValueDidChange(event);\n },\n\n /**\n Allows you to specify a controller action to invoke when either the `enter`\n key is pressed or, in the case of the field being a textarea, when a newline\n is inserted. To use this method, give your field an `insert-newline`\n attribute. The value of that attribute should be the name of the action\n in your controller that you wish to invoke.\n For an example on how to use the `insert-newline` attribute, please\n reference the example near the top of this file.\n @method insertNewline\n @param {Event} event\n @private\n */\n insertNewline(event) {\n sendAction('enter', this, event);\n sendAction('insert-newline', this, event);\n },\n\n /**\n Allows you to specify a controller action to invoke when the escape button\n is pressed. To use this method, give your field an `escape-press`\n attribute. The value of that attribute should be the name of the action\n in your controller that you wish to invoke.\n For an example on how to use the `escape-press` attribute, please reference\n the example near the top of this file.\n @method cancel\n @param {Event} event\n @private\n */\n cancel(event) {\n sendAction('escape-press', this, event);\n },\n\n /**\n Allows you to specify a controller action to invoke when a field receives\n focus. To use this method, give your field a `focus-in` attribute. The value\n of that attribute should be the name of the action in your controller\n that you wish to invoke.\n For an example on how to use the `focus-in` attribute, please reference the\n example near the top of this file.\n @method focusIn\n @param {Event} event\n @private\n */\n focusIn(event) {\n sendAction('focus-in', this, event);\n },\n\n /**\n Allows you to specify a controller action to invoke when a field loses\n focus. To use this method, give your field a `focus-out` attribute. The value\n of that attribute should be the name of the action in your controller\n that you wish to invoke.\n For an example on how to use the `focus-out` attribute, please reference the\n example near the top of this file.\n @method focusOut\n @param {Event} event\n @private\n */\n focusOut(event) {\n this._elementValueDidChange(event);\n\n sendAction('focus-out', this, event);\n },\n\n /**\n Allows you to specify a controller action to invoke when a key is pressed.\n To use this method, give your field a `key-press` attribute. The value of\n that attribute should be the name of the action in your controller you\n that wish to invoke.\n For an example on how to use the `key-press` attribute, please reference the\n example near the top of this file.\n @method keyPress\n @param {Event} event\n @private\n */\n keyPress(event) {\n sendAction('key-press', this, event);\n },\n\n /**\n Allows you to specify a controller action to invoke when a key-up event is\n fired. To use this method, give your field a `key-up` attribute. The value\n of that attribute should be the name of the action in your controller\n that you wish to invoke.\n For an example on how to use the `key-up` attribute, please reference the\n example near the top of this file.\n @method keyUp\n @param {Event} event\n @private\n */\n keyUp(event) {\n this.interpretKeyEvents(event);\n sendAction('key-up', this, event);\n },\n\n /**\n Allows you to specify a controller action to invoke when a key-down event is\n fired. To use this method, give your field a `key-down` attribute. The value\n of that attribute should be the name of the action in your controller that\n you wish to invoke.\n For an example on how to use the `key-down` attribute, please reference the\n example near the top of this file.\n @method keyDown\n @param {Event} event\n @private\n */\n keyDown(event) {\n sendAction('key-down', this, event);\n }\n\n }); // In principle, this shouldn't be necessary, but the legacy\n // sendAction semantics for TextField are different from\n // the component semantics so this method normalizes them.\n\n\n _exports.default = _default;\n\n function sendAction(eventName, view, event) {\n let actionName = (0, _metal.get)(view, \"attrs.\" + eventName) || (0, _metal.get)(view, eventName);\n let value = (0, _metal.get)(view, 'value');\n\n if (_deprecatedFeatures.SEND_ACTION && typeof actionName === 'string') {\n let message = _canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS ? \"Passing actions to components as strings (like ` `) is deprecated. Please use closure actions instead (` `).\" : \"Passing actions to components as strings (like `{{input \" + eventName + \"=\\\"\" + actionName + \"\\\"}}`) is deprecated. Please use closure actions instead (`{{input \" + eventName + \"=(action \\\"\" + actionName + \"\\\")}}`).\";\n (0, _debug.deprecate)(message, false, {\n id: 'ember-component.send-action',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_ember-component-send-action'\n });\n view.triggerAction({\n action: actionName,\n actionContext: [value, event]\n });\n } else if (typeof actionName === 'function') {\n actionName(value, event);\n }\n\n if (actionName && !(0, _metal.get)(view, 'bubbles')) {\n event.stopPropagation();\n }\n }\n});","enifed(\"@ember/-internals/views/lib/mixins/view_state_support\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n var _default = _metal.Mixin.create({\n _transitionTo(state) {\n let priorState = this._currentState;\n let currentState = this._currentState = this._states[state];\n this._state = state;\n\n if (priorState && priorState.exit) {\n priorState.exit(this);\n }\n\n if (currentState.enter) {\n currentState.enter(this);\n }\n }\n\n });\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/mixins/view_support\", [\"exports\", \"@ember/-internals/utils\", \"@ember/-internals/metal\", \"@ember/debug\", \"@ember/-internals/browser-environment\", \"@ember/-internals/views/lib/system/utils\", \"@ember/-internals/views/lib/system/jquery\", \"@ember/deprecated-features\"], function (_exports, _utils, _metal, _debug, _browserEnvironment, _utils2, _jquery, _deprecatedFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n function K() {\n return this;\n }\n\n let mixin = {\n /**\n A list of properties of the view to apply as attributes. If the property\n is a string value, the value of that string will be applied as the value\n for an attribute of the property's name.\n The following example creates a tag like `
`.\n ```app/components/my-component.js\n import Component from '@ember/component';\n export default Component.extend({\n attributeBindings: ['priority'],\n priority: 'high'\n });\n ```\n If the value of the property is a Boolean, the attribute is treated as\n an HTML Boolean attribute. It will be present if the property is `true`\n and omitted if the property is `false`.\n The following example creates markup like `
`.\n ```app/components/my-component.js\n import Component from '@ember/component';\n export default Component.extend({\n attributeBindings: ['visible'],\n visible: true\n });\n ```\n If you would prefer to use a custom value instead of the property name,\n you can create the same markup as the last example with a binding like\n this:\n ```app/components/my-component.js\n import Component from '@ember/component';\n export default Component.extend({\n attributeBindings: ['isVisible:visible'],\n isVisible: true\n });\n ```\n This list of attributes is inherited from the component's superclasses,\n as well.\n @property attributeBindings\n @type Array\n @default []\n @public\n */\n concatenatedProperties: ['attributeBindings'],\n\n // ..........................................................\n // TEMPLATE SUPPORT\n //\n\n /**\n Return the nearest ancestor that is an instance of the provided\n class or mixin.\n @method nearestOfType\n @param {Class,Mixin} klass Subclass of Ember.View (or Ember.View itself),\n or an instance of Mixin.\n @return Ember.View\n @deprecated use `yield` and contextual components for composition instead.\n @private\n */\n nearestOfType(klass) {\n let view = this.parentView;\n let isOfType = klass instanceof _metal.Mixin ? view => klass.detect(view) : view => klass.detect(view.constructor);\n\n while (view) {\n if (isOfType(view)) {\n return view;\n }\n\n view = view.parentView;\n }\n },\n\n /**\n Return the nearest ancestor that has a given property.\n @method nearestWithProperty\n @param {String} property A property name\n @return Ember.View\n @deprecated use `yield` and contextual components for composition instead.\n @private\n */\n nearestWithProperty(property) {\n let view = this.parentView;\n\n while (view) {\n if (property in view) {\n return view;\n }\n\n view = view.parentView;\n }\n },\n\n /**\n Renders the view again. This will work regardless of whether the\n view is already in the DOM or not. If the view is in the DOM, the\n rendering process will be deferred to give bindings a chance\n to synchronize.\n If children were added during the rendering process using `appendChild`,\n `rerender` will remove them, because they will be added again\n if needed by the next `render`.\n In general, if the display of your view changes, you should modify\n the DOM element directly instead of manually calling `rerender`, which can\n be slow.\n @method rerender\n @public\n */\n rerender() {\n return this._currentState.rerender(this);\n },\n\n // ..........................................................\n // ELEMENT SUPPORT\n //\n\n /**\n Returns the current DOM element for the view.\n @property element\n @type DOMElement\n @public\n */\n element: (0, _metal.nativeDescDecorator)({\n configurable: false,\n enumerable: false,\n\n get() {\n return this.renderer.getElement(this);\n }\n\n }),\n\n /**\n Appends the view's element to the specified parent element.\n Note that this method just schedules the view to be appended; the DOM\n element will not be appended to the given element until all bindings have\n finished synchronizing.\n This is not typically a function that you will need to call directly when\n building your application. If you do need to use `appendTo`, be sure that\n the target element you are providing is associated with an `Application`\n and does not have an ancestor element that is associated with an Ember view.\n @method appendTo\n @param {String|DOMElement|jQuery} A selector, element, HTML string, or jQuery object\n @return {Ember.View} receiver\n @private\n */\n appendTo(selector) {\n let target;\n\n if (_browserEnvironment.hasDOM) {\n target = typeof selector === 'string' ? document.querySelector(selector) : selector;\n (0, _debug.assert)(\"You tried to append to (\" + selector + \") but that isn't in the DOM\", target);\n (0, _debug.assert)('You cannot append to an existing Ember.View.', !(0, _utils2.matches)(target, '.ember-view'));\n (0, _debug.assert)('You cannot append to an existing Ember.View.', (() => {\n let node = target.parentNode;\n\n while (node) {\n if (node.nodeType !== 9 && (0, _utils2.matches)(node, '.ember-view')) {\n return false;\n }\n\n node = node.parentNode;\n }\n\n return true;\n })());\n } else {\n target = selector;\n (0, _debug.assert)(\"You tried to append to a selector string (\" + selector + \") in an environment without jQuery\", typeof target !== 'string');\n (0, _debug.assert)(\"You tried to append to a non-Element (\" + selector + \") in an environment without jQuery\", typeof selector.appendChild === 'function');\n }\n\n this.renderer.appendTo(this, target);\n return this;\n },\n\n /**\n Appends the view's element to the document body. If the view does\n not have an HTML representation yet\n the element will be generated automatically.\n If your application uses the `rootElement` property, you must append\n the view within that element. Rendering views outside of the `rootElement`\n is not supported.\n Note that this method just schedules the view to be appended; the DOM\n element will not be appended to the document body until all bindings have\n finished synchronizing.\n @method append\n @return {Ember.View} receiver\n @private\n */\n append() {\n return this.appendTo(document.body);\n },\n\n /**\n The HTML `id` of the view's element in the DOM. You can provide this\n value yourself but it must be unique (just as in HTML):\n ```handlebars\n {{my-component elementId=\"a-really-cool-id\"}}\n ```\n If not manually set a default value will be provided by the framework.\n Once rendered an element's `elementId` is considered immutable and you\n should never change it. If you need to compute a dynamic value for the\n `elementId`, you should do this when the component or element is being\n instantiated:\n ```app/components/my-component.js\n import Component from '@ember/component';\n export default Component.extend({\n init() {\n this._super(...arguments);\n let index = this.get('index');\n this.set('elementId', 'component-id' + index);\n }\n });\n ```\n @property elementId\n @type String\n @public\n */\n elementId: null,\n\n /**\n Called when a view is going to insert an element into the DOM.\n @event willInsertElement\n @public\n */\n willInsertElement: K,\n\n /**\n Called when the element of the view has been inserted into the DOM.\n Override this function to do any set up that requires an element\n in the document body.\n When a view has children, didInsertElement will be called on the\n child view(s) first and on itself afterwards.\n @event didInsertElement\n @public\n */\n didInsertElement: K,\n\n /**\n Called when the view is about to rerender, but before anything has\n been torn down. This is a good opportunity to tear down any manual\n observers you have installed based on the DOM state\n @event willClearRender\n @public\n */\n willClearRender: K,\n\n /**\n You must call `destroy` on a view to destroy the view (and all of its\n child views). This will remove the view from any parent node, then make\n sure that the DOM element managed by the view can be released by the\n memory manager.\n @method destroy\n @private\n */\n destroy() {\n this._super(...arguments);\n\n this._currentState.destroy(this);\n },\n\n /**\n Called when the element of the view is going to be destroyed. Override\n this function to do any teardown that requires an element, like removing\n event listeners.\n Please note: any property changes made during this event will have no\n effect on object observers.\n @event willDestroyElement\n @public\n */\n willDestroyElement: K,\n\n /**\n Called after the element of the view is destroyed.\n @event willDestroyElement\n @public\n */\n didDestroyElement: K,\n\n /**\n Called when the parentView property has changed.\n @event parentViewDidChange\n @private\n */\n parentViewDidChange: K,\n // ..........................................................\n // STANDARD RENDER PROPERTIES\n //\n\n /**\n Tag name for the view's outer element. The tag name is only used when an\n element is first created. If you change the `tagName` for an element, you\n must destroy and recreate the view element.\n By default, the render buffer will use a `` tag for views.\n If the tagName is `''`, the view will be tagless, with no outer element.\n Component properties that depend on the presence of an outer element, such\n as `classNameBindings` and `attributeBindings`, do not work with tagless\n components. Tagless components cannot implement methods to handle events,\n and have no associated jQuery object to return with `$()`.\n @property tagName\n @type String\n @default null\n @public\n */\n // We leave this null by default so we can tell the difference between\n // the default case and a user-specified tag.\n tagName: null,\n\n // .......................................................\n // CORE DISPLAY METHODS\n //\n\n /**\n Setup a view, but do not finish waking it up.\n * configure `childViews`\n * register the view with the global views hash, which is used for event\n dispatch\n @method init\n @private\n */\n init() {\n this._super(...arguments); // tslint:disable-next-line:max-line-length\n\n\n (0, _debug.assert)(\"You cannot use a computed property for the component's `elementId` (\" + this + \").\", (0, _metal.descriptorForProperty)(this, 'elementId') === undefined); // tslint:disable-next-line:max-line-length\n\n (0, _debug.assert)(\"You cannot use a computed property for the component's `tagName` (\" + this + \").\", (0, _metal.descriptorForProperty)(this, 'tagName') === undefined);\n\n if (!this.elementId && this.tagName !== '') {\n this.elementId = (0, _utils.guidFor)(this);\n }\n\n (0, _debug.assert)('Using a custom `.render` function is no longer supported.', !this.render);\n },\n\n // .......................................................\n // EVENT HANDLING\n //\n\n /**\n Handle events from `EventDispatcher`\n @method handleEvent\n @param eventName {String}\n @param evt {Event}\n @private\n */\n handleEvent(eventName, evt) {\n return this._currentState.handleEvent(this, eventName, evt);\n }\n\n };\n\n if (_deprecatedFeatures.JQUERY_INTEGRATION) {\n /**\n Returns a jQuery object for this view's element. If you pass in a selector\n string, this method will return a jQuery object, using the current element\n as its buffer.\n For example, calling `view.$('li')` will return a jQuery object containing\n all of the `li` elements inside the DOM element of this view.\n @method $\n @param {String} [selector] a jQuery-compatible selector string\n @return {jQuery} the jQuery object for the DOM node\n @public\n @deprecated\n */\n mixin.$ = function $(sel) {\n (0, _debug.assert)(\"You cannot access this.$() on a component with `tagName: ''` specified.\", this.tagName !== '');\n (0, _debug.assert)('You cannot access this.$() with `jQuery` disabled.', !_jquery.jQueryDisabled);\n (0, _debug.deprecate)('Using this.$() in a component has been deprecated, consider using this.element', false, {\n id: 'ember-views.curly-components.jquery-element',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis'\n });\n\n if (this.element) {\n return sel ? (0, _jquery.default)(sel, this.element) : (0, _jquery.default)(this.element);\n }\n };\n }\n /**\n @class ViewMixin\n @namespace Ember\n @private\n */\n\n\n var _default = _metal.Mixin.create(mixin);\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/system/action_manager\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = ActionManager;\n\n /**\n @module ember\n */\n function ActionManager() {}\n /**\n Global action id hash.\n \n @private\n @property registeredActions\n @type Object\n */\n\n\n ActionManager.registeredActions = {};\n});","enifed(\"@ember/-internals/views/lib/system/event_dispatcher\", [\"exports\", \"@ember/-internals/owner\", \"@ember/polyfills\", \"@ember/debug\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"@ember/-internals/views\", \"@ember/-internals/views/lib/system/jquery\", \"@ember/-internals/views/lib/system/action_manager\", \"@ember/-internals/views/lib/system/jquery_event_deprecation\", \"@ember/-internals/views/lib/system/utils\", \"@ember/deprecated-features\"], function (_exports, _owner, _polyfills, _debug, _metal, _runtime, _views, _jquery, _action_manager, _jquery_event_deprecation, _utils, _deprecatedFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n const ROOT_ELEMENT_CLASS = 'ember-application';\n const ROOT_ELEMENT_SELECTOR = \".\" + ROOT_ELEMENT_CLASS;\n const EVENT_MAP = {\n mouseenter: 'mouseover',\n mouseleave: 'mouseout'\n };\n /**\n `Ember.EventDispatcher` handles delegating browser events to their\n corresponding `Ember.Views.` For example, when you click on a view,\n `Ember.EventDispatcher` ensures that that view's `mouseDown` method gets\n called.\n \n @class EventDispatcher\n @namespace Ember\n @private\n @extends Ember.Object\n */\n\n var _default = _runtime.Object.extend({\n /**\n The set of events names (and associated handler function names) to be setup\n and dispatched by the `EventDispatcher`. Modifications to this list can be done\n at setup time, generally via the `Application.customEvents` hash.\n To add new events to be listened to:\n ```javascript\n import Application from '@ember/application';\n let App = Application.create({\n customEvents: {\n paste: 'paste'\n }\n });\n ```\n To prevent default events from being listened to:\n ```javascript\n import Application from '@ember/application';\n let App = Application.create({\n customEvents: {\n mouseenter: null,\n mouseleave: null\n }\n });\n ```\n @property events\n @type Object\n @private\n */\n events: {\n touchstart: 'touchStart',\n touchmove: 'touchMove',\n touchend: 'touchEnd',\n touchcancel: 'touchCancel',\n keydown: 'keyDown',\n keyup: 'keyUp',\n keypress: 'keyPress',\n mousedown: 'mouseDown',\n mouseup: 'mouseUp',\n contextmenu: 'contextMenu',\n click: 'click',\n dblclick: 'doubleClick',\n mousemove: 'mouseMove',\n focusin: 'focusIn',\n focusout: 'focusOut',\n mouseenter: 'mouseEnter',\n mouseleave: 'mouseLeave',\n submit: 'submit',\n input: 'input',\n change: 'change',\n dragstart: 'dragStart',\n drag: 'drag',\n dragenter: 'dragEnter',\n dragleave: 'dragLeave',\n dragover: 'dragOver',\n drop: 'drop',\n dragend: 'dragEnd'\n },\n\n /**\n The root DOM element to which event listeners should be attached. Event\n listeners will be attached to the document unless this is overridden.\n Can be specified as a DOMElement or a selector string.\n The default body is a string since this may be evaluated before document.body\n exists in the DOM.\n @private\n @property rootElement\n @type DOMElement\n @default 'body'\n */\n rootElement: 'body',\n\n init() {\n this._super();\n\n (0, _debug.assert)('EventDispatcher should never be instantiated in fastboot mode. Please report this as an Ember bug.', (() => {\n let owner = (0, _owner.getOwner)(this);\n let environment = owner.lookup('-environment:main');\n return environment.isInteractive;\n })());\n this._eventHandlers = Object.create(null);\n },\n\n /**\n Sets up event listeners for standard browser events.\n This will be called after the browser sends a `DOMContentReady` event. By\n default, it will set up all of the listeners on the document body. If you\n would like to register the listeners on a different element, set the event\n dispatcher's `root` property.\n @private\n @method setup\n @param addedEvents {Object}\n */\n setup(addedEvents, _rootElement) {\n let events = this._finalEvents = (0, _polyfills.assign)({}, (0, _metal.get)(this, 'events'), addedEvents);\n\n if (_rootElement !== undefined && _rootElement !== null) {\n (0, _metal.set)(this, 'rootElement', _rootElement);\n }\n\n let rootElementSelector = (0, _metal.get)(this, 'rootElement');\n let rootElement;\n\n if (!_deprecatedFeatures.JQUERY_INTEGRATION || _jquery.jQueryDisabled) {\n if (typeof rootElementSelector !== 'string') {\n rootElement = rootElementSelector;\n } else {\n rootElement = document.querySelector(rootElementSelector);\n }\n\n (0, _debug.assert)(\"You cannot use the same root element (\" + ((0, _metal.get)(this, 'rootElement') || rootElement.tagName) + \") multiple times in an Ember.Application\", !rootElement.classList.contains(ROOT_ELEMENT_CLASS));\n (0, _debug.assert)('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', (() => {\n let target = rootElement.parentNode;\n\n do {\n if (target.classList.contains(ROOT_ELEMENT_CLASS)) {\n return false;\n }\n\n target = target.parentNode;\n } while (target && target.nodeType === 1);\n\n return true;\n })());\n (0, _debug.assert)('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.querySelector(ROOT_ELEMENT_SELECTOR));\n rootElement.classList.add(ROOT_ELEMENT_CLASS);\n (0, _debug.assert)(\"Unable to add '\" + ROOT_ELEMENT_CLASS + \"' class to root element (\" + ((0, _metal.get)(this, 'rootElement') || rootElement.tagName) + \"). Make sure you set rootElement to the body or an element in the body.\", rootElement.classList.contains(ROOT_ELEMENT_CLASS));\n } else {\n rootElement = (0, _jquery.default)(rootElementSelector);\n (0, _debug.assert)(\"You cannot use the same root element (\" + (rootElement.selector || rootElement[0].tagName) + \") multiple times in an Ember.Application\", !rootElement.is(ROOT_ELEMENT_SELECTOR));\n (0, _debug.assert)('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', !rootElement.closest(ROOT_ELEMENT_SELECTOR).length);\n (0, _debug.assert)('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.find(ROOT_ELEMENT_SELECTOR).length);\n rootElement.addClass(ROOT_ELEMENT_CLASS);\n\n if (!rootElement.is(ROOT_ELEMENT_SELECTOR)) {\n throw new TypeError(\"Unable to add '\" + ROOT_ELEMENT_CLASS + \"' class to root element (\" + (rootElement.selector || rootElement[0].tagName) + \"). Make sure you set rootElement to the body or an element in the body.\");\n }\n }\n\n for (let event in events) {\n if (events.hasOwnProperty(event)) {\n this.setupHandler(rootElement, event, events[event]);\n }\n }\n },\n\n /**\n Registers an event listener on the rootElement. If the given event is\n triggered, the provided event handler will be triggered on the target view.\n If the target view does not implement the event handler, or if the handler\n returns `false`, the parent view will be called. The event will continue to\n bubble to each successive parent view until it reaches the top.\n @private\n @method setupHandler\n @param {Element} rootElement\n @param {String} event the browser-originated event to listen to\n @param {String} eventName the name of the method to call on the view\n */\n setupHandler(rootElement, event, eventName) {\n if (eventName === null) {\n return;\n }\n\n if (!_deprecatedFeatures.JQUERY_INTEGRATION || _jquery.jQueryDisabled) {\n let viewHandler = (target, event) => {\n let view = (0, _views.getElementView)(target);\n let result = true;\n\n if (view) {\n result = view.handleEvent(eventName, event);\n }\n\n return result;\n };\n\n let actionHandler = (target, event) => {\n let actionId = target.getAttribute('data-ember-action');\n let actions = _action_manager.default.registeredActions[actionId]; // In Glimmer2 this attribute is set to an empty string and an additional\n // attribute it set for each action on a given element. In this case, the\n // attributes need to be read so that a proper set of action handlers can\n // be coalesced.\n\n if (actionId === '') {\n let attributes = target.attributes;\n let attributeCount = attributes.length;\n actions = [];\n\n for (let i = 0; i < attributeCount; i++) {\n let attr = attributes.item(i);\n let attrName = attr.name;\n\n if (attrName.indexOf('data-ember-action-') === 0) {\n actions = actions.concat(_action_manager.default.registeredActions[attr.value]);\n }\n }\n } // We have to check for actions here since in some cases, jQuery will trigger\n // an event on `removeChild` (i.e. focusout) after we've already torn down the\n // action handlers for the view.\n\n\n if (!actions) {\n return;\n }\n\n let result = true;\n\n for (let index = 0; index < actions.length; index++) {\n let action = actions[index];\n\n if (action && action.eventName === eventName) {\n // return false if any of the action handlers returns false\n result = action.handler(event) && result;\n }\n }\n\n return result;\n }; // Special handling of events that don't bubble (event delegation does not work).\n // Mimics the way this is handled in jQuery,\n // see https://github.com/jquery/jquery/blob/899c56f6ada26821e8af12d9f35fa039100e838e/src/event.js#L666-L700\n\n\n if (EVENT_MAP[event] !== undefined) {\n let mappedEventType = EVENT_MAP[event];\n let origEventType = event;\n\n let createFakeEvent = (eventType, event) => {\n let fakeEvent = document.createEvent('MouseEvent');\n fakeEvent.initMouseEvent(eventType, false, false, event.view, event.detail, event.screenX, event.screenY, event.clientX, event.clientY, event.ctrlKey, event.altKey, event.shiftKey, event.metaKey, event.button, event.relatedTarget); // fake event.target as we don't dispatch the event\n\n Object.defineProperty(fakeEvent, 'target', {\n value: event.target,\n enumerable: true\n });\n return fakeEvent;\n };\n\n let handleMappedEvent = this._eventHandlers[mappedEventType] = event => {\n let target = event.target;\n let related = event.relatedTarget;\n\n while (target && target.nodeType === 1 && (related === null || related !== target && !(0, _utils.contains)(target, related))) {\n // mouseEnter/Leave don't bubble, so there is no logic to prevent it as with other events\n if ((0, _views.getElementView)(target)) {\n viewHandler(target, createFakeEvent(origEventType, event));\n } else if (target.hasAttribute('data-ember-action')) {\n actionHandler(target, createFakeEvent(origEventType, event));\n } // separate mouseEnter/Leave events are dispatched for each listening element\n // until the element (related) has been reached that the pointing device exited from/to\n\n\n target = target.parentNode;\n }\n };\n\n rootElement.addEventListener(mappedEventType, handleMappedEvent);\n } else {\n let handleEvent = this._eventHandlers[event] = event => {\n let target = event.target;\n\n do {\n if ((0, _views.getElementView)(target)) {\n if (viewHandler(target, event) === false) {\n event.preventDefault();\n event.stopPropagation();\n break;\n } else if (event.cancelBubble === true) {\n break;\n }\n } else if (target.hasAttribute('data-ember-action')) {\n if (actionHandler(target, event) === false) {\n break;\n }\n }\n\n target = target.parentNode;\n } while (target && target.nodeType === 1);\n };\n\n rootElement.addEventListener(event, handleEvent);\n }\n } else {\n rootElement.on(event + \".ember\", '.ember-view', function (evt) {\n let view = (0, _views.getElementView)(this);\n let result = true;\n\n if (view) {\n result = view.handleEvent(eventName, (0, _jquery_event_deprecation.default)(evt));\n }\n\n return result;\n });\n rootElement.on(event + \".ember\", '[data-ember-action]', evt => {\n let attributes = evt.currentTarget.attributes;\n let handledActions = [];\n evt = (0, _jquery_event_deprecation.default)(evt);\n\n for (let i = 0; i < attributes.length; i++) {\n let attr = attributes.item(i);\n let attrName = attr.name;\n\n if (attrName.lastIndexOf('data-ember-action-', 0) !== -1) {\n let action = _action_manager.default.registeredActions[attr.value]; // We have to check for action here since in some cases, jQuery will trigger\n // an event on `removeChild` (i.e. focusout) after we've already torn down the\n // action handlers for the view.\n\n if (action && action.eventName === eventName && handledActions.indexOf(action) === -1) {\n action.handler(evt); // Action handlers can mutate state which in turn creates new attributes on the element.\n // This effect could cause the `data-ember-action` attribute to shift down and be invoked twice.\n // To avoid this, we keep track of which actions have been handled.\n\n handledActions.push(action);\n }\n }\n }\n });\n }\n },\n\n destroy() {\n let rootElementSelector = (0, _metal.get)(this, 'rootElement');\n let rootElement;\n\n if (rootElementSelector.nodeType) {\n rootElement = rootElementSelector;\n } else {\n rootElement = document.querySelector(rootElementSelector);\n }\n\n if (!rootElement) {\n return;\n }\n\n if (!_deprecatedFeatures.JQUERY_INTEGRATION || _jquery.jQueryDisabled) {\n for (let event in this._eventHandlers) {\n rootElement.removeEventListener(event, this._eventHandlers[event]);\n }\n } else {\n (0, _jquery.default)(rootElementSelector).off('.ember', '**');\n }\n\n rootElement.classList.remove(ROOT_ELEMENT_CLASS);\n return this._super(...arguments);\n },\n\n toString() {\n return '(EventDispatcher)';\n }\n\n });\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/system/jquery\", [\"exports\", \"@ember/-internals/environment\", \"@ember/-internals/browser-environment\", \"@ember/deprecated-features\"], function (_exports, _environment, _browserEnvironment, _deprecatedFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = _exports.jQueryDisabled = void 0;\n let jQuery;\n let jQueryDisabled = !_deprecatedFeatures.JQUERY_INTEGRATION || _environment.ENV._JQUERY_INTEGRATION === false;\n _exports.jQueryDisabled = jQueryDisabled;\n\n if (_deprecatedFeatures.JQUERY_INTEGRATION && _browserEnvironment.hasDOM) {\n jQuery = _environment.context.imports.jQuery;\n\n if (!jQueryDisabled && jQuery) {\n if (jQuery.event.addProp) {\n jQuery.event.addProp('dataTransfer');\n } else {\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dndevents\n ['dragstart', 'drag', 'dragenter', 'dragleave', 'dragover', 'drop', 'dragend'].forEach(eventName => {\n jQuery.event.fixHooks[eventName] = {\n props: ['dataTransfer']\n };\n });\n }\n } else {\n _exports.jQueryDisabled = jQueryDisabled = true;\n }\n }\n\n var _default = jQueryDisabled ? undefined : jQuery;\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/system/jquery_event_deprecation\", [\"exports\", \"@ember/debug\", \"@ember/-internals/environment\", \"@ember/-internals/utils\", \"@glimmer/env\", \"@ember/deprecated-features\"], function (_exports, _debug, _environment, _utils, _env, _deprecatedFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = addJQueryEventDeprecation;\n\n /* global Proxy */\n function addJQueryEventDeprecation(jqEvent) {\n if (_env.DEBUG && _deprecatedFeatures.JQUERY_INTEGRATION && _utils.HAS_NATIVE_PROXY) {\n let boundFunctions = new Map(); // wrap the jQuery event in a Proxy to add the deprecation message for originalEvent, according to RFC#294\n // we need a native Proxy here, so we can make sure that the internal use of originalEvent in jQuery itself does\n // not trigger a deprecation\n\n return new Proxy(jqEvent, {\n get(target, name) {\n switch (name) {\n case 'originalEvent':\n (0, _debug.deprecate)('Accessing jQuery.Event specific properties is deprecated. Either use the ember-jquery-legacy addon to normalize events to native events, or explicitly opt into jQuery integration using @ember/optional-features.', (EmberENV => {\n // this deprecation is intentionally checking `global.EmberENV` /\n // `global.ENV` so that we can ensure we _only_ deprecate in the\n // case where jQuery integration is enabled implicitly (e.g.\n // \"defaulted\" to enabled) as opposed to when the user explicitly\n // opts in to using jQuery\n if (typeof EmberENV !== 'object' || EmberENV === null) return false;\n return EmberENV._JQUERY_INTEGRATION === true;\n })(_environment.global.EmberENV || _environment.global.ENV), {\n id: 'ember-views.event-dispatcher.jquery-event',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-event'\n });\n return target[name];\n // provide an escape hatch for ember-jquery-legacy to access originalEvent without a deprecation\n\n case '__originalEvent':\n return target.originalEvent;\n\n default:\n if (typeof target[name] === 'function') {\n // cache functions for reuse\n if (!boundFunctions.has(name)) {\n // for jQuery.Event methods call them with `target` as the `this` context, so they will access\n // `originalEvent` from the original jQuery event, not our proxy, thus not trigger the deprecation\n boundFunctions.set(name, target[name].bind(target));\n }\n\n return boundFunctions.get(name);\n } // same for jQuery's getter functions for simple properties\n\n\n return target[name];\n }\n }\n\n });\n }\n\n return jqEvent;\n }\n});","enifed(\"@ember/-internals/views/lib/system/lookup_partial\", [\"exports\", \"@ember/debug\", \"@ember/error\"], function (_exports, _debug, _error) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = lookupPartial;\n _exports.hasPartial = hasPartial;\n\n function parseUnderscoredName(templateName) {\n let nameParts = templateName.split('/');\n let lastPart = nameParts[nameParts.length - 1];\n nameParts[nameParts.length - 1] = \"_\" + lastPart;\n return nameParts.join('/');\n }\n\n function lookupPartial(templateName, owner) {\n if (templateName == null) {\n return;\n }\n\n let template = templateFor(owner, parseUnderscoredName(templateName), templateName);\n (0, _debug.assert)(\"Unable to find partial with name \\\"\" + templateName + \"\\\"\", Boolean(template));\n return template;\n }\n\n function hasPartial(name, owner) {\n if (!owner) {\n throw new _error.default('Container was not found when looking up a views template. ' + 'This is most likely due to manually instantiating an Ember.View. ' + 'See: http://git.io/EKPpnA');\n }\n\n return owner.hasRegistration(\"template:\" + parseUnderscoredName(name)) || owner.hasRegistration(\"template:\" + name);\n }\n\n function templateFor(owner, underscored, name) {\n if (!name) {\n return;\n }\n\n (0, _debug.assert)(\"templateNames are not allowed to contain periods: \" + name, name.indexOf('.') === -1);\n\n if (!owner) {\n throw new _error.default('Container was not found when looking up a views template. ' + 'This is most likely due to manually instantiating an Ember.View. ' + 'See: http://git.io/EKPpnA');\n }\n\n return owner.lookup(\"template:\" + underscored) || owner.lookup(\"template:\" + name);\n }\n});","enifed(\"@ember/-internals/views/lib/system/utils\", [\"exports\", \"@ember/-internals/owner\", \"@ember/-internals/utils\"], function (_exports, _owner, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isSimpleClick = isSimpleClick;\n _exports.constructStyleDeprecationMessage = constructStyleDeprecationMessage;\n _exports.getRootViews = getRootViews;\n _exports.getViewId = getViewId;\n _exports.getElementView = getElementView;\n _exports.getViewElement = getViewElement;\n _exports.setElementView = setElementView;\n _exports.setViewElement = setViewElement;\n _exports.clearElementView = clearElementView;\n _exports.clearViewElement = clearViewElement;\n _exports.getChildViews = getChildViews;\n _exports.initChildViews = initChildViews;\n _exports.addChildView = addChildView;\n _exports.collectChildViews = collectChildViews;\n _exports.getViewBounds = getViewBounds;\n _exports.getViewRange = getViewRange;\n _exports.getViewClientRects = getViewClientRects;\n _exports.getViewBoundingClientRect = getViewBoundingClientRect;\n _exports.matches = matches;\n _exports.contains = contains;\n _exports.elMatches = void 0;\n\n /* globals Element */\n\n /**\n @module ember\n */\n function isSimpleClick(event) {\n let modifier = event.shiftKey || event.metaKey || event.altKey || event.ctrlKey;\n let secondaryClick = event.which > 1; // IE9 may return undefined\n\n return !modifier && !secondaryClick;\n }\n\n function constructStyleDeprecationMessage(affectedStyle) {\n return '' + 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' + 'please ensure that values being bound are properly escaped. For more information, ' + 'including how to disable this warning, see ' + 'https://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes. ' + 'Style affected: \"' + affectedStyle + '\"';\n }\n /**\n @private\n @method getRootViews\n @param {Object} owner\n */\n\n\n function getRootViews(owner) {\n let registry = owner.lookup('-view-registry:main');\n let rootViews = [];\n Object.keys(registry).forEach(id => {\n let view = registry[id];\n\n if (view.parentView === null) {\n rootViews.push(view);\n }\n });\n return rootViews;\n }\n /**\n @private\n @method getViewId\n @param {Ember.View} view\n */\n\n\n function getViewId(view) {\n if (view.tagName !== '' && view.elementId) {\n return view.elementId;\n } else {\n return (0, _utils.guidFor)(view);\n }\n }\n\n const ELEMENT_VIEW = new WeakMap();\n const VIEW_ELEMENT = new WeakMap();\n\n function getElementView(element) {\n return ELEMENT_VIEW.get(element) || null;\n }\n /**\n @private\n @method getViewElement\n @param {Ember.View} view\n */\n\n\n function getViewElement(view) {\n return VIEW_ELEMENT.get(view) || null;\n }\n\n function setElementView(element, view) {\n ELEMENT_VIEW.set(element, view);\n }\n\n function setViewElement(view, element) {\n VIEW_ELEMENT.set(view, element);\n } // These are not needed for GC, but for correctness. We want to be able to\n // null-out these links while the objects are still live. Specifically, in\n // this case, we want to prevent access to the element (and vice verse) during\n // destruction.\n\n\n function clearElementView(element) {\n ELEMENT_VIEW.delete(element);\n }\n\n function clearViewElement(view) {\n VIEW_ELEMENT.delete(view);\n }\n\n const CHILD_VIEW_IDS = new WeakMap();\n /**\n @private\n @method getChildViews\n @param {Ember.View} view\n */\n\n function getChildViews(view) {\n let owner = (0, _owner.getOwner)(view);\n let registry = owner.lookup('-view-registry:main');\n return collectChildViews(view, registry);\n }\n\n function initChildViews(view) {\n let childViews = new Set();\n CHILD_VIEW_IDS.set(view, childViews);\n return childViews;\n }\n\n function addChildView(parent, child) {\n let childViews = CHILD_VIEW_IDS.get(parent);\n\n if (childViews === undefined) {\n childViews = initChildViews(parent);\n }\n\n childViews.add(getViewId(child));\n }\n\n function collectChildViews(view, registry) {\n let views = [];\n let childViews = CHILD_VIEW_IDS.get(view);\n\n if (childViews !== undefined) {\n childViews.forEach(id => {\n let view = registry[id];\n\n if (view && !view.isDestroying && !view.isDestroyed) {\n views.push(view);\n }\n });\n }\n\n return views;\n }\n /**\n @private\n @method getViewBounds\n @param {Ember.View} view\n */\n\n\n function getViewBounds(view) {\n return view.renderer.getBounds(view);\n }\n /**\n @private\n @method getViewRange\n @param {Ember.View} view\n */\n\n\n function getViewRange(view) {\n let bounds = getViewBounds(view);\n let range = document.createRange();\n range.setStartBefore(bounds.firstNode);\n range.setEndAfter(bounds.lastNode);\n return range;\n }\n /**\n `getViewClientRects` provides information about the position of the border\n box edges of a view relative to the viewport.\n \n It is only intended to be used by development tools like the Ember Inspector\n and may not work on older browsers.\n \n @private\n @method getViewClientRects\n @param {Ember.View} view\n */\n\n\n function getViewClientRects(view) {\n let range = getViewRange(view);\n return range.getClientRects();\n }\n /**\n `getViewBoundingClientRect` provides information about the position of the\n bounding border box edges of a view relative to the viewport.\n \n It is only intended to be used by development tools like the Ember Inspector\n and may not work on older browsers.\n \n @private\n @method getViewBoundingClientRect\n @param {Ember.View} view\n */\n\n\n function getViewBoundingClientRect(view) {\n let range = getViewRange(view);\n return range.getBoundingClientRect();\n }\n /**\n Determines if the element matches the specified selector.\n \n @private\n @method matches\n @param {DOMElement} el\n @param {String} selector\n */\n\n\n const elMatches = typeof Element !== 'undefined' && (Element.prototype.matches || Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector);\n _exports.elMatches = elMatches;\n\n function matches(el, selector) {\n return elMatches.call(el, selector);\n }\n\n function contains(a, b) {\n if (a.contains !== undefined) {\n return a.contains(b);\n }\n\n while (b = b.parentNode) {\n if (b === a) {\n return true;\n }\n }\n\n return false;\n }\n});","enifed(\"@ember/-internals/views/lib/utils/lookup-component\", [\"exports\", \"@ember/canary-features\"], function (_exports, _canaryFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = lookupComponent;\n\n function lookupModuleUnificationComponentPair(componentLookup, owner, name, options) {\n let localComponent = componentLookup.componentFor(name, owner, options);\n let localLayout = componentLookup.layoutFor(name, owner, options);\n let globalComponent = componentLookup.componentFor(name, owner);\n let globalLayout = componentLookup.layoutFor(name, owner); // TODO: we shouldn't have to recheck fallback, we should have a lookup that doesn't fallback\n\n if (localComponent !== undefined && globalComponent !== undefined && globalComponent.class === localComponent.class) {\n localComponent = undefined;\n }\n\n if (localLayout !== undefined && globalLayout !== undefined && localLayout.referrer.moduleName === globalLayout.referrer.moduleName) {\n localLayout = undefined;\n }\n\n if (localLayout !== undefined || localComponent !== undefined) {\n return {\n layout: localLayout,\n component: localComponent\n };\n }\n\n return {\n layout: globalLayout,\n component: globalComponent\n };\n }\n\n function lookupComponentPair(componentLookup, owner, name, options) {\n if (_canaryFeatures.EMBER_MODULE_UNIFICATION) {\n return lookupModuleUnificationComponentPair(componentLookup, owner, name, options);\n }\n\n let component = componentLookup.componentFor(name, owner, options);\n let layout = componentLookup.layoutFor(name, owner, options);\n let result = {\n layout,\n component\n };\n return result;\n }\n\n function lookupComponent(owner, name, options) {\n let componentLookup = owner.lookup('component-lookup:main');\n\n if (options && (options.source || options.namespace)) {\n let localResult = lookupComponentPair(componentLookup, owner, name, options);\n\n if (localResult.component || localResult.layout) {\n return localResult;\n }\n }\n\n return lookupComponentPair(componentLookup, owner, name);\n }\n});","enifed(\"@ember/-internals/views/lib/views/core_view\", [\"exports\", \"@ember/-internals/runtime\", \"@ember/-internals/views/lib/views/states\"], function (_exports, _runtime, _states) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n `Ember.CoreView` is an abstract class that exists to give view-like behavior\n to both Ember's main view class `Component` and other classes that don't need\n the full functionality of `Component`.\n \n Unless you have specific needs for `CoreView`, you will use `Component`\n in your applications.\n \n @class CoreView\n @namespace Ember\n @extends EmberObject\n @deprecated Use `Component` instead.\n @uses Evented\n @uses Ember.ActionHandler\n @private\n */\n const CoreView = _runtime.FrameworkObject.extend(_runtime.Evented, _runtime.ActionHandler, {\n isView: true,\n _states: _states.default,\n\n init() {\n this._super(...arguments);\n\n this._state = 'preRender';\n this._currentState = this._states.preRender;\n\n if (!this.renderer) {\n throw new Error(\"Cannot instantiate a component without a renderer. Please ensure that you are creating \" + this + \" with a proper container/registry.\");\n }\n },\n\n /**\n If the view is currently inserted into the DOM of a parent view, this\n property will point to the parent of the view.\n @property parentView\n @type Ember.View\n @default null\n @private\n */\n parentView: null,\n\n instrumentDetails(hash) {\n hash.object = this.toString();\n hash.containerKey = this._debugContainerKey;\n hash.view = this;\n return hash;\n },\n\n /**\n Override the default event firing from `Evented` to\n also call methods with the given name.\n @method trigger\n @param name {String}\n @private\n */\n trigger(name, ...args) {\n this._super(...arguments);\n\n let method = this[name];\n\n if (typeof method === 'function') {\n return method.apply(this, args);\n }\n },\n\n has(name) {\n return typeof this[name] === 'function' || this._super(name);\n }\n\n });\n\n CoreView.reopenClass({\n isViewFactory: true\n });\n var _default = CoreView;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/views/states\", [\"exports\", \"@ember/-internals/views/lib/views/states/pre_render\", \"@ember/-internals/views/lib/views/states/has_element\", \"@ember/-internals/views/lib/views/states/in_dom\", \"@ember/-internals/views/lib/views/states/destroying\"], function (_exports, _pre_render, _has_element, _in_dom, _destroying) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /*\n Describe how the specified actions should behave in the various\n states that a view can exist in. Possible states:\n \n * preRender: when a view is first instantiated, and after its\n element was destroyed, it is in the preRender state\n * hasElement: the DOM representation of the view is created,\n and is ready to be inserted\n * inDOM: once a view has been inserted into the DOM it is in\n the inDOM state. A view spends the vast majority of its\n existence in this state.\n * destroyed: once a view has been destroyed (using the destroy\n method), it is in this state. No further actions can be invoked\n on a destroyed view.\n */\n const states = Object.freeze({\n preRender: _pre_render.default,\n inDOM: _in_dom.default,\n hasElement: _has_element.default,\n destroying: _destroying.default\n });\n var _default = states;\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/views/states/default\", [\"exports\", \"@ember/error\"], function (_exports, _error) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n const _default = {\n // appendChild is only legal while rendering the buffer.\n appendChild() {\n throw new _error.default(\"You can't use appendChild outside of the rendering process\");\n },\n\n // Handle events from `Ember.EventDispatcher`\n handleEvent() {\n return true; // continue event propagation\n },\n\n rerender() {},\n\n destroy() {}\n\n };\n\n var _default2 = Object.freeze(_default);\n\n _exports.default = _default2;\n});","enifed(\"@ember/-internals/views/lib/views/states/destroying\", [\"exports\", \"@ember/polyfills\", \"@ember/error\", \"@ember/-internals/views/lib/views/states/default\"], function (_exports, _polyfills, _error, _default3) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n const destroying = (0, _polyfills.assign)({}, _default3.default, {\n appendChild() {\n throw new _error.default(\"You can't call appendChild on a view being destroyed\");\n },\n\n rerender() {\n throw new _error.default(\"You can't call rerender on a view being destroyed\");\n }\n\n });\n\n var _default2 = Object.freeze(destroying);\n\n _exports.default = _default2;\n});","enifed(\"@ember/-internals/views/lib/views/states/has_element\", [\"exports\", \"@ember/polyfills\", \"@ember/-internals/views/lib/views/states/default\", \"@ember/runloop\", \"@ember/instrumentation\"], function (_exports, _polyfills, _default3, _runloop, _instrumentation) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n const hasElement = (0, _polyfills.assign)({}, _default3.default, {\n rerender(view) {\n view.renderer.rerender(view);\n },\n\n destroy(view) {\n view.renderer.remove(view);\n },\n\n // Handle events from `Ember.EventDispatcher`\n handleEvent(view, eventName, event) {\n if (view.has(eventName)) {\n // Handler should be able to re-dispatch events, so we don't\n // preventDefault or stopPropagation.\n return (0, _instrumentation.flaggedInstrument)(\"interaction.\" + eventName, {\n event,\n view\n }, () => {\n return (0, _runloop.join)(view, view.trigger, eventName, event);\n });\n } else {\n return true; // continue event propagation\n }\n }\n\n });\n\n var _default2 = Object.freeze(hasElement);\n\n _exports.default = _default2;\n});","enifed(\"@ember/-internals/views/lib/views/states/in_dom\", [\"exports\", \"@ember/polyfills\", \"@ember/-internals/metal\", \"@ember/error\", \"@glimmer/env\", \"@ember/-internals/views/lib/views/states/has_element\"], function (_exports, _polyfills, _metal, _error, _env, _has_element) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n const inDOM = (0, _polyfills.assign)({}, _has_element.default, {\n enter(view) {\n // Register the view for event handling. This hash is used by\n // Ember.EventDispatcher to dispatch incoming events.\n view.renderer.register(view);\n\n if (_env.DEBUG) {\n (0, _metal.addObserver)(view, 'elementId', () => {\n throw new _error.default(\"Changing a view's elementId after creation is not allowed\");\n });\n }\n },\n\n exit(view) {\n view.renderer.unregister(view);\n }\n\n });\n\n var _default = Object.freeze(inDOM);\n\n _exports.default = _default;\n});","enifed(\"@ember/-internals/views/lib/views/states/pre_render\", [\"exports\", \"@ember/-internals/views/lib/views/states/default\", \"@ember/polyfills\"], function (_exports, _default3, _polyfills) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n const preRender = (0, _polyfills.assign)({}, _default3.default);\n\n var _default2 = Object.freeze(preRender);\n\n _exports.default = _default2;\n});","enifed(\"@ember/application/globals-resolver\", [\"exports\", \"@ember/-internals/utils\", \"@ember/-internals/metal\", \"@ember/debug\", \"@ember/string\", \"@ember/-internals/runtime\", \"@ember/application/lib/validate-type\", \"@ember/-internals/glimmer\", \"@glimmer/env\"], function (_exports, _utils, _metal, _debug, _string, _runtime, _validateType, _glimmer, _env) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/application\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 class DefaultResolver extends _runtime.Object {\n static create(props) {\n // DO NOT REMOVE even though this doesn't do anything\n // This is required for a FireFox 60+ JIT bug with our tests.\n // without it, create(props) in our tests would lose props on a deopt.\n return super.create(props);\n }\n /**\n This will be set to the Application instance when it is\n created.\n @property namespace\n @public\n */\n\n\n init() {\n this._parseNameCache = (0, _utils.dictionary)(null);\n }\n\n normalize(fullName) {\n let [type, name] = fullName.split(':');\n (0, _debug.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 if (type !== 'template') {\n let result = name.replace(/(\\.|_|-)./g, m => m.charAt(1).toUpperCase());\n return type + \":\" + result;\n } else {\n return fullName;\n }\n }\n /**\n This method is called via the container's resolver method.\n It parses the provided `fullName` and then looks up and\n returns the appropriate template or class.\n @method resolve\n @param {String} fullName the lookup string\n @return {Object} the resolved factory\n @public\n */\n\n\n resolve(fullName) {\n let parsedName = this.parseName(fullName);\n let resolveMethodName = parsedName.resolveMethodName;\n let resolved;\n\n if (this[resolveMethodName]) {\n resolved = this[resolveMethodName](parsedName);\n }\n\n resolved = resolved || this.resolveOther(parsedName);\n\n if (_env.DEBUG) {\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 /**\n Convert the string name of the form 'type:name' to\n a Javascript object with the parsed aspects of the name\n broken out.\n @param {String} fullName the lookup string\n @method parseName\n @protected\n */\n\n\n parseName(fullName) {\n return this._parseNameCache[fullName] || (this._parseNameCache[fullName] = this._parseName(fullName));\n }\n\n _parseName(fullName) {\n let [type, fullNameWithoutType] = fullName.split(':');\n let name = fullNameWithoutType;\n let namespace = (0, _metal.get)(this, 'namespace');\n let root = namespace;\n let lastSlashIndex = name.lastIndexOf('/');\n let dirname = lastSlashIndex !== -1 ? name.slice(0, lastSlashIndex) : null;\n\n if (type !== 'template' && lastSlashIndex !== -1) {\n let parts = name.split('/');\n name = parts[parts.length - 1];\n let namespaceName = (0, _string.capitalize)(parts.slice(0, -1).join('.'));\n root = (0, _metal.findNamespace)(namespaceName);\n (0, _debug.assert)(\"You are looking for a \" + name + \" \" + type + \" in the \" + namespaceName + \" namespace, but the namespace could not be found\", root);\n }\n\n let resolveMethodName = fullNameWithoutType === 'main' ? 'Main' : (0, _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,\n type,\n fullNameWithoutType,\n dirname,\n name,\n root,\n resolveMethodName: \"resolve\" + resolveMethodName\n };\n }\n /**\n Returns a human-readable description for a fullName. Used by the\n Application namespace in assertions to describe the\n precise name of the class that Ember is looking for, rather than\n container keys.\n @param {String} fullName the lookup string\n @method lookupDescription\n @protected\n */\n\n\n lookupDescription(fullName) {\n let parsedName = this.parseName(fullName);\n let description;\n\n if (parsedName.type === 'template') {\n return \"template at \" + parsedName.fullNameWithoutType.replace(/\\./g, '/');\n }\n\n description = parsedName.root + \".\" + (0, _string.classify)(parsedName.name).replace(/\\./g, '');\n\n if (parsedName.type !== 'model') {\n description += (0, _string.classify)(parsedName.type);\n }\n\n return description;\n }\n\n makeToString(factory) {\n return factory.toString();\n }\n /**\n Given a parseName object (output from `parseName`), apply\n the conventions expected by `Router`\n @param {Object} parsedName a parseName object with the parsed\n fullName lookup string\n @method useRouterNaming\n @protected\n */\n\n\n useRouterNaming(parsedName) {\n if (parsedName.name === 'basic') {\n parsedName.name = '';\n } else {\n parsedName.name = parsedName.name.replace(/\\./g, '_');\n }\n }\n /**\n Look up the template in Ember.TEMPLATES\n @param {Object} parsedName a parseName object with the parsed\n fullName lookup string\n @method resolveTemplate\n @protected\n */\n\n\n resolveTemplate(parsedName) {\n let templateName = parsedName.fullNameWithoutType.replace(/\\./g, '/');\n return (0, _glimmer.getTemplate)(templateName) || (0, _glimmer.getTemplate)((0, _string.decamelize)(templateName));\n }\n /**\n Lookup the view using `resolveOther`\n @param {Object} parsedName a parseName object with the parsed\n fullName lookup string\n @method resolveView\n @protected\n */\n\n\n resolveView(parsedName) {\n this.useRouterNaming(parsedName);\n return this.resolveOther(parsedName);\n }\n /**\n Lookup the controller using `resolveOther`\n @param {Object} parsedName a parseName object with the parsed\n fullName lookup string\n @method resolveController\n @protected\n */\n\n\n resolveController(parsedName) {\n this.useRouterNaming(parsedName);\n return this.resolveOther(parsedName);\n }\n /**\n Lookup the route using `resolveOther`\n @param {Object} parsedName a parseName object with the parsed\n fullName lookup string\n @method resolveRoute\n @protected\n */\n\n\n resolveRoute(parsedName) {\n this.useRouterNaming(parsedName);\n return this.resolveOther(parsedName);\n }\n /**\n Lookup the model on the Application namespace\n @param {Object} parsedName a parseName object with the parsed\n fullName lookup string\n @method resolveModel\n @protected\n */\n\n\n resolveModel(parsedName) {\n let className = (0, _string.classify)(parsedName.name);\n let factory = (0, _metal.get)(parsedName.root, className);\n return factory;\n }\n /**\n Look up the specified object (from parsedName) on the appropriate\n namespace (usually on the Application)\n @param {Object} parsedName a parseName object with the parsed\n fullName lookup string\n @method resolveHelper\n @protected\n */\n\n\n resolveHelper(parsedName) {\n return this.resolveOther(parsedName);\n }\n /**\n Look up the specified object (from parsedName) on the appropriate\n namespace (usually on the Application)\n @param {Object} parsedName a parseName object with the parsed\n fullName lookup string\n @method resolveOther\n @protected\n */\n\n\n resolveOther(parsedName) {\n let className = (0, _string.classify)(parsedName.name) + (0, _string.classify)(parsedName.type);\n let factory = (0, _metal.get)(parsedName.root, className);\n return factory;\n }\n\n resolveMain(parsedName) {\n let className = (0, _string.classify)(parsedName.type);\n return (0, _metal.get)(parsedName.root, className);\n }\n /**\n Used to iterate all items of a given type.\n @method knownForType\n @param {String} type the type to search for\n @private\n */\n\n\n knownForType(type) {\n let namespace = (0, _metal.get)(this, 'namespace');\n let suffix = (0, _string.classify)(type);\n let typeRegexp = new RegExp(suffix + \"$\");\n let known = (0, _utils.dictionary)(null);\n let knownKeys = Object.keys(namespace);\n\n for (let index = 0; index < knownKeys.length; index++) {\n let name = knownKeys[index];\n\n if (typeRegexp.test(name)) {\n let containerName = this.translateToContainerFullname(type, name);\n known[containerName] = true;\n }\n }\n\n return known;\n }\n /**\n Converts provided name from the backing namespace into a container lookup name.\n Examples:\n * App.FooBarHelper -> helper:foo-bar\n * App.THelper -> helper:t\n @method translateToContainerFullname\n @param {String} type\n @param {String} name\n @private\n */\n\n\n translateToContainerFullname(type, name) {\n let suffix = (0, _string.classify)(type);\n let namePrefix = name.slice(0, suffix.length * -1);\n let dasherizedName = (0, _string.dasherize)(namePrefix);\n return type + \":\" + dasherizedName;\n }\n\n }\n\n var _default = DefaultResolver;\n _exports.default = _default;\n\n if (_env.DEBUG) {\n /**\n @method _logLookup\n @param {Boolean} found\n @param {Object} parsedName\n @private\n */\n DefaultResolver.prototype._logLookup = function (found, parsedName) {\n let symbol = found ? '[✓]' : '[ ]';\n let padding;\n\n if (parsedName.fullName.length > 60) {\n padding = '.';\n } else {\n padding = new Array(60 - parsedName.fullName.length).join('.');\n }\n\n (0, _debug.info)(symbol, parsedName.fullName, padding, this.lookupDescription(parsedName.fullName));\n };\n }\n});","enifed(\"@ember/application/index\", [\"exports\", \"@ember/-internals/owner\", \"@ember/application/lib/lazy_load\", \"@ember/application/lib/application\"], function (_exports, _owner, _lazy_load, _application) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = _exports._loaded = _exports.runLoadHooks = _exports.onLoad = _exports.setOwner = _exports.getOwner = void 0;\n _exports.getOwner = _owner.getOwner;\n _exports.setOwner = _owner.setOwner;\n _exports.onLoad = _lazy_load.onLoad;\n _exports.runLoadHooks = _lazy_load.runLoadHooks;\n _exports._loaded = _lazy_load._loaded;\n _exports.default = _application.default;\n});","enifed(\"@ember/application/instance\", [\"exports\", \"@ember/polyfills\", \"@ember/-internals/metal\", \"@ember/-internals/browser-environment\", \"@ember/-internals/views\", \"@ember/engine/instance\", \"@ember/-internals/glimmer\"], function (_exports, _polyfills, _metal, environment, _views, _instance, _glimmer) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/application\n */\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 const ApplicationInstance = _instance.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() {\n this._super(...arguments);\n\n this.application._watchInstance(this); // 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\n\n this.register('-application-instance:main', this, {\n instantiate: false\n });\n },\n\n /**\n Overrides the base `EngineInstance._bootSync` method with concerns relevant\n to booting application (instead of engine) instances.\n This method should only contain synchronous boot concerns. Asynchronous\n boot concerns should eventually be moved to the `boot` method, which\n returns a promise.\n Until all boot code has been made asynchronous, we need to continue to\n expose this method for use *internally* in places where we need to boot an\n instance synchronously.\n @private\n */\n _bootSync(options) {\n if (this._booted) {\n return this;\n }\n\n options = new BootOptions(options);\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 (0, _metal.set)(this.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 return this;\n },\n\n setupRegistry(options) {\n this.constructor.setupRegistry(this.__registry__, options);\n },\n\n router: (0, _metal.computed)(function () {\n return this.lookup('router:main');\n }).readOnly(),\n\n /**\n This hook is called by the root-most Route (a.k.a. the ApplicationRoute)\n when it has finished creating the root View. By default, we simply take the\n view and append it to the `rootElement` specified on the Application.\n In cases like FastBoot and testing, we can override this hook and implement\n custom behavior, such as serializing to a string and sending over an HTTP\n socket rather than appending to DOM.\n @param view {Ember.View} the root-most view\n @deprecated\n @private\n */\n didCreateRootView(view) {\n view.appendTo(this.rootElement);\n },\n\n /**\n Tells the router to start routing. The router will ask the location for the\n current URL of the page to determine the initial URL to start routing to.\n To start the app at a specific URL, call `handleURL` instead.\n @private\n */\n startRouting() {\n this.router.startRouting();\n this._didSetupRouter = true;\n },\n\n /**\n @private\n Sets up the router, initializing the child router and configuring the\n location before routing begins.\n Because setup should only occur once, multiple calls to `setupRouter`\n beyond the first call have no effect.\n */\n setupRouter() {\n if (this._didSetupRouter) {\n return;\n }\n\n this._didSetupRouter = true;\n this.router.setupRouter();\n },\n\n /**\n Directs the router to route to a particular URL. This is useful in tests,\n for example, to tell the app to start at a particular URL.\n @param url {String} the URL the router should route to\n @private\n */\n handleURL(url) {\n this.setupRouter();\n return this.router.handleURL(url);\n },\n\n /**\n @private\n */\n setupEventDispatcher() {\n let dispatcher = this.lookup('event_dispatcher:main');\n let applicationCustomEvents = (0, _metal.get)(this.application, 'customEvents');\n let instanceCustomEvents = (0, _metal.get)(this, 'customEvents');\n let customEvents = (0, _polyfills.assign)({}, applicationCustomEvents, instanceCustomEvents);\n dispatcher.setup(customEvents, this.rootElement);\n return dispatcher;\n },\n\n /**\n Returns the current URL of the app instance. This is useful when your\n app does not update the browsers URL bar (i.e. it uses the `'none'`\n location adapter).\n @public\n @return {String} the current URL\n */\n getURL() {\n return this.router.url;\n },\n\n // `instance.visit(url)` should eventually replace `instance.handleURL()`;\n // the test helpers can probably be switched to use this implementation too\n\n /**\n Navigate the instance to a particular URL. This is useful in tests, for\n example, or to tell the app to start at a particular URL. This method\n returns a promise that resolves with the app instance when the transition\n is complete, or rejects if the transion was aborted due to an error.\n @public\n @param url {String} the destination URL\n @return {Promise
}\n */\n visit(url) {\n this.setupRouter();\n\n let bootOptions = this.__container__.lookup('-environment:main');\n\n let router = this.router;\n\n let handleTransitionResolve = () => {\n if (!bootOptions.options.shouldRender) {\n // No rendering is needed, and routing has completed, simply return.\n return this;\n } else {\n // Ensure that the visit promise resolves when all rendering has completed\n return (0, _glimmer.renderSettled)().then(() => this);\n }\n };\n\n let handleTransitionReject = 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 let location = (0, _metal.get)(router, 'location'); // Keeps the location adapter's internal URL in-sync\n\n location.setURL(url); // getURL returns the set url with the rootURL stripped off\n\n return router.handleURL(location.getURL()).then(handleTransitionResolve, handleTransitionReject);\n },\n\n willDestroy() {\n this._super(...arguments);\n\n this.application._unwatchInstance(this);\n }\n\n });\n\n ApplicationInstance.reopenClass({\n /**\n @private\n @method setupRegistry\n @param {Registry} registry\n @param {BootOptions} options\n */\n setupRegistry(registry, options = {}) {\n if (!options.toEnvironment) {\n options = new BootOptions(options);\n }\n\n registry.register('-environment:main', options.toEnvironment(), {\n instantiate: false\n });\n registry.register('service:-document', options.document, {\n instantiate: false\n });\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 `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 `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\n class BootOptions {\n constructor(options = {}) {\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 = _views.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\n this.isInteractive = environment.hasDOM; // This default is overridable below\n\n /**\n @property _renderMode\n @type string\n @default false\n @private\n */\n\n this._renderMode = options._renderMode;\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\n if (options.isBrowser !== undefined) {\n this.isBrowser = Boolean(options.isBrowser);\n } else {\n this.isBrowser = environment.hasDOM;\n }\n\n if (!this.isBrowser) {\n this.jQuery = null;\n this.isInteractive = false;\n this.location = 'none';\n }\n /**\n Disable rendering completely.\n When this flag is set to `false`, 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\n\n if (options.shouldRender !== undefined) {\n this.shouldRender = Boolean(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 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\n\n if (options.document) {\n this.document = options.document;\n } else {\n this.document = typeof document !== 'undefined' ? document : null;\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 `Application`'s `rootElement` for\n details.\n @property rootElement\n @type String|Element\n @default null\n @public\n */\n\n\n if (options.rootElement) {\n this.rootElement = options.rootElement;\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\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 = Boolean(options.isInteractive);\n }\n }\n\n toEnvironment() {\n // Do we really want to assign all of this!?\n let env = (0, _polyfills.assign)({}, environment); // For compatibility with existing code\n\n env.hasDOM = this.isBrowser;\n env.isInteractive = this.isInteractive;\n env._renderMode = this._renderMode;\n env.options = this;\n return env;\n }\n\n }\n\n var _default = ApplicationInstance;\n _exports.default = _default;\n});","enifed(\"@ember/application/lib/application\", [\"exports\", \"@ember/-internals/utils\", \"@ember/-internals/environment\", \"@ember/-internals/browser-environment\", \"@ember/debug\", \"@glimmer/env\", \"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/application/lib/lazy_load\", \"@ember/-internals/runtime\", \"@ember/-internals/views\", \"@ember/-internals/routing\", \"@ember/application/instance\", \"@ember/engine\", \"@ember/-internals/container\", \"@ember/-internals/glimmer\", \"@ember/deprecated-features\"], function (_exports, _utils, _environment, _browserEnvironment, _debug, _env, _runloop, _metal, _lazy_load, _runtime, _views, _routing, _instance, _engine, _container, _glimmer, _deprecatedFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"-bucket-cache:main\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n let librariesRegistered = false;\n /**\n An instance of `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 `Application` object. In fact, the\n very first thing you should do in your application is create the instance:\n \n ```javascript\n import Application from '@ember/application';\n \n window.App = 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 `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 import Application from '@ember/application';\n \n App.MyView = Ember.View.extend();\n ```\n \n By default, calling `Application.create()` will automatically initialize\n your application by calling the `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 `Application` instance, which\n will be run by Ember when the application is initialized.\n \n Because `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 `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 `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 import Application from '@ember/application';\n \n let App = 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 import Application from '@ember/application';\n \n let App = 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 import Application from '@ember/application';\n \n let App = 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 \n [components/handling-events](https://guides.emberjs.com/release/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 import Application from '@ember/application';\n \n 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, `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 import Application from '@ember/application';\n \n let App = 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 const 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 `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 import Application from '@ember/application';\n let App = 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 import Application from '@ember/application';\n let App = 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 import Application from '@ember/application';\n import Component from '@ember/component';\n let App = Application.create({\n ...\n });\n App.Router.reopen({\n location: 'none'\n });\n App.Router.map({\n ...\n });\n App.MyComponent = 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 /**\n An array of application instances created by `buildInstance()`. Used\n internally to ensure that all instances get destroyed.\n @property _applicationInstances\n @type Array\n @default null\n @private\n */\n _applicationInstances: null,\n\n init() {\n // eslint-disable-line no-unused-vars\n this._super(...arguments);\n\n if (!this.$) {\n this.$ = _views.jQuery;\n }\n\n registerLibraries();\n\n if (_env.DEBUG) {\n if (_environment.ENV.LOG_VERSION) {\n // we only need to see this once per Application#init\n _environment.ENV.LOG_VERSION = false;\n\n _metal.libraries.logVersions();\n }\n } // Start off the number of deferrals at 1. This will be decremented by\n // the Application's own `boot` method.\n\n\n this._readinessDeferrals = 1;\n this._booted = false;\n this._applicationInstances = new Set();\n this.autoboot = this._globalsMode = Boolean(this.autoboot);\n\n if (this._globalsMode) {\n this._prepareForGlobalsMode();\n }\n\n if (this.autoboot) {\n this.waitForDOMReady();\n }\n },\n\n /**\n Create an ApplicationInstance for this application.\n @public\n @method buildInstance\n @return {ApplicationInstance} the application instance\n */\n buildInstance(options = {}) {\n options.base = this;\n options.application = this;\n return _instance.default.create(options);\n },\n\n /**\n Start tracking an ApplicationInstance for this application.\n Used when the ApplicationInstance is created.\n @private\n @method _watchInstance\n */\n _watchInstance(instance) {\n this._applicationInstances.add(instance);\n },\n\n /**\n Stop tracking an ApplicationInstance for this application.\n Used when the ApplicationInstance is about to be destroyed.\n @private\n @method _unwatchInstance\n */\n _unwatchInstance(instance) {\n return this._applicationInstances.delete(instance);\n },\n\n /**\n Enable the legacy globals mode by allowing this application to act\n as a global namespace. See the docs on the `_globalsMode` property\n for details.\n Most of these features are already deprecated in 1.x, so we can\n stop using them internally and try to remove them.\n @private\n @method _prepareForGlobalsMode\n */\n _prepareForGlobalsMode() {\n // Create subclass of Router for this Application instance.\n // This is to ensure that someone reopening `App.Router` does not\n // tamper with the default `Router`.\n this.Router = (this.Router || _routing.Router).extend();\n\n this._buildDeprecatedInstance();\n },\n\n /*\n Build the deprecated instance for legacy globals mode support.\n Called when creating and resetting the application.\n This is orthogonal to autoboot: the deprecated instance needs to\n be created at Application construction (not boot) time to expose\n App.__container__. If autoboot sees that this instance exists,\n it will continue booting it to avoid doing unncessary work (as\n opposed to building a new instance at boot time), but they are\n otherwise unrelated.\n @private\n @method _buildDeprecatedInstance\n */\n _buildDeprecatedInstance() {\n // Build a default instance\n let instance = this.buildInstance(); // Legacy support for App.__container__ and other global methods\n // on App that rely on a single, default instance.\n\n this.__deprecatedInstance__ = instance;\n this.__container__ = instance.__container__;\n },\n\n /**\n Automatically kick-off the boot process for the application once the\n DOM has become ready.\n The initialization itself is scheduled on the actions queue which\n ensures that code-loading finishes before booting.\n If you are asynchronously loading code, you should call `deferReadiness()`\n to defer booting, and then call `advanceReadiness()` once all of your code\n has finished loading.\n @private\n @method waitForDOMReady\n */\n waitForDOMReady() {\n if (!this.$ || this.$.isReady) {\n (0, _runloop.schedule)('actions', this, 'domReady');\n } else {\n this.$().ready((0, _runloop.bind)(this, 'domReady'));\n }\n },\n\n /**\n This is the autoboot flow:\n 1. Boot the app by calling `this.boot()`\n 2. Create an instance (or use the `__deprecatedInstance__` in globals mode)\n 3. Boot the instance by calling `instance.boot()`\n 4. Invoke the `App.ready()` callback\n 5. Kick-off routing on the instance\n Ideally, this is all we would need to do:\n ```javascript\n _autoBoot() {\n this.boot().then(() => {\n let instance = (this._globalsMode) ? this.__deprecatedInstance__ : this.buildInstance();\n return instance.boot();\n }).then((instance) => {\n App.ready();\n instance.startRouting();\n });\n }\n ```\n Unfortunately, we cannot actually write this because we need to participate\n in the \"synchronous\" boot process. While the code above would work fine on\n the initial boot (i.e. DOM ready), when `App.reset()` is called, we need to\n boot a new instance synchronously (see the documentation on `_bootSync()`\n for details).\n Because of this restriction, the actual logic of this method is located\n inside `didBecomeReady()`.\n @private\n @method domReady\n */\n domReady() {\n if (this.isDestroyed) {\n return;\n }\n\n this._bootSync(); // Continues to `didBecomeReady`\n\n },\n\n /**\n Use this to defer readiness until some condition is true.\n Example:\n ```javascript\n import Application from '@ember/application';\n let App = Application.create();\n App.deferReadiness();\n // $ is a reference to the jQuery object/function\n import $ from 'jquery;\n $.getJSON('/auth-token', function(token) {\n App.token = token;\n App.advanceReadiness();\n });\n ```\n This allows you to perform asynchronous setup logic and defer\n booting your application until the setup has finished.\n However, if the setup requires a loading UI, it might be better\n to use the router for this purpose.\n @method deferReadiness\n @public\n */\n deferReadiness() {\n (0, _debug.assert)('You must call deferReadiness on an instance of Application', this instanceof Application);\n (0, _debug.assert)('You cannot defer readiness since the `ready()` hook has already been called.', this._readinessDeferrals > 0);\n this._readinessDeferrals++;\n },\n\n /**\n Call `advanceReadiness` after any asynchronous setup logic has completed.\n Each call to `deferReadiness` must be matched by a call to `advanceReadiness`\n or the application will never become ready and routing will not begin.\n @method advanceReadiness\n @see {Application#deferReadiness}\n @public\n */\n advanceReadiness() {\n (0, _debug.assert)('You must call advanceReadiness on an instance of Application', this instanceof Application);\n this._readinessDeferrals--;\n\n if (this._readinessDeferrals === 0) {\n (0, _runloop.once)(this, this.didBecomeReady);\n }\n },\n\n /**\n Initialize the application and return a promise that resolves with the `Application`\n object when the boot process is complete.\n Run any application initializers and run the application load hook. These hooks may\n choose to defer readiness. For example, an authentication hook might want to defer\n readiness until the auth token has been retrieved.\n By default, this method is called automatically on \"DOM ready\"; however, if autoboot\n is disabled, this is automatically called when the first application instance is\n created via `visit`.\n @public\n @method boot\n @return {Promise}\n */\n boot() {\n if (this._bootPromise) {\n return this._bootPromise;\n }\n\n try {\n this._bootSync();\n } catch (_) {// Ignore the error: in the asynchronous boot path, the error is already reflected\n // in the promise rejection\n }\n\n return this._bootPromise;\n },\n\n /**\n Unfortunately, a lot of existing code assumes the booting process is\n \"synchronous\". Specifically, a lot of tests assumes the last call to\n `app.advanceReadiness()` or `app.reset()` will result in the app being\n fully-booted when the current runloop completes.\n We would like new code (like the `visit` API) to stop making this assumption,\n so we created the asynchronous version above that returns a promise. But until\n we have migrated all the code, we would have to expose this method for use\n *internally* in places where we need to boot an app \"synchronously\".\n @private\n */\n _bootSync() {\n if (this._booted) {\n return;\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\n\n let defer = this._bootResolver = _runtime.RSVP.defer();\n\n this._bootPromise = defer.promise;\n\n try {\n this.runInitializers();\n (0, _lazy_load.runLoadHooks)('application', this);\n this.advanceReadiness(); // Continues to `didBecomeReady`\n } catch (error) {\n // For the asynchronous boot path\n defer.reject(error); // For the synchronous boot path\n\n throw error;\n }\n },\n\n /**\n Reset the application. This is typically used only in tests. It cleans up\n the application in the following order:\n 1. Deactivate existing routes\n 2. Destroy all objects in the container\n 3. Create a new application container\n 4. Re-route to the existing url\n Typical Example:\n ```javascript\n import Application from '@ember/application';\n let App;\n run(function() {\n App = Application.create();\n });\n module('acceptance test', {\n setup: function() {\n App.reset();\n }\n });\n test('first test', function() {\n // App is freshly reset\n });\n test('second test', function() {\n // App is again freshly reset\n });\n ```\n Advanced Example:\n Occasionally you may want to prevent the app from initializing during\n setup. This could enable extra configuration, or enable asserting prior\n to the app becoming ready.\n ```javascript\n import Application from '@ember/application';\n let App;\n run(function() {\n App = Application.create();\n });\n module('acceptance test', {\n setup: function() {\n run(function() {\n App.reset();\n App.deferReadiness();\n });\n }\n });\n test('first test', function() {\n ok(true, 'something before app is initialized');\n run(function() {\n App.advanceReadiness();\n });\n ok(true, 'something after app is initialized');\n });\n ```\n @method reset\n @public\n */\n reset() {\n (0, _debug.assert)(\"Calling reset() on instances of `Application` is not\\n supported when globals mode is disabled; call `visit()` to\\n create new `ApplicationInstance`s and dispose them\\n via their `destroy()` method instead.\", this._globalsMode && this.autoboot);\n let instance = this.__deprecatedInstance__;\n this._readinessDeferrals = 1;\n this._bootPromise = null;\n this._bootResolver = null;\n this._booted = false;\n\n function handleReset() {\n (0, _runloop.run)(instance, 'destroy');\n\n this._buildDeprecatedInstance();\n\n (0, _runloop.schedule)('actions', this, '_bootSync');\n }\n\n (0, _runloop.join)(this, handleReset);\n },\n\n /**\n @private\n @method didBecomeReady\n */\n didBecomeReady() {\n try {\n // TODO: Is this still needed for _globalsMode = false?\n if (!(0, _debug.isTesting)()) {\n // Eagerly name all classes that are already loaded\n (0, _metal.processAllNamespaces)();\n (0, _metal.setNamespaceSearchDisabled)(true);\n } // See documentation on `_autoboot()` for details\n\n\n if (this.autoboot) {\n let instance;\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(); // TODO: App.ready() is not called when autoboot is disabled, is this correct?\n\n\n this.ready();\n instance.startRouting();\n } // For the asynchronous boot path\n\n\n this._bootResolver.resolve(this); // For the synchronous boot path\n\n\n this._booted = true;\n } catch (error) {\n // For the asynchronous boot path\n this._bootResolver.reject(error); // For the synchronous boot path\n\n\n throw error;\n }\n },\n\n /**\n Called when the Application has become ready, immediately before routing\n begins. The call will be delayed until the DOM has become ready.\n @event ready\n @public\n */\n ready() {\n return this;\n },\n\n // This method must be moved to the application instance object\n willDestroy() {\n this._super(...arguments);\n\n (0, _metal.setNamespaceSearchDisabled)(false);\n this._booted = false;\n this._bootPromise = null;\n this._bootResolver = null;\n\n if (_lazy_load._loaded.application === this) {\n _lazy_load._loaded.application = undefined;\n }\n\n if (this._applicationInstances.size) {\n this._applicationInstances.forEach(i => i.destroy());\n\n this._applicationInstances.clear();\n }\n },\n\n /**\n Boot a new instance of `ApplicationInstance` for the current\n application and navigate it to the given `url`. Returns a `Promise` that\n resolves with the instance when the initial routing and rendering is\n complete, or rejects with any error that occurred during the boot process.\n When `autoboot` is disabled, calling `visit` would first cause the\n application to boot, which runs the application initializers.\n This method also takes a hash of boot-time configuration options for\n customizing the instance's behavior. See the documentation on\n `ApplicationInstance.BootOptions` for details.\n `ApplicationInstance.BootOptions` is an interface class that exists\n purely to document the available options; you do not need to construct it\n manually. Simply pass a regular JavaScript object containing of the\n desired options:\n ```javascript\n MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n ```\n ### Supported Scenarios\n While the `BootOptions` class exposes a large number of knobs, not all\n combinations of them are valid; certain incompatible combinations might\n result in unexpected behavior.\n For example, booting the instance in the full browser environment\n while specifying a foreign `document` object (e.g. `{ isBrowser: true,\n document: iframe.contentDocument }`) does not work correctly today,\n largely due to Ember's jQuery dependency.\n Currently, there are three officially supported scenarios/configurations.\n Usages outside of these scenarios are not guaranteed to work, but please\n feel free to file bug reports documenting your experience and any issues\n you encountered to help expand support.\n #### Browser Applications (Manual Boot)\n The setup is largely similar to how Ember works out-of-the-box. Normally,\n Ember will boot a default instance for your Application on \"DOM ready\".\n However, you can customize this behavior by disabling `autoboot`.\n For example, this allows you to render a miniture demo of your application\n into a specific area on your marketing website:\n ```javascript\n import MyApp from 'my-app';\n $(function() {\n let App = MyApp.create({ autoboot: false });\n let options = {\n // Override the router's location adapter to prevent it from updating\n // the URL in the address bar\n location: 'none',\n // Override the default `rootElement` on the app to render into a\n // specific `div` on the page\n rootElement: '#demo'\n };\n // Start the app at the special demo URL\n App.visit('/demo', options);\n });\n ```\n Or perhaps you might want to boot two instances of your app on the same\n page for a split-screen multiplayer experience:\n ```javascript\n import MyApp from 'my-app';\n $(function() {\n let App = MyApp.create({ autoboot: false });\n let sessionId = MyApp.generateSessionID();\n let player1 = App.visit(`/matches/join?name=Player+1&session=${sessionId}`, { rootElement: '#left', location: 'none' });\n let player2 = App.visit(`/matches/join?name=Player+2&session=${sessionId}`, { rootElement: '#right', location: 'none' });\n Promise.all([player1, player2]).then(() => {\n // Both apps have completed the initial render\n $('#loading').fadeOut();\n });\n });\n ```\n Do note that each app instance maintains their own registry/container, so\n they will run in complete isolation by default.\n #### Server-Side Rendering (also known as FastBoot)\n This setup allows you to run your Ember app in a server environment using\n Node.js and render its content into static HTML for SEO purposes.\n ```javascript\n const HTMLSerializer = new SimpleDOM.HTMLSerializer(SimpleDOM.voidMap);\n function renderURL(url) {\n let dom = new SimpleDOM.Document();\n let rootElement = dom.body;\n let options = { isBrowser: false, document: dom, rootElement: rootElement };\n return MyApp.visit(options).then(instance => {\n try {\n return HTMLSerializer.serialize(rootElement.firstChild);\n } finally {\n instance.destroy();\n }\n });\n }\n ```\n In this scenario, because Ember does not have access to a global `document`\n object in the Node.js environment, you must provide one explicitly. In practice,\n in the non-browser environment, the stand-in `document` object only needs to\n implement a limited subset of the full DOM API. The `SimpleDOM` library is known\n to work.\n Since there is no access to jQuery in the non-browser environment, you must also\n specify a DOM `Element` object in the same `document` for the `rootElement` option\n (as opposed to a selector string like `\"body\"`).\n See the documentation on the `isBrowser`, `document` and `rootElement` properties\n on `ApplicationInstance.BootOptions` for details.\n #### Server-Side Resource Discovery\n This setup allows you to run the routing layer of your Ember app in a server\n environment using Node.js and completely disable rendering. This allows you\n to simulate and discover the resources (i.e. AJAX requests) needed to fulfill\n a given request and eagerly \"push\" these resources to the client.\n ```app/initializers/network-service.js\n import BrowserNetworkService from 'app/services/network/browser';\n import NodeNetworkService from 'app/services/network/node';\n // Inject a (hypothetical) service for abstracting all AJAX calls and use\n // the appropriate implementation on the client/server. This also allows the\n // server to log all the AJAX calls made during a particular request and use\n // that for resource-discovery purpose.\n export function initialize(application) {\n if (window) { // browser\n application.register('service:network', BrowserNetworkService);\n } else { // node\n application.register('service:network', NodeNetworkService);\n }\n application.inject('route', 'network', 'service:network');\n };\n export default {\n name: 'network-service',\n initialize: initialize\n };\n ```\n ```app/routes/post.js\n import Route from '@ember/routing/route';\n // An example of how the (hypothetical) service is used in routes.\n export default Route.extend({\n model(params) {\n return this.network.fetch(`/api/posts/${params.post_id}.json`);\n },\n afterModel(post) {\n if (post.isExternalContent) {\n return this.network.fetch(`/api/external/?url=${post.externalURL}`);\n } else {\n return post;\n }\n }\n });\n ```\n ```javascript\n // Finally, put all the pieces together\n function discoverResourcesFor(url) {\n return MyApp.visit(url, { isBrowser: false, shouldRender: false }).then(instance => {\n let networkService = instance.lookup('service:network');\n return networkService.requests; // => { \"/api/posts/123.json\": \"...\" }\n });\n }\n ```\n @public\n @method visit\n @param url {String} The initial URL to navigate to\n @param options {ApplicationInstance.BootOptions}\n @return {Promise}\n */\n visit(url, options) {\n return this.boot().then(() => {\n let instance = this.buildInstance();\n return instance.boot(options).then(() => instance.visit(url)).catch(error => {\n (0, _runloop.run)(instance, 'destroy');\n throw error;\n });\n });\n }\n\n });\n\n Application.reopenClass({\n /**\n This creates a registry with the default Ember naming conventions.\n It also configures the registry:\n * registered views are created every time they are looked up (they are\n not singletons)\n * registered templates are not factories; the registered value is\n returned directly.\n * the router receives the application as its `namespace` property\n * all controllers receive the router as their `target` and `controllers`\n properties\n * all controllers receive the application as their `namespace` property\n * the application view receives the application controller as its\n `controller` property\n * the application view receives the application template as its\n `defaultTemplate` property\n @method buildRegistry\n @static\n @param {Application} namespace the application for which to\n build the registry\n @return {Ember.Registry} the built registry\n @private\n */\n buildRegistry() {\n // eslint-disable-line no-unused-vars\n let registry = this._super(...arguments);\n\n commonSetupRegistry(registry);\n (0, _glimmer.setupApplicationRegistry)(registry);\n return registry;\n }\n\n });\n\n function commonSetupRegistry(registry) {\n registry.register('router:main', _routing.Router.extend());\n registry.register('-view-registry:main', {\n create() {\n return (0, _utils.dictionary)(null);\n }\n\n });\n registry.register('route:basic', _routing.Route);\n registry.register('event_dispatcher:main', _views.EventDispatcher);\n registry.injection('router:main', 'namespace', 'application:main');\n registry.register('location:auto', _routing.AutoLocation);\n registry.register('location:hash', _routing.HashLocation);\n registry.register('location:history', _routing.HistoryLocation);\n registry.register('location:none', _routing.NoneLocation);\n registry.register((0, _container.privatize)(_templateObject()), {\n create() {\n return new _routing.BucketCache();\n }\n\n });\n registry.register('service:router', _routing.RouterService);\n registry.injection('service:router', '_router', 'router:main');\n }\n\n function registerLibraries() {\n if (!librariesRegistered) {\n librariesRegistered = true;\n\n if (_deprecatedFeatures.JQUERY_INTEGRATION && _browserEnvironment.hasDOM && !_views.jQueryDisabled) {\n _metal.libraries.registerCoreLibrary('jQuery', (0, _views.jQuery)().jquery);\n }\n }\n }\n\n var _default = Application;\n _exports.default = _default;\n});","enifed(\"@ember/application/lib/lazy_load\", [\"exports\", \"@ember/-internals/environment\", \"@ember/-internals/browser-environment\"], function (_exports, _environment, _browserEnvironment) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.onLoad = onLoad;\n _exports.runLoadHooks = runLoadHooks;\n _exports._loaded = void 0;\n\n /*globals CustomEvent */\n\n /**\n @module @ember/application\n */\n const loadHooks = _environment.ENV.EMBER_LOAD_HOOKS || {};\n const loaded = {};\n let _loaded = loaded;\n /**\n Detects when a specific package of Ember (e.g. 'Application')\n has fully loaded and is available for extension.\n \n The provided `callback` will be called with the `name` passed\n resolved from a string into the object:\n \n ``` javascript\n import { onLoad } from '@ember/application';\n \n onLoad('Ember.Application' function(hbars) {\n hbars.registerHelper(...);\n });\n ```\n \n @method onLoad\n @static\n @for @ember/application\n @param name {String} name of hook\n @param callback {Function} callback to be called\n @private\n */\n\n _exports._loaded = _loaded;\n\n function onLoad(name, callback) {\n let object = loaded[name];\n loadHooks[name] = loadHooks[name] || [];\n loadHooks[name].push(callback);\n\n if (object) {\n callback(object);\n }\n }\n /**\n Called when an Ember.js package (e.g Application) has finished\n loading. Triggers any callbacks registered for this event.\n \n @method runLoadHooks\n @static\n @for @ember/application\n @param name {String} name of hook\n @param object {Object} object to pass to callbacks\n @private\n */\n\n\n function runLoadHooks(name, object) {\n loaded[name] = object;\n\n if (_browserEnvironment.window && typeof CustomEvent === 'function') {\n let event = new CustomEvent(name, {\n detail: object,\n name\n });\n\n _browserEnvironment.window.dispatchEvent(event);\n }\n\n if (loadHooks[name]) {\n loadHooks[name].forEach(callback => callback(object));\n }\n }\n});","enifed(\"@ember/application/lib/validate-type\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = validateType;\n const 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 let validationAttributes = VALIDATED_TYPES[parsedName.type];\n\n if (!validationAttributes) {\n return;\n }\n\n let [, factoryFlag, expectedType] = validationAttributes;\n (0, _debug.assert)(\"Expected \" + parsedName.fullName + \" to resolve to an \" + expectedType + \" but \" + (\"instead it was \" + resolvedType + \".\"), Boolean(resolvedType[factoryFlag]));\n }\n});","enifed(\"@ember/application/tests/application_instance_test\", [\"@ember/engine\", \"@ember/application\", \"@ember/application/instance\", \"@ember/runloop\", \"@ember/-internals/container\", \"internal-test-helpers\", \"@ember/-internals/runtime\", \"@ember/debug\"], function (_engine, _application, _instance, _runloop, _container, _internalTestHelpers, _runtime, _debug) {\n \"use strict\";\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"-bucket-cache:main\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n const originalDebug = (0, _debug.getDebugFunction)('debug');\n\n const noop = function () {};\n\n let application, appInstance;\n (0, _internalTestHelpers.moduleFor)('ApplicationInstance', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n (0, _debug.setDebugFunction)('debug', noop);\n super();\n document.getElementById('qunit-fixture').innerHTML = \"\\n HI
\\n \";\n application = (0, _runloop.run)(() => _application.default.create({\n rootElement: '#one',\n router: null\n }));\n }\n\n teardown() {\n (0, _debug.setDebugFunction)('debug', originalDebug);\n\n if (appInstance) {\n (0, _runloop.run)(appInstance, 'destroy');\n appInstance = null;\n }\n\n if (application) {\n (0, _runloop.run)(application, 'destroy');\n application = null;\n }\n\n document.getElementById('qunit-fixture').innerHTML = '';\n }\n\n ['@test an application instance can be created based upon an application'](assert) {\n appInstance = (0, _runloop.run)(() => _instance.default.create({\n application\n }));\n assert.ok(appInstance, 'instance should be created');\n assert.equal(appInstance.application, application, 'application should be set to parent');\n }\n\n ['@test customEvents added to the application before setupEventDispatcher'](assert) {\n assert.expect(1);\n appInstance = (0, _runloop.run)(() => _instance.default.create({\n application\n }));\n appInstance.setupRegistry();\n application.customEvents = {\n awesome: 'sauce'\n };\n let eventDispatcher = appInstance.lookup('event_dispatcher:main');\n\n eventDispatcher.setup = function (events) {\n assert.equal(events.awesome, 'sauce');\n };\n\n appInstance.setupEventDispatcher();\n }\n\n ['@test customEvents added to the application before setupEventDispatcher'](assert) {\n assert.expect(1);\n appInstance = (0, _runloop.run)(() => _instance.default.create({\n application\n }));\n appInstance.setupRegistry();\n application.customEvents = {\n awesome: 'sauce'\n };\n let eventDispatcher = appInstance.lookup('event_dispatcher:main');\n\n eventDispatcher.setup = function (events) {\n assert.equal(events.awesome, 'sauce');\n };\n\n appInstance.setupEventDispatcher();\n }\n\n ['@test customEvents added to the application instance before setupEventDispatcher'](assert) {\n assert.expect(1);\n appInstance = (0, _runloop.run)(() => _instance.default.create({\n application\n }));\n appInstance.setupRegistry();\n appInstance.customEvents = {\n awesome: 'sauce'\n };\n let eventDispatcher = appInstance.lookup('event_dispatcher:main');\n\n eventDispatcher.setup = function (events) {\n assert.equal(events.awesome, 'sauce');\n };\n\n appInstance.setupEventDispatcher();\n }\n\n ['@test unregistering a factory clears all cached instances of that factory'](assert) {\n assert.expect(5);\n appInstance = (0, _runloop.run)(() => _instance.default.create({\n application\n }));\n let PostController1 = (0, _internalTestHelpers.factory)();\n let PostController2 = (0, _internalTestHelpers.factory)();\n appInstance.register('controller:post', PostController1);\n let postController1 = appInstance.lookup('controller:post');\n let postController1Factory = appInstance.factoryFor('controller:post');\n assert.ok(postController1 instanceof PostController1, 'precond - lookup creates instance');\n assert.equal(PostController1, postController1Factory.class, 'precond - factoryFor().class matches');\n appInstance.unregister('controller:post');\n appInstance.register('controller:post', PostController2);\n let postController2 = appInstance.lookup('controller:post');\n let postController2Factory = appInstance.factoryFor('controller:post');\n assert.ok(postController2 instanceof PostController2, 'lookup creates instance');\n assert.equal(PostController2, postController2Factory.class, 'factoryFor().class matches');\n assert.notStrictEqual(postController1, postController2, 'lookup creates a brand new instance, because the previous one was reset');\n }\n\n ['@skip unregistering a factory clears caches with source of that factory'](assert) {\n assert.expect(1);\n appInstance = (0, _runloop.run)(() => _instance.default.create({\n application\n }));\n let PostController1 = (0, _internalTestHelpers.factory)();\n let PostController2 = (0, _internalTestHelpers.factory)();\n appInstance.register('controller:post', PostController1);\n appInstance.lookup('controller:post');\n let postControllerLookupWithSource = appInstance.lookup('controller:post', {\n source: 'doesnt-even-matter'\n });\n appInstance.unregister('controller:post');\n appInstance.register('controller:post', PostController2); // The cache that is source-specific is not cleared\n\n assert.ok(postControllerLookupWithSource !== appInstance.lookup('controller:post', {\n source: 'doesnt-even-matter'\n }), 'lookup with source creates a new instance');\n }\n\n ['@test can build and boot a registered engine'](assert) {\n assert.expect(11);\n\n let ChatEngine = _engine.default.extend();\n\n let chatEngineInstance;\n application.register('engine:chat', ChatEngine);\n (0, _runloop.run)(() => {\n appInstance = _instance.default.create({\n application\n });\n appInstance.setupRegistry();\n chatEngineInstance = appInstance.buildChildEngineInstance('chat');\n });\n return chatEngineInstance.boot().then(() => {\n assert.ok(true, 'boot successful');\n let registrations = ['route:basic', 'service:-routing', 'service:-glimmer-environment'];\n registrations.forEach(key => {\n assert.strictEqual(chatEngineInstance.resolveRegistration(key), appInstance.resolveRegistration(key), \"Engine and parent app share registrations for '\" + key + \"'\");\n });\n let singletons = ['router:main', (0, _container.privatize)(_templateObject()), '-view-registry:main', '-environment:main', 'service:-document', 'event_dispatcher:main'];\n let env = appInstance.lookup('-environment:main');\n singletons.push(env.isInteractive ? 'renderer:-dom' : 'renderer:-inert');\n singletons.forEach(key => {\n assert.strictEqual(chatEngineInstance.lookup(key), appInstance.lookup(key), \"Engine and parent app share singleton '\" + key + \"'\");\n });\n });\n }\n\n ['@test can build a registry via ApplicationInstance.setupRegistry() -- simulates ember-test-helpers'](assert) {\n let namespace = _runtime.Object.create({\n Resolver: {\n create: function () {}\n }\n });\n\n let registry = _application.default.buildRegistry(namespace);\n\n _instance.default.setupRegistry(registry);\n\n assert.equal(registry.resolve('service:-document'), document);\n }\n\n });\n});","enifed(\"@ember/application/tests/application_test\", [\"ember/version\", \"@ember/-internals/environment\", \"@ember/-internals/metal\", \"@ember/debug\", \"@ember/-internals/routing\", \"@ember/-internals/views\", \"@ember/application\", \"@ember/canary-features\", \"@ember/controller\", \"@ember/-internals/runtime\", \"@ember/-internals/glimmer\", \"@ember/-internals/container\", \"@ember/polyfills\", \"internal-test-helpers\", \"@ember/runloop\"], function (_version, _environment, _metal, _debug, _routing, _views, _application, _canaryFeatures, _controller, _runtime, _glimmer, _container, _polyfills, _internalTestHelpers, _runloop) {\n \"use strict\";\n\n function _templateObject5() {\n const data = _taggedTemplateLiteralLoose([\"template-compiler:main\"]);\n\n _templateObject5 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject4() {\n const data = _taggedTemplateLiteralLoose([\"template:components/-default\"]);\n\n _templateObject4 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject3() {\n const data = _taggedTemplateLiteralLoose([\"-bucket-cache:main\"]);\n\n _templateObject3 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"-bucket-cache:main\"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"-bucket-cache:main\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n (0, _internalTestHelpers.moduleFor)('Application, autobooting multiple apps', class extends _internalTestHelpers.ApplicationTestCase {\n get fixture() {\n return \"\\n \\n HI
\\n \";\n }\n\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n rootElement: '#one',\n router: null,\n autoboot: true\n });\n }\n\n createSecondApplication(options) {\n let myOptions = (0, _polyfills.assign)(this.applicationOptions, options);\n return this.secondApp = _application.default.create(myOptions);\n }\n\n teardown() {\n super.teardown();\n\n if (this.secondApp) {\n (0, _internalTestHelpers.runTask)(() => this.secondApp.destroy());\n }\n }\n\n [\"@test you can make a new application in a non-overlapping element\"](assert) {\n let app = (0, _internalTestHelpers.runTask)(() => this.createSecondApplication({\n rootElement: '#two'\n }));\n (0, _internalTestHelpers.runTask)(() => app.destroy());\n assert.ok(true, 'should not raise');\n }\n\n [\"@test you cannot make a new application that is a parent of an existing application\"]() {\n expectAssertion(() => {\n (0, _internalTestHelpers.runTask)(() => this.createSecondApplication({\n rootElement: this.applicationOptions.rootElement\n }));\n });\n }\n\n [\"@test you cannot make a new application that is a descendant of an existing application\"]() {\n expectAssertion(() => {\n (0, _internalTestHelpers.runTask)(() => this.createSecondApplication({\n rootElement: '#one-child'\n }));\n });\n }\n\n [\"@test you cannot make a new application that is a duplicate of an existing application\"]() {\n expectAssertion(() => {\n (0, _internalTestHelpers.runTask)(() => this.createSecondApplication({\n rootElement: '#one'\n }));\n });\n }\n\n [\"@test you cannot make two default applications without a rootElement error\"]() {\n expectAssertion(() => {\n (0, _internalTestHelpers.runTask)(() => this.createSecondApplication());\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application', class extends _internalTestHelpers.ApplicationTestCase {\n [\"@test builds a registry\"](assert) {\n let {\n application\n } = this;\n assert.strictEqual(application.resolveRegistration('application:main'), application, \"application:main is registered\");\n assert.deepEqual(application.registeredOptionsForType('component'), {\n singleton: false\n }, \"optionsForType 'component'\");\n assert.deepEqual(application.registeredOptionsForType('view'), {\n singleton: false\n }, \"optionsForType 'view'\");\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'controller:basic');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, '-view-registry:main');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'view', '_viewRegistry', '-view-registry:main');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'route', '_topLevelViewTemplate', 'template:-outlet');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'route:basic');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'event_dispatcher:main');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'router:main', 'namespace', 'application:main');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'view:-outlet', 'namespace', 'application:main');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'location:auto');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'location:hash');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'location:history');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'location:none');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'controller', 'target', 'router:main');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'controller', 'namespace', 'application:main');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, (0, _container.privatize)(_templateObject()));\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'router', '_bucketCache', (0, _container.privatize)(_templateObject2()));\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'route', '_bucketCache', (0, _container.privatize)(_templateObject3()));\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'route', '_router', 'router:main');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'component:-text-field');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'component:-checkbox');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'component:link-to');\n\n if (_canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'component:textarea');\n } else {\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'component:-text-area');\n }\n\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'service:-routing');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'service:-routing', 'router', 'router:main'); // DEBUGGING\n\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'resolver-for-debugging:main');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'container-debug-adapter:main', 'resolver', 'resolver-for-debugging:main');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'data-adapter:main', 'containerDebugAdapter', 'container-debug-adapter:main');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'container-debug-adapter:main');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'component-lookup:main');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'service:-glimmer-environment');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'service:-dom-changes');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'service:-dom-tree-construction');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'service:-glimmer-environment', 'appendOperations', 'service:-dom-tree-construction');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'service:-glimmer-environment', 'updateOperations', 'service:-dom-changes');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'renderer', 'env', 'service:-glimmer-environment');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'view:-outlet');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'renderer:-dom');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'renderer:-inert');\n (0, _internalTestHelpers.verifyRegistration)(assert, application, (0, _container.privatize)(_templateObject4()));\n (0, _internalTestHelpers.verifyRegistration)(assert, application, 'template:-outlet');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'view:-outlet', 'template', 'template:-outlet');\n (0, _internalTestHelpers.verifyInjection)(assert, application, 'template', 'compiler', (0, _container.privatize)(_templateObject5()));\n assert.deepEqual(application.registeredOptionsForType('helper'), {\n instantiate: false\n }, \"optionsForType 'helper'\");\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application, default resolver with autoboot', class extends _internalTestHelpers.DefaultResolverApplicationTestCase {\n constructor() {\n super(...arguments);\n this.originalLookup = _environment.context.lookup;\n }\n\n teardown() {\n _environment.context.lookup = this.originalLookup;\n super.teardown();\n (0, _glimmer.setTemplates)({});\n }\n\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n autoboot: true\n });\n }\n\n [\"@test acts like a namespace\"](assert) {\n this.application = (0, _internalTestHelpers.runTask)(() => this.createApplication());\n\n let Foo = this.application.Foo = _runtime.Object.extend();\n\n assert.equal(Foo.toString(), 'TestApp.Foo', 'Classes pick up their parent namespace');\n }\n\n [\"@test can specify custom router\"](assert) {\n let MyRouter = _routing.Router.extend();\n\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.application.Router = MyRouter;\n });\n assert.ok(this.application.__deprecatedInstance__.lookup('router:main') instanceof MyRouter, 'application resolved the correct router');\n }\n\n [\"@test Minimal Application initialized with just an application template\"]() {\n this.setupFixture('');\n (0, _internalTestHelpers.runTask)(() => this.createApplication());\n this.assertInnerHTML('Hello World');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application, autobooting', class extends _internalTestHelpers.AutobootApplicationTestCase {\n constructor() {\n super(...arguments);\n this.originalLogVersion = _environment.ENV.LOG_VERSION;\n this.originalDebug = (0, _debug.getDebugFunction)('debug');\n this.originalWarn = (0, _debug.getDebugFunction)('warn');\n }\n\n teardown() {\n (0, _debug.setDebugFunction)('warn', this.originalWarn);\n (0, _debug.setDebugFunction)('debug', this.originalDebug);\n _environment.ENV.LOG_VERSION = this.originalLogVersion;\n super.teardown();\n }\n\n [\"@test initialized application goes to initial route\"]() {\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.addTemplate('application', '{{outlet}}');\n this.addTemplate('index', 'Hi from index ');\n });\n this.assertText('Hi from index');\n }\n\n [\"@test ready hook is called before routing begins\"](assert) {\n assert.expect(2);\n (0, _internalTestHelpers.runTask)(() => {\n function registerRoute(application, name, callback) {\n let route = _routing.Route.extend({\n activate: callback\n });\n\n application.register('route:' + name, route);\n }\n\n let MyApplication = _application.default.extend({\n ready() {\n registerRoute(this, 'index', () => {\n assert.ok(true, 'last-minute route is activated');\n });\n }\n\n });\n\n let app = this.createApplication({}, MyApplication);\n registerRoute(app, 'application', () => assert.ok(true, 'normal route is activated'));\n });\n }\n\n [\"@test initialize application via initialize call\"](assert) {\n (0, _internalTestHelpers.runTask)(() => this.createApplication()); // This is not a public way to access the container; we just\n // need to make some assertions about the created router\n\n let router = this.applicationInstance.lookup('router:main');\n assert.equal(router instanceof _routing.Router, true, 'Router was set from initialize call');\n assert.equal(router.location instanceof _routing.NoneLocation, true, 'Location was set from location implementation name');\n }\n\n [\"@test initialize application with stateManager via initialize call from Router class\"](assert) {\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.addTemplate('application', 'Hello! ');\n }); // This is not a public way to access the container; we just\n // need to make some assertions about the created router\n\n let router = this.application.__deprecatedInstance__.lookup('router:main');\n\n assert.equal(router instanceof _routing.Router, true, 'Router was set from initialize call');\n this.assertText('Hello!');\n }\n\n [\"@test Application Controller backs the appplication template\"]() {\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.addTemplate('application', '{{greeting}} ');\n this.add('controller:application', _controller.default.extend({\n greeting: 'Hello!'\n }));\n });\n this.assertText('Hello!');\n }\n\n [\"@test enable log of libraries with an ENV var\"](assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n let messages = [];\n _environment.ENV.LOG_VERSION = true;\n (0, _debug.setDebugFunction)('debug', message => messages.push(message));\n\n _metal.libraries.register('my-lib', '2.0.0a');\n\n (0, _internalTestHelpers.runTask)(() => this.createApplication());\n assert.equal(messages[1], 'Ember : ' + _version.default);\n\n if (_views.jQueryDisabled) {\n assert.equal(messages[2], 'my-lib : ' + '2.0.0a');\n } else {\n assert.equal(messages[2], 'jQuery : ' + (0, _views.jQuery)().jquery);\n assert.equal(messages[3], 'my-lib : ' + '2.0.0a');\n }\n\n _metal.libraries.deRegister('my-lib');\n }\n\n [\"@test disable log of version of libraries with an ENV var\"](assert) {\n let logged = false;\n _environment.ENV.LOG_VERSION = false;\n (0, _debug.setDebugFunction)('debug', () => logged = true);\n (0, _internalTestHelpers.runTask)(() => this.createApplication());\n assert.ok(!logged, 'library version logging skipped');\n }\n\n [\"@test can resolve custom router\"](assert) {\n let CustomRouter = _routing.Router.extend();\n\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.add('router:main', CustomRouter);\n });\n assert.ok(this.application.__deprecatedInstance__.lookup('router:main') instanceof CustomRouter, 'application resolved the correct router');\n }\n\n [\"@test does not leak itself in onLoad._loaded\"](assert) {\n assert.equal(_application._loaded.application, undefined);\n (0, _internalTestHelpers.runTask)(() => this.createApplication());\n assert.equal(_application._loaded.application, this.application);\n (0, _internalTestHelpers.runTask)(() => this.application.destroy());\n assert.equal(_application._loaded.application, undefined);\n }\n\n [\"@test can build a registry via Application.buildRegistry() --- simulates ember-test-helpers\"](assert) {\n let namespace = _runtime.Object.create({\n Resolver: {\n create: function () {}\n }\n });\n\n let registry = _application.default.buildRegistry(namespace);\n\n assert.equal(registry.resolve('application:main'), namespace);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application#buildRegistry', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test can build a registry via Application.buildRegistry() --- simulates ember-test-helpers\"](assert) {\n let namespace = _runtime.Object.create({\n Resolver: {\n create() {}\n\n }\n });\n\n let registry = _application.default.buildRegistry(namespace);\n\n assert.equal(registry.resolve('application:main'), namespace);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application - instance tracking', class extends _internalTestHelpers.ApplicationTestCase {\n ['@test tracks built instance'](assert) {\n let instance = this.application.buildInstance();\n (0, _runloop.run)(() => {\n this.application.destroy();\n });\n assert.ok(instance.isDestroyed, 'instance was destroyed');\n }\n\n ['@test tracks built instances'](assert) {\n let instanceA = this.application.buildInstance();\n let instanceB = this.application.buildInstance();\n (0, _runloop.run)(() => {\n this.application.destroy();\n });\n assert.ok(instanceA.isDestroyed, 'instanceA was destroyed');\n assert.ok(instanceB.isDestroyed, 'instanceB was destroyed');\n }\n\n });\n});","enifed(\"@ember/application/tests/bootstrap-test\", [\"@ember/polyfills\", \"internal-test-helpers\"], function (_polyfills, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Application with default resolver and autoboot', class extends _internalTestHelpers.DefaultResolverApplicationTestCase {\n get fixture() {\n return \"\\n
\\n\\n \\n \\n \";\n }\n\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n autoboot: true,\n rootElement: '#app'\n });\n }\n\n ['@test templates in script tags are extracted at application creation'](assert) {\n (0, _internalTestHelpers.runTask)(() => this.createApplication());\n assert.equal(document.getElementById('app').textContent, 'Hello World!');\n }\n\n });\n});","enifed(\"@ember/application/tests/dependency_injection/custom_resolver_test\", [\"@ember/application/globals-resolver\", \"@ember/polyfills\", \"internal-test-helpers\"], function (_globalsResolver, _polyfills, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Application with extended default resolver and autoboot', class extends _internalTestHelpers.DefaultResolverApplicationTestCase {\n get applicationOptions() {\n let applicationTemplate = this.compile(\"Fallback \");\n\n let Resolver = _globalsResolver.default.extend({\n resolveTemplate(resolvable) {\n if (resolvable.fullNameWithoutType === 'application') {\n return applicationTemplate;\n } else {\n return this._super(resolvable);\n }\n }\n\n });\n\n return (0, _polyfills.assign)(super.applicationOptions, {\n Resolver,\n autoboot: true\n });\n }\n\n [\"@test a resolver can be supplied to application\"]() {\n (0, _internalTestHelpers.runTask)(() => this.createApplication());\n this.assertText('Fallback');\n }\n\n });\n});","enifed(\"@ember/application/tests/dependency_injection/default_resolver_test\", [\"internal-test-helpers\", \"@ember/-internals/environment\", \"@ember/controller\", \"@ember/service\", \"@ember/-internals/runtime\", \"@ember/-internals/routing\", \"@ember/-internals/glimmer\", \"@ember/debug\"], function (_internalTestHelpers, _environment, _controller, _service, _runtime, _routing, _glimmer, _debug) {\n \"use strict\";\n\n /* globals EmberDev */\n (0, _internalTestHelpers.moduleFor)('Application Dependency Injection - Integration - default resolver', class extends _internalTestHelpers.DefaultResolverApplicationTestCase {\n beforeEach() {\n (0, _internalTestHelpers.runTask)(() => this.createApplication());\n return this.visit('/');\n }\n\n get privateRegistry() {\n return this.application.__registry__;\n }\n /*\n * This first batch of tests are integration tests against the public\n * applicationInstance API.\n */\n\n\n [\"@test the default resolver looks up templates in Ember.TEMPLATES\"](assert) {\n let fooTemplate = this.addTemplate('foo', \"foo template\");\n let fooBarTemplate = this.addTemplate('fooBar', \"fooBar template\");\n let fooBarBazTemplate = this.addTemplate('fooBar/baz', \"fooBar/baz template\");\n assert.equal(this.applicationInstance.factoryFor('template:foo').class, fooTemplate, 'resolves template:foo');\n assert.equal(this.applicationInstance.factoryFor('template:fooBar').class, fooBarTemplate, 'resolves template:foo_bar');\n assert.equal(this.applicationInstance.factoryFor('template:fooBar.baz').class, fooBarBazTemplate, 'resolves template:foo_bar.baz');\n }\n\n [\"@test the default resolver looks up basic name as no prefix\"](assert) {\n let instance = this.applicationInstance.lookup('controller:basic');\n assert.ok(_controller.default.detect(instance), 'locator looks up correct controller');\n }\n\n [\"@test the default resolver looks up arbitrary types on the namespace\"](assert) {\n let Class = this.application.FooManager = _runtime.Object.extend();\n\n let resolvedClass = this.application.resolveRegistration('manager:foo');\n assert.equal(Class, resolvedClass, 'looks up FooManager on application');\n }\n\n [\"@test the default resolver resolves models on the namespace\"](assert) {\n let Class = this.application.Post = _runtime.Object.extend();\n\n let factoryClass = this.applicationInstance.factoryFor('model:post').class;\n assert.equal(Class, factoryClass, 'looks up Post model on application');\n }\n\n [\"@test the default resolver resolves *:main on the namespace\"](assert) {\n let Class = this.application.FooBar = _runtime.Object.extend();\n\n let factoryClass = this.applicationInstance.factoryFor('foo-bar:main').class;\n assert.equal(Class, factoryClass, 'looks up FooBar type without name on application');\n }\n\n [\"@test the default resolver resolves container-registered helpers\"](assert) {\n let shorthandHelper = (0, _glimmer.helper)(() => {});\n\n let helper = _glimmer.Helper.extend();\n\n this.application.register('helper:shorthand', shorthandHelper);\n this.application.register('helper:complete', helper);\n let lookedUpShorthandHelper = this.applicationInstance.factoryFor('helper:shorthand').class;\n assert.ok(lookedUpShorthandHelper.isHelperFactory, 'shorthand helper isHelper');\n let lookedUpHelper = this.applicationInstance.factoryFor('helper:complete').class;\n assert.ok(lookedUpHelper.isHelperFactory, 'complete helper is factory');\n assert.ok(helper.detect(lookedUpHelper), 'looked up complete helper');\n }\n\n [\"@test the default resolver resolves container-registered helpers via lookupFor\"](assert) {\n let shorthandHelper = (0, _glimmer.helper)(() => {});\n\n let helper = _glimmer.Helper.extend();\n\n this.application.register('helper:shorthand', shorthandHelper);\n this.application.register('helper:complete', helper);\n let lookedUpShorthandHelper = this.applicationInstance.factoryFor('helper:shorthand').class;\n assert.ok(lookedUpShorthandHelper.isHelperFactory, 'shorthand helper isHelper');\n let lookedUpHelper = this.applicationInstance.factoryFor('helper:complete').class;\n assert.ok(lookedUpHelper.isHelperFactory, 'complete helper is factory');\n assert.ok(helper.detect(lookedUpHelper), 'looked up complete helper');\n }\n\n [\"@test the default resolver resolves helpers on the namespace\"](assert) {\n let ShorthandHelper = (0, _glimmer.helper)(() => {});\n\n let CompleteHelper = _glimmer.Helper.extend();\n\n this.application.ShorthandHelper = ShorthandHelper;\n this.application.CompleteHelper = CompleteHelper;\n let resolvedShorthand = this.application.resolveRegistration('helper:shorthand');\n let resolvedComplete = this.application.resolveRegistration('helper:complete');\n assert.equal(resolvedShorthand, ShorthandHelper, 'resolve fetches the shorthand helper factory');\n assert.equal(resolvedComplete, CompleteHelper, 'resolve fetches the complete helper factory');\n }\n\n [\"@test the default resolver resolves to the same instance, no matter the notation \"](assert) {\n this.application.NestedPostController = _controller.default.extend({});\n assert.equal(this.applicationInstance.lookup('controller:nested-post'), this.applicationInstance.lookup('controller:nested_post'), 'looks up NestedPost controller on application');\n }\n\n [\"@test the default resolver throws an error if the fullName to resolve is invalid\"]() {\n expectAssertion(() => {\n this.applicationInstance.resolveRegistration(undefined);\n }, /fullName must be a proper full name/);\n expectAssertion(() => {\n this.applicationInstance.resolveRegistration(null);\n }, /fullName must be a proper full name/);\n expectAssertion(() => {\n this.applicationInstance.resolveRegistration('');\n }, /fullName must be a proper full name/);\n expectAssertion(() => {\n this.applicationInstance.resolveRegistration('');\n }, /fullName must be a proper full name/);\n expectAssertion(() => {\n this.applicationInstance.resolveRegistration(':');\n }, /fullName must be a proper full name/);\n expectAssertion(() => {\n this.applicationInstance.resolveRegistration('model');\n }, /fullName must be a proper full name/);\n expectAssertion(() => {\n this.applicationInstance.resolveRegistration('model:');\n }, /fullName must be a proper full name/);\n expectAssertion(() => {\n this.applicationInstance.resolveRegistration(':type');\n }, /fullName must be a proper full name/);\n }\n /*\n * The following are integration tests against the private registry API.\n */\n\n\n [\"@test lookup description\"](assert) {\n this.application.toString = () => 'App';\n\n assert.equal(this.privateRegistry.describe('controller:foo'), 'App.FooController', 'Type gets appended at the end');\n assert.equal(this.privateRegistry.describe('controller:foo.bar'), 'App.FooBarController', 'dots are removed');\n assert.equal(this.privateRegistry.describe('model:foo'), 'App.Foo', \"models don't get appended at the end\");\n }\n\n [\"@test assertion for routes without isRouteFactory property\"]() {\n this.application.FooRoute = _glimmer.Component.extend();\n expectAssertion(() => {\n this.privateRegistry.resolve(\"route:foo\");\n }, /to resolve to an Ember.Route/, 'Should assert');\n }\n\n [\"@test no assertion for routes that extend from Route\"](assert) {\n assert.expect(0);\n this.application.FooRoute = _routing.Route.extend();\n this.privateRegistry.resolve(\"route:foo\");\n }\n\n [\"@test deprecation warning for service factories without isServiceFactory property\"]() {\n expectAssertion(() => {\n this.application.FooService = _runtime.Object.extend();\n this.privateRegistry.resolve('service:foo');\n }, /Expected service:foo to resolve to an Ember.Service but instead it was TestApp\\.FooService\\./);\n }\n\n [\"@test no deprecation warning for service factories that extend from Service\"](assert) {\n assert.expect(0);\n this.application.FooService = _service.default.extend();\n this.privateRegistry.resolve('service:foo');\n }\n\n [\"@test deprecation warning for component factories without isComponentFactory property\"]() {\n expectAssertion(() => {\n this.application.FooComponent = _runtime.Object.extend();\n this.privateRegistry.resolve('component:foo');\n }, /Expected component:foo to resolve to an Ember\\.Component but instead it was TestApp\\.FooComponent\\./);\n }\n\n [\"@test no deprecation warning for component factories that extend from Component\"]() {\n expectNoDeprecation();\n this.application.FooView = _glimmer.Component.extend();\n this.privateRegistry.resolve('component:foo');\n }\n\n [\"@test knownForType returns each item for a given type found\"](assert) {\n this.application.FooBarHelper = 'foo';\n this.application.BazQuxHelper = 'bar';\n let found = this.privateRegistry.resolver.knownForType('helper');\n assert.deepEqual(found, {\n 'helper:foo-bar': true,\n 'helper:baz-qux': true\n });\n }\n\n [\"@test knownForType is not required to be present on the resolver\"](assert) {\n delete this.privateRegistry.resolver.knownForType;\n this.privateRegistry.resolver.knownForType('helper', () => {});\n assert.ok(true, 'does not error');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application Dependency Injection - Integration - default resolver w/ other namespace', class extends _internalTestHelpers.DefaultResolverApplicationTestCase {\n beforeEach() {\n this.UserInterface = _environment.context.lookup.UserInterface = _runtime.Namespace.create();\n (0, _internalTestHelpers.runTask)(() => this.createApplication());\n return this.visit('/');\n }\n\n teardown() {\n let UserInterfaceNamespace = _runtime.Namespace.NAMESPACES_BY_ID['UserInterface'];\n\n if (UserInterfaceNamespace) {\n (0, _internalTestHelpers.runTask)(() => {\n UserInterfaceNamespace.destroy();\n });\n }\n\n super.teardown();\n }\n\n [\"@test the default resolver can look things up in other namespaces\"](assert) {\n this.UserInterface.NavigationController = _controller.default.extend();\n let nav = this.applicationInstance.lookup('controller:userInterface/navigation');\n assert.ok(nav instanceof this.UserInterface.NavigationController, 'the result should be an instance of the specified class');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application Dependency Injection - Integration - default resolver', class extends _internalTestHelpers.DefaultResolverApplicationTestCase {\n constructor() {\n super();\n this._originalLookup = _environment.context.lookup;\n this._originalInfo = (0, _debug.getDebugFunction)('info');\n }\n\n beforeEach() {\n (0, _internalTestHelpers.runTask)(() => this.createApplication());\n return this.visit('/');\n }\n\n teardown() {\n (0, _debug.setDebugFunction)('info', this._originalInfo);\n _environment.context.lookup = this._originalLookup;\n super.teardown();\n }\n\n [\"@test the default resolver logs hits if 'LOG_RESOLVER' is set\"](assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n assert.expect(3);\n this.application.LOG_RESOLVER = true;\n this.application.ScoobyDoo = _runtime.Object.extend();\n\n this.application.toString = () => 'App';\n\n (0, _debug.setDebugFunction)('info', function (symbol, name, padding, lookupDescription) {\n assert.equal(symbol, '[✓]', 'proper symbol is printed when a module is found');\n assert.equal(name, 'doo:scooby', 'proper lookup value is logged');\n assert.equal(lookupDescription, 'App.ScoobyDoo');\n });\n this.applicationInstance.resolveRegistration('doo:scooby');\n }\n\n [\"@test the default resolver logs misses if 'LOG_RESOLVER' is set\"](assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n assert.expect(3);\n this.application.LOG_RESOLVER = true;\n\n this.application.toString = () => 'App';\n\n (0, _debug.setDebugFunction)('info', function (symbol, name, padding, lookupDescription) {\n assert.equal(symbol, '[ ]', 'proper symbol is printed when a module is not found');\n assert.equal(name, 'doo:scooby', 'proper lookup value is logged');\n assert.equal(lookupDescription, 'App.ScoobyDoo');\n });\n this.applicationInstance.resolveRegistration('doo:scooby');\n }\n\n [\"@test doesn't log without LOG_RESOLVER\"](assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n let infoCount = 0;\n this.application.ScoobyDoo = _runtime.Object.extend();\n (0, _debug.setDebugFunction)('info', () => infoCount = infoCount + 1);\n this.applicationInstance.resolveRegistration('doo:scooby');\n this.applicationInstance.resolveRegistration('doo:scrappy');\n assert.equal(infoCount, 0, 'console.info should not be called if LOG_RESOLVER is not set');\n }\n\n });\n});","enifed(\"@ember/application/tests/dependency_injection/normalization_test\", [\"@ember/runloop\", \"@ember/application\", \"internal-test-helpers\"], function (_runloop, _application, _internalTestHelpers) {\n \"use strict\";\n\n let application, registry;\n (0, _internalTestHelpers.moduleFor)('Application Dependency Injection - normalize', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n application = (0, _runloop.run)(_application.default, 'create');\n registry = application.__registry__;\n }\n\n teardown() {\n super.teardown();\n (0, _runloop.run)(application, 'destroy');\n application = undefined;\n registry = undefined;\n }\n\n ['@test normalization'](assert) {\n assert.ok(registry.normalize, 'registry#normalize is present');\n assert.equal(registry.normalize('foo:bar'), 'foo:bar');\n assert.equal(registry.normalize('controller:posts'), 'controller:posts');\n assert.equal(registry.normalize('controller:posts_index'), 'controller:postsIndex');\n assert.equal(registry.normalize('controller:posts.index'), 'controller:postsIndex');\n assert.equal(registry.normalize('controller:posts-index'), 'controller:postsIndex');\n assert.equal(registry.normalize('controller:posts.post.index'), 'controller:postsPostIndex');\n assert.equal(registry.normalize('controller:posts_post.index'), 'controller:postsPostIndex');\n assert.equal(registry.normalize('controller:posts.post_index'), 'controller:postsPostIndex');\n assert.equal(registry.normalize('controller:posts.post-index'), 'controller:postsPostIndex');\n assert.equal(registry.normalize('controller:postsIndex'), 'controller:postsIndex');\n assert.equal(registry.normalize('controller:blogPosts.index'), 'controller:blogPostsIndex');\n assert.equal(registry.normalize('controller:blog/posts.index'), 'controller:blog/postsIndex');\n assert.equal(registry.normalize('controller:blog/posts-index'), 'controller:blog/postsIndex');\n assert.equal(registry.normalize('controller:blog/posts.post.index'), 'controller:blog/postsPostIndex');\n assert.equal(registry.normalize('controller:blog/posts_post.index'), 'controller:blog/postsPostIndex');\n assert.equal(registry.normalize('controller:blog/posts_post-index'), 'controller:blog/postsPostIndex');\n assert.equal(registry.normalize('template:blog/posts_index'), 'template:blog/posts_index');\n }\n\n ['@test normalization is indempotent'](assert) {\n let examples = ['controller:posts', 'controller:posts.post.index', 'controller:blog/posts.post_index', 'template:foo_bar'];\n examples.forEach(example => {\n assert.equal(registry.normalize(registry.normalize(example)), registry.normalize(example));\n });\n }\n\n });\n});","enifed(\"@ember/application/tests/dependency_injection/to_string_test\", [\"@ember/polyfills\", \"@ember/-internals/utils\", \"@ember/-internals/runtime\", \"internal-test-helpers\"], function (_polyfills, _utils, _runtime, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Application Dependency Injection - DefaultResolver#toString', class extends _internalTestHelpers.DefaultResolverApplicationTestCase {\n constructor() {\n super();\n (0, _internalTestHelpers.runTask)(() => this.createApplication());\n this.application.Post = _runtime.Object.extend();\n }\n\n beforeEach() {\n return this.visit('/');\n }\n\n ['@test factories'](assert) {\n let PostFactory = this.applicationInstance.factoryFor('model:post').class;\n assert.equal(PostFactory.toString(), 'TestApp.Post', 'expecting the model to be post');\n }\n\n ['@test instances'](assert) {\n let post = this.applicationInstance.lookup('model:post');\n let guid = (0, _utils.guidFor)(post);\n assert.equal(post.toString(), '', 'expecting the model to be post');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application Dependency Injection - Resolver#toString', class extends _internalTestHelpers.ApplicationTestCase {\n beforeEach() {\n return this.visit('/');\n }\n\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n Resolver: class extends _internalTestHelpers.ModuleBasedTestResolver {\n makeToString(_, fullName) {\n return fullName;\n }\n\n }\n });\n }\n\n ['@test toString called on a resolver'](assert) {\n this.add('model:peter', _runtime.Object.extend());\n let peter = this.applicationInstance.lookup('model:peter');\n let guid = (0, _utils.guidFor)(peter);\n assert.equal(peter.toString(), \"\", 'expecting the supermodel to be peter');\n }\n\n });\n});","enifed(\"@ember/application/tests/dependency_injection_test\", [\"@ember/-internals/environment\", \"@ember/runloop\", \"@ember/-internals/runtime\", \"@ember/application\", \"internal-test-helpers\"], function (_environment, _runloop, _runtime, _application, _internalTestHelpers) {\n \"use strict\";\n\n let originalLookup = _environment.context.lookup;\n let registry, locator, application;\n (0, _internalTestHelpers.moduleFor)('Application Dependency Injection', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n application = (0, _runloop.run)(_application.default, 'create');\n application.Person = _runtime.Object.extend({});\n application.Orange = _runtime.Object.extend({});\n application.Email = _runtime.Object.extend({});\n application.User = _runtime.Object.extend({});\n application.PostIndexController = _runtime.Object.extend({});\n application.register('model:person', application.Person, {\n singleton: false\n });\n application.register('model:user', application.User, {\n singleton: false\n });\n application.register('fruit:favorite', application.Orange);\n application.register('communication:main', application.Email, {\n singleton: false\n });\n application.register('controller:postIndex', application.PostIndexController, {\n singleton: true\n });\n registry = application.__registry__;\n locator = application.__container__;\n _environment.context.lookup = {};\n }\n\n teardown() {\n super.teardown();\n (0, _runloop.run)(application, 'destroy');\n registry = application = locator = null;\n _environment.context.lookup = originalLookup;\n }\n\n ['@test container lookup is normalized'](assert) {\n let dotNotationController = locator.lookup('controller:post.index');\n let camelCaseController = locator.lookup('controller:postIndex');\n assert.ok(dotNotationController instanceof application.PostIndexController);\n assert.ok(camelCaseController instanceof application.PostIndexController);\n assert.equal(dotNotationController, camelCaseController);\n }\n\n ['@test registered entities can be looked up later'](assert) {\n assert.equal(registry.resolve('model:person'), application.Person);\n assert.equal(registry.resolve('model:user'), application.User);\n assert.equal(registry.resolve('fruit:favorite'), application.Orange);\n assert.equal(registry.resolve('communication:main'), application.Email);\n assert.equal(registry.resolve('controller:postIndex'), application.PostIndexController);\n assert.equal(locator.lookup('fruit:favorite'), locator.lookup('fruit:favorite'), 'singleton lookup worked');\n assert.ok(locator.lookup('model:user') !== locator.lookup('model:user'), 'non-singleton lookup worked');\n }\n\n ['@test injections'](assert) {\n application.inject('model', 'fruit', 'fruit:favorite');\n application.inject('model:user', 'communication', 'communication:main');\n let user = locator.lookup('model:user');\n let person = locator.lookup('model:person');\n let fruit = locator.lookup('fruit:favorite');\n assert.equal(user.get('fruit'), fruit);\n assert.equal(person.get('fruit'), fruit);\n assert.ok(application.Email.detectInstance(user.get('communication')));\n }\n\n });\n});","enifed(\"@ember/application/tests/initializers_test\", [\"@ember/polyfills\", \"internal-test-helpers\", \"@ember/application\"], function (_polyfills, _internalTestHelpers, _application) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Application initializers', class extends _internalTestHelpers.AutobootApplicationTestCase {\n get fixture() {\n return \"ONE
\\n TWO
\\n \";\n }\n\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n rootElement: '#one'\n });\n }\n\n createSecondApplication(options, MyApplication = _application.default) {\n let myOptions = (0, _polyfills.assign)(this.applicationOptions, {\n rootElement: '#two'\n }, options);\n let secondApp = this.secondApp = MyApplication.create(myOptions);\n return secondApp;\n }\n\n teardown() {\n super.teardown();\n\n if (this.secondApp) {\n (0, _internalTestHelpers.runTask)(() => this.secondApp.destroy());\n }\n }\n\n [\"@test initializers require proper 'name' and 'initialize' properties\"]() {\n let MyApplication = _application.default.extend();\n\n expectAssertion(() => {\n MyApplication.initializer({\n name: 'initializer'\n });\n });\n expectAssertion(() => {\n MyApplication.initializer({\n initialize() {}\n\n });\n });\n }\n\n [\"@test initializers that throw errors cause the boot promise to reject with the error\"](assert) {\n assert.expect(2);\n\n let MyApplication = _application.default.extend();\n\n MyApplication.initializer({\n name: 'initializer',\n\n initialize() {\n throw new Error('boot failure');\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication({\n autoboot: false\n }, MyApplication);\n });\n let app = this.application;\n\n try {\n (0, _internalTestHelpers.runTask)(() => {\n app.boot().then(() => {\n assert.ok(false, 'The boot promise should not resolve when there is a boot error');\n }, error => {\n assert.ok(error instanceof Error, 'The boot promise should reject with an error');\n assert.equal(error.message, 'boot failure');\n });\n });\n } catch (error) {\n assert.ok(false, 'The boot method should not throw');\n throw error;\n }\n }\n\n [\"@test initializers are passed an App\"](assert) {\n let MyApplication = _application.default.extend();\n\n MyApplication.initializer({\n name: 'initializer',\n\n initialize(App) {\n assert.ok(App instanceof _application.default, 'initialize is passed an Application');\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n }\n\n [\"@test initializers can be registered in a specified order\"](assert) {\n let order = [];\n\n let MyApplication = _application.default.extend();\n\n MyApplication.initializer({\n name: 'fourth',\n after: 'third',\n\n initialize() {\n order.push('fourth');\n }\n\n });\n MyApplication.initializer({\n name: 'second',\n after: 'first',\n before: 'third',\n\n initialize() {\n order.push('second');\n }\n\n });\n MyApplication.initializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n\n initialize() {\n order.push('fifth');\n }\n\n });\n MyApplication.initializer({\n name: 'first',\n before: 'second',\n\n initialize() {\n order.push('first');\n }\n\n });\n MyApplication.initializer({\n name: 'third',\n\n initialize() {\n order.push('third');\n }\n\n });\n MyApplication.initializer({\n name: 'sixth',\n\n initialize() {\n order.push('sixth');\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n }\n\n [\"@test initializers can be registered in a specified order as an array\"](assert) {\n let order = [];\n\n let MyApplication = _application.default.extend();\n\n MyApplication.initializer({\n name: 'third',\n\n initialize() {\n order.push('third');\n }\n\n });\n MyApplication.initializer({\n name: 'second',\n after: 'first',\n before: ['third', 'fourth'],\n\n initialize() {\n order.push('second');\n }\n\n });\n MyApplication.initializer({\n name: 'fourth',\n after: ['second', 'third'],\n\n initialize() {\n order.push('fourth');\n }\n\n });\n MyApplication.initializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n\n initialize() {\n order.push('fifth');\n }\n\n });\n MyApplication.initializer({\n name: 'first',\n before: ['second'],\n\n initialize() {\n order.push('first');\n }\n\n });\n MyApplication.initializer({\n name: 'sixth',\n\n initialize() {\n order.push('sixth');\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n }\n\n [\"@test initializers can have multiple dependencies\"](assert) {\n let order = [];\n\n let MyApplication = _application.default.extend();\n\n let a = {\n name: 'a',\n before: 'b',\n\n initialize() {\n order.push('a');\n }\n\n };\n let b = {\n name: 'b',\n\n initialize() {\n order.push('b');\n }\n\n };\n let c = {\n name: 'c',\n after: 'b',\n\n initialize() {\n order.push('c');\n }\n\n };\n let afterB = {\n name: 'after b',\n after: 'b',\n\n initialize() {\n order.push('after b');\n }\n\n };\n let afterC = {\n name: 'after c',\n after: 'c',\n\n initialize() {\n order.push('after c');\n }\n\n };\n MyApplication.initializer(b);\n MyApplication.initializer(a);\n MyApplication.initializer(afterC);\n MyApplication.initializer(afterB);\n MyApplication.initializer(c);\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n assert.ok(order.indexOf(a.name) < order.indexOf(b.name), 'a < b');\n assert.ok(order.indexOf(b.name) < order.indexOf(c.name), 'b < c');\n assert.ok(order.indexOf(b.name) < order.indexOf(afterB.name), 'b < afterB');\n assert.ok(order.indexOf(c.name) < order.indexOf(afterC.name), 'c < afterC');\n }\n\n [\"@test initializers set on Application subclasses are not shared between apps\"](assert) {\n let firstInitializerRunCount = 0;\n let secondInitializerRunCount = 0;\n\n let FirstApp = _application.default.extend();\n\n FirstApp.initializer({\n name: 'first',\n\n initialize() {\n firstInitializerRunCount++;\n }\n\n });\n\n let SecondApp = _application.default.extend();\n\n SecondApp.initializer({\n name: 'second',\n\n initialize() {\n secondInitializerRunCount++;\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, FirstApp));\n assert.equal(firstInitializerRunCount, 1, 'first initializer only was run');\n assert.equal(secondInitializerRunCount, 0, 'first initializer only was run');\n (0, _internalTestHelpers.runTask)(() => this.createSecondApplication({}, SecondApp));\n assert.equal(firstInitializerRunCount, 1, 'second initializer only was run');\n assert.equal(secondInitializerRunCount, 1, 'second initializer only was run');\n }\n\n [\"@test initializers are concatenated\"](assert) {\n let firstInitializerRunCount = 0;\n let secondInitializerRunCount = 0;\n\n let FirstApp = _application.default.extend();\n\n FirstApp.initializer({\n name: 'first',\n\n initialize() {\n firstInitializerRunCount++;\n }\n\n });\n let SecondApp = FirstApp.extend();\n SecondApp.initializer({\n name: 'second',\n\n initialize() {\n secondInitializerRunCount++;\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, FirstApp));\n assert.equal(firstInitializerRunCount, 1, 'first initializer only was run when base class created');\n assert.equal(secondInitializerRunCount, 0, 'first initializer only was run when base class created');\n firstInitializerRunCount = 0;\n (0, _internalTestHelpers.runTask)(() => this.createSecondApplication({}, SecondApp));\n assert.equal(firstInitializerRunCount, 1, 'first initializer was run when subclass created');\n assert.equal(secondInitializerRunCount, 1, 'second initializers was run when subclass created');\n }\n\n [\"@test initializers are per-app\"](assert) {\n assert.expect(2);\n\n let FirstApp = _application.default.extend();\n\n FirstApp.initializer({\n name: 'abc',\n\n initialize() {}\n\n });\n expectAssertion(() => {\n FirstApp.initializer({\n name: 'abc',\n\n initialize() {}\n\n });\n });\n\n let SecondApp = _application.default.extend();\n\n SecondApp.instanceInitializer({\n name: 'abc',\n\n initialize() {}\n\n });\n assert.ok(true, 'Two apps can have initializers named the same.');\n }\n\n [\"@test initializers are executed in their own context\"](assert) {\n assert.expect(1);\n\n let MyApplication = _application.default.extend();\n\n MyApplication.initializer({\n name: 'coolInitializer',\n myProperty: 'cool',\n\n initialize() {\n assert.equal(this.myProperty, 'cool', 'should have access to its own context');\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n }\n\n });\n});","enifed(\"@ember/application/tests/instance_initializers_test\", [\"@ember/polyfills\", \"internal-test-helpers\", \"@ember/application/instance\", \"@ember/application\"], function (_polyfills, _internalTestHelpers, _instance, _application) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Application instance initializers', class extends _internalTestHelpers.AutobootApplicationTestCase {\n get fixture() {\n return \"ONE
\\n TWO
\\n \";\n }\n\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n rootElement: '#one'\n });\n }\n\n createSecondApplication(options, MyApplication = _application.default) {\n let myOptions = (0, _polyfills.assign)(this.applicationOptions, {\n rootElement: '#two'\n }, options);\n let secondApp = this.secondApp = MyApplication.create(myOptions);\n return secondApp;\n }\n\n teardown() {\n super.teardown();\n\n if (this.secondApp) {\n (0, _internalTestHelpers.runTask)(() => this.secondApp.destroy());\n }\n }\n\n [\"@test initializers require proper 'name' and 'initialize' properties\"]() {\n let MyApplication = _application.default.extend();\n\n expectAssertion(() => {\n MyApplication.instanceInitializer({\n name: 'initializer'\n });\n });\n expectAssertion(() => {\n MyApplication.instanceInitializer({\n initialize() {}\n\n });\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n }\n\n [\"@test initializers are passed an app instance\"](assert) {\n let MyApplication = _application.default.extend();\n\n MyApplication.instanceInitializer({\n name: 'initializer',\n\n initialize(instance) {\n assert.ok(instance instanceof _instance.default, 'initialize is passed an application instance');\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n }\n\n [\"@test initializers can be registered in a specified order\"](assert) {\n let order = [];\n\n let MyApplication = _application.default.extend();\n\n MyApplication.instanceInitializer({\n name: 'fourth',\n after: 'third',\n\n initialize() {\n order.push('fourth');\n }\n\n });\n MyApplication.instanceInitializer({\n name: 'second',\n after: 'first',\n before: 'third',\n\n initialize() {\n order.push('second');\n }\n\n });\n MyApplication.instanceInitializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n\n initialize() {\n order.push('fifth');\n }\n\n });\n MyApplication.instanceInitializer({\n name: 'first',\n before: 'second',\n\n initialize() {\n order.push('first');\n }\n\n });\n MyApplication.instanceInitializer({\n name: 'third',\n\n initialize() {\n order.push('third');\n }\n\n });\n MyApplication.instanceInitializer({\n name: 'sixth',\n\n initialize() {\n order.push('sixth');\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n }\n\n [\"@test initializers can be registered in a specified order as an array\"](assert) {\n let order = [];\n\n let MyApplication = _application.default.extend();\n\n MyApplication.instanceInitializer({\n name: 'third',\n\n initialize() {\n order.push('third');\n }\n\n });\n MyApplication.instanceInitializer({\n name: 'second',\n after: 'first',\n before: ['third', 'fourth'],\n\n initialize() {\n order.push('second');\n }\n\n });\n MyApplication.instanceInitializer({\n name: 'fourth',\n after: ['second', 'third'],\n\n initialize() {\n order.push('fourth');\n }\n\n });\n MyApplication.instanceInitializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n\n initialize() {\n order.push('fifth');\n }\n\n });\n MyApplication.instanceInitializer({\n name: 'first',\n before: ['second'],\n\n initialize() {\n order.push('first');\n }\n\n });\n MyApplication.instanceInitializer({\n name: 'sixth',\n\n initialize() {\n order.push('sixth');\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n }\n\n [\"@test initializers can have multiple dependencies\"](assert) {\n let order = [];\n\n let MyApplication = _application.default.extend();\n\n let a = {\n name: 'a',\n before: 'b',\n\n initialize() {\n order.push('a');\n }\n\n };\n let b = {\n name: 'b',\n\n initialize() {\n order.push('b');\n }\n\n };\n let c = {\n name: 'c',\n after: 'b',\n\n initialize() {\n order.push('c');\n }\n\n };\n let afterB = {\n name: 'after b',\n after: 'b',\n\n initialize() {\n order.push('after b');\n }\n\n };\n let afterC = {\n name: 'after c',\n after: 'c',\n\n initialize() {\n order.push('after c');\n }\n\n };\n MyApplication.instanceInitializer(b);\n MyApplication.instanceInitializer(a);\n MyApplication.instanceInitializer(afterC);\n MyApplication.instanceInitializer(afterB);\n MyApplication.instanceInitializer(c);\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n assert.ok(order.indexOf(a.name) < order.indexOf(b.name), 'a < b');\n assert.ok(order.indexOf(b.name) < order.indexOf(c.name), 'b < c');\n assert.ok(order.indexOf(b.name) < order.indexOf(afterB.name), 'b < afterB');\n assert.ok(order.indexOf(c.name) < order.indexOf(afterC.name), 'c < afterC');\n }\n\n [\"@test initializers set on Application subclasses should not be shared between apps\"](assert) {\n let firstInitializerRunCount = 0;\n let secondInitializerRunCount = 0;\n\n let FirstApp = _application.default.extend();\n\n FirstApp.instanceInitializer({\n name: 'first',\n\n initialize() {\n firstInitializerRunCount++;\n }\n\n });\n\n let SecondApp = _application.default.extend();\n\n SecondApp.instanceInitializer({\n name: 'second',\n\n initialize() {\n secondInitializerRunCount++;\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, FirstApp));\n assert.equal(firstInitializerRunCount, 1, 'first initializer only was run');\n assert.equal(secondInitializerRunCount, 0, 'first initializer only was run');\n (0, _internalTestHelpers.runTask)(() => this.createSecondApplication({}, SecondApp));\n assert.equal(firstInitializerRunCount, 1, 'second initializer only was run');\n assert.equal(secondInitializerRunCount, 1, 'second initializer only was run');\n }\n\n [\"@test initializers are concatenated\"](assert) {\n let firstInitializerRunCount = 0;\n let secondInitializerRunCount = 0;\n\n let FirstApp = _application.default.extend();\n\n FirstApp.instanceInitializer({\n name: 'first',\n\n initialize() {\n firstInitializerRunCount++;\n }\n\n });\n let SecondApp = FirstApp.extend();\n SecondApp.instanceInitializer({\n name: 'second',\n\n initialize() {\n secondInitializerRunCount++;\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, FirstApp));\n assert.equal(firstInitializerRunCount, 1, 'first initializer only was run when base class created');\n assert.equal(secondInitializerRunCount, 0, 'first initializer only was run when base class created');\n firstInitializerRunCount = 0;\n (0, _internalTestHelpers.runTask)(() => this.createSecondApplication({}, SecondApp));\n assert.equal(firstInitializerRunCount, 1, 'first initializer was run when subclass created');\n assert.equal(secondInitializerRunCount, 1, 'second initializers was run when subclass created');\n }\n\n [\"@test initializers are per-app\"](assert) {\n assert.expect(2);\n\n let FirstApp = _application.default.extend();\n\n FirstApp.instanceInitializer({\n name: 'abc',\n\n initialize() {}\n\n });\n expectAssertion(function () {\n FirstApp.instanceInitializer({\n name: 'abc',\n\n initialize() {}\n\n });\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, FirstApp));\n\n let SecondApp = _application.default.extend();\n\n SecondApp.instanceInitializer({\n name: 'abc',\n\n initialize() {}\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createSecondApplication({}, SecondApp));\n assert.ok(true, 'Two apps can have initializers named the same.');\n }\n\n [\"@test initializers are run before ready hook\"](assert) {\n assert.expect(2);\n\n let MyApplication = _application.default.extend({\n ready() {\n assert.ok(true, 'ready is called');\n readyWasCalled = false;\n }\n\n });\n\n let readyWasCalled = false;\n MyApplication.instanceInitializer({\n name: 'initializer',\n\n initialize() {\n assert.ok(!readyWasCalled, 'ready is not yet called');\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n }\n\n [\"@test initializers are executed in their own context\"](assert) {\n assert.expect(1);\n\n let MyApplication = _application.default.extend();\n\n MyApplication.instanceInitializer({\n name: 'coolInitializer',\n myProperty: 'cool',\n\n initialize() {\n assert.equal(this.myProperty, 'cool', 'should have access to its own context');\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n }\n\n [\"@test initializers get an instance on app reset\"](assert) {\n assert.expect(2);\n\n let MyApplication = _application.default.extend();\n\n MyApplication.instanceInitializer({\n name: 'giveMeAnInstance',\n\n initialize(instance) {\n assert.ok(Boolean(instance), 'Initializer got an instance');\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => this.createApplication({}, MyApplication));\n (0, _internalTestHelpers.runTask)(() => this.application.reset());\n }\n\n });\n});","enifed(\"@ember/application/tests/lazy_load_test\", [\"@ember/runloop\", \"@ember/application\", \"internal-test-helpers\"], function (_runloop, _application, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Lazy Loading', class extends _internalTestHelpers.AbstractTestCase {\n afterEach() {\n let keys = Object.keys(_application._loaded);\n\n for (let i = 0; i < keys.length; i++) {\n delete _application._loaded[keys[i]];\n }\n }\n\n ['@test if a load hook is registered, it is executed when runLoadHooks are exected'](assert) {\n let count = 0;\n (0, _runloop.run)(function () {\n (0, _application.onLoad)('__test_hook__', function (object) {\n count += object;\n });\n });\n (0, _runloop.run)(function () {\n (0, _application.runLoadHooks)('__test_hook__', 1);\n });\n assert.equal(count, 1, 'the object was passed into the load hook');\n }\n\n ['@test if runLoadHooks was already run, it executes newly added hooks immediately'](assert) {\n let count = 0;\n (0, _runloop.run)(() => {\n (0, _application.onLoad)('__test_hook__', object => count += object);\n });\n (0, _runloop.run)(() => (0, _application.runLoadHooks)('__test_hook__', 1));\n count = 0;\n (0, _runloop.run)(() => {\n (0, _application.onLoad)('__test_hook__', object => count += object);\n });\n assert.equal(count, 1, 'the original object was passed into the load hook');\n }\n\n [\"@test hooks in ENV.EMBER_LOAD_HOOKS['hookName'] get executed\"](assert) {\n // Note that the necessary code to perform this test is run before\n // the Ember lib is loaded in tests/index.html\n (0, _runloop.run)(() => {\n (0, _application.runLoadHooks)('__before_ember_test_hook__', 1);\n });\n assert.equal(window.ENV.__test_hook_count__, 1, 'the object was passed into the load hook');\n }\n\n ['@test load hooks trigger a custom event'](assert) {\n if (typeof window === 'object' && typeof window.dispatchEvent === 'function' && typeof CustomEvent === 'function') {\n let eventObject = 'super duper awesome events';\n window.addEventListener('__test_hook_for_events__', function (e) {\n assert.ok(true, 'custom event was fired');\n assert.equal(e.detail, eventObject, 'event details are provided properly');\n });\n (0, _runloop.run)(() => {\n (0, _application.runLoadHooks)('__test_hook_for_events__', eventObject);\n });\n } else {\n assert.expect(0);\n }\n }\n\n });\n});","enifed(\"@ember/application/tests/logging_test\", [\"internal-test-helpers\", \"@ember/controller\", \"@ember/-internals/routing\", \"@ember/polyfills\"], function (_internalTestHelpers, _controller, _routing, _polyfills) {\n \"use strict\";\n\n /*globals EmberDev */\n class LoggingApplicationTestCase extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n super();\n this.logs = {};\n /* eslint-disable no-console */\n\n this._originalLogger = console.info;\n\n console.info = (_, {\n fullName\n }) => {\n if (!this.logs.hasOwnProperty(fullName)) {\n this.logs[fullName] = 0;\n }\n /* eslint-ensable no-console */\n\n\n this.logs[fullName]++;\n };\n\n this.router.map(function () {\n this.route('posts', {\n resetNamespace: true\n });\n });\n }\n\n teardown() {\n /* eslint-disable no-console */\n console.info = this._originalLogger;\n /* eslint-enable no-console */\n\n super.teardown();\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('Application with LOG_ACTIVE_GENERATION=true', class extends LoggingApplicationTestCase {\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n LOG_ACTIVE_GENERATION: true\n });\n }\n\n ['@test log class generation if logging enabled'](assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n return this.visit('/posts').then(() => {\n assert.equal(Object.keys(this.logs).length, 4, 'expected logs');\n });\n }\n\n ['@test actively generated classes get logged'](assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n return this.visit('/posts').then(() => {\n assert.equal(this.logs['controller:application'], 1, 'expected: ApplicationController was generated');\n assert.equal(this.logs['controller:posts'], 1, 'expected: PostsController was generated');\n assert.equal(this.logs['route:application'], 1, 'expected: ApplicationRoute was generated');\n assert.equal(this.logs['route:posts'], 1, 'expected: PostsRoute was generated');\n });\n }\n\n ['@test predefined classes do not get logged'](assert) {\n this.add('controller:application', _controller.default.extend());\n this.add('controller:posts', _controller.default.extend());\n this.add('route:application', _routing.Route.extend());\n this.add('route:posts', _routing.Route.extend());\n return this.visit('/posts').then(() => {\n assert.ok(!this.logs['controller:application'], 'did not expect: ApplicationController was generated');\n assert.ok(!this.logs['controller:posts'], 'did not expect: PostsController was generated');\n assert.ok(!this.logs['route:application'], 'did not expect: ApplicationRoute was generated');\n assert.ok(!this.logs['route:posts'], 'did not expect: PostsRoute was generated');\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application when LOG_ACTIVE_GENERATION=false', class extends LoggingApplicationTestCase {\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n LOG_ACTIVE_GENERATION: false\n });\n }\n\n [\"@test do NOT log class generation if logging disabled\"](assert) {\n return this.visit('/posts').then(() => {\n assert.equal(Object.keys(this.logs).length, 0, 'expected logs');\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application with LOG_VIEW_LOOKUPS=true', class extends LoggingApplicationTestCase {\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n LOG_VIEW_LOOKUPS: true\n });\n }\n\n [\"@test log when template and view are missing when flag is active\"](assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n this.addTemplate('application', '{{outlet}}');\n return this.visit('/').then(() => this.visit('/posts')).then(() => {\n assert.equal(this.logs['template:application'], undefined, 'expected: Should not log template:application since it exists.');\n assert.equal(this.logs['template:index'], 1, 'expected: Could not find \"index\" template or view.');\n assert.equal(this.logs['template:posts'], 1, 'expected: Could not find \"posts\" template or view.');\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application with LOG_VIEW_LOOKUPS=false', class extends LoggingApplicationTestCase {\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n LOG_VIEW_LOOKUPS: false\n });\n }\n\n [\"@test do not log when template and view are missing when flag is not true\"](assert) {\n return this.visit('/posts').then(() => {\n assert.equal(Object.keys(this.logs).length, 0, 'expected no logs');\n });\n }\n\n [\"@test do not log which views are used with templates when flag is not true\"](assert) {\n return this.visit('/posts').then(() => {\n assert.equal(Object.keys(this.logs).length, 0, 'expected no logs');\n });\n }\n\n });\n});","enifed(\"@ember/application/tests/readiness_test\", [\"internal-test-helpers\", \"@ember/runloop\", \"@ember/application\"], function (_internalTestHelpers, _runloop, _application) {\n \"use strict\";\n\n let jQuery, application, Application;\n let readyWasCalled, domReady, readyCallbacks; // We are using a small mock of jQuery because jQuery is third-party code with\n // very well-defined semantics, and we want to confirm that a jQuery stub run\n // in a more minimal server environment that implements this behavior will be\n // sufficient for Ember's requirements.\n\n (0, _internalTestHelpers.moduleFor)('Application readiness', class extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n super();\n readyWasCalled = 0;\n readyCallbacks = [];\n let jQueryInstance = {\n ready(callback) {\n readyCallbacks.push(callback);\n\n if (jQuery.isReady) {\n domReady();\n }\n }\n\n };\n\n jQuery = function () {\n return jQueryInstance;\n };\n\n jQuery.isReady = false;\n let domReadyCalled = 0;\n\n domReady = function () {\n if (domReadyCalled !== 0) {\n return;\n }\n\n domReadyCalled++;\n\n for (let i = 0; i < readyCallbacks.length; i++) {\n readyCallbacks[i]();\n }\n };\n\n Application = _application.default.extend({\n $: jQuery,\n\n ready() {\n readyWasCalled++;\n }\n\n });\n }\n\n teardown() {\n if (application) {\n (0, _runloop.run)(() => application.destroy());\n jQuery = readyCallbacks = domReady = Application = application = undefined;\n }\n } // These tests are confirming that if the callbacks passed into jQuery's ready hook is called\n // synchronously during the application's initialization, we get the same behavior as if\n // it was triggered after initialization.\n\n\n [\"@test Application's ready event is called right away if jQuery is already ready\"](assert) {\n jQuery.isReady = true;\n (0, _runloop.run)(() => {\n application = Application.create({\n router: false\n });\n assert.equal(readyWasCalled, 0, 'ready is not called until later');\n });\n assert.equal(readyWasCalled, 1, 'ready was called');\n domReady();\n assert.equal(readyWasCalled, 1, \"application's ready was not called again\");\n }\n\n [\"@test Application's ready event is called after the document becomes ready\"](assert) {\n (0, _runloop.run)(() => {\n application = Application.create({\n router: false\n });\n });\n assert.equal(readyWasCalled, 0, \"ready wasn't called yet\");\n domReady();\n assert.equal(readyWasCalled, 1, 'ready was called now that DOM is ready');\n }\n\n [\"@test Application's ready event can be deferred by other components\"](assert) {\n (0, _runloop.run)(() => {\n application = Application.create({\n router: false\n });\n application.deferReadiness();\n });\n assert.equal(readyWasCalled, 0, \"ready wasn't called yet\");\n domReady();\n assert.equal(readyWasCalled, 0, \"ready wasn't called yet\");\n (0, _runloop.run)(() => {\n application.advanceReadiness();\n assert.equal(readyWasCalled, 0);\n });\n assert.equal(readyWasCalled, 1, 'ready was called now all readiness deferrals are advanced');\n }\n\n [\"@test Application's ready event can be deferred by other components\"](assert) {\n jQuery.isReady = false;\n (0, _runloop.run)(() => {\n application = Application.create({\n router: false\n });\n application.deferReadiness();\n assert.equal(readyWasCalled, 0, \"ready wasn't called yet\");\n });\n domReady();\n assert.equal(readyWasCalled, 0, \"ready wasn't called yet\");\n (0, _runloop.run)(() => {\n application.advanceReadiness();\n });\n assert.equal(readyWasCalled, 1, 'ready was called now all readiness deferrals are advanced');\n expectAssertion(() => {\n application.deferReadiness();\n });\n }\n\n });\n});","enifed(\"@ember/application/tests/reset_test\", [\"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/controller\", \"@ember/-internals/routing\", \"internal-test-helpers\"], function (_runloop, _metal, _controller, _routing, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Application - resetting', class extends _internalTestHelpers.AutobootApplicationTestCase {\n ['@test Brings its own run-loop if not provided'](assert) {\n assert.expect(0);\n (0, _runloop.run)(() => this.createApplication());\n this.application.reset();\n }\n\n ['@test Does not bring its own run loop if one is already provided'](assert) {\n assert.expect(3);\n let didBecomeReady = false;\n (0, _runloop.run)(() => this.createApplication());\n (0, _runloop.run)(() => {\n this.application.ready = () => {\n didBecomeReady = true;\n };\n\n this.application.reset();\n this.application.deferReadiness();\n assert.ok(!didBecomeReady, 'app is not ready');\n });\n assert.ok(!didBecomeReady, 'app is not ready');\n (0, _runloop.run)(this.application, 'advanceReadiness');\n assert.ok(didBecomeReady, 'app is ready');\n }\n\n ['@test When an application is reset, new instances of controllers are generated'](assert) {\n (0, _runloop.run)(() => {\n this.createApplication();\n this.add('controller:academic', _controller.default.extend());\n });\n let firstController = this.applicationInstance.lookup('controller:academic');\n let secondController = this.applicationInstance.lookup('controller:academic');\n this.application.reset();\n let thirdController = this.applicationInstance.lookup('controller:academic');\n assert.strictEqual(firstController, secondController, 'controllers looked up in succession should be the same instance');\n assert.ok(firstController.isDestroying, 'controllers are destroyed when their application is reset');\n assert.notStrictEqual(firstController, thirdController, 'controllers looked up after the application is reset should not be the same instance');\n }\n\n ['@test When an application is reset, the eventDispatcher is destroyed and recreated'](assert) {\n let eventDispatcherWasSetup = 0;\n let eventDispatcherWasDestroyed = 0;\n let mockEventDispatcher = {\n setup() {\n eventDispatcherWasSetup++;\n },\n\n destroy() {\n eventDispatcherWasDestroyed++;\n }\n\n };\n (0, _runloop.run)(() => {\n this.createApplication();\n this.add('event_dispatcher:main', {\n create: () => mockEventDispatcher\n });\n assert.equal(eventDispatcherWasSetup, 0);\n assert.equal(eventDispatcherWasDestroyed, 0);\n });\n assert.equal(eventDispatcherWasSetup, 1);\n assert.equal(eventDispatcherWasDestroyed, 0);\n this.application.reset();\n assert.equal(eventDispatcherWasDestroyed, 1);\n assert.equal(eventDispatcherWasSetup, 2, 'setup called after reset');\n }\n\n ['@test When an application is reset, the router URL is reset to `/`'](assert) {\n (0, _runloop.run)(() => {\n this.createApplication();\n this.add('router:main', _routing.Router.extend({\n location: 'none'\n }));\n this.router.map(function () {\n this.route('one');\n this.route('two');\n });\n });\n let initialRouter, initialApplicationController;\n return this.visit('/one').then(() => {\n initialApplicationController = this.applicationInstance.lookup('controller:application');\n initialRouter = this.applicationInstance.lookup('router:main');\n let location = initialRouter.get('location');\n assert.equal(location.getURL(), '/one');\n expectDeprecation(() => {\n assert.equal((0, _metal.get)(initialApplicationController, 'currentPath'), 'one');\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n this.application.reset();\n return this.application._bootPromise;\n }).then(() => {\n let applicationController = this.applicationInstance.lookup('controller:application');\n assert.strictEqual(applicationController, undefined, 'application controller no longer exists');\n return this.visit('/one');\n }).then(() => {\n let applicationController = this.applicationInstance.lookup('controller:application');\n let router = this.applicationInstance.lookup('router:main');\n let location = router.get('location');\n assert.notEqual(initialRouter, router, 'a different router instance was created');\n assert.notEqual(initialApplicationController, applicationController, 'a different application controller is created');\n assert.equal(location.getURL(), '/one');\n expectDeprecation(() => {\n assert.equal((0, _metal.get)(applicationController, 'currentPath'), 'one');\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n });\n }\n\n ['@test When an application with advance/deferReadiness is reset, the app does correctly become ready after reset'](assert) {\n let readyCallCount = 0;\n (0, _runloop.run)(() => {\n this.createApplication({\n ready() {\n readyCallCount++;\n }\n\n });\n this.application.deferReadiness();\n assert.equal(readyCallCount, 0, 'ready has not yet been called');\n });\n (0, _runloop.run)(this.application, 'advanceReadiness');\n assert.equal(readyCallCount, 1, 'ready was called once');\n this.application.reset();\n assert.equal(readyCallCount, 2, 'ready was called twice');\n }\n\n });\n});","enifed(\"@ember/application/tests/visit_test\", [\"internal-test-helpers\", \"@ember/service\", \"@ember/-internals/runtime\", \"@ember/runloop\", \"@ember/application\", \"@ember/application/instance\", \"@ember/engine\", \"@ember/-internals/routing\", \"@ember/-internals/glimmer\", \"ember-template-compiler\", \"@ember/-internals/environment\"], function (_internalTestHelpers, _service, _runtime, _runloop, _application, _instance, _engine, _routing, _glimmer, _emberTemplateCompiler, _environment) {\n \"use strict\";\n\n function expectAsyncError() {\n _runtime.RSVP.off('error');\n }\n\n (0, _internalTestHelpers.moduleFor)('Application - visit()', class extends _internalTestHelpers.ApplicationTestCase {\n teardown() {\n _runtime.RSVP.on('error', _runtime.onerrorDefault);\n\n _environment.ENV._APPLICATION_TEMPLATE_WRAPPER = false;\n super.teardown();\n }\n\n createApplication(options) {\n return super.createApplication(options, _application.default.extend());\n }\n\n assertEmptyFixture(message) {\n this.assert.strictEqual(document.getElementById('qunit-fixture').children.length, 0, \"there are no elements in the fixture element \" + (message ? message : ''));\n }\n\n [\"@test does not add serialize-mode markers by default\"](assert) {\n let templateContent = 'Hi, Mom!
';\n this.addTemplate('index', templateContent);\n let rootElement = document.createElement('div');\n let bootOptions = {\n isBrowser: false,\n rootElement\n };\n _environment.ENV._APPLICATION_TEMPLATE_WRAPPER = false;\n return this.visit('/', bootOptions).then(() => {\n assert.equal(rootElement.innerHTML, templateContent, 'without serialize flag renders as expected');\n });\n }\n\n [\"@test _renderMode: rehydration\"](assert) {\n assert.expect(2);\n let indexTemplate = 'Hi, Mom!
';\n this.addTemplate('index', indexTemplate);\n let rootElement = document.createElement('div');\n let bootOptions = {\n isBrowser: false,\n rootElement,\n _renderMode: 'serialize'\n };\n _environment.ENV._APPLICATION_TEMPLATE_WRAPPER = false;\n return this.visit('/', bootOptions).then(instance => {\n assert.ok((0, _glimmer.isSerializationFirstNode)(instance.rootElement.firstChild), 'glimmer-vm comment node was not found');\n }).then(() => {\n return (0, _internalTestHelpers.runTask)(() => {\n this.applicationInstance.destroy();\n this.applicationInstance = null;\n });\n }).then(() => {\n bootOptions = {\n isBrowser: false,\n rootElement,\n _renderMode: 'rehydrate'\n };\n this.application.visit('/', bootOptions).then(instance => {\n assert.equal(instance.rootElement.innerHTML, indexTemplate, 'was not properly rehydrated');\n });\n });\n } // This tests whether the application is \"autobooted\" by registering an\n // instance initializer and asserting it never gets run. Since this is\n // inherently testing that async behavior *doesn't* happen, we set a\n // 500ms timeout to verify that when autoboot is set to false, the\n // instance initializer that would normally get called on DOM ready\n // does not fire.\n\n\n [\"@test Applications with autoboot set to false do not autoboot\"](assert) {\n function delay(time) {\n return new _runtime.RSVP.Promise(resolve => (0, _runloop.later)(resolve, time));\n }\n\n let appBooted = 0;\n let instanceBooted = 0;\n this.application.initializer({\n name: 'assert-no-autoboot',\n\n initialize() {\n appBooted++;\n }\n\n });\n this.application.instanceInitializer({\n name: 'assert-no-autoboot',\n\n initialize() {\n instanceBooted++;\n }\n\n });\n assert.ok(!this.applicationInstance, 'precond - no instance');\n assert.ok(appBooted === 0, 'precond - not booted');\n assert.ok(instanceBooted === 0, 'precond - not booted'); // Continue after 500ms\n\n return delay(500).then(() => {\n assert.ok(appBooted === 0, '500ms elapsed without app being booted');\n assert.ok(instanceBooted === 0, '500ms elapsed without instances being booted');\n return (0, _internalTestHelpers.runTask)(() => this.application.boot());\n }).then(() => {\n assert.ok(appBooted === 1, 'app should boot when manually calling `app.boot()`');\n assert.ok(instanceBooted === 0, 'no instances should be booted automatically when manually calling `app.boot()');\n });\n }\n\n [\"@test calling visit() on an app without first calling boot() should boot the app\"](assert) {\n let appBooted = 0;\n let instanceBooted = 0;\n this.application.initializer({\n name: 'assert-no-autoboot',\n\n initialize() {\n appBooted++;\n }\n\n });\n this.application.instanceInitializer({\n name: 'assert-no-autoboot',\n\n initialize() {\n instanceBooted++;\n }\n\n });\n return this.visit('/').then(() => {\n assert.ok(appBooted === 1, 'the app should be booted`');\n assert.ok(instanceBooted === 1, 'an instances should be booted');\n });\n }\n\n [\"@test calling visit() on an already booted app should not boot it again\"](assert) {\n let appBooted = 0;\n let instanceBooted = 0;\n this.application.initializer({\n name: 'assert-no-autoboot',\n\n initialize() {\n appBooted++;\n }\n\n });\n this.application.instanceInitializer({\n name: 'assert-no-autoboot',\n\n initialize() {\n instanceBooted++;\n }\n\n });\n return (0, _internalTestHelpers.runTask)(() => this.application.boot()).then(() => {\n assert.ok(appBooted === 1, 'the app should be booted');\n assert.ok(instanceBooted === 0, 'no instances should be booted');\n return this.visit('/');\n }).then(() => {\n assert.ok(appBooted === 1, 'the app should not be booted again');\n assert.ok(instanceBooted === 1, 'an instance should be booted');\n /*\n * Destroy the instance.\n */\n\n return (0, _internalTestHelpers.runTask)(() => {\n this.applicationInstance.destroy();\n this.applicationInstance = null;\n });\n }).then(() => {\n /*\n * Visit on the application a second time. The application should remain\n * booted, but a new instance will be created.\n */\n return this.application.visit('/').then(instance => {\n this.applicationInstance = instance;\n });\n }).then(() => {\n assert.ok(appBooted === 1, 'the app should not be booted again');\n assert.ok(instanceBooted === 2, 'another instance should be booted');\n });\n }\n\n [\"@test visit() rejects on application boot failure\"](assert) {\n this.application.initializer({\n name: 'error',\n\n initialize() {\n throw new Error('boot failure');\n }\n\n });\n expectAsyncError();\n return this.visit('/').then(() => {\n assert.ok(false, 'It should not resolve the promise');\n }, error => {\n assert.ok(error instanceof Error, 'It should reject the promise with the boot error');\n assert.equal(error.message, 'boot failure');\n });\n }\n\n [\"@test visit() rejects on instance boot failure\"](assert) {\n this.application.instanceInitializer({\n name: 'error',\n\n initialize() {\n throw new Error('boot failure');\n }\n\n });\n expectAsyncError();\n return this.visit('/').then(() => {\n assert.ok(false, 'It should not resolve the promise');\n }, error => {\n assert.ok(error instanceof Error, 'It should reject the promise with the boot error');\n assert.equal(error.message, 'boot failure');\n });\n }\n\n [\"@test visit() follows redirects\"](assert) {\n this.router.map(function () {\n this.route('a');\n this.route('b', {\n path: '/b/:b'\n });\n this.route('c', {\n path: '/c/:c'\n });\n });\n this.add('route:a', _routing.Route.extend({\n afterModel() {\n this.replaceWith('b', 'zomg');\n }\n\n }));\n this.add('route:b', _routing.Route.extend({\n afterModel(params) {\n this.transitionTo('c', params.b);\n }\n\n }));\n /*\n * First call to `visit` is `this.application.visit` and returns the\n * applicationInstance.\n */\n\n return this.visit('/a').then(instance => {\n assert.ok(instance instanceof _instance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(instance.getURL(), '/c/zomg', 'It should follow all redirects');\n });\n }\n\n [\"@test visit() rejects if an error occurred during a transition\"](assert) {\n this.router.map(function () {\n this.route('a');\n this.route('b', {\n path: '/b/:b'\n });\n this.route('c', {\n path: '/c/:c'\n });\n });\n this.add('route:a', _routing.Route.extend({\n afterModel() {\n this.replaceWith('b', 'zomg');\n }\n\n }));\n this.add('route:b', _routing.Route.extend({\n afterModel(params) {\n this.transitionTo('c', params.b);\n }\n\n }));\n this.add('route:c', _routing.Route.extend({\n afterModel() {\n throw new Error('transition failure');\n }\n\n }));\n expectAsyncError();\n return this.visit('/a').then(() => {\n assert.ok(false, 'It should not resolve the promise');\n }, error => {\n assert.ok(error instanceof Error, 'It should reject the promise with the boot error');\n assert.equal(error.message, 'transition failure');\n });\n }\n\n [\"@test visit() chain\"](assert) {\n this.router.map(function () {\n this.route('a');\n this.route('b');\n this.route('c');\n });\n return this.visit('/').then(instance => {\n assert.ok(instance instanceof _instance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(instance.getURL(), '/');\n return instance.visit('/a');\n }).then(instance => {\n assert.ok(instance instanceof _instance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(instance.getURL(), '/a');\n return instance.visit('/b');\n }).then(instance => {\n assert.ok(instance instanceof _instance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(instance.getURL(), '/b');\n return instance.visit('/c');\n }).then(instance => {\n assert.ok(instance instanceof _instance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(instance.getURL(), '/c');\n });\n }\n\n [\"@test visit() returns a promise that resolves when the view has rendered\"](assert) {\n this.addTemplate('application', \"Hello world \");\n this.assertEmptyFixture();\n return this.visit('/').then(instance => {\n assert.ok(instance instanceof _instance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(this.element.textContent, 'Hello world', 'the application was rendered once the promise resolves');\n });\n }\n\n [\"@test visit() returns a promise that resolves without rendering when shouldRender is set to false\"](assert) {\n assert.expect(3);\n this.addTemplate('application', 'Hello world ');\n this.assertEmptyFixture();\n return this.visit('/', {\n shouldRender: false\n }).then(instance => {\n assert.ok(instance instanceof _instance.default, 'promise is resolved with an ApplicationInstance');\n this.assertEmptyFixture('after visit');\n });\n }\n\n [\"@test visit() renders a template when shouldRender is set to true\"](assert) {\n assert.expect(3);\n this.addTemplate('application', 'Hello world ');\n this.assertEmptyFixture();\n return this.visit('/', {\n shouldRender: true\n }).then(instance => {\n assert.ok(instance instanceof _instance.default, 'promise is resolved with an ApplicationInstance');\n assert.strictEqual(document.querySelector('#qunit-fixture').children.length, 1, 'there is 1 element in the fixture element after visit');\n });\n }\n\n [\"@test visit() returns a promise that resolves without rendering when shouldRender is set to false with Engines\"](assert) {\n assert.expect(3);\n this.router.map(function () {\n this.mount('blog');\n });\n this.addTemplate('application', 'Hello world '); // Register engine\n\n let BlogEngine = _engine.default.extend();\n\n this.add('engine:blog', BlogEngine); // Register engine route map\n\n let BlogMap = function () {};\n\n this.add('route-map:blog', BlogMap);\n this.assertEmptyFixture();\n return this.visit('/blog', {\n shouldRender: false\n }).then(instance => {\n assert.ok(instance instanceof _instance.default, 'promise is resolved with an ApplicationInstance');\n this.assertEmptyFixture('after visit');\n });\n }\n\n [\"@test visit() does not setup the event_dispatcher:main if isInteractive is false (with Engines) GH#15615\"](assert) {\n assert.expect(3);\n this.router.map(function () {\n this.mount('blog');\n });\n this.addTemplate('application', 'Hello world {{outlet}}');\n this.add('event_dispatcher:main', {\n create() {\n throw new Error('should not happen!');\n }\n\n }); // Register engine\n\n let BlogEngine = _engine.default.extend({\n init(...args) {\n this._super.apply(this, args);\n\n this.register('template:application', (0, _emberTemplateCompiler.compile)('{{cache-money}}'));\n this.register('template:components/cache-money', (0, _emberTemplateCompiler.compile)(\"\\n Dis cache money
\\n \"));\n this.register('component:cache-money', _glimmer.Component.extend({}));\n }\n\n });\n\n this.add('engine:blog', BlogEngine); // Register engine route map\n\n let BlogMap = function () {};\n\n this.add('route-map:blog', BlogMap);\n this.assertEmptyFixture();\n return this.visit('/blog', {\n isInteractive: false\n }).then(instance => {\n assert.ok(instance instanceof _instance.default, 'promise is resolved with an ApplicationInstance');\n assert.strictEqual(this.element.querySelector('p').textContent, 'Dis cache money', 'Engine component is resolved');\n });\n }\n\n [\"@test visit() on engine resolves engine component\"](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.mount('blog');\n }); // Register engine\n\n let BlogEngine = _engine.default.extend({\n init(...args) {\n this._super.apply(this, args);\n\n this.register('template:application', (0, _emberTemplateCompiler.compile)('{{cache-money}}'));\n this.register('template:components/cache-money', (0, _emberTemplateCompiler.compile)(\"\\n Dis cache money
\\n \"));\n this.register('component:cache-money', _glimmer.Component.extend({}));\n }\n\n });\n\n this.add('engine:blog', BlogEngine); // Register engine route map\n\n let BlogMap = function () {};\n\n this.add('route-map:blog', BlogMap);\n this.assertEmptyFixture();\n return this.visit('/blog', {\n shouldRender: true\n }).then(() => {\n assert.strictEqual(this.element.querySelector('p').textContent, 'Dis cache money', 'Engine component is resolved');\n });\n }\n\n [\"@test visit() on engine resolves engine helper\"](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.mount('blog');\n }); // Register engine\n\n let BlogEngine = _engine.default.extend({\n init(...args) {\n this._super.apply(this, args);\n\n this.register('template:application', (0, _emberTemplateCompiler.compile)('{{swag}}'));\n this.register('helper:swag', (0, _glimmer.helper)(function () {\n return 'turnt up';\n }));\n }\n\n });\n\n this.add('engine:blog', BlogEngine); // Register engine route map\n\n let BlogMap = function () {};\n\n this.add('route-map:blog', BlogMap);\n this.assertEmptyFixture();\n return this.visit('/blog', {\n shouldRender: true\n }).then(() => {\n assert.strictEqual(this.element.textContent, 'turnt up', 'Engine component is resolved');\n });\n }\n\n [\"@test Ember Islands-style setup\"](assert) {\n let xFooInitCalled = false;\n let xFooDidInsertElementCalled = false;\n let xBarInitCalled = false;\n let xBarDidInsertElementCalled = false;\n this.router.map(function () {\n this.route('show', {\n path: '/:component_name'\n });\n });\n this.add('route:show', _routing.Route.extend({\n queryParams: {\n data: {\n refreshModel: true\n }\n },\n\n model(params) {\n return {\n componentName: params.component_name,\n componentData: params.data ? JSON.parse(params.data) : undefined\n };\n }\n\n }));\n\n let Counter = _runtime.Object.extend({\n value: 0,\n\n increment() {\n this.incrementProperty('value');\n }\n\n });\n\n this.add('service:isolatedCounter', Counter);\n this.add('service:sharedCounter', Counter.create());\n this.application.registerOptions('service:sharedCounter', {\n instantiate: false\n });\n this.addTemplate('show', '{{component model.componentName model=model.componentData}}');\n this.addTemplate('components/x-foo', \"\\n X-Foo \\n Hello {{model.name}}, I have been clicked {{isolatedCounter.value}} times ({{sharedCounter.value}} times combined)!
\\n \");\n this.add('component:x-foo', _glimmer.Component.extend({\n tagName: 'x-foo',\n isolatedCounter: (0, _service.inject)(),\n sharedCounter: (0, _service.inject)(),\n\n init() {\n this._super();\n\n xFooInitCalled = true;\n },\n\n didInsertElement() {\n xFooDidInsertElementCalled = true;\n },\n\n click() {\n this.get('isolatedCounter').increment();\n this.get('sharedCounter').increment();\n }\n\n }));\n this.addTemplate('components/x-bar', \"\\n X-Bar \\n Join {{counter.value}} others in clicking me! \\n \");\n this.add('component:x-bar', _glimmer.Component.extend({\n counter: (0, _service.inject)('sharedCounter'),\n actions: {\n incrementCounter() {\n this.get('counter').increment();\n }\n\n },\n\n init() {\n this._super();\n\n xBarInitCalled = true;\n },\n\n didInsertElement() {\n xBarDidInsertElementCalled = true;\n }\n\n }));\n let fixtureElement = document.querySelector('#qunit-fixture');\n let foo = document.createElement('div');\n let bar = document.createElement('div');\n fixtureElement.appendChild(foo);\n fixtureElement.appendChild(bar);\n let data = encodeURIComponent(JSON.stringify({\n name: 'Godfrey'\n }));\n let instances = [];\n return _runtime.RSVP.all([(0, _internalTestHelpers.runTask)(() => {\n return this.application.visit(\"/x-foo?data=\" + data, {\n rootElement: foo\n });\n }), (0, _internalTestHelpers.runTask)(() => {\n return this.application.visit('/x-bar', {\n rootElement: bar\n });\n })]).then(_instances => {\n instances = _instances;\n assert.ok(xFooInitCalled);\n assert.ok(xFooDidInsertElementCalled);\n assert.ok(xBarInitCalled);\n assert.ok(xBarDidInsertElementCalled);\n assert.equal(foo.querySelector('h1').textContent, 'X-Foo');\n assert.equal(foo.querySelector('p').textContent, 'Hello Godfrey, I have been clicked 0 times (0 times combined)!');\n assert.ok(foo.textContent.indexOf('X-Bar') === -1);\n assert.equal(bar.querySelector('h1').textContent, 'X-Bar');\n assert.equal(bar.querySelector('button').textContent, 'Join 0 others in clicking me!');\n assert.ok(bar.textContent.indexOf('X-Foo') === -1);\n (0, _internalTestHelpers.runTask)(() => {\n this.click(foo.querySelector('x-foo'));\n });\n assert.equal(foo.querySelector('p').textContent, 'Hello Godfrey, I have been clicked 1 times (1 times combined)!');\n assert.equal(bar.querySelector('button').textContent, 'Join 1 others in clicking me!');\n (0, _internalTestHelpers.runTask)(() => {\n this.click(bar.querySelector('button'));\n this.click(bar.querySelector('button'));\n });\n assert.equal(foo.querySelector('p').textContent, 'Hello Godfrey, I have been clicked 1 times (3 times combined)!');\n assert.equal(bar.querySelector('button').textContent, 'Join 3 others in clicking me!');\n }).finally(() => {\n (0, _internalTestHelpers.runTask)(() => {\n instances.forEach(instance => {\n instance.destroy();\n });\n });\n });\n }\n\n });\n});","enifed(\"@ember/canary-features/index\", [\"exports\", \"@ember/-internals/environment\", \"@ember/polyfills\"], function (_exports, _environment, _polyfills) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isEnabled = isEnabled;\n _exports.EMBER_NATIVE_DECORATOR_SUPPORT = _exports.EMBER_ROUTING_BUILD_ROUTEINFO_METADATA = _exports.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS = _exports.EMBER_GLIMMER_ANGLE_BRACKET_NESTED_LOOKUP = _exports.EMBER_METAL_TRACKED_PROPERTIES = _exports.EMBER_MODULE_UNIFICATION = _exports.EMBER_IMPROVED_INSTRUMENTATION = _exports.EMBER_LIBRARIES_ISREGISTERED = _exports.FEATURES = _exports.DEFAULT_FEATURES = void 0;\n\n /**\n Set `EmberENV.FEATURES` in your application's `config/environment.js` file\n to enable canary features in your application.\n \n See the [feature flag guide](https://guides.emberjs.com/release/configuring-ember/feature-flags/)\n for more details.\n \n @module @ember/canary-features\n @public\n */\n const DEFAULT_FEATURES = {\n EMBER_LIBRARIES_ISREGISTERED: false,\n EMBER_IMPROVED_INSTRUMENTATION: false,\n EMBER_MODULE_UNIFICATION: false,\n EMBER_METAL_TRACKED_PROPERTIES: false,\n EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS: true,\n EMBER_GLIMMER_ANGLE_BRACKET_NESTED_LOOKUP: true,\n EMBER_ROUTING_BUILD_ROUTEINFO_METADATA: true,\n EMBER_NATIVE_DECORATOR_SUPPORT: true\n };\n /**\n The hash of enabled Canary features. Add to this, any canary features\n before creating your application.\n \n @class FEATURES\n @static\n @since 1.1.0\n @public\n */\n\n _exports.DEFAULT_FEATURES = DEFAULT_FEATURES;\n const FEATURES = (0, _polyfills.assign)(DEFAULT_FEATURES, _environment.ENV.FEATURES);\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 @since 1.1.0\n @public\n */\n\n _exports.FEATURES = FEATURES;\n\n function isEnabled(feature) {\n let featureValue = FEATURES[feature];\n\n if (featureValue === true || featureValue === false) {\n return featureValue;\n } else if (_environment.ENV.ENABLE_OPTIONAL_FEATURES) {\n return true;\n } else {\n return false;\n }\n }\n\n function featureValue(value) {\n if (_environment.ENV.ENABLE_OPTIONAL_FEATURES && value === null) {\n return true;\n }\n\n return value;\n }\n\n const EMBER_LIBRARIES_ISREGISTERED = featureValue(FEATURES.EMBER_LIBRARIES_ISREGISTERED);\n _exports.EMBER_LIBRARIES_ISREGISTERED = EMBER_LIBRARIES_ISREGISTERED;\n const EMBER_IMPROVED_INSTRUMENTATION = featureValue(FEATURES.EMBER_IMPROVED_INSTRUMENTATION);\n _exports.EMBER_IMPROVED_INSTRUMENTATION = EMBER_IMPROVED_INSTRUMENTATION;\n const EMBER_MODULE_UNIFICATION = featureValue(FEATURES.EMBER_MODULE_UNIFICATION);\n _exports.EMBER_MODULE_UNIFICATION = EMBER_MODULE_UNIFICATION;\n const EMBER_METAL_TRACKED_PROPERTIES = featureValue(FEATURES.EMBER_METAL_TRACKED_PROPERTIES);\n _exports.EMBER_METAL_TRACKED_PROPERTIES = EMBER_METAL_TRACKED_PROPERTIES;\n const EMBER_GLIMMER_ANGLE_BRACKET_NESTED_LOOKUP = featureValue(FEATURES.EMBER_GLIMMER_ANGLE_BRACKET_NESTED_LOOKUP);\n _exports.EMBER_GLIMMER_ANGLE_BRACKET_NESTED_LOOKUP = EMBER_GLIMMER_ANGLE_BRACKET_NESTED_LOOKUP;\n const EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS = featureValue(FEATURES.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS);\n _exports.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS = EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS;\n const EMBER_ROUTING_BUILD_ROUTEINFO_METADATA = featureValue(FEATURES.EMBER_ROUTING_BUILD_ROUTEINFO_METADATA);\n _exports.EMBER_ROUTING_BUILD_ROUTEINFO_METADATA = EMBER_ROUTING_BUILD_ROUTEINFO_METADATA;\n const EMBER_NATIVE_DECORATOR_SUPPORT = featureValue(FEATURES.EMBER_NATIVE_DECORATOR_SUPPORT);\n _exports.EMBER_NATIVE_DECORATOR_SUPPORT = EMBER_NATIVE_DECORATOR_SUPPORT;\n});","enifed(\"@ember/controller/index\", [\"exports\", \"@ember/-internals/runtime\", \"@ember/-internals/metal\", \"@ember/controller/lib/controller_mixin\"], function (_exports, _runtime, _metal, _controller_mixin) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.inject = inject;\n _exports.default = void 0;\n\n /**\n @module @ember/controller\n */\n\n /**\n @class Controller\n @extends EmberObject\n @uses Ember.ControllerMixin\n @public\n */\n const Controller = _runtime.Object.extend(_controller_mixin.default);\n /**\n Creates a property that lazily looks up another controller in the container.\n Can only be used when defining another controller.\n \n Example:\n \n ```app/controllers/post.js\n import Controller, {\n inject as controller\n } from '@ember/controller';\n \n export default class PostController extends Controller {\n @controller posts;\n }\n ```\n \n Classic Class Example:\n \n ```app/controllers/post.js\n import Controller, {\n inject as controller\n } from '@ember/controller';\n \n export default Controller.extend({\n posts: controller()\n });\n ```\n \n This example will create a `posts` property on the `post` controller that\n looks up the `posts` controller in the container, making it easy to reference\n other controllers.\n \n @method inject\n @static\n @for @ember/controller\n @since 1.10.0\n @param {String} name (optional) name of the controller to inject, defaults to\n the property's name\n @return {ComputedDecorator} injection decorator instance\n @public\n */\n\n\n function inject() {\n return (0, _metal.inject)('controller', ...arguments);\n }\n\n var _default = Controller;\n _exports.default = _default;\n});","enifed(\"@ember/controller/lib/controller_mixin\", [\"exports\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\"], function (_exports, _metal, _runtime) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n @class ControllerMixin\n @namespace Ember\n @uses Ember.ActionHandler\n @private\n */\n var _default = _metal.Mixin.create(_runtime.ActionHandler, {\n /* ducktype as a controller */\n isController: true,\n\n /**\n The object to which actions from the view should be sent.\n For example, when a Handlebars template uses the `{{action}}` helper,\n it will attempt to send the action to the view's controller's `target`.\n By default, the value of the target property is set to the router, and\n is injected when a controller is instantiated. This injection is applied\n as part of the application's initialization process. In most cases the\n `target` property will automatically be set to the logical consumer of\n actions for the controller.\n @property target\n @default null\n @public\n */\n target: null,\n store: null,\n\n /**\n The controller's current model. When retrieving or modifying a controller's\n model, this property should be used instead of the `content` property.\n @property model\n @public\n */\n model: null\n });\n\n _exports.default = _default;\n});","enifed(\"@ember/controller/tests/controller_test\", [\"@ember/controller\", \"@ember/canary-features\", \"@ember/service\", \"@ember/-internals/runtime\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_controller, _canaryFeatures, _service, _runtime, _metal, _internalTestHelpers) {\n \"use strict\";\n\n function _initializerDefineProperty(target, property, descriptor, context) {\n if (!descriptor) return;\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n });\n }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n var desc = {};\n Object.keys(descriptor).forEach(function (key) {\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n\n if ('value' in desc || desc.initializer) {\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0) {\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n\n function _initializerWarningHelper(descriptor, context) {\n throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.');\n }\n\n (0, _internalTestHelpers.moduleFor)('Controller event handling', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Action can be handled by a function on actions object'](assert) {\n assert.expect(1);\n\n let TestController = _controller.default.extend({\n actions: {\n poke() {\n assert.ok(true, 'poked');\n }\n\n }\n });\n\n let controller = TestController.create();\n controller.send('poke');\n }\n\n ['@test A handled action can be bubbled to the target for continued processing'](assert) {\n assert.expect(2);\n\n let TestController = _controller.default.extend({\n actions: {\n poke() {\n assert.ok(true, 'poked 1');\n return true;\n }\n\n }\n });\n\n let controller = TestController.create({\n target: _controller.default.extend({\n actions: {\n poke() {\n assert.ok(true, 'poked 2');\n }\n\n }\n }).create()\n });\n controller.send('poke');\n }\n\n [\"@test Action can be handled by a superclass' actions object\"](assert) {\n assert.expect(4);\n\n let SuperController = _controller.default.extend({\n actions: {\n foo() {\n assert.ok(true, 'foo');\n },\n\n bar(msg) {\n assert.equal(msg, 'HELLO');\n }\n\n }\n });\n\n let BarControllerMixin = _metal.Mixin.create({\n actions: {\n bar(msg) {\n assert.equal(msg, 'HELLO');\n\n this._super(msg);\n }\n\n }\n });\n\n let IndexController = SuperController.extend(BarControllerMixin, {\n actions: {\n baz() {\n assert.ok(true, 'baz');\n }\n\n }\n });\n let controller = IndexController.create({});\n controller.send('foo');\n controller.send('bar', 'HELLO');\n controller.send('baz');\n }\n\n ['@test .send asserts if called on a destroyed controller']() {\n let owner = (0, _internalTestHelpers.buildOwner)();\n owner.register('controller:application', _controller.default.extend({\n toString() {\n return 'controller:rip-alley';\n }\n\n }));\n let controller = owner.lookup('controller:application');\n (0, _internalTestHelpers.runDestroy)(owner);\n expectAssertion(() => {\n controller.send('trigger-me-dead');\n }, \"Attempted to call .send() with the action 'trigger-me-dead' on the destroyed object 'controller:rip-alley'.\");\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Controller deprecations -> Controller Content -> Model Alias', class extends _internalTestHelpers.AbstractTestCase {\n ['@test `content` is not moved to `model` when `model` is unset'](assert) {\n assert.expect(2);\n let controller;\n ignoreDeprecation(function () {\n controller = _controller.default.extend({\n content: 'foo-bar'\n }).create();\n });\n assert.notEqual(controller.get('model'), 'foo-bar', 'model is set properly');\n assert.equal(controller.get('content'), 'foo-bar', 'content is not set properly');\n }\n\n ['@test specifying `content` (without `model` specified) does not result in deprecation'](assert) {\n assert.expect(2);\n expectNoDeprecation();\n\n let controller = _controller.default.extend({\n content: 'foo-bar'\n }).create();\n\n assert.equal((0, _metal.get)(controller, 'content'), 'foo-bar');\n }\n\n ['@test specifying `content` (with `model` specified) does not result in deprecation'](assert) {\n assert.expect(3);\n expectNoDeprecation();\n\n let controller = _controller.default.extend({\n content: 'foo-bar',\n model: 'blammo'\n }).create();\n\n assert.equal((0, _metal.get)(controller, 'content'), 'foo-bar');\n assert.equal((0, _metal.get)(controller, 'model'), 'blammo');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Controller deprecations -> Controller injected properties', class extends _internalTestHelpers.AbstractTestCase {\n ['@test defining a controller on a non-controller should fail assertion']() {\n expectAssertion(function () {\n let owner = (0, _internalTestHelpers.buildOwner)();\n\n let AnObject = _runtime.Object.extend({\n foo: (0, _controller.inject)('bar')\n });\n\n owner.register('controller:bar', _runtime.Object.extend());\n owner.register('foo:main', AnObject);\n owner.lookup('foo:main');\n }, /Defining `foo` as an injected controller property on a non-controller \\(`foo:main`\\) is not allowed/);\n }\n\n ['@test controllers can be injected into controllers'](assert) {\n let owner = (0, _internalTestHelpers.buildOwner)();\n owner.register('controller:post', _controller.default.extend({\n postsController: (0, _controller.inject)('posts')\n }));\n owner.register('controller:posts', _controller.default.extend());\n let postController = owner.lookup('controller:post');\n let postsController = owner.lookup('controller:posts');\n assert.equal(postsController, postController.get('postsController'), 'controller.posts is injected');\n }\n\n ['@test services can be injected into controllers'](assert) {\n let owner = (0, _internalTestHelpers.buildOwner)();\n owner.register('controller:application', _controller.default.extend({\n authService: (0, _service.inject)('auth')\n }));\n owner.register('service:auth', _service.default.extend());\n let appController = owner.lookup('controller:application');\n let authService = owner.lookup('service:auth');\n assert.equal(authService, appController.get('authService'), 'service.auth is injected');\n }\n\n });\n\n if (_canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT) {\n (0, _internalTestHelpers.moduleFor)('Controller Injections', class extends _internalTestHelpers.AbstractTestCase {\n ['@test works with native decorators'](assert) {\n var _dec, _class, _descriptor, _temp;\n\n let owner = (0, _internalTestHelpers.buildOwner)();\n\n class MainController extends _controller.default {}\n\n let IndexController = (_dec = (0, _controller.inject)('main'), (_class = (_temp = class IndexController extends _controller.default {\n constructor(...args) {\n super(...args);\n\n _initializerDefineProperty(this, \"main\", _descriptor, this);\n }\n\n }, _temp), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"main\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class));\n owner.register('controller:main', MainController);\n owner.register('controller:index', IndexController);\n let index = owner.lookup('controller:index');\n assert.ok(index.main instanceof _controller.default, 'controller injected correctly');\n }\n\n ['@test uses the decorated property key if not provided'](assert) {\n var _class3, _descriptor2, _temp2;\n\n let owner = (0, _internalTestHelpers.buildOwner)();\n\n class MainController extends _controller.default {}\n\n let IndexController = (_class3 = (_temp2 = class IndexController extends _controller.default {\n constructor(...args) {\n super(...args);\n\n _initializerDefineProperty(this, \"main\", _descriptor2, this);\n }\n\n }, _temp2), _descriptor2 = _applyDecoratedDescriptor(_class3.prototype, \"main\", [_controller.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class3);\n owner.register('controller:main', MainController);\n owner.register('controller:index', IndexController);\n let index = owner.lookup('controller:index');\n assert.ok(index.main instanceof _controller.default, 'controller injected correctly');\n }\n\n });\n }\n});","enifed(\"@ember/debug/index\", [\"exports\", \"@ember/-internals/browser-environment\", \"@ember/error\", \"@glimmer/env\", \"@ember/debug/lib/deprecate\", \"@ember/debug/lib/testing\", \"@ember/debug/lib/warn\"], function (_exports, _browserEnvironment, _error, _env, _deprecate2, _testing, _warn2) {\n \"use strict\";\n\n _exports.__esModule = true;\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.registerDeprecationHandler = _exports.registerWarnHandler = void 0;\n _exports.registerDeprecationHandler = _deprecate2.registerHandler;\n _exports.isTesting = _testing.isTesting;\n _exports.setTesting = _testing.setTesting;\n _exports.registerWarnHandler = _warn2.registerHandler;\n\n // These are the default production build versions:\n const noop = () => {};\n\n let assert = noop;\n _exports.assert = assert;\n let info = noop;\n _exports.info = info;\n let warn = noop;\n _exports.warn = warn;\n let debug = noop;\n _exports.debug = debug;\n let deprecate = noop;\n _exports.deprecate = deprecate;\n let debugSeal = noop;\n _exports.debugSeal = debugSeal;\n let debugFreeze = noop;\n _exports.debugFreeze = debugFreeze;\n let runInDebug = noop;\n _exports.runInDebug = runInDebug;\n let setDebugFunction = noop;\n _exports.setDebugFunction = setDebugFunction;\n let getDebugFunction = noop;\n _exports.getDebugFunction = getDebugFunction;\n\n let deprecateFunc = function () {\n return arguments[arguments.length - 1];\n };\n\n _exports.deprecateFunc = deprecateFunc;\n\n if (_env.DEBUG) {\n _exports.setDebugFunction = setDebugFunction = function (type, callback) {\n switch (type) {\n case 'assert':\n return _exports.assert = assert = callback;\n\n case 'info':\n return _exports.info = info = callback;\n\n case 'warn':\n return _exports.warn = warn = callback;\n\n case 'debug':\n return _exports.debug = debug = callback;\n\n case 'deprecate':\n return _exports.deprecate = deprecate = callback;\n\n case 'debugSeal':\n return _exports.debugSeal = debugSeal = callback;\n\n case 'debugFreeze':\n return _exports.debugFreeze = debugFreeze = callback;\n\n case 'runInDebug':\n return _exports.runInDebug = runInDebug = callback;\n\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\n case 'info':\n return info;\n\n case 'warn':\n return warn;\n\n case 'debug':\n return debug;\n\n case 'deprecate':\n return deprecate;\n\n case 'debugSeal':\n return debugSeal;\n\n case 'debugFreeze':\n return debugFreeze;\n\n case 'runInDebug':\n return runInDebug;\n\n case 'deprecateFunc':\n return deprecateFunc;\n }\n };\n }\n /**\n @module @ember/debug\n */\n\n\n if (_env.DEBUG) {\n /**\n Verify that a certain expectation is met, or throw a exception otherwise.\n This is useful for communicating assumptions in the code to other human\n readers as well as catching bugs that accidentally violates these\n expectations.\n Assertions are removed from production builds, so they can be freely added\n for documentation and debugging purposes without worries of incuring any\n performance penalty. However, because of that, they should not be used for\n checks that could reasonably fail during normal usage. Furthermore, care\n should be taken to avoid accidentally relying on side-effects produced from\n evaluating the condition itself, since the code will not run in production.\n ```javascript\n import { assert } from '@ember/debug';\n // Test for truthiness\n assert('Must pass a string', typeof str === 'string');\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} description Describes the expectation. This will become the\n text of the Error thrown if the assertion fails.\n @param {Boolean} condition 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 Display a debug notice.\n Calls to this function are removed from production builds, so they can be\n freely added for documentation and debugging purposes without worries of\n incuring any performance penalty.\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\n setDebugFunction('debug', function debug(message) {\n /* eslint-disable no-console */\n if (console.debug) {\n console.debug(\"DEBUG: \" + message);\n } else {\n console.log(\"DEBUG: \" + message);\n }\n /* eslint-ensable no-console */\n\n });\n /**\n Display an info notice.\n Calls to this function are removed from production builds, so they can be\n freely added for documentation and debugging purposes without worries of\n incuring any performance penalty.\n @method info\n @private\n */\n\n setDebugFunction('info', function info() {\n console.info(...arguments);\n /* eslint-disable-line no-console */\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 Calls to this function are removed from production builds, so they can be\n freely added for documentation and debugging purposes without worries of\n incuring any performance penalty.\n ```javascript\n import { deprecateFunc } from '@ember/application/deprecations';\n Ember.oldMethod = deprecateFunc('Please use the new, updated method', options, 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 `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\n setDebugFunction('deprecateFunc', function deprecateFunc(...args) {\n if (args.length === 3) {\n let [message, options, func] = args;\n return function (...args) {\n deprecate(message, false, options);\n return func.apply(this, args);\n };\n } else {\n let [message, func] = args;\n return function () {\n deprecate(message);\n return func.apply(this, arguments);\n };\n }\n });\n /**\n @module @ember/debug\n @public\n */\n\n /**\n Run a function meant for debugging.\n Calls to this function are removed from production builds, so they can be\n freely added for documentation and debugging purposes without worries of\n incuring any performance penalty.\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\n setDebugFunction('runInDebug', function runInDebug(func) {\n func();\n });\n setDebugFunction('debugSeal', function debugSeal(obj) {\n Object.seal(obj);\n });\n setDebugFunction('debugFreeze', function debugFreeze(obj) {\n // re-freezing an already frozen object introduces a significant\n // performance penalty on Chrome (tested through 59).\n //\n // See: https://bugs.chromium.org/p/v8/issues/detail?id=6450\n if (!Object.isFrozen(obj)) {\n Object.freeze(obj);\n }\n });\n setDebugFunction('deprecate', _deprecate2.default);\n setDebugFunction('warn', _warn2.default);\n }\n\n let _warnIfUsingStrippedFeatureFlags;\n\n _exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags;\n\n if (_env.DEBUG && !(0, _testing.isTesting)()) {\n if (typeof window !== 'undefined' && (_browserEnvironment.isFirefox || _browserEnvironment.isChrome) && window.addEventListener) {\n window.addEventListener('load', () => {\n if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) {\n let downloadURL;\n\n if (_browserEnvironment.isChrome) {\n downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi';\n } else if (_browserEnvironment.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});","enifed(\"@ember/debug/lib/deprecate\", [\"exports\", \"@ember/-internals/environment\", \"@glimmer/env\", \"@ember/debug/index\", \"@ember/debug/lib/handlers\"], function (_exports, _environment, _env, _index, _handlers) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.missingOptionsUntilDeprecation = _exports.missingOptionsIdDeprecation = _exports.missingOptionsDeprecation = _exports.registerHandler = _exports.default = void 0;\n\n /**\n @module @ember/debug\n @public\n */\n\n /**\n Allows for runtime registration of handler functions that override the default deprecation behavior.\n Deprecations are invoked by calls to [@ember/application/deprecations/deprecate](https://emberjs.com/api/ember/release/classes/@ember%2Fapplication%2Fdeprecations/methods/deprecate?anchor=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 import { registerDeprecationHandler } from '@ember/debug';\n \n 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 \n message
- The message received from the deprecation call. \n options
- An object passed in with the deprecation call containing additional information including: \n \n id
- An id of the deprecation in the form of package-name.specific-deprecation
. \n until
- The Ember version number the feature and deprecation will be removed in. \n \n next
- A function that calls into the previously registered handler. \n \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 let registerHandler = () => {};\n\n _exports.registerHandler = registerHandler;\n let missingOptionsDeprecation;\n _exports.missingOptionsDeprecation = missingOptionsDeprecation;\n let missingOptionsIdDeprecation;\n _exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation;\n let missingOptionsUntilDeprecation;\n _exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation;\n\n let deprecate = () => {};\n\n if (_env.DEBUG) {\n _exports.registerHandler = registerHandler = function registerHandler(handler) {\n (0, _handlers.registerHandler)('deprecate', handler);\n };\n\n let formatMessage = function formatMessage(_message, options) {\n let 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 let updatedMessage = formatMessage(message, options);\n console.warn(\"DEPRECATION: \" + updatedMessage); // eslint-disable-line no-console\n });\n let captureErrorForStack;\n\n if (new Error().stack) {\n captureErrorForStack = () => new Error();\n } else {\n captureErrorForStack = () => {\n try {\n __fail__.fail();\n } catch (e) {\n return e;\n }\n };\n }\n\n registerHandler(function logDeprecationStackTrace(message, options, next) {\n if (_environment.ENV.LOG_STACKTRACE_ON_DEPRECATION) {\n let stackStr = '';\n let error = captureErrorForStack();\n let stack;\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.\\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 let updatedMessage = formatMessage(message, options);\n console.warn(\"DEPRECATION: \" + updatedMessage + stackStr); // eslint-disable-line no-console\n } else {\n next(message, options);\n }\n });\n registerHandler(function raiseOnDeprecation(message, options, next) {\n if (_environment.ENV.RAISE_ON_DEPRECATION) {\n let updatedMessage = formatMessage(message);\n throw new Error(updatedMessage);\n } else {\n next(message, options);\n }\n });\n _exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `deprecate` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include `id` and `until` properties.';\n _exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `deprecate` you must provide `id` in options.';\n _exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation = 'When calling `deprecate` you must provide `until` in options.';\n /**\n @module @ember/application\n @public\n */\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\n deprecate = function deprecate(message, test, options) {\n (0, _index.assert)(missingOptionsDeprecation, Boolean(options && (options.id || options.until)));\n (0, _index.assert)(missingOptionsIdDeprecation, Boolean(options.id));\n (0, _index.assert)(missingOptionsUntilDeprecation, Boolean(options.until));\n (0, _handlers.invoke)('deprecate', message, test, options);\n };\n }\n\n var _default = deprecate;\n _exports.default = _default;\n});","enifed(\"@ember/debug/lib/handlers\", [\"exports\", \"@glimmer/env\"], function (_exports, _env) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.invoke = _exports.registerHandler = _exports.HANDLERS = void 0;\n let HANDLERS = {};\n _exports.HANDLERS = HANDLERS;\n\n let registerHandler = () => {};\n\n _exports.registerHandler = registerHandler;\n\n let invoke = () => {};\n\n _exports.invoke = invoke;\n\n if (_env.DEBUG) {\n _exports.registerHandler = registerHandler = function registerHandler(type, callback) {\n let nextHandler = HANDLERS[type] || (() => {});\n\n HANDLERS[type] = (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 let handlerForType = HANDLERS[type];\n\n if (handlerForType) {\n handlerForType(message, options);\n }\n };\n }\n});","enifed(\"@ember/debug/lib/testing\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isTesting = isTesting;\n _exports.setTesting = setTesting;\n let testing = false;\n\n function isTesting() {\n return testing;\n }\n\n function setTesting(value) {\n testing = Boolean(value);\n }\n});","enifed(\"@ember/debug/lib/warn\", [\"exports\", \"@glimmer/env\", \"@ember/debug/index\", \"@ember/debug/lib/handlers\"], function (_exports, _env, _index, _handlers) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.missingOptionsDeprecation = _exports.missingOptionsIdDeprecation = _exports.registerHandler = _exports.default = void 0;\n\n let registerHandler = () => {};\n\n _exports.registerHandler = registerHandler;\n\n let warn = () => {};\n\n let missingOptionsDeprecation;\n _exports.missingOptionsDeprecation = missingOptionsDeprecation;\n let missingOptionsIdDeprecation;\n /**\n @module @ember/debug\n */\n\n _exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation;\n\n if (_env.DEBUG) {\n /**\n Allows for runtime registration of handler functions that override the default warning behavior.\n Warnings are invoked by calls made to [@ember/debug/warn](https://emberjs.com/api/ember/release/classes/@ember%2Fdebug/methods/warn?anchor=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 \n message
- The message received from the warn call. \n options
- An object passed in with the warn call containing additional information including: \n \n id
- An id of the warning in the form of package-name.specific-warning
. \n \n next
- A function that calls into the previously registered handler. \n \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) {\n /* eslint-disable no-console */\n console.warn(\"WARNING: \" + message);\n /* eslint-enable no-console */\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 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 ```javascript\n import { warn } from '@ember/debug';\n import tomsterCount from './tomster-counter'; // a module in my project\n // Log a warning if we have more than 3 tomsters\n warn('Too many tomsters!', tomsterCount <= 3, {\n id: 'ember-debug.too-many-tomsters'\n });\n ```\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\n warn = function warn(message, test, options) {\n if (arguments.length === 2 && typeof test === 'object') {\n options = test;\n test = false;\n }\n\n (0, _index.assert)(missingOptionsDeprecation, Boolean(options));\n (0, _index.assert)(missingOptionsIdDeprecation, Boolean(options && options.id));\n (0, _handlers.invoke)('warn', message, test, options);\n };\n }\n\n var _default = warn;\n _exports.default = _default;\n});","enifed(\"@ember/debug/tests/handlers-test\", [\"@ember/debug/lib/handlers\", \"internal-test-helpers\"], function (_handlers, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember-debug: registerHandler', class extends _internalTestHelpers.AbstractTestCase {\n teardown() {\n delete _handlers.HANDLERS.blarz;\n }\n\n ['@test calls handler on `invoke` when `falsey`'](assert) {\n assert.expect(2);\n\n function handler(message) {\n assert.ok(true, 'called handler');\n assert.equal(message, 'Foo bar');\n }\n\n (0, _handlers.registerHandler)('blarz', handler);\n (0, _handlers.invoke)('blarz', 'Foo bar', false);\n }\n\n ['@test does not call handler on `invoke` when `truthy`'](assert) {\n assert.expect(0);\n\n function handler() {\n assert.ok(false, 'called handler');\n }\n\n (0, _handlers.registerHandler)('blarz', handler);\n (0, _handlers.invoke)('blarz', 'Foo bar', true);\n }\n\n ['@test calling `invoke` without handlers does not throw an error'](assert) {\n assert.expect(0);\n (0, _handlers.invoke)('blarz', 'Foo bar', false);\n }\n\n ['@test invoking `next` argument calls the next handler'](assert) {\n assert.expect(2);\n\n function handler1() {\n assert.ok(true, 'called handler1');\n }\n\n function handler2(message, options, next) {\n assert.ok(true, 'called handler2');\n next(message, options);\n }\n\n (0, _handlers.registerHandler)('blarz', handler1);\n (0, _handlers.registerHandler)('blarz', handler2);\n (0, _handlers.invoke)('blarz', 'Foo', false);\n }\n\n ['@test invoking `next` when no other handlers exists does not error'](assert) {\n assert.expect(1);\n\n function handler(message, options, next) {\n assert.ok(true, 'called handler1');\n next(message, options);\n }\n\n (0, _handlers.registerHandler)('blarz', handler);\n (0, _handlers.invoke)('blarz', 'Foo', false);\n }\n\n ['@test handlers are called in the proper order'](assert) {\n assert.expect(11);\n let expectedMessage = 'This is the message';\n let expectedOptions = {\n id: 'foo-bar'\n };\n let expected = ['first', 'second', 'third', 'fourth', 'fifth'];\n let actualCalls = [];\n\n function generateHandler(item) {\n return function (message, options, next) {\n assert.equal(message, expectedMessage, \"message supplied to \" + item + \" handler is correct\");\n assert.equal(options, expectedOptions, \"options supplied to \" + item + \" handler is correct\");\n actualCalls.push(item);\n next(message, options);\n };\n }\n\n expected.forEach(item => (0, _handlers.registerHandler)('blarz', generateHandler(item)));\n (0, _handlers.invoke)('blarz', expectedMessage, false, expectedOptions);\n assert.deepEqual(actualCalls, expected.reverse(), 'handlers were called in proper order');\n }\n\n ['@test not invoking `next` prevents further handlers from being called'](assert) {\n assert.expect(1);\n\n function handler1() {\n assert.ok(false, 'called handler1');\n }\n\n function handler2() {\n assert.ok(true, 'called handler2');\n }\n\n (0, _handlers.registerHandler)('blarz', handler1);\n (0, _handlers.registerHandler)('blarz', handler2);\n (0, _handlers.invoke)('blarz', 'Foo', false);\n }\n\n ['@test handlers can call `next` with custom message and/or options'](assert) {\n assert.expect(4);\n let initialMessage = 'initial message';\n let initialOptions = {\n id: 'initial-options'\n };\n let handler2Message = 'Handler2 Message';\n let handler2Options = {\n id: 'handler-2'\n };\n\n function handler1(message, options) {\n assert.equal(message, handler2Message, 'handler2 message provided to handler1');\n assert.equal(options, handler2Options, 'handler2 options provided to handler1');\n }\n\n function handler2(message, options, next) {\n assert.equal(message, initialMessage, 'initial message provided to handler2');\n assert.equal(options, initialOptions, 'initial options proivided to handler2');\n next(handler2Message, handler2Options);\n }\n\n (0, _handlers.registerHandler)('blarz', handler1);\n (0, _handlers.registerHandler)('blarz', handler2);\n (0, _handlers.invoke)('blarz', initialMessage, false, initialOptions);\n }\n\n });\n});","enifed(\"@ember/debug/tests/main_test\", [\"@ember/-internals/environment\", \"@ember/-internals/runtime\", \"@ember/debug/lib/handlers\", \"@ember/debug/lib/deprecate\", \"@ember/debug/lib/warn\", \"@ember/debug/index\", \"internal-test-helpers\"], function (_environment, _runtime, _handlers, _deprecate, _warn, _index, _internalTestHelpers) {\n \"use strict\";\n\n let originalEnvValue;\n let originalDeprecateHandler;\n let originalWarnHandler;\n const originalConsoleWarn = console.warn; // eslint-disable-line no-console\n\n const noop = function () {};\n\n (0, _internalTestHelpers.moduleFor)('ember-debug', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n originalEnvValue = _environment.ENV.RAISE_ON_DEPRECATION;\n originalDeprecateHandler = _handlers.HANDLERS.deprecate;\n originalWarnHandler = _handlers.HANDLERS.warn;\n _environment.ENV.RAISE_ON_DEPRECATION = true;\n }\n\n teardown() {\n _handlers.HANDLERS.deprecate = originalDeprecateHandler;\n _handlers.HANDLERS.warn = originalWarnHandler;\n _environment.ENV.RAISE_ON_DEPRECATION = originalEnvValue;\n }\n\n afterEach() {\n console.warn = originalConsoleWarn; // eslint-disable-line no-console\n }\n\n ['@test deprecate does not throw if RAISE_ON_DEPRECATION is false'](assert) {\n assert.expect(1);\n console.warn = noop; // eslint-disable-line no-console\n\n _environment.ENV.RAISE_ON_DEPRECATION = false;\n\n try {\n (0, _index.deprecate)('Should not throw', false, {\n id: 'test',\n until: 'forever'\n });\n assert.ok(true, 'deprecate did not throw');\n } catch (e) {\n assert.ok(false, \"Expected deprecate not to throw but it did: \" + e.message);\n }\n }\n\n ['@test deprecate resets deprecation level to RAISE if ENV.RAISE_ON_DEPRECATION is set'](assert) {\n assert.expect(2);\n console.warn = noop; // eslint-disable-line no-console\n\n _environment.ENV.RAISE_ON_DEPRECATION = false;\n\n try {\n (0, _index.deprecate)('Should not throw', false, {\n id: 'test',\n until: 'forever'\n });\n assert.ok(true, 'deprecate did not throw');\n } catch (e) {\n assert.ok(false, \"Expected deprecate not to throw but it did: \" + e.message);\n }\n\n _environment.ENV.RAISE_ON_DEPRECATION = true;\n assert.throws(() => {\n (0, _index.deprecate)('Should throw', false, {\n id: 'test',\n until: 'forever'\n });\n }, /Should throw/);\n }\n\n ['@test When ENV.RAISE_ON_DEPRECATION is true, it is still possible to silence a deprecation by id'](assert) {\n assert.expect(3);\n _environment.ENV.RAISE_ON_DEPRECATION = true;\n (0, _deprecate.registerHandler)(function (message, options, next) {\n if (!options || options.id !== 'my-deprecation') {\n next(...arguments);\n }\n });\n\n try {\n (0, _index.deprecate)('should be silenced with matching id', false, {\n id: 'my-deprecation',\n until: 'forever'\n });\n assert.ok(true, 'Did not throw when level is set by id');\n } catch (e) {\n assert.ok(false, \"Expected deprecate not to throw but it did: \" + e.message);\n }\n\n assert.throws(() => {\n (0, _index.deprecate)('Should throw with no matching id', false, {\n id: 'test',\n until: 'forever'\n });\n }, /Should throw with no matching id/);\n assert.throws(() => {\n (0, _index.deprecate)('Should throw with non-matching id', false, {\n id: 'other-id',\n until: 'forever'\n });\n }, /Should throw with non-matching id/);\n }\n\n ['@test deprecate throws deprecation if second argument is falsy'](assert) {\n assert.expect(3);\n assert.throws(() => (0, _index.deprecate)('Deprecation is thrown', false, {\n id: 'test',\n until: 'forever'\n }));\n assert.throws(() => (0, _index.deprecate)('Deprecation is thrown', '', {\n id: 'test',\n until: 'forever'\n }));\n assert.throws(() => (0, _index.deprecate)('Deprecation is thrown', 0, {\n id: 'test',\n until: 'forever'\n }));\n }\n\n ['@test deprecate does not invoke a function as the second argument'](assert) {\n assert.expect(1);\n (0, _index.deprecate)('Deprecation is thrown', function () {\n assert.ok(false, 'this function should not be invoked');\n }, {\n id: 'test',\n until: 'forever'\n });\n assert.ok(true, 'deprecations were not thrown');\n }\n\n ['@test deprecate does not throw deprecations if second argument is truthy'](assert) {\n assert.expect(1);\n (0, _index.deprecate)('Deprecation is thrown', true, {\n id: 'test',\n until: 'forever'\n });\n (0, _index.deprecate)('Deprecation is thrown', '1', {\n id: 'test',\n until: 'forever'\n });\n (0, _index.deprecate)('Deprecation is thrown', 1, {\n id: 'test',\n until: 'forever'\n });\n assert.ok(true, 'deprecations were not thrown');\n }\n\n ['@test assert throws if second argument is falsy'](assert) {\n assert.expect(3);\n assert.throws(() => (0, _index.assert)('Assertion is thrown', false));\n assert.throws(() => (0, _index.assert)('Assertion is thrown', ''));\n assert.throws(() => (0, _index.assert)('Assertion is thrown', 0));\n }\n\n ['@test assert does not throw if second argument is a function'](assert) {\n assert.expect(1);\n (0, _index.assert)('Assertion is thrown', () => true);\n assert.ok(true, 'assertions were not thrown');\n }\n\n ['@test assert does not throw if second argument is falsy'](assert) {\n assert.expect(1);\n (0, _index.assert)('Assertion is thrown', true);\n (0, _index.assert)('Assertion is thrown', '1');\n (0, _index.assert)('Assertion is thrown', 1);\n assert.ok(true, 'assertions were not thrown');\n }\n\n ['@test assert does not throw if second argument is an object'](assert) {\n assert.expect(1);\n\n let Igor = _runtime.Object.extend();\n\n (0, _index.assert)('is truthy', Igor);\n (0, _index.assert)('is truthy', Igor.create());\n assert.ok(true, 'assertions were not thrown');\n }\n\n ['@test deprecate does not throw a deprecation at log and silence'](assert) {\n assert.expect(4);\n let id = 'ABC';\n let until = 'forever';\n let shouldThrow = false;\n (0, _deprecate.registerHandler)(function (message, options) {\n if (options && options.id === id) {\n if (shouldThrow) {\n throw new Error(message);\n }\n }\n });\n\n try {\n (0, _index.deprecate)('Deprecation for testing purposes', false, {\n id,\n until\n });\n assert.ok(true, 'Deprecation did not throw');\n } catch (e) {\n assert.ok(false, 'Deprecation was thrown despite being added to blacklist');\n }\n\n try {\n (0, _index.deprecate)('Deprecation for testing purposes', false, {\n id,\n until\n });\n assert.ok(true, 'Deprecation did not throw');\n } catch (e) {\n assert.ok(false, 'Deprecation was thrown despite being added to blacklist');\n }\n\n shouldThrow = true;\n assert.throws(function () {\n (0, _index.deprecate)('Deprecation is thrown', false, {\n id,\n until\n });\n });\n assert.throws(function () {\n (0, _index.deprecate)('Deprecation is thrown', false, {\n id,\n until\n });\n });\n }\n\n ['@test deprecate without options triggers an assertion'](assert) {\n assert.expect(2);\n assert.throws(() => (0, _index.deprecate)('foo'), new RegExp(_deprecate.missingOptionsDeprecation), 'proper assertion is triggered when options is missing');\n assert.throws(() => (0, _index.deprecate)('foo', false, {}), new RegExp(_deprecate.missingOptionsDeprecation), 'proper assertion is triggered when options is missing');\n }\n\n ['@test deprecate without options.id triggers an assertion'](assert) {\n assert.expect(1);\n assert.throws(() => (0, _index.deprecate)('foo', false, {\n until: 'forever'\n }), new RegExp(_deprecate.missingOptionsIdDeprecation), 'proper assertion is triggered when options.id is missing');\n }\n\n ['@test deprecate without options.until triggers an assertion'](assert) {\n assert.expect(1);\n assert.throws(() => (0, _index.deprecate)('foo', false, {\n id: 'test'\n }), new RegExp(_deprecate.missingOptionsUntilDeprecation), 'proper assertion is triggered when options.until is missing');\n }\n\n ['@test warn without options triggers an assert'](assert) {\n assert.expect(1);\n assert.throws(() => (0, _index.warn)('foo'), new RegExp(_warn.missingOptionsDeprecation), 'deprecation is triggered when options is missing');\n }\n\n ['@test warn without options.id triggers an assertion'](assert) {\n assert.expect(1);\n assert.throws(() => (0, _index.warn)('foo', false, {}), new RegExp(_warn.missingOptionsIdDeprecation), 'deprecation is triggered when options is missing');\n }\n\n ['@test warn without options.id nor test triggers an assertion'](assert) {\n assert.expect(1);\n assert.throws(() => (0, _index.warn)('foo', {}), new RegExp(_warn.missingOptionsIdDeprecation), 'deprecation is triggered when options is missing');\n }\n\n ['@test warn without test but with options does not trigger an assertion'](assert) {\n assert.expect(1);\n (0, _warn.registerHandler)(function (message) {\n assert.equal(message, 'foo', 'warning was triggered');\n });\n (0, _index.warn)('foo', {\n id: 'ember-debug.do-not-raise'\n });\n }\n\n });\n});","enifed(\"@ember/deprecated-features/index\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.APP_CTRL_ROUTER_PROPS = _exports.ALIAS_METHOD = _exports.JQUERY_INTEGRATION = _exports.COMPONENT_MANAGER_STRING_LOOKUP = _exports.ROUTER_EVENTS = _exports.MERGE = _exports.LOGGER = _exports.RUN_SYNC = _exports.EMBER_EXTEND_PROTOTYPES = _exports.SEND_ACTION = void 0;\n\n /* eslint-disable no-implicit-coercion */\n // These versions should be the version that the deprecation was _introduced_,\n // not the version that the feature will be removed.\n const SEND_ACTION = !!'3.4.0';\n _exports.SEND_ACTION = SEND_ACTION;\n const EMBER_EXTEND_PROTOTYPES = !!'3.2.0-beta.5';\n _exports.EMBER_EXTEND_PROTOTYPES = EMBER_EXTEND_PROTOTYPES;\n const RUN_SYNC = !!'3.0.0-beta.4';\n _exports.RUN_SYNC = RUN_SYNC;\n const LOGGER = !!'3.2.0-beta.1';\n _exports.LOGGER = LOGGER;\n const MERGE = !!'3.6.0-beta.1';\n _exports.MERGE = MERGE;\n const ROUTER_EVENTS = !!'4.0.0';\n _exports.ROUTER_EVENTS = ROUTER_EVENTS;\n const COMPONENT_MANAGER_STRING_LOOKUP = !!'3.8.0';\n _exports.COMPONENT_MANAGER_STRING_LOOKUP = COMPONENT_MANAGER_STRING_LOOKUP;\n const JQUERY_INTEGRATION = !!'3.9.0';\n _exports.JQUERY_INTEGRATION = JQUERY_INTEGRATION;\n const ALIAS_METHOD = !!'3.9.0';\n _exports.ALIAS_METHOD = ALIAS_METHOD;\n const APP_CTRL_ROUTER_PROPS = !!'3.10.0';\n _exports.APP_CTRL_ROUTER_PROPS = APP_CTRL_ROUTER_PROPS;\n});","enifed(\"@ember/engine/index\", [\"exports\", \"@ember/engine/lib/engine-parent\", \"@ember/-internals/utils\", \"@ember/controller\", \"@ember/-internals/runtime\", \"@ember/-internals/container\", \"dag-map\", \"@ember/debug\", \"@ember/-internals/metal\", \"@ember/application/globals-resolver\", \"@ember/engine/instance\", \"@ember/-internals/routing\", \"@ember/-internals/extension-support\", \"@ember/-internals/views\", \"@ember/-internals/glimmer\"], function (_exports, _engineParent, _utils, _controller, _runtime, _container, _dagMap, _debug, _metal, _globalsResolver, _instance, _routing, _extensionSupport, _views, _glimmer) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = _exports.setEngineParent = _exports.getEngineParent = void 0;\n _exports.getEngineParent = _engineParent.getEngineParent;\n _exports.setEngineParent = _engineParent.setEngineParent;\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"-bucket-cache:main\"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"-bucket-cache:main\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n function props(obj) {\n let properties = [];\n\n for (let key in obj) {\n properties.push(key);\n }\n\n return properties;\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\n\n const Engine = _runtime.Namespace.extend(_runtime.RegistryProxyMixin, {\n init() {\n this._super(...arguments);\n\n this.buildRegistry();\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 /**\n Ensure that initializers are run once, and only once, per engine.\n @private\n @method ensureInitializers\n */\n ensureInitializers() {\n if (!this._initializersRan) {\n this.runInitializers();\n this._initializersRan = true;\n }\n },\n\n /**\n Create an EngineInstance for this engine.\n @public\n @method buildInstance\n @return {EngineInstance} the engine instance\n */\n buildInstance(options = {}) {\n this.ensureInitializers();\n options.base = this;\n return _instance.default.create(options);\n },\n\n /**\n Build and configure the registry for the current engine.\n @private\n @method buildRegistry\n @return {Ember.Registry} the configured registry\n */\n buildRegistry() {\n let registry = this.__registry__ = this.constructor.buildRegistry(this);\n return registry;\n },\n\n /**\n @private\n @method initializer\n */\n initializer(options) {\n this.constructor.initializer(options);\n },\n\n /**\n @private\n @method instanceInitializer\n */\n instanceInitializer(options) {\n this.constructor.instanceInitializer(options);\n },\n\n /**\n @private\n @method runInitializers\n */\n runInitializers() {\n this._runInitializer('initializers', (name, initializer) => {\n (0, _debug.assert)(\"No application initializer named '\" + name + \"'\", Boolean(initializer));\n initializer.initialize(this);\n });\n },\n\n /**\n @private\n @since 1.12.0\n @method runInstanceInitializers\n */\n runInstanceInitializers(instance) {\n this._runInitializer('instanceInitializers', (name, initializer) => {\n (0, _debug.assert)(\"No instance initializer named '\" + name + \"'\", Boolean(initializer));\n initializer.initialize(instance);\n });\n },\n\n _runInitializer(bucketName, cb) {\n let initializersByName = (0, _metal.get)(this.constructor, bucketName);\n let initializers = props(initializersByName);\n let graph = new _dagMap.default();\n let initializer;\n\n for (let 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\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 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 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 /**\n This creates a registry with the default Ember naming conventions.\n It also configures the registry:\n * registered views are created every time they are looked up (they are\n not singletons)\n * registered templates are not factories; the registered value is\n returned directly.\n * the router receives the application as its `namespace` property\n * all controllers receive the router as their `target` and `controllers`\n properties\n * all controllers receive the application as their `namespace` property\n * the application view receives the application controller as its\n `controller` property\n * the application view receives the application template as its\n `defaultTemplate` property\n @method buildRegistry\n @static\n @param {Application} namespace the application for which to\n build the registry\n @return {Ember.Registry} the built registry\n @private\n */\n buildRegistry(namespace) {\n let registry = new _container.Registry({\n resolver: resolverFor(namespace)\n });\n registry.set = _metal.set;\n registry.register('application:main', namespace, {\n instantiate: false\n });\n commonSetupRegistry(registry);\n (0, _glimmer.setupEngineRegistry)(registry);\n return registry;\n },\n\n /**\n Set this to provide an alternate class to `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 `DefaultResolver`\n @property resolver\n @public\n */\n Resolver: null\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\n function resolverFor(namespace) {\n let ResolverClass = (0, _metal.get)(namespace, 'Resolver') || _globalsResolver.default;\n\n let props = {\n namespace\n };\n return ResolverClass.create(props);\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 let attrs = {};\n attrs[bucketName] = Object.create(this[bucketName]);\n this.reopenClass(attrs);\n }\n\n (0, _debug.assert)(\"The \" + humanName + \" '\" + initializer.name + \"' has already been registered\", !this[bucketName][initializer.name]);\n (0, _debug.assert)(\"An \" + humanName + \" cannot be registered without an initialize function\", (0, _utils.canInvoke)(initializer, 'initialize'));\n (0, _debug.assert)(\"An \" + humanName + \" cannot be registered without a name property\", initializer.name !== undefined);\n this[bucketName][initializer.name] = initializer;\n };\n }\n\n function commonSetupRegistry(registry) {\n registry.optionsForType('component', {\n singleton: false\n });\n registry.optionsForType('view', {\n singleton: false\n });\n registry.register('controller:basic', _controller.default, {\n instantiate: false\n });\n registry.injection('view', '_viewRegistry', '-view-registry:main');\n registry.injection('renderer', '_viewRegistry', '-view-registry:main');\n registry.injection('route', '_topLevelViewTemplate', 'template:-outlet');\n registry.injection('view:-outlet', 'namespace', 'application:main');\n registry.injection('controller', 'target', 'router:main');\n registry.injection('controller', 'namespace', 'application:main');\n registry.injection('router', '_bucketCache', (0, _container.privatize)(_templateObject()));\n registry.injection('route', '_bucketCache', (0, _container.privatize)(_templateObject2()));\n registry.injection('route', '_router', 'router:main'); // Register the routing service...\n\n registry.register('service:-routing', _routing.RoutingService); // Then inject the app router into it\n\n registry.injection('service:-routing', 'router', 'router:main'); // DEBUGGING\n\n registry.register('resolver-for-debugging:main', registry.resolver, {\n instantiate: false\n });\n registry.injection('container-debug-adapter:main', 'resolver', 'resolver-for-debugging:main');\n registry.injection('data-adapter:main', 'containerDebugAdapter', 'container-debug-adapter:main'); // Custom resolver authors may want to register their own ContainerDebugAdapter with this key\n\n registry.register('container-debug-adapter:main', _extensionSupport.ContainerDebugAdapter);\n registry.register('component-lookup:main', _views.ComponentLookup);\n }\n\n var _default = Engine;\n _exports.default = _default;\n});","enifed(\"@ember/engine/instance\", [\"exports\", \"@ember/-internals/utils\", \"@ember/-internals/runtime\", \"@ember/debug\", \"@ember/error\", \"@ember/-internals/container\", \"@ember/engine/lib/engine-parent\"], function (_exports, _utils, _runtime, _debug, _error, _container, _engineParent) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"template-compiler:main\"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"-bucket-cache:main\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\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 const EngineInstance = _runtime.Object.extend(_runtime.RegistryProxyMixin, _runtime.ContainerProxyMixin, {\n /**\n The base `Engine` for which this is an instance.\n @property {Engine} engine\n @private\n */\n base: null,\n\n init() {\n this._super(...arguments);\n\n (0, _utils.guidFor)(this);\n let base = this.base;\n\n if (!base) {\n base = this.application;\n this.base = base;\n } // Create a per-instance registry that will use the application's registry\n // as a fallback for resolving registrations.\n\n\n let registry = this.__registry__ = new _container.Registry({\n fallback: base.__registry__\n }); // Create a per-instance container from the instance's registry\n\n this.__container__ = registry.container({\n owner: this\n });\n this._booted = false;\n },\n\n /**\n Initialize the `EngineInstance` and return a promise that resolves\n with the instance itself when the boot process is complete.\n The primary task here is to run any registered instance initializers.\n See the documentation on `BootOptions` for the options it takes.\n @public\n @method boot\n @param options {Object}\n @return {Promise}\n */\n boot(options) {\n if (this._bootPromise) {\n return this._bootPromise;\n }\n\n this._bootPromise = new _runtime.RSVP.Promise(resolve => resolve(this._bootSync(options)));\n return this._bootPromise;\n },\n\n /**\n Unfortunately, a lot of existing code assumes booting an instance is\n synchronous – specifically, a lot of tests assume the last call to\n `app.advanceReadiness()` or `app.reset()` will result in a new instance\n being fully-booted when the current runloop completes.\n We would like new code (like the `visit` API) to stop making this\n assumption, so we created the asynchronous version above that returns a\n promise. But until we have migrated all the code, we would have to expose\n this method for use *internally* in places where we need to boot an instance\n synchronously.\n @private\n */\n _bootSync(options) {\n if (this._booted) {\n return this;\n }\n\n (0, _debug.assert)(\"An engine instance's parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.\", (0, _engineParent.getEngineParent)(this));\n this.cloneParentDependencies();\n this.setupRegistry(options);\n this.base.runInstanceInitializers(this);\n this._booted = true;\n return this;\n },\n\n setupRegistry(options = this.__container__.lookup('-environment:main')) {\n this.constructor.setupRegistry(this.__registry__, options);\n },\n\n /**\n Unregister a factory.\n Overrides `RegistryProxy#unregister` in order to clear any cached instances\n of the unregistered factory.\n @public\n @method unregister\n @param {String} fullName\n */\n unregister(fullName) {\n this.__container__.reset(fullName);\n\n this._super(...arguments);\n },\n\n /**\n Build a new `EngineInstance` that's a child of this instance.\n Engines must be registered by name with their parent engine\n (or application).\n @private\n @method buildChildEngineInstance\n @param name {String} the registered name of the engine.\n @param options {Object} options provided to the engine instance.\n @return {EngineInstance,Error}\n */\n buildChildEngineInstance(name, options = {}) {\n let Engine = this.lookup(\"engine:\" + name);\n\n if (!Engine) {\n throw new _error.default(\"You attempted to mount the engine '\" + name + \"', but it is not registered with its parent.\");\n }\n\n let engineInstance = Engine.buildInstance(options);\n (0, _engineParent.setEngineParent)(engineInstance, this);\n return engineInstance;\n },\n\n /**\n Clone dependencies shared between an engine instance and its parent.\n @private\n @method cloneParentDependencies\n */\n cloneParentDependencies() {\n let parent = (0, _engineParent.getEngineParent)(this);\n let registrations = ['route:basic', 'service:-routing', 'service:-glimmer-environment'];\n registrations.forEach(key => this.register(key, parent.resolveRegistration(key)));\n let env = parent.lookup('-environment:main');\n this.register('-environment:main', env, {\n instantiate: false\n });\n let singletons = ['router:main', (0, _container.privatize)(_templateObject()), '-view-registry:main', \"renderer:-\" + (env.isInteractive ? 'dom' : 'inert'), 'service:-document', (0, _container.privatize)(_templateObject2())];\n\n if (env.isInteractive) {\n singletons.push('event_dispatcher:main');\n }\n\n singletons.forEach(key => this.register(key, parent.lookup(key), {\n instantiate: false\n }));\n this.inject('view', '_environment', '-environment:main');\n this.inject('route', '_environment', '-environment:main');\n }\n\n });\n\n EngineInstance.reopenClass({\n /**\n @private\n @method setupRegistry\n @param {Registry} registry\n @param {BootOptions} options\n */\n setupRegistry(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 var _default = EngineInstance;\n _exports.default = _default;\n});","enifed(\"@ember/engine/lib/engine-parent\", [\"exports\", \"@ember/-internals/utils\"], function (_exports, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.getEngineParent = getEngineParent;\n _exports.setEngineParent = setEngineParent;\n\n /**\n @module @ember/engine\n */\n const ENGINE_PARENT = (0, _utils.symbol)('ENGINE_PARENT');\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\n function getEngineParent(engine) {\n return engine[ENGINE_PARENT];\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\n\n function setEngineParent(engine, parent) {\n engine[ENGINE_PARENT] = parent;\n }\n});","enifed(\"@ember/engine/tests/engine_initializers_test\", [\"@ember/runloop\", \"@ember/engine\", \"internal-test-helpers\"], function (_runloop, _engine, _internalTestHelpers) {\n \"use strict\";\n\n let MyEngine, myEngine, myEngineInstance;\n (0, _internalTestHelpers.moduleFor)('Engine initializers', class extends _internalTestHelpers.AbstractTestCase {\n teardown() {\n (0, _runloop.run)(() => {\n if (myEngineInstance) {\n myEngineInstance.destroy();\n myEngineInstance = null;\n }\n\n if (myEngine) {\n myEngine.destroy();\n myEngine = null;\n }\n });\n }\n\n [\"@test initializers require proper 'name' and 'initialize' properties\"]() {\n MyEngine = _engine.default.extend();\n expectAssertion(() => {\n (0, _runloop.run)(() => {\n MyEngine.initializer({\n name: 'initializer'\n });\n });\n });\n expectAssertion(() => {\n (0, _runloop.run)(() => {\n MyEngine.initializer({\n initialize() {}\n\n });\n });\n });\n }\n\n ['@test initializers are passed an Engine'](assert) {\n MyEngine = _engine.default.extend();\n MyEngine.initializer({\n name: 'initializer',\n\n initialize(engine) {\n assert.ok(engine instanceof _engine.default, 'initialize is passed an Engine');\n }\n\n });\n myEngine = MyEngine.create();\n myEngineInstance = myEngine.buildInstance();\n }\n\n ['@test initializers can be registered in a specified order'](assert) {\n let order = [];\n MyEngine = _engine.default.extend();\n MyEngine.initializer({\n name: 'fourth',\n after: 'third',\n\n initialize() {\n order.push('fourth');\n }\n\n });\n MyEngine.initializer({\n name: 'second',\n after: 'first',\n before: 'third',\n\n initialize() {\n order.push('second');\n }\n\n });\n MyEngine.initializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n\n initialize() {\n order.push('fifth');\n }\n\n });\n MyEngine.initializer({\n name: 'first',\n before: 'second',\n\n initialize() {\n order.push('first');\n }\n\n });\n MyEngine.initializer({\n name: 'third',\n\n initialize() {\n order.push('third');\n }\n\n });\n MyEngine.initializer({\n name: 'sixth',\n\n initialize() {\n order.push('sixth');\n }\n\n });\n myEngine = MyEngine.create();\n myEngineInstance = myEngine.buildInstance();\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n }\n\n ['@test initializers can be registered in a specified order as an array'](assert) {\n let order = [];\n MyEngine = _engine.default.extend();\n MyEngine.initializer({\n name: 'third',\n\n initialize() {\n order.push('third');\n }\n\n });\n MyEngine.initializer({\n name: 'second',\n after: 'first',\n before: ['third', 'fourth'],\n\n initialize() {\n order.push('second');\n }\n\n });\n MyEngine.initializer({\n name: 'fourth',\n after: ['second', 'third'],\n\n initialize() {\n order.push('fourth');\n }\n\n });\n MyEngine.initializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n\n initialize() {\n order.push('fifth');\n }\n\n });\n MyEngine.initializer({\n name: 'first',\n before: ['second'],\n\n initialize() {\n order.push('first');\n }\n\n });\n MyEngine.initializer({\n name: 'sixth',\n\n initialize() {\n order.push('sixth');\n }\n\n });\n myEngine = MyEngine.create();\n myEngineInstance = myEngine.buildInstance();\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n }\n\n ['@test initializers can have multiple dependencies'](assert) {\n let order = [];\n MyEngine = _engine.default.extend();\n let a = {\n name: 'a',\n before: 'b',\n\n initialize() {\n order.push('a');\n }\n\n };\n let b = {\n name: 'b',\n\n initialize() {\n order.push('b');\n }\n\n };\n let c = {\n name: 'c',\n after: 'b',\n\n initialize() {\n order.push('c');\n }\n\n };\n let afterB = {\n name: 'after b',\n after: 'b',\n\n initialize() {\n order.push('after b');\n }\n\n };\n let afterC = {\n name: 'after c',\n after: 'c',\n\n initialize() {\n order.push('after c');\n }\n\n };\n MyEngine.initializer(b);\n MyEngine.initializer(a);\n MyEngine.initializer(afterC);\n MyEngine.initializer(afterB);\n MyEngine.initializer(c);\n myEngine = MyEngine.create();\n myEngineInstance = myEngine.buildInstance();\n assert.ok(order.indexOf(a.name) < order.indexOf(b.name), 'a < b');\n assert.ok(order.indexOf(b.name) < order.indexOf(c.name), 'b < c');\n assert.ok(order.indexOf(b.name) < order.indexOf(afterB.name), 'b < afterB');\n assert.ok(order.indexOf(c.name) < order.indexOf(afterC.name), 'c < afterC');\n }\n\n ['@test initializers set on Engine subclasses are not shared between engines'](assert) {\n let firstInitializerRunCount = 0;\n let secondInitializerRunCount = 0;\n\n let FirstEngine = _engine.default.extend();\n\n FirstEngine.initializer({\n name: 'first',\n\n initialize() {\n firstInitializerRunCount++;\n }\n\n });\n\n let SecondEngine = _engine.default.extend();\n\n SecondEngine.initializer({\n name: 'second',\n\n initialize() {\n secondInitializerRunCount++;\n }\n\n });\n let firstEngine = FirstEngine.create();\n let firstEngineInstance = firstEngine.buildInstance();\n assert.equal(firstInitializerRunCount, 1, 'first initializer only was run');\n assert.equal(secondInitializerRunCount, 0, 'first initializer only was run');\n let secondEngine = SecondEngine.create();\n let secondEngineInstance = secondEngine.buildInstance();\n assert.equal(firstInitializerRunCount, 1, 'second initializer only was run');\n assert.equal(secondInitializerRunCount, 1, 'second initializer only was run');\n (0, _runloop.run)(function () {\n firstEngineInstance.destroy();\n secondEngineInstance.destroy();\n firstEngine.destroy();\n secondEngine.destroy();\n });\n }\n\n ['@test initializers are concatenated'](assert) {\n let firstInitializerRunCount = 0;\n let secondInitializerRunCount = 0;\n\n let FirstEngine = _engine.default.extend();\n\n FirstEngine.initializer({\n name: 'first',\n\n initialize() {\n firstInitializerRunCount++;\n }\n\n });\n let SecondEngine = FirstEngine.extend();\n SecondEngine.initializer({\n name: 'second',\n\n initialize() {\n secondInitializerRunCount++;\n }\n\n });\n let firstEngine = FirstEngine.create();\n let firstEngineInstance = firstEngine.buildInstance();\n assert.equal(firstInitializerRunCount, 1, 'first initializer only was run when base class created');\n assert.equal(secondInitializerRunCount, 0, 'second initializer was not run when first base class created');\n firstInitializerRunCount = 0;\n let secondEngine = SecondEngine.create();\n let secondEngineInstance = secondEngine.buildInstance();\n assert.equal(firstInitializerRunCount, 1, 'first initializer was run when subclass created');\n assert.equal(secondInitializerRunCount, 1, 'second initializers was run when subclass created');\n (0, _runloop.run)(function () {\n firstEngineInstance.destroy();\n secondEngineInstance.destroy();\n firstEngine.destroy();\n secondEngine.destroy();\n });\n }\n\n ['@test initializers are per-engine'](assert) {\n assert.expect(2);\n\n let FirstEngine = _engine.default.extend();\n\n FirstEngine.initializer({\n name: 'abc',\n\n initialize() {}\n\n });\n expectAssertion(function () {\n FirstEngine.initializer({\n name: 'abc',\n\n initialize() {}\n\n });\n });\n\n let SecondEngine = _engine.default.extend();\n\n SecondEngine.instanceInitializer({\n name: 'abc',\n\n initialize() {}\n\n });\n assert.ok(true, 'Two engines can have initializers named the same.');\n }\n\n ['@test initializers are executed in their own context'](assert) {\n assert.expect(1);\n MyEngine = _engine.default.extend();\n MyEngine.initializer({\n name: 'coolInitializer',\n myProperty: 'cool',\n\n initialize() {\n assert.equal(this.myProperty, 'cool', 'should have access to its own context');\n }\n\n });\n myEngine = MyEngine.create();\n myEngineInstance = myEngine.buildInstance();\n }\n\n });\n});","enifed(\"@ember/engine/tests/engine_instance_initializers_test\", [\"@ember/runloop\", \"@ember/engine\", \"@ember/engine/instance\", \"internal-test-helpers\"], function (_runloop, _engine, _instance, _internalTestHelpers) {\n \"use strict\";\n\n let MyEngine, myEngine, myEngineInstance;\n\n function buildEngineInstance(EngineClass) {\n let engineInstance = EngineClass.buildInstance();\n (0, _engine.setEngineParent)(engineInstance, {\n lookup() {\n return {};\n },\n\n resolveRegistration() {\n return {};\n }\n\n });\n return engineInstance;\n }\n\n (0, _internalTestHelpers.moduleFor)('Engine instance initializers', class extends _internalTestHelpers.AbstractTestCase {\n teardown() {\n super.teardown();\n (0, _runloop.run)(() => {\n if (myEngineInstance) {\n myEngineInstance.destroy();\n }\n\n if (myEngine) {\n myEngine.destroy();\n }\n });\n MyEngine = myEngine = myEngineInstance = undefined;\n }\n\n [\"@test initializers require proper 'name' and 'initialize' properties\"]() {\n MyEngine = _engine.default.extend();\n expectAssertion(() => {\n (0, _runloop.run)(() => {\n MyEngine.instanceInitializer({\n name: 'initializer'\n });\n });\n });\n expectAssertion(() => {\n (0, _runloop.run)(() => {\n MyEngine.instanceInitializer({\n initialize() {}\n\n });\n });\n });\n }\n\n ['@test initializers are passed an engine instance'](assert) {\n MyEngine = _engine.default.extend();\n MyEngine.instanceInitializer({\n name: 'initializer',\n\n initialize(instance) {\n assert.ok(instance instanceof _instance.default, 'initialize is passed an engine instance');\n }\n\n });\n myEngine = MyEngine.create();\n myEngineInstance = buildEngineInstance(myEngine);\n return myEngineInstance.boot();\n }\n\n ['@test initializers can be registered in a specified order'](assert) {\n let order = [];\n MyEngine = _engine.default.extend();\n MyEngine.instanceInitializer({\n name: 'fourth',\n after: 'third',\n\n initialize() {\n order.push('fourth');\n }\n\n });\n MyEngine.instanceInitializer({\n name: 'second',\n after: 'first',\n before: 'third',\n\n initialize() {\n order.push('second');\n }\n\n });\n MyEngine.instanceInitializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n\n initialize() {\n order.push('fifth');\n }\n\n });\n MyEngine.instanceInitializer({\n name: 'first',\n before: 'second',\n\n initialize() {\n order.push('first');\n }\n\n });\n MyEngine.instanceInitializer({\n name: 'third',\n\n initialize() {\n order.push('third');\n }\n\n });\n MyEngine.instanceInitializer({\n name: 'sixth',\n\n initialize() {\n order.push('sixth');\n }\n\n });\n myEngine = MyEngine.create();\n myEngineInstance = buildEngineInstance(myEngine);\n return myEngineInstance.boot().then(() => {\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n });\n }\n\n ['@test initializers can be registered in a specified order as an array'](assert) {\n let order = [];\n MyEngine = _engine.default.extend();\n MyEngine.instanceInitializer({\n name: 'third',\n\n initialize() {\n order.push('third');\n }\n\n });\n MyEngine.instanceInitializer({\n name: 'second',\n after: 'first',\n before: ['third', 'fourth'],\n\n initialize() {\n order.push('second');\n }\n\n });\n MyEngine.instanceInitializer({\n name: 'fourth',\n after: ['second', 'third'],\n\n initialize() {\n order.push('fourth');\n }\n\n });\n MyEngine.instanceInitializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n\n initialize() {\n order.push('fifth');\n }\n\n });\n MyEngine.instanceInitializer({\n name: 'first',\n before: ['second'],\n\n initialize() {\n order.push('first');\n }\n\n });\n MyEngine.instanceInitializer({\n name: 'sixth',\n\n initialize() {\n order.push('sixth');\n }\n\n });\n myEngine = MyEngine.create();\n myEngineInstance = buildEngineInstance(myEngine);\n return myEngineInstance.boot().then(() => {\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n });\n }\n\n ['@test initializers can have multiple dependencies'](assert) {\n let order = [];\n MyEngine = _engine.default.extend();\n let a = {\n name: 'a',\n before: 'b',\n\n initialize() {\n order.push('a');\n }\n\n };\n let b = {\n name: 'b',\n\n initialize() {\n order.push('b');\n }\n\n };\n let c = {\n name: 'c',\n after: 'b',\n\n initialize() {\n order.push('c');\n }\n\n };\n let afterB = {\n name: 'after b',\n after: 'b',\n\n initialize() {\n order.push('after b');\n }\n\n };\n let afterC = {\n name: 'after c',\n after: 'c',\n\n initialize() {\n order.push('after c');\n }\n\n };\n MyEngine.instanceInitializer(b);\n MyEngine.instanceInitializer(a);\n MyEngine.instanceInitializer(afterC);\n MyEngine.instanceInitializer(afterB);\n MyEngine.instanceInitializer(c);\n myEngine = MyEngine.create();\n myEngineInstance = buildEngineInstance(myEngine);\n return myEngineInstance.boot().then(() => {\n assert.ok(order.indexOf(a.name) < order.indexOf(b.name), 'a < b');\n assert.ok(order.indexOf(b.name) < order.indexOf(c.name), 'b < c');\n assert.ok(order.indexOf(b.name) < order.indexOf(afterB.name), 'b < afterB');\n assert.ok(order.indexOf(c.name) < order.indexOf(afterC.name), 'c < afterC');\n });\n }\n\n ['@test initializers set on Engine subclasses should not be shared between engines'](assert) {\n let firstInitializerRunCount = 0;\n let secondInitializerRunCount = 0;\n\n let FirstEngine = _engine.default.extend();\n\n let firstEngine, firstEngineInstance;\n FirstEngine.instanceInitializer({\n name: 'first',\n\n initialize() {\n firstInitializerRunCount++;\n }\n\n });\n\n let SecondEngine = _engine.default.extend();\n\n let secondEngine, secondEngineInstance;\n SecondEngine.instanceInitializer({\n name: 'second',\n\n initialize() {\n secondInitializerRunCount++;\n }\n\n });\n firstEngine = FirstEngine.create();\n firstEngineInstance = buildEngineInstance(firstEngine);\n return firstEngineInstance.boot().then(() => {\n assert.equal(firstInitializerRunCount, 1, 'first initializer only was run');\n assert.equal(secondInitializerRunCount, 0, 'first initializer only was run');\n secondEngine = SecondEngine.create();\n secondEngineInstance = buildEngineInstance(secondEngine);\n return secondEngineInstance.boot();\n }).then(() => {\n assert.equal(firstInitializerRunCount, 1, 'second initializer only was run');\n assert.equal(secondInitializerRunCount, 1, 'second initializer only was run');\n (0, _runloop.run)(() => {\n firstEngineInstance.destroy();\n secondEngineInstance.destroy();\n firstEngine.destroy();\n secondEngine.destroy();\n });\n });\n }\n\n ['@test initializers are concatenated'](assert) {\n let firstInitializerRunCount = 0;\n let secondInitializerRunCount = 0;\n\n let FirstEngine = _engine.default.extend();\n\n FirstEngine.instanceInitializer({\n name: 'first',\n\n initialize() {\n firstInitializerRunCount++;\n }\n\n });\n let SecondEngine = FirstEngine.extend();\n SecondEngine.instanceInitializer({\n name: 'second',\n\n initialize() {\n secondInitializerRunCount++;\n }\n\n });\n let firstEngine = FirstEngine.create();\n let firstEngineInstance = buildEngineInstance(firstEngine);\n let secondEngine, secondEngineInstance;\n return firstEngineInstance.boot().then(() => {\n assert.equal(firstInitializerRunCount, 1, 'first initializer only was run when base class created');\n assert.equal(secondInitializerRunCount, 0, 'second initializer was not run when first base class created');\n firstInitializerRunCount = 0;\n secondEngine = SecondEngine.create();\n secondEngineInstance = buildEngineInstance(secondEngine);\n return secondEngineInstance.boot();\n }).then(() => {\n assert.equal(firstInitializerRunCount, 1, 'first initializer was run when subclass created');\n assert.equal(secondInitializerRunCount, 1, 'second initializers was run when subclass created');\n (0, _runloop.run)(() => {\n firstEngineInstance.destroy();\n secondEngineInstance.destroy();\n firstEngine.destroy();\n secondEngine.destroy();\n });\n });\n }\n\n ['@test initializers are per-engine'](assert) {\n assert.expect(2);\n\n let FirstEngine = _engine.default.extend();\n\n FirstEngine.instanceInitializer({\n name: 'abc',\n\n initialize() {}\n\n });\n expectAssertion(() => {\n FirstEngine.instanceInitializer({\n name: 'abc',\n\n initialize() {}\n\n });\n });\n\n let SecondEngine = _engine.default.extend();\n\n SecondEngine.instanceInitializer({\n name: 'abc',\n\n initialize() {}\n\n });\n assert.ok(true, 'Two engines can have initializers named the same.');\n }\n\n ['@test initializers are executed in their own context'](assert) {\n assert.expect(1);\n\n let MyEngine = _engine.default.extend();\n\n MyEngine.instanceInitializer({\n name: 'coolInitializer',\n myProperty: 'cool',\n\n initialize() {\n assert.equal(this.myProperty, 'cool', 'should have access to its own context');\n }\n\n });\n myEngine = MyEngine.create();\n myEngineInstance = buildEngineInstance(myEngine);\n return myEngineInstance.boot();\n }\n\n });\n});","enifed(\"@ember/engine/tests/engine_instance_test\", [\"@ember/engine\", \"@ember/engine/instance\", \"@ember/runloop\", \"internal-test-helpers\"], function (_engine, _instance, _runloop, _internalTestHelpers) {\n \"use strict\";\n\n let engine, engineInstance;\n (0, _internalTestHelpers.moduleFor)('EngineInstance', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n (0, _runloop.run)(() => {\n engine = _engine.default.create({\n router: null\n });\n });\n }\n\n teardown() {\n if (engineInstance) {\n (0, _runloop.run)(engineInstance, 'destroy');\n engineInstance = undefined;\n }\n\n if (engine) {\n (0, _runloop.run)(engine, 'destroy');\n engine = undefined;\n }\n }\n\n ['@test an engine instance can be created based upon a base engine'](assert) {\n (0, _runloop.run)(() => {\n engineInstance = _instance.default.create({\n base: engine\n });\n });\n assert.ok(engineInstance, 'instance should be created');\n assert.equal(engineInstance.base, engine, 'base should be set to engine');\n }\n\n ['@test unregistering a factory clears all cached instances of that factory'](assert) {\n assert.expect(3);\n engineInstance = (0, _runloop.run)(() => _instance.default.create({\n base: engine\n }));\n let PostComponent = (0, _internalTestHelpers.factory)();\n engineInstance.register('component:post', PostComponent);\n let postComponent1 = engineInstance.lookup('component:post');\n assert.ok(postComponent1, 'lookup creates instance');\n engineInstance.unregister('component:post');\n engineInstance.register('component:post', PostComponent);\n let postComponent2 = engineInstance.lookup('component:post');\n assert.ok(postComponent2, 'lookup creates instance');\n assert.notStrictEqual(postComponent1, postComponent2, 'lookup creates a brand new instance because previous one was reset');\n }\n\n ['@test can be booted when its parent has been set'](assert) {\n assert.expect(3);\n engineInstance = (0, _runloop.run)(() => _instance.default.create({\n base: engine\n }));\n expectAssertion(() => {\n engineInstance._bootSync();\n }, \"An engine instance's parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.\");\n (0, _engine.setEngineParent)(engineInstance, {}); // Stub `cloneParentDependencies`, the internals of which are tested along\n // with application instances.\n\n engineInstance.cloneParentDependencies = function () {\n assert.ok(true, 'parent dependencies are cloned');\n };\n\n return engineInstance.boot().then(() => {\n assert.ok(true, 'boot successful');\n });\n }\n\n ['@test can build a child instance of a registered engine'](assert) {\n let ChatEngine = _engine.default.extend();\n\n let chatEngineInstance;\n engine.register('engine:chat', ChatEngine);\n (0, _runloop.run)(() => {\n engineInstance = _instance.default.create({\n base: engine\n }); // Try to build an unregistered engine.\n\n assert.throws(() => {\n engineInstance.buildChildEngineInstance('fake');\n }, \"You attempted to mount the engine 'fake', but it is not registered with its parent.\"); // Build the `chat` engine, registered above.\n\n chatEngineInstance = engineInstance.buildChildEngineInstance('chat');\n });\n assert.ok(chatEngineInstance, 'child engine instance successfully created');\n assert.strictEqual((0, _engine.getEngineParent)(chatEngineInstance), engineInstance, 'child engine instance is assigned the correct parent');\n }\n\n });\n});","enifed(\"@ember/engine/tests/engine_parent_test\", [\"@ember/engine\", \"internal-test-helpers\"], function (_engine, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('EngineParent', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test An engine's parent can be set with `setEngineParent` and retrieved with `getEngineParent`\"](assert) {\n let engine = {};\n let parent = {};\n assert.strictEqual((0, _engine.getEngineParent)(engine), undefined, 'parent has not been set');\n (0, _engine.setEngineParent)(engine, parent);\n assert.strictEqual((0, _engine.getEngineParent)(engine), parent, 'parent has been set');\n }\n\n });\n});","enifed(\"@ember/engine/tests/engine_test\", [\"@ember/-internals/environment\", \"@ember/canary-features\", \"@ember/runloop\", \"@ember/engine\", \"@ember/-internals/runtime\", \"@ember/-internals/container\", \"internal-test-helpers\"], function (_environment, _canaryFeatures, _runloop, _engine, _runtime, _container, _internalTestHelpers) {\n \"use strict\";\n\n function _templateObject4() {\n const data = _taggedTemplateLiteralLoose([\"template-compiler:main\"]);\n\n _templateObject4 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject3() {\n const data = _taggedTemplateLiteralLoose([\"template:components/-default\"]);\n\n _templateObject3 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject2() {\n const data = _taggedTemplateLiteralLoose([\"-bucket-cache:main\"]);\n\n _templateObject2 = function () {\n return data;\n };\n\n return data;\n }\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"-bucket-cache:main\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n let engine;\n let originalLookup = _environment.context.lookup;\n (0, _internalTestHelpers.moduleFor)('Engine', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n (0, _runloop.run)(() => {\n engine = _engine.default.create();\n _environment.context.lookup = {\n TestEngine: engine\n };\n });\n }\n\n teardown() {\n _environment.context.lookup = originalLookup;\n\n if (engine) {\n (0, _runloop.run)(engine, 'destroy');\n engine = null;\n }\n }\n\n ['@test acts like a namespace'](assert) {\n engine.Foo = _runtime.Object.extend();\n assert.equal(engine.Foo.toString(), 'TestEngine.Foo', 'Classes pick up their parent namespace');\n }\n\n ['@test builds a registry'](assert) {\n assert.strictEqual(engine.resolveRegistration('application:main'), engine, \"application:main is registered\");\n assert.deepEqual(engine.registeredOptionsForType('component'), {\n singleton: false\n }, \"optionsForType 'component'\");\n assert.deepEqual(engine.registeredOptionsForType('view'), {\n singleton: false\n }, \"optionsForType 'view'\");\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'controller:basic');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'view', '_viewRegistry', '-view-registry:main');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'route', '_topLevelViewTemplate', 'template:-outlet');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'view:-outlet', 'namespace', 'application:main');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'controller', 'target', 'router:main');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'controller', 'namespace', 'application:main');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'router', '_bucketCache', (0, _container.privatize)(_templateObject()));\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'route', '_bucketCache', (0, _container.privatize)(_templateObject2()));\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'route', '_router', 'router:main');\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'component:-text-field');\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'component:-checkbox');\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'component:link-to');\n\n if (_canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'component:textarea');\n } else {\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'component:-text-area');\n }\n\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'service:-routing');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'service:-routing', 'router', 'router:main'); // DEBUGGING\n\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'resolver-for-debugging:main');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'container-debug-adapter:main', 'resolver', 'resolver-for-debugging:main');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'data-adapter:main', 'containerDebugAdapter', 'container-debug-adapter:main');\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'container-debug-adapter:main');\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'component-lookup:main');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'service:-dom-changes', 'document', 'service:-document');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'service:-dom-tree-construction', 'document', 'service:-document');\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'view:-outlet');\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, (0, _container.privatize)(_templateObject3()));\n (0, _internalTestHelpers.verifyRegistration)(assert, engine, 'template:-outlet');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'view:-outlet', 'template', 'template:-outlet');\n (0, _internalTestHelpers.verifyInjection)(assert, engine, 'template', 'compiler', (0, _container.privatize)(_templateObject4()));\n assert.deepEqual(engine.registeredOptionsForType('helper'), {\n instantiate: false\n }, \"optionsForType 'helper'\");\n }\n\n });\n});","enifed(\"@ember/error/index\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module @ember/error\n */\n\n /**\n The JavaScript Error object used by Ember.assert.\n \n @class Error\n @namespace Ember\n @extends Error\n @constructor\n @public\n */\n var _default = Error;\n _exports.default = _default;\n});","enifed(\"@ember/error/tests/index_test\", [\"@ember/error\", \"internal-test-helpers\"], function (_error, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember Error Throwing', class extends _internalTestHelpers.AbstractTestCase {\n ['@test new EmberError displays provided message'](assert) {\n assert.throws(() => {\n throw new _error.default('A Message');\n }, function (e) {\n return e.message === 'A Message';\n }, 'the assigned message was displayed');\n }\n\n });\n});","enifed(\"@ember/instrumentation/index\", [\"exports\", \"@ember/-internals/environment\", \"@ember/canary-features\"], function (_exports, _environment, _canaryFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.instrument = instrument;\n _exports._instrumentStart = _instrumentStart;\n _exports.subscribe = subscribe;\n _exports.unsubscribe = unsubscribe;\n _exports.reset = reset;\n _exports.flaggedInstrument = _exports.subscribers = void 0;\n\n /* eslint no-console:off */\n\n /* global console */\n\n /**\n @module @ember/instrumentation\n @private\n */\n\n /**\n The purpose of the Ember Instrumentation module is\n to provide efficient, general-purpose instrumentation\n for Ember.\n \n Subscribe to a listener by using `subscribe`:\n \n ```javascript\n import { subscribe } from '@ember/instrumentation';\n \n subscribe(\"render\", {\n before(name, timestamp, payload) {\n \n },\n \n after(name, timestamp, payload) {\n \n }\n });\n ```\n \n If you return a value from the `before` callback, that same\n value will be passed as a fourth parameter to the `after`\n callback.\n \n Instrument a block of code by using `instrument`:\n \n ```javascript\n import { instrument } from '@ember/instrumentation';\n \n instrument(\"render.handlebars\", payload, function() {\n // rendering logic\n }, binding);\n ```\n \n Event names passed to `instrument` are namespaced\n by periods, from more general to more specific. Subscribers\n can listen for events by whatever level of granularity they\n are interested in.\n \n In the above example, the event is `render.handlebars`,\n and the subscriber listened for all events beginning with\n `render`. It would receive callbacks for events named\n `render`, `render.handlebars`, `render.container`, or\n even `render.handlebars.layout`.\n \n @class Instrumentation\n @static\n @private\n */\n let subscribers = [];\n _exports.subscribers = subscribers;\n let cache = {};\n\n function populateListeners(name) {\n let listeners = [];\n let subscriber;\n\n for (let i = 0; i < subscribers.length; i++) {\n subscriber = subscribers[i];\n\n if (subscriber.regex.test(name)) {\n listeners.push(subscriber.object);\n }\n }\n\n cache[name] = listeners;\n return listeners;\n }\n\n const time = (() => {\n let perf = 'undefined' !== typeof window ? window.performance || {} : {};\n let fn = perf.now || perf.mozNow || perf.webkitNow || perf.msNow || perf.oNow;\n return fn ? fn.bind(perf) : Date.now;\n })();\n\n function isCallback(value) {\n return typeof value === 'function';\n }\n\n function instrument(name, p1, p2, p3) {\n let _payload;\n\n let callback;\n let binding;\n\n if (arguments.length <= 3 && isCallback(p1)) {\n callback = p1;\n binding = p2;\n } else {\n _payload = p1;\n callback = p2;\n binding = p3;\n } // fast path\n\n\n if (subscribers.length === 0) {\n return callback.call(binding);\n } // avoid allocating the payload in fast path\n\n\n let payload = _payload || {};\n\n let finalizer = _instrumentStart(name, () => payload);\n\n if (finalizer === NOOP) {\n return callback.call(binding);\n } else {\n return withFinalizer(callback, finalizer, payload, binding);\n }\n }\n\n let flaggedInstrument;\n _exports.flaggedInstrument = flaggedInstrument;\n\n if (_canaryFeatures.EMBER_IMPROVED_INSTRUMENTATION) {\n _exports.flaggedInstrument = flaggedInstrument = instrument;\n } else {\n _exports.flaggedInstrument = flaggedInstrument = function instrument(_name, _payload, callback) {\n return callback();\n };\n }\n\n function withFinalizer(callback, finalizer, payload, binding) {\n try {\n return callback.call(binding);\n } catch (e) {\n payload.exception = e;\n throw e;\n } finally {\n finalizer();\n }\n }\n\n function NOOP() {}\n\n function _instrumentStart(name, payloadFunc, payloadArg) {\n if (subscribers.length === 0) {\n return NOOP;\n }\n\n let listeners = cache[name];\n\n if (!listeners) {\n listeners = populateListeners(name);\n }\n\n if (listeners.length === 0) {\n return NOOP;\n }\n\n let payload = payloadFunc(payloadArg);\n let STRUCTURED_PROFILE = _environment.ENV.STRUCTURED_PROFILE;\n let timeName;\n\n if (STRUCTURED_PROFILE) {\n timeName = name + \": \" + payload.object;\n console.time(timeName);\n }\n\n let beforeValues = [];\n let timestamp = time();\n\n for (let i = 0; i < listeners.length; i++) {\n let listener = listeners[i];\n beforeValues.push(listener.before(name, timestamp, payload));\n }\n\n return function _instrumentEnd() {\n let timestamp = time();\n\n for (let i = 0; i < listeners.length; i++) {\n let listener = listeners[i];\n\n if (typeof listener.after === 'function') {\n listener.after(name, timestamp, payload, beforeValues[i]);\n }\n }\n\n if (STRUCTURED_PROFILE) {\n console.timeEnd(timeName);\n }\n };\n }\n /**\n Subscribes to a particular event or instrumented block of code.\n \n @method subscribe\n @for @ember/instrumentation\n @static\n \n @param {String} [pattern] Namespaced event name.\n @param {Object} [object] Before and After hooks.\n \n @return {Subscriber}\n @private\n */\n\n\n function subscribe(pattern, object) {\n let paths = pattern.split('.');\n let path;\n let regexes = [];\n\n for (let i = 0; i < paths.length; i++) {\n path = paths[i];\n\n if (path === '*') {\n regexes.push('[^\\\\.]*');\n } else {\n regexes.push(path);\n }\n }\n\n let regex = regexes.join('\\\\.');\n regex = regex + \"(\\\\..*)?\";\n let subscriber = {\n pattern,\n regex: new RegExp(\"^\" + regex + \"$\"),\n object\n };\n subscribers.push(subscriber);\n cache = {};\n return subscriber;\n }\n /**\n Unsubscribes from a particular event or instrumented block of code.\n \n @method unsubscribe\n @for @ember/instrumentation\n @static\n \n @param {Object} [subscriber]\n @private\n */\n\n\n function unsubscribe(subscriber) {\n let index = 0;\n\n for (let i = 0; i < subscribers.length; i++) {\n if (subscribers[i] === subscriber) {\n index = i;\n }\n }\n\n subscribers.splice(index, 1);\n cache = {};\n }\n /**\n Resets `Instrumentation` by flushing list of subscribers.\n \n @method reset\n @for @ember/instrumentation\n @static\n @private\n */\n\n\n function reset() {\n subscribers.length = 0;\n cache = {};\n }\n});","enifed(\"@ember/instrumentation/tests/index-test\", [\"@ember/instrumentation\", \"internal-test-helpers\"], function (_instrumentation, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember Instrumentation', class extends _internalTestHelpers.AbstractTestCase {\n afterEach() {\n (0, _instrumentation.reset)();\n }\n\n ['@test execute block even if no listeners'](assert) {\n let result = (0, _instrumentation.instrument)('render', {}, function () {\n return 'hello';\n });\n assert.equal(result, 'hello', 'called block');\n }\n\n ['@test subscribing to a simple path receives the listener'](assert) {\n assert.expect(12);\n let sentPayload = {};\n let count = 0;\n (0, _instrumentation.subscribe)('render', {\n before(name, timestamp, payload) {\n if (count === 0) {\n assert.strictEqual(name, 'render');\n } else {\n assert.strictEqual(name, 'render.handlebars');\n }\n\n assert.ok(typeof timestamp === 'number');\n assert.strictEqual(payload, sentPayload);\n },\n\n after(name, timestamp, payload) {\n if (count === 0) {\n assert.strictEqual(name, 'render');\n } else {\n assert.strictEqual(name, 'render.handlebars');\n }\n\n assert.ok(typeof timestamp === 'number');\n assert.strictEqual(payload, sentPayload);\n count++;\n }\n\n });\n (0, _instrumentation.instrument)('render', sentPayload, function () {});\n (0, _instrumentation.instrument)('render.handlebars', sentPayload, function () {});\n }\n\n ['@test returning a value from the before callback passes it to the after callback'](assert) {\n assert.expect(2);\n let passthru1 = {};\n let passthru2 = {};\n (0, _instrumentation.subscribe)('render', {\n before() {\n return passthru1;\n },\n\n after(name, timestamp, payload, beforeValue) {\n assert.strictEqual(beforeValue, passthru1);\n }\n\n });\n (0, _instrumentation.subscribe)('render', {\n before() {\n return passthru2;\n },\n\n after(name, timestamp, payload, beforeValue) {\n assert.strictEqual(beforeValue, passthru2);\n }\n\n });\n (0, _instrumentation.instrument)('render', null, function () {});\n }\n\n ['@test instrument with 2 args (name, callback) no payload'](assert) {\n assert.expect(1);\n (0, _instrumentation.subscribe)('render', {\n before(name, timestamp, payload) {\n assert.deepEqual(payload, {});\n },\n\n after() {}\n\n });\n (0, _instrumentation.instrument)('render', function () {});\n }\n\n ['@test instrument with 3 args (name, callback, binding) no payload'](assert) {\n assert.expect(2);\n let binding = {};\n (0, _instrumentation.subscribe)('render', {\n before(name, timestamp, payload) {\n assert.deepEqual(payload, {});\n },\n\n after() {}\n\n });\n (0, _instrumentation.instrument)('render', function () {\n assert.deepEqual(this, binding);\n }, binding);\n }\n\n ['@test instrument with 3 args (name, payload, callback) with payload'](assert) {\n assert.expect(1);\n let expectedPayload = {\n hi: 1\n };\n (0, _instrumentation.subscribe)('render', {\n before(name, timestamp, payload) {\n assert.deepEqual(payload, expectedPayload);\n },\n\n after() {}\n\n });\n (0, _instrumentation.instrument)('render', expectedPayload, function () {});\n }\n\n ['@test instrument with 4 args (name, payload, callback, binding) with payload'](assert) {\n assert.expect(2);\n let expectedPayload = {\n hi: 1\n };\n let binding = {};\n (0, _instrumentation.subscribe)('render', {\n before(name, timestamp, payload) {\n assert.deepEqual(payload, expectedPayload);\n },\n\n after() {}\n\n });\n (0, _instrumentation.instrument)('render', expectedPayload, function () {\n assert.deepEqual(this, binding);\n }, binding);\n }\n\n ['@test raising an exception in the instrumentation attaches it to the payload'](assert) {\n assert.expect(3);\n let error = new Error('Instrumentation');\n (0, _instrumentation.subscribe)('render', {\n before() {},\n\n after(name, timestamp, payload) {\n assert.strictEqual(payload.exception, error);\n }\n\n });\n (0, _instrumentation.subscribe)('render', {\n before() {},\n\n after(name, timestamp, payload) {\n assert.strictEqual(payload.exception, error);\n }\n\n });\n assert.throws(() => (0, _instrumentation.instrument)('render.handlebars', null, () => {\n throw error;\n }), /Instrumentation/);\n }\n\n ['@test it is possible to add a new subscriber after the first instrument'](assert) {\n (0, _instrumentation.instrument)('render.handlebars', null, function () {});\n (0, _instrumentation.subscribe)('render', {\n before() {\n assert.ok(true, 'Before callback was called');\n },\n\n after() {\n assert.ok(true, 'After callback was called');\n }\n\n });\n (0, _instrumentation.instrument)('render.handlebars', null, function () {});\n }\n\n ['@test it is possible to remove a subscriber'](assert) {\n assert.expect(4);\n let count = 0;\n let subscriber = (0, _instrumentation.subscribe)('render', {\n before() {\n assert.equal(count, 0);\n assert.ok(true, 'Before callback was called');\n },\n\n after() {\n assert.equal(count, 0);\n assert.ok(true, 'After callback was called');\n count++;\n }\n\n });\n (0, _instrumentation.instrument)('render.handlebars', null, function () {});\n (0, _instrumentation.unsubscribe)(subscriber);\n (0, _instrumentation.instrument)('render.handlebars', null, function () {});\n }\n\n });\n});","enifed(\"@ember/modifier/index\", [\"exports\", \"@ember/-internals/glimmer\"], function (_exports, _glimmer) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.capabilties = _exports.setModifierManager = void 0;\n _exports.setModifierManager = _glimmer.setModifierManager;\n _exports.capabilties = _glimmer.modifierCapabilties;\n});","enifed(\"@ember/object/computed\", [\"exports\", \"@ember/object/lib/computed/computed_macros\", \"@ember/object/lib/computed/reduce_computed_macros\"], function (_exports, _computed_macros, _reduce_computed_macros) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.collect = _exports.intersect = _exports.union = _exports.uniqBy = _exports.uniq = _exports.filterBy = _exports.filter = _exports.mapBy = _exports.setDiff = _exports.sort = _exports.map = _exports.max = _exports.min = _exports.sum = _exports.or = _exports.and = _exports.deprecatingAlias = _exports.readOnly = _exports.oneWay = _exports.lte = _exports.lt = _exports.gte = _exports.gt = _exports.equal = _exports.match = _exports.bool = _exports.not = _exports.none = _exports.notEmpty = _exports.empty = void 0;\n _exports.empty = _computed_macros.empty;\n _exports.notEmpty = _computed_macros.notEmpty;\n _exports.none = _computed_macros.none;\n _exports.not = _computed_macros.not;\n _exports.bool = _computed_macros.bool;\n _exports.match = _computed_macros.match;\n _exports.equal = _computed_macros.equal;\n _exports.gt = _computed_macros.gt;\n _exports.gte = _computed_macros.gte;\n _exports.lt = _computed_macros.lt;\n _exports.lte = _computed_macros.lte;\n _exports.oneWay = _computed_macros.oneWay;\n _exports.readOnly = _computed_macros.readOnly;\n _exports.deprecatingAlias = _computed_macros.deprecatingAlias;\n _exports.and = _computed_macros.and;\n _exports.or = _computed_macros.or;\n _exports.sum = _reduce_computed_macros.sum;\n _exports.min = _reduce_computed_macros.min;\n _exports.max = _reduce_computed_macros.max;\n _exports.map = _reduce_computed_macros.map;\n _exports.sort = _reduce_computed_macros.sort;\n _exports.setDiff = _reduce_computed_macros.setDiff;\n _exports.mapBy = _reduce_computed_macros.mapBy;\n _exports.filter = _reduce_computed_macros.filter;\n _exports.filterBy = _reduce_computed_macros.filterBy;\n _exports.uniq = _reduce_computed_macros.uniq;\n _exports.uniqBy = _reduce_computed_macros.uniqBy;\n _exports.union = _reduce_computed_macros.union;\n _exports.intersect = _reduce_computed_macros.intersect;\n _exports.collect = _reduce_computed_macros.collect;\n});","enifed(\"@ember/object/index\", [\"exports\", \"@ember/canary-features\", \"@ember/debug\", \"@ember/polyfills\", \"@ember/-internals/metal\"], function (_exports, _canaryFeatures, _debug, _polyfills, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.action = void 0;\n\n /**\n Decorator that turns the target function into an Action which can be accessed\n directly by reference.\n \n ```js\n import Component from '@ember/component';\n import { action, set } from '@ember/object';\n \n export default class Tooltip extends Component {\n @action\n toggleShowing() {\n set(this, 'isShowing', !this.isShowing);\n }\n }\n ```\n ```hbs\n \n Show tooltip \n \n {{#if isShowing}}\n \n I'm a tooltip!\n
\n {{/if}}\n ```\n \n Decorated actions also interop with the string style template actions:\n \n ```hbs\n \n Show tooltip \n \n {{#if isShowing}}\n \n I'm a tooltip!\n
\n {{/if}}\n ```\n \n It also binds the function directly to the instance, so it can be used in any\n context and will correctly refer to the class it came from:\n \n ```hbs\n \n \n Show tooltip\n \n \n {{#if isShowing}}\n \n I'm a tooltip!\n
\n {{/if}}\n ```\n \n This can also be used in JavaScript code directly:\n \n ```js\n import Component from '@ember/component';\n import { action, set } from '@ember/object';\n \n export default class Tooltip extends Component {\n constructor() {\n super(...arguments);\n \n // this.toggleShowing is still bound correctly when added to\n // the event listener\n document.addEventListener('click', this.toggleShowing);\n }\n \n @action\n toggleShowing() {\n set(this, 'isShowing', !this.isShowing);\n }\n }\n ```\n \n This is considered best practice, since it means that methods will be bound\n correctly no matter where they are used. By contrast, the `{{action}}` helper\n and modifier can also be used to bind context, but it will be required for\n every usage of the method:\n \n ```hbs\n \n \n Show tooltip\n \n \n {{#if isShowing}}\n \n I'm a tooltip!\n
\n {{/if}}\n ```\n \n They also do not have equivalents in JavaScript directly, so they cannot be\n used for other situations where binding would be useful.\n \n @method action\n @category EMBER_NATIVE_DECORATOR_SUPPORT\n @for @ember/object\n @static\n @param {} elementDesc the descriptor of the element to decorate\n @return {ElementDescriptor} the decorated descriptor\n @private\n */\n let action;\n _exports.action = action;\n\n if (_canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT) {\n let BINDINGS_MAP = new WeakMap();\n\n let setupAction = function (target, key, actionFn) {\n if (target.constructor !== undefined && typeof target.constructor.proto === 'function') {\n target.constructor.proto();\n }\n\n if (!target.hasOwnProperty('actions')) {\n let parentActions = target.actions; // we need to assign because of the way mixins copy actions down when inheriting\n\n target.actions = parentActions ? (0, _polyfills.assign)({}, parentActions) : {};\n }\n\n target.actions[key] = actionFn;\n return {\n get() {\n let bindings = BINDINGS_MAP.get(this);\n\n if (bindings === undefined) {\n bindings = new Map();\n BINDINGS_MAP.set(this, bindings);\n }\n\n let fn = bindings.get(actionFn);\n\n if (fn === undefined) {\n fn = actionFn.bind(this);\n bindings.set(actionFn, fn);\n }\n\n return fn;\n }\n\n };\n };\n\n _exports.action = action = function action(target, key, desc) {\n let actionFn;\n\n if (!(0, _metal.isElementDescriptor)([target, key, desc])) {\n actionFn = target;\n\n let decorator = function (target, key, desc, meta, isClassicDecorator) {\n (0, _debug.assert)('The @action decorator may only be passed a method when used in classic classes. You should decorate methods directly in native classes', isClassicDecorator);\n (0, _debug.assert)('The action() decorator must be passed a method when used in classic classes', typeof actionFn === 'function');\n return setupAction(target, key, actionFn);\n };\n\n (0, _metal.setClassicDecorator)(decorator);\n return decorator;\n }\n\n actionFn = desc.value;\n (0, _debug.assert)('The @action decorator must be applied to methods when used in native classes', typeof actionFn === 'function');\n return setupAction(target, key, actionFn);\n };\n\n (0, _metal.setClassicDecorator)(action);\n }\n});","enifed(\"@ember/object/lib/computed/computed_macros\", [\"exports\", \"@ember/-internals/metal\", \"@ember/debug\"], function (_exports, _metal, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.empty = empty;\n _exports.notEmpty = notEmpty;\n _exports.none = none;\n _exports.not = not;\n _exports.bool = bool;\n _exports.match = match;\n _exports.equal = equal;\n _exports.gt = gt;\n _exports.gte = gte;\n _exports.lt = lt;\n _exports.lte = lte;\n _exports.oneWay = oneWay;\n _exports.readOnly = readOnly;\n _exports.deprecatingAlias = deprecatingAlias;\n _exports.or = _exports.and = void 0;\n\n /**\n @module @ember/object\n */\n function expandPropertiesToArray(predicateName, properties) {\n let expandedProperties = [];\n\n function extractProperty(entry) {\n expandedProperties.push(entry);\n }\n\n for (let i = 0; i < properties.length; i++) {\n let property = properties[i];\n (0, _debug.assert)(\"Dependent keys passed to computed.\" + predicateName + \"() can't have spaces.\", property.indexOf(' ') < 0);\n (0, _metal.expandProperties)(property, extractProperty);\n }\n\n return expandedProperties;\n }\n\n function generateComputedWithPredicate(name, predicate) {\n return (...properties) => {\n (0, _debug.assert)(\"You attempted to use @\" + name + \" as a decorator directly, but it requires at least one dependent key parameter\", !(0, _metal.isElementDescriptor)(properties));\n let dependentKeys = expandPropertiesToArray(name, properties);\n let computedFunc = (0, _metal.computed)(...dependentKeys, function () {\n let lastIdx = dependentKeys.length - 1;\n\n for (let i = 0; i < lastIdx; i++) {\n let value = (0, _metal.get)(this, dependentKeys[i]);\n\n if (!predicate(value)) {\n return value;\n }\n }\n\n return (0, _metal.get)(this, dependentKeys[lastIdx]);\n });\n return computedFunc;\n };\n }\n /**\n A computed property macro that returns true if the value of the dependent\n property is null, an empty string, empty array, or empty function.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { empty } from '@ember/object/computed';\n \n class ToDoList {\n constructor(todos) {\n set(this, 'todos', todos);\n }\n \n @empty('todos') isDone;\n }\n \n let todoList = new ToDoList(\n ['Unit Test', 'Documentation', 'Release']\n );\n \n todoList.isDone; // false\n set(todoList, 'todos', []);\n todoList.isDone; // true\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { empty } from '@ember/object/computed';\n \n let ToDoList = EmberObject.extend({\n isDone: empty('todos')\n });\n \n let todoList = ToDoList.create({\n todos: ['Unit Test', 'Documentation', 'Release']\n });\n \n todoList.isDone; // false\n set(todoList, 'todos', []);\n todoList.isDone; // true\n ```\n \n @since 1.6.0\n @method empty\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @return {ComputedProperty} computed property which returns true if the value\n of the dependent property is null, an empty string, empty array, or empty\n function and false if the underlying value is not empty.\n \n @public\n */\n\n\n function empty(dependentKey) {\n (0, _debug.assert)('You attempted to use @empty as a decorator directly, but it requires a `dependentKey` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey + \".length\", function () {\n return (0, _metal.isEmpty)((0, _metal.get)(this, dependentKey));\n });\n }\n /**\n A computed property that returns true if the value of the dependent property\n is NOT null, an empty string, empty array, or empty function.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { notEmpty } from '@ember/object/computed';\n \n class Hamster {\n constructor(backpack) {\n set(this, 'backpack', backpack);\n }\n \n @notEmpty('backpack') hasStuff\n }\n \n let hamster = new Hamster(\n ['Food', 'Sleeping Bag', 'Tent']\n );\n \n hamster.hasStuff; // true\n set(hamster, 'backpack', []);\n hamster.hasStuff; // false\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { notEmpty } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n hasStuff: notEmpty('backpack')\n });\n \n let hamster = Hamster.create({\n backpack: ['Food', 'Sleeping Bag', 'Tent']\n });\n \n hamster.hasStuff; // true\n set(hamster, 'backpack', []);\n hamster.hasStuff; // false\n ```\n \n @method notEmpty\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @return {ComputedProperty} computed property which returns true if original\n value for property is not empty.\n @public\n */\n\n\n function notEmpty(dependentKey) {\n (0, _debug.assert)('You attempted to use @notEmpty as a decorator directly, but it requires a `dependentKey` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey + \".length\", function () {\n return !(0, _metal.isEmpty)((0, _metal.get)(this, dependentKey));\n });\n }\n /**\n A computed property that returns true if the value of the dependent property\n is null or undefined. This avoids errors from JSLint complaining about use of\n ==, which can be technically confusing.\n \n ```javascript\n import { set } from '@ember/object';\n import { none } from '@ember/object/computed';\n \n class Hamster {\n @none('food') isHungry;\n }\n \n let hamster = new Hamster();\n \n hamster.isHungry; // true\n \n set(hamster, 'food', 'Banana');\n hamster.isHungry; // false\n \n set(hamster, 'food', null);\n hamster.isHungry; // true\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { none } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n isHungry: none('food')\n });\n \n let hamster = Hamster.create();\n \n hamster.isHungry; // true\n \n set(hamster, 'food', 'Banana');\n hamster.isHungry; // false\n \n set(hamster, 'food', null);\n hamster.isHungry; // true\n ```\n \n @method none\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @return {ComputedProperty} computed property which returns true if original\n value for property is null or undefined.\n @public\n */\n\n\n function none(dependentKey) {\n (0, _debug.assert)('You attempted to use @none as a decorator directly, but it requires a `dependentKey` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey, function () {\n return (0, _metal.isNone)((0, _metal.get)(this, dependentKey));\n });\n }\n /**\n A computed property that returns the inverse boolean value of the original\n value for the dependent property.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { not } from '@ember/object/computed';\n \n class User {\n loggedIn = false;\n \n @not('loggedIn') isAnonymous;\n }\n \n let user = new User();\n \n user.isAnonymous; // true\n set(user, 'loggedIn', true);\n user.isAnonymous; // false\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { not } from '@ember/object/computed';\n \n let User = EmberObject.extend({\n loggedIn: false,\n \n isAnonymous: not('loggedIn')\n });\n \n let user = User.create();\n \n user.isAnonymous; // true\n set(user, 'loggedIn', true);\n user.isAnonymous; // false\n ```\n \n @method not\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @return {ComputedProperty} computed property which returns inverse of the\n original value for property\n @public\n */\n\n\n function not(dependentKey) {\n (0, _debug.assert)('You attempted to use @not as a decorator directly, but it requires a `dependentKey` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey, function () {\n return !(0, _metal.get)(this, dependentKey);\n });\n }\n /**\n A computed property that converts the provided dependent property into a\n boolean value.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { bool } from '@ember/object/computed';\n \n \n class Hamster {\n @bool('numBananas') hasBananas\n }\n \n let hamster = new Hamster();\n \n hamster.hasBananas; // false\n \n set(hamster, 'numBananas', 0);\n hamster.hasBananas; // false\n \n set(hamster, 'numBananas', 1);\n hamster.hasBananas; // true\n \n set(hamster, 'numBananas', null);\n hamster.hasBananas; // false\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { bool } from '@ember/object/computed';\n \n \n let Hamster = EmberObject.extend({\n hasBananas: bool('numBananas')\n });\n \n let hamster = Hamster.create();\n \n hamster.hasBananas; // false\n \n set(hamster, 'numBananas', 0);\n hamster.hasBananas; // false\n \n set(hamster, 'numBananas', 1);\n hamster.hasBananas; // true\n \n set(hamster, 'numBananas', null);\n hamster.hasBananas; // false\n ```\n \n @method bool\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @return {ComputedProperty} computed property which converts to boolean the\n original value for property\n @public\n */\n\n\n function bool(dependentKey) {\n (0, _debug.assert)('You attempted to use @bool as a decorator directly, but it requires a `dependentKey` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey, function () {\n return Boolean((0, _metal.get)(this, dependentKey));\n });\n }\n /**\n A computed property which matches the original value for the dependent\n property against a given RegExp, returning `true` if the value matches the\n RegExp and `false` if it does not.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { match } from '@ember/object/computed';\n \n class User {\n @match('email', /^.+@.+\\..+$/) hasValidEmail;\n }\n \n let user = new User();\n \n user.hasValidEmail; // false\n \n set(user, 'email', '');\n user.hasValidEmail; // false\n \n set(user, 'email', 'ember_hamster@example.com');\n user.hasValidEmail; // true\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { match } from '@ember/object/computed';\n \n let User = EmberObject.extend({\n hasValidEmail: match('email', /^.+@.+\\..+$/)\n });\n \n let user = User.create();\n \n user.hasValidEmail; // false\n \n set(user, 'email', '');\n user.hasValidEmail; // false\n \n set(user, 'email', 'ember_hamster@example.com');\n user.hasValidEmail; // true\n ```\n \n @method match\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @param {RegExp} regexp\n @return {ComputedProperty} computed property which match the original value\n for property against a given RegExp\n @public\n */\n\n\n function match(dependentKey, regexp) {\n (0, _debug.assert)('You attempted to use @match as a decorator directly, but it requires `dependentKey` and `regexp` parameters', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey, function () {\n let value = (0, _metal.get)(this, dependentKey);\n return regexp.test(value);\n });\n }\n /**\n A computed property that returns true if the provided dependent property is\n equal to the given value.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { equal } from '@ember/object/computed';\n \n class Hamster {\n @equal('percentCarrotsEaten', 100) satisfied;\n }\n \n let hamster = new Hamster();\n \n hamster.satisfied; // false\n \n set(hamster, 'percentCarrotsEaten', 100);\n hamster.satisfied; // true\n \n set(hamster, 'percentCarrotsEaten', 50);\n hamster.satisfied; // false\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { equal } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n satisfied: equal('percentCarrotsEaten', 100)\n });\n \n let hamster = Hamster.create();\n \n hamster.satisfied; // false\n \n set(hamster, 'percentCarrotsEaten', 100);\n hamster.satisfied; // true\n \n set(hamster, 'percentCarrotsEaten', 50);\n hamster.satisfied; // false\n ```\n \n @method equal\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @param {String|Number|Object} value\n @return {ComputedProperty} computed property which returns true if the\n original value for property is equal to the given value.\n @public\n */\n\n\n function equal(dependentKey, value) {\n (0, _debug.assert)('You attempted to use @equal as a decorator directly, but it requires `dependentKey` and `value` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey, function () {\n return (0, _metal.get)(this, dependentKey) === value;\n });\n }\n /**\n A computed property that returns true if the provided dependent property is\n greater than the provided value.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { gt } from '@ember/object/computed';\n \n class Hamster {\n @gt('numBananas', 10) hasTooManyBananas;\n }\n \n let hamster = new Hamster();\n \n hamster.hasTooManyBananas; // false\n \n set(hamster, 'numBananas', 3);\n hamster.hasTooManyBananas; // false\n \n set(hamster, 'numBananas', 11);\n hamster.hasTooManyBananas; // true\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { gt } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n hasTooManyBananas: gt('numBananas', 10)\n });\n \n let hamster = Hamster.create();\n \n hamster.hasTooManyBananas; // false\n \n set(hamster, 'numBananas', 3);\n hamster.hasTooManyBananas; // false\n \n set(hamster, 'numBananas', 11);\n hamster.hasTooManyBananas; // true\n ```\n \n @method gt\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @param {Number} value\n @return {ComputedProperty} computed property which returns true if the\n original value for property is greater than given value.\n @public\n */\n\n\n function gt(dependentKey, value) {\n (0, _debug.assert)('You attempted to use @gt as a decorator directly, but it requires `dependentKey` and `value` parameters', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey, function () {\n return (0, _metal.get)(this, dependentKey) > value;\n });\n }\n /**\n A computed property that returns true if the provided dependent property is\n greater than or equal to the provided value.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { gte } from '@ember/object/computed';\n \n class Hamster {\n @gte('numBananas', 10) hasTooManyBananas;\n }\n \n let hamster = new Hamster();\n \n hamster.hasTooManyBananas; // false\n \n set(hamster, 'numBananas', 3);\n hamster.hasTooManyBananas; // false\n \n set(hamster, 'numBananas', 10);\n hamster.hasTooManyBananas; // true\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { gte } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n hasTooManyBananas: gte('numBananas', 10)\n });\n \n let hamster = Hamster.create();\n \n hamster.hasTooManyBananas; // false\n \n set(hamster, 'numBananas', 3);\n hamster.hasTooManyBananas; // false\n \n set(hamster, 'numBananas', 10);\n hamster.hasTooManyBananas; // true\n ```\n \n @method gte\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @param {Number} value\n @return {ComputedProperty} computed property which returns true if the\n original value for property is greater or equal then given value.\n @public\n */\n\n\n function gte(dependentKey, value) {\n (0, _debug.assert)('You attempted to use @gte as a decorator directly, but it requires `dependentKey` and `value` parameters', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey, function () {\n return (0, _metal.get)(this, dependentKey) >= value;\n });\n }\n /**\n A computed property that returns true if the provided dependent property is\n less than the provided value.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { lt } from '@ember/object/computed';\n \n class Hamster {\n @lt('numBananas', 3) needsMoreBananas;\n }\n \n let hamster = new Hamster();\n \n hamster.needsMoreBananas; // true\n \n set(hamster, 'numBananas', 3);\n hamster.needsMoreBananas; // false\n \n set(hamster, 'numBananas', 2);\n hamster.needsMoreBananas; // true\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { lt } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n needsMoreBananas: lt('numBananas', 3)\n });\n \n let hamster = Hamster.create();\n \n hamster.needsMoreBananas; // true\n \n set(hamster, 'numBananas', 3);\n hamster.needsMoreBananas; // false\n \n set(hamster, 'numBananas', 2);\n hamster.needsMoreBananas; // true\n ```\n \n @method lt\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @param {Number} value\n @return {ComputedProperty} computed property which returns true if the\n original value for property is less then given value.\n @public\n */\n\n\n function lt(dependentKey, value) {\n (0, _debug.assert)('You attempted to use @lt as a decorator directly, but it requires `dependentKey` and `value` parameters', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey, function () {\n return (0, _metal.get)(this, dependentKey) < value;\n });\n }\n /**\n A computed property that returns true if the provided dependent property is\n less than or equal to the provided value.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { lte } from '@ember/object/computed';\n \n class Hamster {\n @lte('numBananas', 3) needsMoreBananas;\n }\n \n let hamster = new Hamster();\n \n hamster.needsMoreBananas; // true\n \n set(hamster, 'numBananas', 5);\n hamster.needsMoreBananas; // false\n \n set(hamster, 'numBananas', 3);\n hamster.needsMoreBananas; // true\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { lte } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n needsMoreBananas: lte('numBananas', 3)\n });\n \n let hamster = Hamster.create();\n \n hamster.needsMoreBananas; // true\n \n set(hamster, 'numBananas', 5);\n hamster.needsMoreBananas; // false\n \n set(hamster, 'numBananas', 3);\n hamster.needsMoreBananas; // true\n ```\n \n @method lte\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @param {Number} value\n @return {ComputedProperty} computed property which returns true if the\n original value for property is less or equal than given value.\n @public\n */\n\n\n function lte(dependentKey, value) {\n (0, _debug.assert)('You attempted to use @lte as a decorator directly, but it requires `dependentKey` and `value` parameters', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey, function () {\n return (0, _metal.get)(this, dependentKey) <= value;\n });\n }\n /**\n A computed property that performs a logical `and` on the original values for\n the provided dependent properties.\n \n You may pass in more than two properties and even use property brace\n expansion. The computed property will return the first falsy value or last\n truthy value just like JavaScript's `&&` operator.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { and } from '@ember/object/computed';\n \n class Hamster {\n @and('hasTent', 'hasBackpack') readyForCamp;\n @and('hasWalkingStick', 'hasBackpack') readyForHike;\n }\n \n let tomster = new Hamster();\n \n tomster.readyForCamp; // false\n \n set(tomster, 'hasTent', true);\n tomster.readyForCamp; // false\n \n set(tomster, 'hasBackpack', true);\n tomster.readyForCamp; // true\n \n set(tomster, 'hasBackpack', 'Yes');\n tomster.readyForCamp; // 'Yes'\n \n set(tomster, 'hasWalkingStick', null);\n tomster.readyForHike; // null\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { and } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n readyForCamp: and('hasTent', 'hasBackpack'),\n readyForHike: and('hasWalkingStick', 'hasBackpack')\n });\n \n let tomster = Hamster.create();\n \n tomster.readyForCamp; // false\n \n set(tomster, 'hasTent', true);\n tomster.readyForCamp; // false\n \n set(tomster, 'hasBackpack', true);\n tomster.readyForCamp; // true\n \n set(tomster, 'hasBackpack', 'Yes');\n tomster.readyForCamp; // 'Yes'\n \n set(tomster, 'hasWalkingStick', null);\n tomster.readyForHike; // null\n ```\n \n @method and\n @static\n @for @ember/object/computed\n @param {String} dependentKey*\n @return {ComputedProperty} computed property which performs a logical `and` on\n the values of all the original values for properties.\n @public\n */\n\n\n const and = generateComputedWithPredicate('and', value => value);\n /**\n A computed property which performs a logical `or` on the original values for\n the provided dependent properties.\n \n You may pass in more than two properties and even use property brace\n expansion. The computed property will return the first truthy value or last\n falsy value just like JavaScript's `||` operator.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { or } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n @or('hasJacket', 'hasUmbrella') readyForRain;\n @or('hasSunscreen', 'hasUmbrella') readyForBeach;\n });\n \n let tomster = new Hamster();\n \n tomster.readyForRain; // undefined\n \n set(tomster, 'hasUmbrella', true);\n tomster.readyForRain; // true\n \n set(tomster, 'hasJacket', 'Yes');\n tomster.readyForRain; // 'Yes'\n \n set(tomster, 'hasSunscreen', 'Check');\n tomster.readyForBeach; // 'Check'\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { or } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n readyForRain: or('hasJacket', 'hasUmbrella'),\n readyForBeach: or('hasSunscreen', 'hasUmbrella')\n });\n \n let tomster = Hamster.create();\n \n tomster.readyForRain; // undefined\n \n set(tomster, 'hasUmbrella', true);\n tomster.readyForRain; // true\n \n set(tomster, 'hasJacket', 'Yes');\n tomster.readyForRain; // 'Yes'\n \n set(tomster, 'hasSunscreen', 'Check');\n tomster.readyForBeach; // 'Check'\n ```\n \n @method or\n @static\n @for @ember/object/computed\n @param {String} dependentKey*\n @return {ComputedProperty} computed property which performs a logical `or` on\n the values of all the original values for properties.\n @public\n */\n\n _exports.and = and;\n const or = generateComputedWithPredicate('or', value => !value);\n /**\n Creates a new property that is an alias for another property on an object.\n Calls to `get` or `set` this property behave as though they were called on the\n original property.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { alias } from '@ember/object/computed';\n \n class Person {\n name = 'Alex Matchneer';\n \n @alias('name') nomen;\n }\n \n let alex = new Person();\n \n alex.nomen; // 'Alex Matchneer'\n alex.name; // 'Alex Matchneer'\n \n set(alex, 'nomen', '@machty');\n alex.name; // '@machty'\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { alias } from '@ember/object/computed';\n \n let Person = EmberObject.extend({\n name: 'Alex Matchneer',\n \n nomen: alias('name')\n });\n \n let alex = Person.create();\n \n alex.nomen; // 'Alex Matchneer'\n alex.name; // 'Alex Matchneer'\n \n set(alex, 'nomen', '@machty');\n alex.name; // '@machty'\n ```\n \n @method alias\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @return {ComputedProperty} computed property which creates an alias to the\n original value for property.\n @public\n */\n\n /**\n Where `computed.alias` aliases `get` and `set`, and allows for bidirectional\n data flow, `computed.oneWay` only provides an aliased `get`. The `set` will\n not mutate the upstream property, rather causes the current property to become\n the value set. This causes the downstream property to permanently diverge from\n the upstream property.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { oneWay }from '@ember/object/computed';\n \n class User {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n \n @oneWay('firstName') nickName;\n }\n \n let teddy = new User('Teddy', 'Zeenny');\n \n teddy.nickName; // 'Teddy'\n \n set(teddy, 'nickName', 'TeddyBear');\n teddy.firstName; // 'Teddy'\n teddy.nickName; // 'TeddyBear'\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { oneWay } from '@ember/object/computed';\n \n let User = EmberObject.extend({\n firstName: null,\n lastName: null,\n \n nickName: oneWay('firstName')\n });\n \n let teddy = User.create({\n firstName: 'Teddy',\n lastName: 'Zeenny'\n });\n \n teddy.nickName; // 'Teddy'\n \n set(teddy, 'nickName', 'TeddyBear'); // 'TeddyBear'\n teddy.firstName; // 'Teddy'\n teddy.nickName; // 'TeddyBear'\n ```\n \n @method oneWay\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @return {ComputedProperty} computed property which creates a one way computed\n property to the original value for property.\n @public\n */\n\n _exports.or = or;\n\n function oneWay(dependentKey) {\n (0, _debug.assert)('You attempted to use @oneWay as a decorator directly, but it requires a `dependentKey` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.alias)(dependentKey).oneWay();\n }\n /**\n This is a more semantically meaningful alias of `computed.oneWay`, whose name\n is somewhat ambiguous as to which direction the data flows.\n \n @method reads\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @return {ComputedProperty} computed property which creates a one way computed\n property to the original value for property.\n @public\n */\n\n /**\n Where `computed.oneWay` provides oneWay bindings, `computed.readOnly` provides\n a readOnly one way binding. Very often when using `computed.oneWay` one does\n not also want changes to propagate back up, as they will replace the value.\n \n This prevents the reverse flow, and also throws an exception when it occurs.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { readOnly } from '@ember/object/computed';\n \n class User {\n constructor(firstName, lastName) {\n set(this, 'firstName', firstName);\n set(this, 'lastName', lastName);\n }\n \n @readOnly('firstName') nickName;\n });\n \n let teddy = new User('Teddy', 'Zeenny');\n \n teddy.nickName; // 'Teddy'\n \n set(teddy, 'nickName', 'TeddyBear'); // throws Exception\n // throw new EmberError('Cannot Set: nickName on: ' );`\n \n teddy.firstName; // 'Teddy'\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { readOnly } from '@ember/object/computed';\n \n let User = EmberObject.extend({\n firstName: null,\n lastName: null,\n \n nickName: readOnly('firstName')\n });\n \n let teddy = User.create({\n firstName: 'Teddy',\n lastName: 'Zeenny'\n });\n \n teddy.nickName; // 'Teddy'\n \n set(teddy, 'nickName', 'TeddyBear'); // throws Exception\n // throw new EmberError('Cannot Set: nickName on: ' );`\n \n teddy.firstName; // 'Teddy'\n ```\n \n @method readOnly\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @return {ComputedProperty} computed property which creates a one way computed\n property to the original value for property.\n @since 1.5.0\n @public\n */\n\n\n function readOnly(dependentKey) {\n (0, _debug.assert)('You attempted to use @readOnly as a decorator directly, but it requires a `dependentKey` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.alias)(dependentKey).readOnly();\n }\n /**\n Creates a new property that is an alias for another property on an object.\n Calls to `get` or `set` this property behave as though they were called on the\n original property, but also print a deprecation warning.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { deprecatingAlias } from '@ember/object/computed';\n \n class Hamster {\n @deprecatingAlias('cavendishCount', {\n id: 'hamster.deprecate-banana',\n until: '3.0.0'\n })\n bananaCount;\n }\n \n let hamster = new Hamster();\n \n set(hamster, 'bananaCount', 5); // Prints a deprecation warning.\n hamster.cavendishCount; // 5\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { deprecatingAlias } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n bananaCount: deprecatingAlias('cavendishCount', {\n id: 'hamster.deprecate-banana',\n until: '3.0.0'\n })\n });\n \n let hamster = Hamster.create();\n \n set(hamster, 'bananaCount', 5); // Prints a deprecation warning.\n hamster.cavendishCount; // 5\n ```\n \n @method deprecatingAlias\n @static\n @for @ember/object/computed\n @param {String} dependentKey\n @param {Object} options Options for `deprecate`.\n @return {ComputedProperty} computed property which creates an alias with a\n deprecation to the original value for property.\n @since 1.7.0\n @public\n */\n\n\n function deprecatingAlias(dependentKey, options) {\n (0, _debug.assert)('You attempted to use @deprecatingAlias as a decorator directly, but it requires `dependentKey` and `options` parameters', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return (0, _metal.computed)(dependentKey, {\n get(key) {\n (0, _debug.deprecate)(\"Usage of `\" + key + \"` is deprecated, use `\" + dependentKey + \"` instead.\", false, options);\n return (0, _metal.get)(this, dependentKey);\n },\n\n set(key, value) {\n (0, _debug.deprecate)(\"Usage of `\" + key + \"` is deprecated, use `\" + dependentKey + \"` instead.\", false, options);\n (0, _metal.set)(this, dependentKey, value);\n return value;\n }\n\n });\n }\n});","enifed(\"@ember/object/lib/computed/reduce_computed_macros\", [\"exports\", \"@glimmer/env\", \"@ember/debug\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\"], function (_exports, _env, _debug, _metal, _runtime) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.sum = sum;\n _exports.max = max;\n _exports.min = min;\n _exports.map = map;\n _exports.mapBy = mapBy;\n _exports.filter = filter;\n _exports.filterBy = filterBy;\n _exports.uniq = uniq;\n _exports.uniqBy = uniqBy;\n _exports.intersect = intersect;\n _exports.setDiff = setDiff;\n _exports.collect = collect;\n _exports.sort = sort;\n _exports.union = void 0;\n\n /**\n @module @ember/object\n */\n function reduceMacro(dependentKey, callback, initialValue, name) {\n (0, _debug.assert)(\"Dependent key passed to `computed.\" + name + \"` shouldn't contain brace expanding pattern.\", !/[\\[\\]\\{\\}]/g.test(dependentKey));\n return (0, _metal.computed)(dependentKey + \".[]\", function () {\n let arr = (0, _metal.get)(this, dependentKey);\n\n if (arr === null || typeof arr !== 'object') {\n return initialValue;\n }\n\n return arr.reduce(callback, initialValue, this);\n }).readOnly();\n }\n\n function arrayMacro(dependentKey, additionalDependentKeys, callback) {\n // This is a bit ugly\n let propertyName;\n\n if (/@each/.test(dependentKey)) {\n propertyName = dependentKey.replace(/\\.@each.*$/, '');\n } else {\n propertyName = dependentKey;\n dependentKey += '.[]';\n }\n\n return (0, _metal.computed)(dependentKey, ...additionalDependentKeys, function () {\n let value = (0, _metal.get)(this, propertyName);\n\n if ((0, _runtime.isArray)(value)) {\n return (0, _runtime.A)(callback.call(this, value));\n } else {\n return (0, _runtime.A)();\n }\n }).readOnly();\n }\n\n function multiArrayMacro(_dependentKeys, callback, name) {\n (0, _debug.assert)(\"Dependent keys passed to `computed.\" + name + \"` shouldn't contain brace expanding pattern.\", _dependentKeys.every(dependentKey => !/[\\[\\]\\{\\}]/g.test(dependentKey)));\n\n let dependentKeys = _dependentKeys.map(key => key + \".[]\");\n\n return (0, _metal.computed)(...dependentKeys, function () {\n return (0, _runtime.A)(callback.call(this, _dependentKeys));\n }).readOnly();\n }\n /**\n A computed property that returns the sum of the values in the dependent array.\n \n Example:\n \n ```javascript\n import { sum } from '@ember/object/computed';\n \n class Invoice {\n lineItems = [1.00, 2.50, 9.99];\n \n @sum('lineItems') total;\n }\n \n let invoice = new Invoice();\n \n invoice.total; // 13.49\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject from '@ember/object';\n import { sum } from '@ember/object/computed';\n \n let Invoice = EmberObject.extend({\n lineItems: [1.00, 2.50, 9.99],\n \n total: sum('lineItems')\n })\n \n let invoice = Invoice.create();\n \n invoice.total; // 13.49\n ```\n \n @method sum\n @for @ember/object/computed\n @static\n @param {String} dependentKey\n @return {ComputedProperty} computes the sum of all values in the\n dependentKey's array\n @since 1.4.0\n @public\n */\n\n\n function sum(dependentKey) {\n (0, _debug.assert)('You attempted to use @sum as a decorator directly, but it requires a `dependentKey` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return reduceMacro(dependentKey, (sum, item) => sum + item, 0, 'sum');\n }\n /**\n A computed property that calculates the maximum value in the dependent array.\n This will return `-Infinity` when the dependent array is empty.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { mapBy, max } from '@ember/object/computed';\n \n class Person {\n children = [];\n \n @mapBy('children', 'age') childAges;\n @max('childAges') maxChildAge;\n }\n \n let lordByron = new Person();\n \n lordByron.maxChildAge; // -Infinity\n \n set(lordByron, 'children', [\n {\n name: 'Augusta Ada Byron',\n age: 7\n }\n ]);\n lordByron.maxChildAge; // 7\n \n set(lordByron, 'children', [\n ...lordByron.children,\n {\n name: 'Allegra Byron',\n age: 5\n }, {\n name: 'Elizabeth Medora Leigh',\n age: 8\n }\n ]);\n lordByron.maxChildAge; // 8\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { mapBy, max } from '@ember/object/computed';\n \n let Person = EmberObject.extend({\n childAges: mapBy('children', 'age'),\n maxChildAge: max('childAges')\n });\n \n let lordByron = Person.create({ children: [] });\n \n lordByron.maxChildAge; // -Infinity\n \n set(lordByron, 'children', [\n {\n name: 'Augusta Ada Byron',\n age: 7\n }\n ]);\n lordByron.maxChildAge; // 7\n \n set(lordByron, 'children', [\n ...lordByron.children,\n {\n name: 'Allegra Byron',\n age: 5\n }, {\n name: 'Elizabeth Medora Leigh',\n age: 8\n }\n ]);\n lordByron.maxChildAge; // 8\n ```\n \n If the types of the arguments are not numbers, they will be converted to\n numbers and the type of the return value will always be `Number`. For example,\n the max of a list of Date objects will be the highest timestamp as a `Number`.\n This behavior is consistent with `Math.max`.\n \n @method max\n @for @ember/object/computed\n @static\n @param {String} dependentKey\n @return {ComputedProperty} computes the largest value in the dependentKey's\n array\n @public\n */\n\n\n function max(dependentKey) {\n (0, _debug.assert)('You attempted to use @max as a decorator directly, but it requires a `dependentKey` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return reduceMacro(dependentKey, (max, item) => Math.max(max, item), -Infinity, 'max');\n }\n /**\n A computed property that calculates the minimum value in the dependent array.\n This will return `Infinity` when the dependent array is empty.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { mapBy, min } from '@ember/object/computed';\n \n class Person {\n children = [];\n \n @mapBy('children', 'age') childAges;\n @min('childAges') minChildAge;\n }\n \n let lordByron = Person.create({ children: [] });\n \n lordByron.minChildAge; // Infinity\n \n set(lordByron, 'children', [\n {\n name: 'Augusta Ada Byron',\n age: 7\n }\n ]);\n lordByron.minChildAge; // 7\n \n set(lordByron, 'children', [\n ...lordByron.children,\n {\n name: 'Allegra Byron',\n age: 5\n }, {\n name: 'Elizabeth Medora Leigh',\n age: 8\n }\n ]);\n lordByron.minChildAge; // 5\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { mapBy, min } from '@ember/object/computed';\n \n let Person = EmberObject.extend({\n childAges: mapBy('children', 'age'),\n minChildAge: min('childAges')\n });\n \n let lordByron = Person.create({ children: [] });\n \n lordByron.minChildAge; // Infinity\n \n set(lordByron, 'children', [\n {\n name: 'Augusta Ada Byron',\n age: 7\n }\n ]);\n lordByron.minChildAge; // 7\n \n set(lordByron, 'children', [\n ...lordByron.children,\n {\n name: 'Allegra Byron',\n age: 5\n }, {\n name: 'Elizabeth Medora Leigh',\n age: 8\n }\n ]);\n lordByron.minChildAge; // 5\n ```\n \n If the types of the arguments are not numbers, they will be converted to\n numbers and the type of the return value will always be `Number`. For example,\n the min of a list of Date objects will be the lowest timestamp as a `Number`.\n This behavior is consistent with `Math.min`.\n \n @method min\n @for @ember/object/computed\n @static\n @param {String} dependentKey\n @return {ComputedProperty} computes the smallest value in the dependentKey's array\n @public\n */\n\n\n function min(dependentKey) {\n (0, _debug.assert)('You attempted to use @min as a decorator directly, but it requires a `dependentKey` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return reduceMacro(dependentKey, (min, item) => Math.min(min, item), Infinity, 'min');\n }\n /**\n Returns an array mapped via the callback\n \n The callback method you provide should have the following signature:\n - `item` is the current item in the iteration.\n - `index` is the integer index of the current item in the iteration.\n \n ```javascript\n function mapCallback(item, index);\n ```\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { map } from '@ember/object/computed';\n \n class Hamster {\n constructor(chores) {\n set(this, 'chores', chores);\n }\n \n @map('chores', function(chore, index) {\n return `${chore.toUpperCase()}!`;\n })\n excitingChores;\n });\n \n let hamster = new Hamster(['clean', 'write more unit tests']);\n \n hamster.excitingChores; // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject from '@ember/object';\n import { map } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n excitingChores: map('chores', function(chore, index) {\n return `${chore.toUpperCase()}!`;\n })\n });\n \n let hamster = Hamster.create({\n chores: ['clean', 'write more unit tests']\n });\n \n hamster.excitingChores; // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n ```\n \n You can optionally pass an array of additional dependent keys as the second\n parameter to the macro, if your map function relies on any external values:\n \n ```javascript\n import { set } from '@ember/object';\n import { map } from '@ember/object/computed';\n \n class Hamster {\n shouldUpperCase = false;\n \n constructor(chores) {\n set(this, 'chores', chores);\n }\n \n @map('chores', ['shouldUpperCase'], function(chore, index) {\n if (this.shouldUpperCase) {\n return `${chore.toUpperCase()}!`;\n } else {\n return `${chore}!`;\n }\n })\n excitingChores;\n }\n \n let hamster = new Hamster(['clean', 'write more unit tests']);\n \n hamster.excitingChores; // ['clean!', 'write more unit tests!']\n \n set(hamster, 'shouldUpperCase', true);\n hamster.excitingChores; // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n ```\n \n @method map\n @for @ember/object/computed\n @static\n @param {String} dependentKey\n @param {Array} [additionalDependentKeys] optional array of additional\n dependent keys\n @param {Function} callback\n @return {ComputedProperty} an array mapped via the callback\n @public\n */\n\n\n function map(dependentKey, additionalDependentKeys, callback) {\n (0, _debug.assert)('You attempted to use @map as a decorator directly, but it requires atleast `dependentKey` and `callback` parameters', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n\n if (callback === undefined && typeof additionalDependentKeys === 'function') {\n callback = additionalDependentKeys;\n additionalDependentKeys = [];\n }\n\n (0, _debug.assert)('The final parameter provided to map must be a callback function', typeof callback === 'function');\n (0, _debug.assert)('The second parameter provided to map must either be the callback or an array of additional dependent keys', Array.isArray(additionalDependentKeys));\n return arrayMacro(dependentKey, additionalDependentKeys, function (value) {\n return value.map(callback, this);\n });\n }\n /**\n Returns an array mapped to the specified key.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { mapBy } from '@ember/object/computed';\n \n class Person {\n children = [];\n \n @mapBy('children', 'age') childAges;\n }\n \n let lordByron = new Person();\n \n lordByron.childAges; // []\n \n set(lordByron, 'children', [\n {\n name: 'Augusta Ada Byron',\n age: 7\n }\n ]);\n lordByron.childAges; // [7]\n \n set(lordByron, 'children', [\n ...lordByron.children,\n {\n name: 'Allegra Byron',\n age: 5\n }, {\n name: 'Elizabeth Medora Leigh',\n age: 8\n }\n ]);\n lordByron.childAges; // [7, 5, 8]\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { mapBy } from '@ember/object/computed';\n \n let Person = EmberObject.extend({\n childAges: mapBy('children', 'age')\n });\n \n let lordByron = Person.create({ children: [] });\n \n lordByron.childAges; // []\n \n set(lordByron, 'children', [\n {\n name: 'Augusta Ada Byron',\n age: 7\n }\n ]);\n lordByron.childAges; // [7]\n \n set(lordByron, 'children', [\n ...lordByron.children,\n {\n name: 'Allegra Byron',\n age: 5\n }, {\n name: 'Elizabeth Medora Leigh',\n age: 8\n }\n ]);\n lordByron.childAges; // [7, 5, 8]\n ```\n \n @method mapBy\n @for @ember/object/computed\n @static\n @param {String} dependentKey\n @param {String} propertyKey\n @return {ComputedProperty} an array mapped to the specified key\n @public\n */\n\n\n function mapBy(dependentKey, propertyKey) {\n (0, _debug.assert)('You attempted to use @mapBy as a decorator directly, but it requires `dependentKey` and `propertyKey` parameters', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n (0, _debug.assert)('`computed.mapBy` expects a property string for its second argument, ' + 'perhaps you meant to use \"map\"', typeof propertyKey === 'string');\n (0, _debug.assert)(\"Dependent key passed to `computed.mapBy` shouldn't contain brace expanding pattern.\", !/[\\[\\]\\{\\}]/g.test(dependentKey));\n return map(dependentKey + \".@each.\" + propertyKey, item => (0, _metal.get)(item, propertyKey));\n }\n /**\n Filters the array by the callback.\n \n The callback method you provide should have the following signature:\n - `item` is the current item in the iteration.\n - `index` is the integer index of the current item in the iteration.\n - `array` is the dependant array itself.\n \n ```javascript\n function filterCallback(item, index, array);\n ```\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { filter } from '@ember/object/computed';\n \n class Hamster {\n constructor(chores) {\n set(this, 'chores', chores);\n }\n \n @filter('chores', function(chore, index, array) {\n return !chore.done;\n })\n remainingChores;\n }\n \n let hamster = Hamster.create([\n { name: 'cook', done: true },\n { name: 'clean', done: true },\n { name: 'write more unit tests', done: false }\n ]);\n \n hamster.remainingChores; // [{name: 'write more unit tests', done: false}]\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject from '@ember/object';\n import { filter } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n remainingChores: filter('chores', function(chore, index, array) {\n return !chore.done;\n })\n });\n \n let hamster = Hamster.create({\n chores: [\n { name: 'cook', done: true },\n { name: 'clean', done: true },\n { name: 'write more unit tests', done: false }\n ]\n });\n \n hamster.remainingChores; // [{name: 'write more unit tests', done: false}]\n ```\n \n You can also use `@each.property` in your dependent key, the callback will\n still use the underlying array:\n \n ```javascript\n import { set } from '@ember/object';\n import { filter } from '@ember/object/computed';\n \n class Hamster {\n constructor(chores) {\n set(this, 'chores', chores);\n }\n \n @filter('chores.@each.done', function(chore, index, array) {\n return !chore.done;\n })\n remainingChores;\n }\n \n let hamster = new Hamster([\n { name: 'cook', done: true },\n { name: 'clean', done: true },\n { name: 'write more unit tests', done: false }\n ]);\n hamster.remainingChores; // [{name: 'write more unit tests', done: false}]\n \n set(hamster.chores[2], 'done', true);\n hamster.remainingChores; // []\n ```\n \n Finally, you can optionally pass an array of additional dependent keys as the\n second parameter to the macro, if your filter function relies on any external\n values:\n \n ```javascript\n import { filter } from '@ember/object/computed';\n \n class Hamster {\n constructor(chores) {\n set(this, 'chores', chores);\n }\n \n doneKey = 'finished';\n \n @filter('chores', ['doneKey'], function(chore, index, array) {\n return !chore[this.doneKey];\n })\n remainingChores;\n }\n \n let hamster = new Hamster([\n { name: 'cook', finished: true },\n { name: 'clean', finished: true },\n { name: 'write more unit tests', finished: false }\n ]);\n \n hamster.remainingChores; // [{name: 'write more unit tests', finished: false}]\n ```\n \n @method filter\n @for @ember/object/computed\n @static\n @param {String} dependentKey\n @param {Array} [additionalDependentKeys] optional array of additional dependent keys\n @param {Function} callback\n @return {ComputedProperty} the filtered array\n @public\n */\n\n\n function filter(dependentKey, additionalDependentKeys, callback) {\n (0, _debug.assert)('You attempted to use @filter as a decorator directly, but it requires atleast `dependentKey` and `callback` parameters', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n\n if (callback === undefined && typeof additionalDependentKeys === 'function') {\n callback = additionalDependentKeys;\n additionalDependentKeys = [];\n }\n\n (0, _debug.assert)('The final parameter provided to filter must be a callback function', typeof callback === 'function');\n (0, _debug.assert)('The second parameter provided to filter must either be the callback or an array of additional dependent keys', Array.isArray(additionalDependentKeys));\n return arrayMacro(dependentKey, additionalDependentKeys, function (value) {\n return value.filter(callback, this);\n });\n }\n /**\n Filters the array by the property and value.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { filterBy } from '@ember/object/computed';\n \n class Hamster {\n constructor(chores) {\n set(this, 'chores', chores);\n }\n \n @filterBy('chores', 'done', false) remainingChores;\n }\n \n let hamster = new Hamster([\n { name: 'cook', done: true },\n { name: 'clean', done: true },\n { name: 'write more unit tests', done: false }\n ]);\n \n hamster.remainingChores; // [{ name: 'write more unit tests', done: false }]\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject from '@ember/object';\n import { filterBy } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n remainingChores: filterBy('chores', 'done', false)\n });\n \n let hamster = Hamster.create({\n chores: [\n { name: 'cook', done: true },\n { name: 'clean', done: true },\n { name: 'write more unit tests', done: false }\n ]\n });\n \n hamster.remainingChores; // [{ name: 'write more unit tests', done: false }]\n ```\n \n @method filterBy\n @for @ember/object/computed\n @static\n @param {String} dependentKey\n @param {String} propertyKey\n @param {*} value\n @return {ComputedProperty} the filtered array\n @public\n */\n\n\n function filterBy(dependentKey, propertyKey, value) {\n (0, _debug.assert)('You attempted to use @filterBy as a decorator directly, but it requires atleast `dependentKey` and `propertyKey` parameters', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n (0, _debug.assert)(\"Dependent key passed to `computed.filterBy` shouldn't contain brace expanding pattern.\", !/[\\[\\]\\{\\}]/g.test(dependentKey));\n let callback;\n\n if (arguments.length === 2) {\n callback = item => (0, _metal.get)(item, propertyKey);\n } else {\n callback = item => (0, _metal.get)(item, propertyKey) === value;\n }\n\n return filter(dependentKey + \".@each.\" + propertyKey, callback);\n }\n /**\n A computed property which returns a new array with all the unique elements\n from one or more dependent arrays.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { uniq } from '@ember/object/computed';\n \n class Hamster {\n constructor(fruits) {\n set(this, 'fruits', fruits);\n }\n \n @uniq('fruits') uniqueFruits;\n }\n \n let hamster = new Hamster([\n 'banana',\n 'grape',\n 'kale',\n 'banana'\n ]);\n \n hamster.uniqueFruits; // ['banana', 'grape', 'kale']\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject from '@ember/object';\n import { uniq } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n uniqueFruits: uniq('fruits')\n });\n \n let hamster = Hamster.create({\n fruits: [\n 'banana',\n 'grape',\n 'kale',\n 'banana'\n ]\n });\n \n hamster.uniqueFruits; // ['banana', 'grape', 'kale']\n ```\n \n @method uniq\n @for @ember/object/computed\n @static\n @param {String} propertyKey*\n @return {ComputedProperty} computes a new array with all the\n unique elements from the dependent array\n @public\n */\n\n\n function uniq(...args) {\n (0, _debug.assert)('You attempted to use @uniq/@union as a decorator directly, but it requires atleast one dependent key parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return multiArrayMacro(args, function (dependentKeys) {\n let uniq = (0, _runtime.A)();\n let seen = new Set();\n dependentKeys.forEach(dependentKey => {\n let value = (0, _metal.get)(this, dependentKey);\n\n if ((0, _runtime.isArray)(value)) {\n value.forEach(item => {\n if (!seen.has(item)) {\n seen.add(item);\n uniq.push(item);\n }\n });\n }\n });\n return uniq;\n }, 'uniq');\n }\n /**\n A computed property which returns a new array with all the unique elements\n from an array, with uniqueness determined by specific key.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { uniqBy } from '@ember/object/computed';\n \n class Hamster {\n constructor(fruits) {\n set(this, 'fruits', fruits);\n }\n \n @uniqBy('fruits', 'id') uniqueFruits;\n }\n \n let hamster = new Hamster([\n { id: 1, 'banana' },\n { id: 2, 'grape' },\n { id: 3, 'peach' },\n { id: 1, 'banana' }\n ]);\n \n hamster.uniqueFruits; // [ { id: 1, 'banana' }, { id: 2, 'grape' }, { id: 3, 'peach' }]\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject from '@ember/object';\n import { uniqBy } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n uniqueFruits: uniqBy('fruits', 'id')\n });\n \n let hamster = Hamster.create({\n fruits: [\n { id: 1, 'banana' },\n { id: 2, 'grape' },\n { id: 3, 'peach' },\n { id: 1, 'banana' }\n ]\n });\n \n hamster.uniqueFruits; // [ { id: 1, 'banana' }, { id: 2, 'grape' }, { id: 3, 'peach' }]\n ```\n \n @method uniqBy\n @for @ember/object/computed\n @static\n @param {String} dependentKey\n @param {String} propertyKey\n @return {ComputedProperty} computes a new array with all the\n unique elements from the dependent array\n @public\n */\n\n\n function uniqBy(dependentKey, propertyKey) {\n (0, _debug.assert)('You attempted to use @uniqBy as a decorator directly, but it requires `dependentKey` and `propertyKey` parameters', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n (0, _debug.assert)(\"Dependent key passed to `computed.uniqBy` shouldn't contain brace expanding pattern.\", !/[\\[\\]\\{\\}]/g.test(dependentKey));\n return (0, _metal.computed)(dependentKey + \".[]\", function () {\n let list = (0, _metal.get)(this, dependentKey);\n return (0, _runtime.isArray)(list) ? (0, _runtime.uniqBy)(list, propertyKey) : (0, _runtime.A)();\n }).readOnly();\n }\n /**\n A computed property which returns a new array with all the unique elements\n from one or more dependent arrays.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { union } from '@ember/object/computed';\n \n class Hamster {\n constructor(fruits, vegetables) {\n set(this, 'fruits', fruits);\n set(this, 'vegetables', vegetables);\n }\n \n @union('fruits', 'vegetables') ediblePlants;\n });\n \n let hamster = new, Hamster(\n [\n 'banana',\n 'grape',\n 'kale',\n 'banana',\n 'tomato'\n ],\n [\n 'tomato',\n 'carrot',\n 'lettuce'\n ]\n );\n \n hamster.uniqueFruits; // ['banana', 'grape', 'kale', 'tomato', 'carrot', 'lettuce']\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject from '@ember/object';\n import { union } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n uniqueFruits: union('fruits', 'vegetables')\n });\n \n let hamster = Hamster.create({\n fruits: [\n 'banana',\n 'grape',\n 'kale',\n 'banana',\n 'tomato'\n ],\n vegetables: [\n 'tomato',\n 'carrot',\n 'lettuce'\n ]\n });\n \n hamster.uniqueFruits; // ['banana', 'grape', 'kale', 'tomato', 'carrot', 'lettuce']\n ```\n \n @method union\n @for @ember/object/computed\n @static\n @param {String} propertyKey*\n @return {ComputedProperty} computes a new array with all the unique elements\n from one or more dependent arrays.\n @public\n */\n\n\n let union = uniq;\n /**\n A computed property which returns a new array with all the elements\n two or more dependent arrays have in common.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { intersect } from '@ember/object/computed';\n \n class FriendGroups {\n constructor(adaFriends, charlesFriends) {\n set(this, 'adaFriends', adaFriends);\n set(this, 'charlesFriends', charlesFriends);\n }\n \n @intersect('adaFriends', 'charlesFriends') friendsInCommon;\n }\n \n let groups = new FriendGroups(\n ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'],\n ['William King', 'Mary Somerville', 'Ada Lovelace', 'George Peacock']\n );\n \n groups.friendsInCommon; // ['William King', 'Mary Somerville']\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject from '@ember/object';\n import { intersect } from '@ember/object/computed';\n \n let FriendGroups = EmberObject.extend({\n friendsInCommon: intersect('adaFriends', 'charlesFriends')\n });\n \n let groups = FriendGroups.create({\n adaFriends: ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'],\n charlesFriends: ['William King', 'Mary Somerville', 'Ada Lovelace', 'George Peacock']\n });\n \n groups.friendsInCommon; // ['William King', 'Mary Somerville']\n ```\n \n @method intersect\n @for @ember/object/computed\n @static\n @param {String} propertyKey*\n @return {ComputedProperty} computes a new array with all the duplicated\n elements from the dependent arrays\n @public\n */\n\n _exports.union = union;\n\n function intersect(...args) {\n (0, _debug.assert)('You attempted to use @intersect as a decorator directly, but it requires atleast one dependent key parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return multiArrayMacro(args, function (dependentKeys) {\n let arrays = dependentKeys.map(dependentKey => {\n let array = (0, _metal.get)(this, dependentKey);\n return (0, _runtime.isArray)(array) ? array : [];\n });\n let results = arrays.pop().filter(candidate => {\n for (let i = 0; i < arrays.length; i++) {\n let found = false;\n let array = arrays[i];\n\n for (let j = 0; j < array.length; j++) {\n if (array[j] === candidate) {\n found = true;\n break;\n }\n }\n\n if (found === false) {\n return false;\n }\n }\n\n return true;\n });\n return (0, _runtime.A)(results);\n }, 'intersect');\n }\n /**\n A computed property which returns a new array with all the properties from the\n first dependent array that are not in the second dependent array.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { setDiff } from '@ember/object/computed';\n \n class Hamster {\n constructor(likes, fruits) {\n set(this, 'likes', likes);\n set(this, 'fruits', fruits);\n }\n \n @setDiff('likes', 'fruits') wants;\n }\n \n let hamster = new Hamster(\n [\n 'banana',\n 'grape',\n 'kale'\n ],\n [\n 'grape',\n 'kale',\n ]\n );\n \n hamster.wants; // ['banana']\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject from '@ember/object';\n import { setDiff } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n wants: setDiff('likes', 'fruits')\n });\n \n let hamster = Hamster.create({\n likes: [\n 'banana',\n 'grape',\n 'kale'\n ],\n fruits: [\n 'grape',\n 'kale',\n ]\n });\n \n hamster.wants; // ['banana']\n ```\n \n @method setDiff\n @for @ember/object/computed\n @static\n @param {String} setAProperty\n @param {String} setBProperty\n @return {ComputedProperty} computes a new array with all the items from the\n first dependent array that are not in the second dependent array\n @public\n */\n\n\n function setDiff(setAProperty, setBProperty) {\n (0, _debug.assert)('You attempted to use @setDiff as a decorator directly, but it requires atleast one dependent key parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n (0, _debug.assert)('`computed.setDiff` requires exactly two dependent arrays.', arguments.length === 2);\n (0, _debug.assert)(\"Dependent keys passed to `computed.setDiff` shouldn't contain brace expanding pattern.\", !/[\\[\\]\\{\\}]/g.test(setAProperty) && !/[\\[\\]\\{\\}]/g.test(setBProperty));\n return (0, _metal.computed)(setAProperty + \".[]\", setBProperty + \".[]\", function () {\n let setA = this.get(setAProperty);\n let setB = this.get(setBProperty);\n\n if (!(0, _runtime.isArray)(setA)) {\n return (0, _runtime.A)();\n }\n\n if (!(0, _runtime.isArray)(setB)) {\n return (0, _runtime.A)(setA);\n }\n\n return setA.filter(x => setB.indexOf(x) === -1);\n }).readOnly();\n }\n /**\n A computed property that returns the array of values for the provided\n dependent properties.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { collect } from '@ember/object/computed';\n \n class Hamster {\n @collect('hat', 'shirt') clothes;\n }\n \n let hamster = new Hamster();\n \n hamster.clothes; // [null, null]\n \n set(hamster, 'hat', 'Camp Hat');\n set(hamster, 'shirt', 'Camp Shirt');\n hamster.clothes; // ['Camp Hat', 'Camp Shirt']\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject, { set } from '@ember/object';\n import { collect } from '@ember/object/computed';\n \n let Hamster = EmberObject.extend({\n clothes: collect('hat', 'shirt')\n });\n \n let hamster = Hamster.create();\n \n hamster.clothes; // [null, null]\n \n set(hamster, 'hat', 'Camp Hat');\n set(hamster, 'shirt', 'Camp Shirt');\n hamster.clothes; // ['Camp Hat', 'Camp Shirt']\n ```\n \n @method collect\n @for @ember/object/computed\n @static\n @param {String} dependentKey*\n @return {ComputedProperty} computed property which maps values of all passed\n in properties to an array.\n @public\n */\n\n\n function collect(...dependentKeys) {\n (0, _debug.assert)('You attempted to use @collect as a decorator directly, but it requires atleast one dependent key parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n return multiArrayMacro(dependentKeys, function () {\n let res = dependentKeys.map(key => {\n let val = (0, _metal.get)(this, key);\n return val === undefined ? null : val;\n });\n return (0, _runtime.A)(res);\n }, 'collect');\n }\n /**\n A computed property which returns a new array with all the properties from the\n first dependent array sorted based on a property or sort function. The sort\n macro can be used in two different ways:\n \n 1. By providing a sort callback function\n 2. By providing an array of keys to sort the array\n \n In the first form, the callback method you provide should have the following\n signature:\n \n ```javascript\n function sortCallback(itemA, itemB);\n ```\n \n - `itemA` the first item to compare.\n - `itemB` the second item to compare.\n \n This function should return negative number (e.g. `-1`) when `itemA` should\n come before `itemB`. It should return positive number (e.g. `1`) when `itemA`\n should come after `itemB`. If the `itemA` and `itemB` are equal this function\n should return `0`.\n \n Therefore, if this function is comparing some numeric values, simple `itemA -\n itemB` or `itemA.get( 'foo' ) - itemB.get( 'foo' )` can be used instead of\n series of `if`.\n \n Example:\n \n ```javascript\n import { set } from '@ember/object';\n import { sort } from '@ember/object/computed';\n \n class ToDoList {\n constructor(todos) {\n set(this, 'todos', todos);\n }\n \n // using a custom sort function\n @sort('todos', function(a, b){\n if (a.priority > b.priority) {\n return 1;\n } else if (a.priority < b.priority) {\n return -1;\n }\n \n return 0;\n })\n priorityTodos;\n }\n \n let todoList = new ToDoList([\n { name: 'Unit Test', priority: 2 },\n { name: 'Documentation', priority: 3 },\n { name: 'Release', priority: 1 }\n ]);\n \n todoList.priorityTodos; // [{ name:'Release', priority:1 }, { name:'Unit Test', priority:2 }, { name:'Documentation', priority:3 }]\n ```\n \n Classic Class Example:\n \n ```javascript\n import EmberObject from '@ember/object';\n import { sort } from '@ember/object/computed';\n \n let ToDoList = EmberObject.extend({\n // using a custom sort function\n priorityTodos: sort('todos', function(a, b){\n if (a.priority > b.priority) {\n return 1;\n } else if (a.priority < b.priority) {\n return -1;\n }\n \n return 0;\n })\n });\n \n let todoList = ToDoList.create({\n todos: [\n { name: 'Unit Test', priority: 2 },\n { name: 'Documentation', priority: 3 },\n { name: 'Release', priority: 1 }\n ]\n });\n \n todoList.priorityTodos; // [{ name:'Release', priority:1 }, { name:'Unit Test', priority:2 }, { name:'Documentation', priority:3 }]\n ```\n \n You can also optionally pass an array of additional dependent keys as the\n second parameter, if your sort function is dependent on additional values that\n could changes:\n \n ```js\n import EmberObject, { set } from '@ember/object';\n import { sort } from '@ember/object/computed';\n \n class ToDoList {\n sortKey = 'priority';\n \n constructor(todos) {\n set(this, 'todos', todos);\n }\n \n // using a custom sort function\n @sort('todos', ['sortKey'], function(a, b){\n if (a[this.sortKey] > b[this.sortKey]) {\n return 1;\n } else if (a[this.sortKey] < b[this.sortKey]) {\n return -1;\n }\n \n return 0;\n })\n sortedTodos;\n });\n \n let todoList = new ToDoList([\n { name: 'Unit Test', priority: 2 },\n { name: 'Documentation', priority: 3 },\n { name: 'Release', priority: 1 }\n ]);\n \n todoList.priorityTodos; // [{ name:'Release', priority:1 }, { name:'Unit Test', priority:2 }, { name:'Documentation', priority:3 }]\n ```\n \n In the second form, you should provide the key of the array of sort values as\n the second parameter:\n \n ```javascript\n import { set } from '@ember/object';\n import { sort } from '@ember/object/computed';\n \n class ToDoList {\n constructor(todos) {\n set(this, 'todos', todos);\n }\n \n // using standard ascending sort\n todosSorting = ['name'];\n @sort('todos', 'todosSorting') sortedTodos;\n \n // using descending sort\n todosSortingDesc = ['name:desc'];\n @sort('todos', 'todosSortingDesc') sortedTodosDesc;\n }\n \n let todoList = new ToDoList([\n { name: 'Unit Test', priority: 2 },\n { name: 'Documentation', priority: 3 },\n { name: 'Release', priority: 1 }\n ]);\n \n todoList.sortedTodos; // [{ name:'Documentation', priority:3 }, { name:'Release', priority:1 }, { name:'Unit Test', priority:2 }]\n todoList.sortedTodosDesc; // [{ name:'Unit Test', priority:2 }, { name:'Release', priority:1 }, { name:'Documentation', priority:3 }]\n ```\n \n @method sort\n @for @ember/object/computed\n @static\n @param {String} itemsKey\n @param {Array} [additionalDependentKeys] optional array of additional\n dependent keys\n @param {String or Function} sortDefinition a dependent key to an array of sort\n properties (add `:desc` to the arrays sort properties to sort descending) or a\n function to use when sorting\n @return {ComputedProperty} computes a new sorted array based on the sort\n property array or callback function\n @public\n */\n\n\n function sort(itemsKey, additionalDependentKeys, sortDefinition) {\n (0, _debug.assert)('You attempted to use @sort as a decorator directly, but it requires atleast an `itemsKey` parameter', !(0, _metal.isElementDescriptor)(Array.prototype.slice.call(arguments)));\n\n if (_env.DEBUG) {\n let argumentsValid = false;\n\n if (arguments.length === 2) {\n argumentsValid = typeof itemsKey === 'string' && (typeof additionalDependentKeys === 'string' || typeof additionalDependentKeys === 'function');\n }\n\n if (arguments.length === 3) {\n argumentsValid = typeof itemsKey === 'string' && Array.isArray(additionalDependentKeys) && typeof sortDefinition === 'function';\n }\n\n (0, _debug.assert)('`computed.sort` can either be used with an array of sort properties or with a sort function. If used with an array of sort properties, it must receive exactly two arguments: the key of the array to sort, and the key of the array of sort properties. If used with a sort function, it may recieve up to three arguments: the key of the array to sort, an optional additional array of dependent keys for the computed property, and the sort function.', argumentsValid);\n }\n\n if (sortDefinition === undefined && !Array.isArray(additionalDependentKeys)) {\n sortDefinition = additionalDependentKeys;\n additionalDependentKeys = [];\n }\n\n if (typeof sortDefinition === 'function') {\n return customSort(itemsKey, additionalDependentKeys, sortDefinition);\n } else {\n return propertySort(itemsKey, sortDefinition);\n }\n }\n\n function customSort(itemsKey, additionalDependentKeys, comparator) {\n return arrayMacro(itemsKey, additionalDependentKeys, function (value) {\n return value.slice().sort((x, y) => comparator.call(this, x, y));\n });\n } // This one needs to dynamically set up and tear down observers on the itemsKey\n // depending on the sortProperties\n\n\n function propertySort(itemsKey, sortPropertiesKey) {\n let activeObserversMap = new WeakMap();\n let sortPropertyDidChangeMap = new WeakMap();\n return (0, _metal.computed)(sortPropertiesKey + \".[]\", function (key) {\n let sortProperties = (0, _metal.get)(this, sortPropertiesKey);\n (0, _debug.assert)(\"The sort definition for '\" + key + \"' on \" + this + \" must be a function or an array of strings\", (0, _runtime.isArray)(sortProperties) && sortProperties.every(s => typeof s === 'string')); // Add/remove property observers as required.\n\n let activeObservers = activeObserversMap.get(this);\n\n if (!sortPropertyDidChangeMap.has(this)) {\n sortPropertyDidChangeMap.set(this, function () {\n (0, _metal.notifyPropertyChange)(this, key);\n });\n }\n\n let sortPropertyDidChange = sortPropertyDidChangeMap.get(this);\n\n if (activeObservers !== undefined) {\n activeObservers.forEach(path => (0, _metal.removeObserver)(this, path, sortPropertyDidChange));\n }\n\n let itemsKeyIsAtThis = itemsKey === '@this';\n let normalizedSortProperties = normalizeSortProperties(sortProperties);\n\n if (normalizedSortProperties.length === 0) {\n let path = itemsKeyIsAtThis ? \"[]\" : itemsKey + \".[]\";\n (0, _metal.addObserver)(this, path, sortPropertyDidChange);\n activeObservers = [path];\n } else {\n activeObservers = normalizedSortProperties.map(([prop]) => {\n let path = itemsKeyIsAtThis ? \"@each.\" + prop : itemsKey + \".@each.\" + prop;\n (0, _metal.addObserver)(this, path, sortPropertyDidChange);\n return path;\n });\n }\n\n activeObserversMap.set(this, activeObservers);\n let items = itemsKeyIsAtThis ? this : (0, _metal.get)(this, itemsKey);\n\n if (!(0, _runtime.isArray)(items)) {\n return (0, _runtime.A)();\n }\n\n if (normalizedSortProperties.length === 0) {\n return (0, _runtime.A)(items.slice());\n } else {\n return sortByNormalizedSortProperties(items, normalizedSortProperties);\n }\n }).readOnly();\n }\n\n function normalizeSortProperties(sortProperties) {\n return sortProperties.map(p => {\n let [prop, direction] = p.split(':');\n direction = direction || 'asc';\n return [prop, direction];\n });\n }\n\n function sortByNormalizedSortProperties(items, normalizedSortProperties) {\n return (0, _runtime.A)(items.slice().sort((itemA, itemB) => {\n for (let i = 0; i < normalizedSortProperties.length; i++) {\n let [prop, direction] = normalizedSortProperties[i];\n let result = (0, _runtime.compare)((0, _metal.get)(itemA, prop), (0, _metal.get)(itemB, prop));\n\n if (result !== 0) {\n return direction === 'desc' ? -1 * result : result;\n }\n }\n\n return 0;\n }));\n }\n});","enifed(\"@ember/object/tests/action_test\", [\"@ember/canary-features\", \"@ember/-internals/glimmer\", \"@ember/-internals/runtime\", \"internal-test-helpers\", \"@ember/object/index\"], function (_canaryFeatures, _glimmer, _runtime, _internalTestHelpers, _index) {\n \"use strict\";\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"\\n Click Foo! \\n Click Bar! \\n Click Baz! \\n Click Qux! \\n \"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n function _initializerDefineProperty(target, property, descriptor, context) {\n if (!descriptor) return;\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n });\n }\n\n function _initializerWarningHelper(descriptor, context) {\n throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.');\n }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n var desc = {};\n Object.keys(descriptor).forEach(function (key) {\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n\n if ('value' in desc || desc.initializer) {\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0) {\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n\n if (_canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT) {\n (0, _internalTestHelpers.moduleFor)('@action decorator', class extends _internalTestHelpers.RenderingTestCase {\n '@test action decorator works with ES6 class'(assert) {\n var _class;\n\n let FooComponent = (_class = class FooComponent extends _glimmer.Component {\n foo() {\n assert.ok(true, 'called!');\n }\n\n }, _applyDecoratedDescriptor(_class.prototype, \"foo\", [_index.action], Object.getOwnPropertyDescriptor(_class.prototype, \"foo\"), _class.prototype), _class);\n this.registerComponent('foo-bar', {\n ComponentClass: FooComponent,\n template: \"Click Me! \"\n });\n this.render('{{foo-bar}}');\n this.$('button').click();\n }\n\n '@test action decorator does not add actions to superclass'(assert) {\n var _class2, _class3;\n\n let Foo = (_class2 = class Foo extends _runtime.Object {\n foo() {// Do nothing\n }\n\n }, _applyDecoratedDescriptor(_class2.prototype, \"foo\", [_index.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"foo\"), _class2.prototype), _class2);\n let Bar = (_class3 = class Bar extends Foo {\n bar() {\n assert.ok(false, 'called');\n }\n\n }, _applyDecoratedDescriptor(_class3.prototype, \"bar\", [_index.action], Object.getOwnPropertyDescriptor(_class3.prototype, \"bar\"), _class3.prototype), _class3);\n let foo = Foo.create();\n let bar = Bar.create();\n assert.equal(typeof foo.actions.foo, 'function', 'foo has foo action');\n assert.equal(typeof foo.actions.bar, 'undefined', 'foo does not have bar action');\n assert.equal(typeof bar.actions.foo, 'function', 'bar has foo action');\n assert.equal(typeof bar.actions.bar, 'function', 'bar has bar action');\n }\n\n '@test actions are properly merged through traditional and ES6 prototype hierarchy'(assert) {\n var _class4, _class5;\n\n assert.expect(4);\n\n let FooComponent = _glimmer.Component.extend({\n actions: {\n foo() {\n assert.ok(true, 'foo called!');\n }\n\n }\n });\n\n let BarComponent = (_class4 = class BarComponent extends FooComponent {\n bar() {\n assert.ok(true, 'bar called!');\n }\n\n }, _applyDecoratedDescriptor(_class4.prototype, \"bar\", [_index.action], Object.getOwnPropertyDescriptor(_class4.prototype, \"bar\"), _class4.prototype), _class4);\n let BazComponent = BarComponent.extend({\n actions: {\n baz() {\n assert.ok(true, 'baz called!');\n }\n\n }\n });\n let QuxComponent = (_class5 = class QuxComponent extends BazComponent {\n qux() {\n assert.ok(true, 'qux called!');\n }\n\n }, _applyDecoratedDescriptor(_class5.prototype, \"qux\", [_index.action], Object.getOwnPropertyDescriptor(_class5.prototype, \"qux\"), _class5.prototype), _class5);\n this.registerComponent('qux-component', {\n ComponentClass: QuxComponent,\n template: (0, _internalTestHelpers.strip)(_templateObject())\n });\n this.render('{{qux-component}}');\n this.$('button').click();\n }\n\n '@test action decorator super works with native class methods'(assert) {\n var _class6;\n\n class FooComponent extends _glimmer.Component {\n foo() {\n assert.ok(true, 'called!');\n }\n\n }\n\n let BarComponent = (_class6 = class BarComponent extends FooComponent {\n foo() {\n super.foo();\n }\n\n }, _applyDecoratedDescriptor(_class6.prototype, \"foo\", [_index.action], Object.getOwnPropertyDescriptor(_class6.prototype, \"foo\"), _class6.prototype), _class6);\n this.registerComponent('bar-bar', {\n ComponentClass: BarComponent,\n template: \"Click Me! \"\n });\n this.render('{{bar-bar}}');\n this.$('button').click();\n }\n\n '@test action decorator super works with traditional class methods'(assert) {\n var _class7;\n\n let FooComponent = _glimmer.Component.extend({\n foo() {\n assert.ok(true, 'called!');\n }\n\n });\n\n let BarComponent = (_class7 = class BarComponent extends FooComponent {\n foo() {\n super.foo();\n }\n\n }, _applyDecoratedDescriptor(_class7.prototype, \"foo\", [_index.action], Object.getOwnPropertyDescriptor(_class7.prototype, \"foo\"), _class7.prototype), _class7);\n this.registerComponent('bar-bar', {\n ComponentClass: BarComponent,\n template: \"Click Me! \"\n });\n this.render('{{bar-bar}}');\n this.$('button').click();\n } // This test fails with _classes_ compiled in loose mode\n\n\n '@skip action decorator works with parent native class actions'(assert) {\n var _class8, _class9;\n\n let FooComponent = (_class8 = class FooComponent extends _glimmer.Component {\n foo() {\n assert.ok(true, 'called!');\n }\n\n }, _applyDecoratedDescriptor(_class8.prototype, \"foo\", [_index.action], Object.getOwnPropertyDescriptor(_class8.prototype, \"foo\"), _class8.prototype), _class8);\n let BarComponent = (_class9 = class BarComponent extends FooComponent {\n foo() {\n super.foo();\n }\n\n }, _applyDecoratedDescriptor(_class9.prototype, \"foo\", [_index.action], Object.getOwnPropertyDescriptor(_class9.prototype, \"foo\"), _class9.prototype), _class9);\n this.registerComponent('bar-bar', {\n ComponentClass: BarComponent,\n template: \"Click Me! \"\n });\n this.render('{{bar-bar}}');\n this.$('button').click();\n }\n\n '@test action decorator binds functions'(assert) {\n var _class10, _temp;\n\n let FooComponent = (_class10 = (_temp = class FooComponent extends _glimmer.Component {\n constructor(...args) {\n super(...args);\n this.bar = 'some value';\n }\n\n foo() {\n assert.equal(this.bar, 'some value', 'context bound correctly');\n }\n\n }, _temp), _applyDecoratedDescriptor(_class10.prototype, \"foo\", [_index.action], Object.getOwnPropertyDescriptor(_class10.prototype, \"foo\"), _class10.prototype), _class10);\n this.registerComponent('foo-bar', {\n ComponentClass: FooComponent,\n template: 'Click Me! '\n });\n this.render('{{foo-bar}}');\n this.$('button').click();\n } // This test fails with _classes_ compiled in loose mode\n\n\n '@skip action decorator super works correctly when bound'(assert) {\n var _class12, _temp2, _class14;\n\n let FooComponent = (_class12 = (_temp2 = class FooComponent extends _glimmer.Component {\n constructor(...args) {\n super(...args);\n this.bar = 'some value';\n }\n\n foo() {\n assert.equal(this.bar, 'some value', 'context bound correctly');\n }\n\n }, _temp2), _applyDecoratedDescriptor(_class12.prototype, \"foo\", [_index.action], Object.getOwnPropertyDescriptor(_class12.prototype, \"foo\"), _class12.prototype), _class12);\n let BarComponent = (_class14 = class BarComponent extends FooComponent {\n foo() {\n super.foo();\n }\n\n }, _applyDecoratedDescriptor(_class14.prototype, \"foo\", [_index.action], Object.getOwnPropertyDescriptor(_class14.prototype, \"foo\"), _class14.prototype), _class14);\n this.registerComponent('bar-bar', {\n ComponentClass: BarComponent,\n template: 'Click Me! '\n });\n this.render('{{bar-bar}}');\n this.$('button').click();\n }\n\n '@test action decorator throws an error if applied to non-methods'() {\n expectAssertion(() => {\n var _class15, _descriptor, _temp3;\n\n let TestObject = (_class15 = (_temp3 = class TestObject extends _runtime.Object {\n constructor(...args) {\n super(...args);\n\n _initializerDefineProperty(this, \"foo\", _descriptor, this);\n }\n\n }, _temp3), _descriptor = _applyDecoratedDescriptor(_class15.prototype, \"foo\", [_index.action], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return 'bar';\n }\n }), _class15);\n new TestObject();\n }, /The @action decorator must be applied to methods/);\n }\n\n '@test action decorator throws an error if passed a function in native classes'() {\n expectAssertion(() => {\n var _dec, _class17, _descriptor2, _temp4;\n\n let TestObject = (_dec = (0, _index.action)(function () {}), (_class17 = (_temp4 = class TestObject extends _runtime.Object {\n constructor(...args) {\n super(...args);\n\n _initializerDefineProperty(this, \"foo\", _descriptor2, this);\n }\n\n }, _temp4), _descriptor2 = _applyDecoratedDescriptor(_class17.prototype, \"foo\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return 'bar';\n }\n }), _class17));\n new TestObject();\n }, /The @action decorator may only be passed a method when used in classic classes/);\n }\n\n '@test action decorator can be used as a classic decorator with strings'(assert) {\n let FooComponent = _glimmer.Component.extend({\n foo: (0, _index.action)(function () {\n assert.ok(true, 'called!');\n })\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooComponent,\n template: \"Click Me! \"\n });\n this.render('{{foo-bar}}');\n this.$('button').click();\n }\n\n '@test action decorator can be used as a classic decorator directly'(assert) {\n let FooComponent = _glimmer.Component.extend({\n foo: (0, _index.action)(function () {\n assert.ok(true, 'called!');\n })\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooComponent,\n template: 'Click Me! '\n });\n this.render('{{foo-bar}}');\n this.$('button').click();\n }\n\n });\n }\n});","enifed(\"@ember/object/tests/computed/computed_macros_test\", [\"@ember/-internals/metal\", \"@ember/object/computed\", \"@ember/-internals/runtime\", \"internal-test-helpers\"], function (_metal, _computed, _runtime, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('CP macros', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Ember.computed.empty'](assert) {\n let obj = _runtime.Object.extend({\n bestLannister: null,\n lannisters: null,\n bestLannisterUnspecified: (0, _computed.empty)('bestLannister'),\n noLannistersKnown: (0, _computed.empty)('lannisters')\n }).create({\n lannisters: (0, _runtime.A)()\n });\n\n assert.equal((0, _metal.get)(obj, 'bestLannisterUnspecified'), true, 'bestLannister initially empty');\n assert.equal((0, _metal.get)(obj, 'noLannistersKnown'), true, 'lannisters initially empty');\n (0, _metal.get)(obj, 'lannisters').pushObject('Tyrion');\n (0, _metal.set)(obj, 'bestLannister', 'Tyrion');\n assert.equal((0, _metal.get)(obj, 'bestLannisterUnspecified'), false, 'empty respects strings');\n assert.equal((0, _metal.get)(obj, 'noLannistersKnown'), false, 'empty respects array mutations');\n }\n\n ['@test Ember.computed.notEmpty'](assert) {\n let obj = _runtime.Object.extend({\n bestLannister: null,\n lannisters: null,\n bestLannisterSpecified: (0, _computed.notEmpty)('bestLannister'),\n LannistersKnown: (0, _computed.notEmpty)('lannisters')\n }).create({\n lannisters: (0, _runtime.A)()\n });\n\n assert.equal((0, _metal.get)(obj, 'bestLannisterSpecified'), false, 'bestLannister initially empty');\n assert.equal((0, _metal.get)(obj, 'LannistersKnown'), false, 'lannisters initially empty');\n (0, _metal.get)(obj, 'lannisters').pushObject('Tyrion');\n (0, _metal.set)(obj, 'bestLannister', 'Tyrion');\n assert.equal((0, _metal.get)(obj, 'bestLannisterSpecified'), true, 'empty respects strings');\n assert.equal((0, _metal.get)(obj, 'LannistersKnown'), true, 'empty respects array mutations');\n }\n\n ['@test computed.not'](assert) {\n let obj = {\n foo: true\n };\n (0, _metal.defineProperty)(obj, 'notFoo', (0, _computed.not)('foo'));\n assert.equal((0, _metal.get)(obj, 'notFoo'), false);\n obj = {\n foo: {\n bar: true\n }\n };\n (0, _metal.defineProperty)(obj, 'notFoo', (0, _computed.not)('foo.bar'));\n assert.equal((0, _metal.get)(obj, 'notFoo'), false);\n }\n\n ['@test computed.empty'](assert) {\n let obj = {\n foo: [],\n bar: undefined,\n baz: null,\n quz: ''\n };\n (0, _metal.defineProperty)(obj, 'fooEmpty', (0, _computed.empty)('foo'));\n (0, _metal.defineProperty)(obj, 'barEmpty', (0, _computed.empty)('bar'));\n (0, _metal.defineProperty)(obj, 'bazEmpty', (0, _computed.empty)('baz'));\n (0, _metal.defineProperty)(obj, 'quzEmpty', (0, _computed.empty)('quz'));\n assert.equal((0, _metal.get)(obj, 'fooEmpty'), true);\n (0, _metal.set)(obj, 'foo', [1]);\n assert.equal((0, _metal.get)(obj, 'fooEmpty'), false);\n assert.equal((0, _metal.get)(obj, 'barEmpty'), true);\n assert.equal((0, _metal.get)(obj, 'bazEmpty'), true);\n assert.equal((0, _metal.get)(obj, 'quzEmpty'), true);\n (0, _metal.set)(obj, 'quz', 'asdf');\n assert.equal((0, _metal.get)(obj, 'quzEmpty'), false);\n }\n\n ['@test computed.bool'](assert) {\n let obj = {\n foo() {},\n\n bar: 'asdf',\n baz: null,\n quz: false\n };\n (0, _metal.defineProperty)(obj, 'fooBool', (0, _computed.bool)('foo'));\n (0, _metal.defineProperty)(obj, 'barBool', (0, _computed.bool)('bar'));\n (0, _metal.defineProperty)(obj, 'bazBool', (0, _computed.bool)('baz'));\n (0, _metal.defineProperty)(obj, 'quzBool', (0, _computed.bool)('quz'));\n assert.equal((0, _metal.get)(obj, 'fooBool'), true);\n assert.equal((0, _metal.get)(obj, 'barBool'), true);\n assert.equal((0, _metal.get)(obj, 'bazBool'), false);\n assert.equal((0, _metal.get)(obj, 'quzBool'), false);\n }\n\n ['@test computed.alias'](assert) {\n let obj = {\n bar: 'asdf',\n baz: null,\n quz: false\n };\n (0, _metal.defineProperty)(obj, 'bay', (0, _metal.computed)(function () {\n return 'apple';\n }));\n (0, _metal.defineProperty)(obj, 'barAlias', (0, _metal.alias)('bar'));\n (0, _metal.defineProperty)(obj, 'bazAlias', (0, _metal.alias)('baz'));\n (0, _metal.defineProperty)(obj, 'quzAlias', (0, _metal.alias)('quz'));\n (0, _metal.defineProperty)(obj, 'bayAlias', (0, _metal.alias)('bay'));\n assert.equal((0, _metal.get)(obj, 'barAlias'), 'asdf');\n assert.equal((0, _metal.get)(obj, 'bazAlias'), null);\n assert.equal((0, _metal.get)(obj, 'quzAlias'), false);\n assert.equal((0, _metal.get)(obj, 'bayAlias'), 'apple');\n (0, _metal.set)(obj, 'barAlias', 'newBar');\n (0, _metal.set)(obj, 'bazAlias', 'newBaz');\n (0, _metal.set)(obj, 'quzAlias', null);\n assert.equal((0, _metal.get)(obj, 'barAlias'), 'newBar');\n assert.equal((0, _metal.get)(obj, 'bazAlias'), 'newBaz');\n assert.equal((0, _metal.get)(obj, 'quzAlias'), null);\n assert.equal((0, _metal.get)(obj, 'bar'), 'newBar');\n assert.equal((0, _metal.get)(obj, 'baz'), 'newBaz');\n assert.equal((0, _metal.get)(obj, 'quz'), null);\n }\n\n ['@test computed.alias set'](assert) {\n let obj = {};\n let constantValue = 'always `a`';\n (0, _metal.defineProperty)(obj, 'original', (0, _metal.computed)({\n get: function () {\n return constantValue;\n },\n set: function () {\n return constantValue;\n }\n }));\n (0, _metal.defineProperty)(obj, 'aliased', (0, _metal.alias)('original'));\n assert.equal((0, _metal.get)(obj, 'original'), constantValue);\n assert.equal((0, _metal.get)(obj, 'aliased'), constantValue);\n (0, _metal.set)(obj, 'aliased', 'should not set to this value');\n assert.equal((0, _metal.get)(obj, 'original'), constantValue);\n assert.equal((0, _metal.get)(obj, 'aliased'), constantValue);\n }\n\n ['@test computed.match'](assert) {\n let obj = {\n name: 'Paul'\n };\n (0, _metal.defineProperty)(obj, 'isPaul', (0, _computed.match)('name', /Paul/));\n assert.equal((0, _metal.get)(obj, 'isPaul'), true, 'is Paul');\n (0, _metal.set)(obj, 'name', 'Pierre');\n assert.equal((0, _metal.get)(obj, 'isPaul'), false, 'is not Paul anymore');\n }\n\n ['@test computed.notEmpty'](assert) {\n let obj = {\n items: [1]\n };\n (0, _metal.defineProperty)(obj, 'hasItems', (0, _computed.notEmpty)('items'));\n assert.equal((0, _metal.get)(obj, 'hasItems'), true, 'is not empty');\n (0, _metal.set)(obj, 'items', []);\n assert.equal((0, _metal.get)(obj, 'hasItems'), false, 'is empty');\n }\n\n ['@test computed.equal'](assert) {\n let obj = {\n name: 'Paul'\n };\n (0, _metal.defineProperty)(obj, 'isPaul', (0, _computed.equal)('name', 'Paul'));\n assert.equal((0, _metal.get)(obj, 'isPaul'), true, 'is Paul');\n (0, _metal.set)(obj, 'name', 'Pierre');\n assert.equal((0, _metal.get)(obj, 'isPaul'), false, 'is not Paul anymore');\n }\n\n ['@test computed.gt'](assert) {\n let obj = {\n number: 2\n };\n (0, _metal.defineProperty)(obj, 'isGreaterThenOne', (0, _computed.gt)('number', 1));\n assert.equal((0, _metal.get)(obj, 'isGreaterThenOne'), true, 'is gt');\n (0, _metal.set)(obj, 'number', 1);\n assert.equal((0, _metal.get)(obj, 'isGreaterThenOne'), false, 'is not gt');\n (0, _metal.set)(obj, 'number', 0);\n assert.equal((0, _metal.get)(obj, 'isGreaterThenOne'), false, 'is not gt');\n }\n\n ['@test computed.gte'](assert) {\n let obj = {\n number: 2\n };\n (0, _metal.defineProperty)(obj, 'isGreaterOrEqualThenOne', (0, _computed.gte)('number', 1));\n assert.equal((0, _metal.get)(obj, 'isGreaterOrEqualThenOne'), true, 'is gte');\n (0, _metal.set)(obj, 'number', 1);\n assert.equal((0, _metal.get)(obj, 'isGreaterOrEqualThenOne'), true, 'is gte');\n (0, _metal.set)(obj, 'number', 0);\n assert.equal((0, _metal.get)(obj, 'isGreaterOrEqualThenOne'), false, 'is not gte');\n }\n\n ['@test computed.lt'](assert) {\n let obj = {\n number: 0\n };\n (0, _metal.defineProperty)(obj, 'isLesserThenOne', (0, _computed.lt)('number', 1));\n assert.equal((0, _metal.get)(obj, 'isLesserThenOne'), true, 'is lt');\n (0, _metal.set)(obj, 'number', 1);\n assert.equal((0, _metal.get)(obj, 'isLesserThenOne'), false, 'is not lt');\n (0, _metal.set)(obj, 'number', 2);\n assert.equal((0, _metal.get)(obj, 'isLesserThenOne'), false, 'is not lt');\n }\n\n ['@test computed.lte'](assert) {\n let obj = {\n number: 0\n };\n (0, _metal.defineProperty)(obj, 'isLesserOrEqualThenOne', (0, _computed.lte)('number', 1));\n assert.equal((0, _metal.get)(obj, 'isLesserOrEqualThenOne'), true, 'is lte');\n (0, _metal.set)(obj, 'number', 1);\n assert.equal((0, _metal.get)(obj, 'isLesserOrEqualThenOne'), true, 'is lte');\n (0, _metal.set)(obj, 'number', 2);\n assert.equal((0, _metal.get)(obj, 'isLesserOrEqualThenOne'), false, 'is not lte');\n }\n\n ['@test computed.and two properties'](assert) {\n let obj = {\n one: true,\n two: true\n };\n (0, _metal.defineProperty)(obj, 'oneAndTwo', (0, _computed.and)('one', 'two'));\n assert.equal((0, _metal.get)(obj, 'oneAndTwo'), true, 'one and two');\n (0, _metal.set)(obj, 'one', false);\n assert.equal((0, _metal.get)(obj, 'oneAndTwo'), false, 'one and not two');\n (0, _metal.set)(obj, 'one', null);\n (0, _metal.set)(obj, 'two', 'Yes');\n assert.equal((0, _metal.get)(obj, 'oneAndTwo'), null, 'returns falsy value as in &&');\n (0, _metal.set)(obj, 'one', true);\n (0, _metal.set)(obj, 'two', 2);\n assert.equal((0, _metal.get)(obj, 'oneAndTwo'), 2, 'returns truthy value as in &&');\n }\n\n ['@test computed.and three properties'](assert) {\n let obj = {\n one: true,\n two: true,\n three: true\n };\n (0, _metal.defineProperty)(obj, 'oneTwoThree', (0, _computed.and)('one', 'two', 'three'));\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), true, 'one and two and three');\n (0, _metal.set)(obj, 'one', false);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), false, 'one and not two and not three');\n (0, _metal.set)(obj, 'one', true);\n (0, _metal.set)(obj, 'two', 2);\n (0, _metal.set)(obj, 'three', 3);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), 3, 'returns truthy value as in &&');\n }\n\n ['@test computed.and expand properties'](assert) {\n let obj = {\n one: true,\n two: true,\n three: true\n };\n (0, _metal.defineProperty)(obj, 'oneTwoThree', (0, _computed.and)('{one,two,three}'));\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), true, 'one and two and three');\n (0, _metal.set)(obj, 'one', false);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), false, 'one and not two and not three');\n (0, _metal.set)(obj, 'one', true);\n (0, _metal.set)(obj, 'two', 2);\n (0, _metal.set)(obj, 'three', 3);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), 3, 'returns truthy value as in &&');\n }\n\n ['@test computed.or two properties'](assert) {\n let obj = {\n one: true,\n two: true\n };\n (0, _metal.defineProperty)(obj, 'oneOrTwo', (0, _computed.or)('one', 'two'));\n assert.equal((0, _metal.get)(obj, 'oneOrTwo'), true, 'one or two');\n (0, _metal.set)(obj, 'one', false);\n assert.equal((0, _metal.get)(obj, 'oneOrTwo'), true, 'one or two');\n (0, _metal.set)(obj, 'two', false);\n assert.equal((0, _metal.get)(obj, 'oneOrTwo'), false, 'nor one nor two');\n (0, _metal.set)(obj, 'two', null);\n assert.equal((0, _metal.get)(obj, 'oneOrTwo'), null, 'returns last falsy value as in ||');\n (0, _metal.set)(obj, 'two', true);\n assert.equal((0, _metal.get)(obj, 'oneOrTwo'), true, 'one or two');\n (0, _metal.set)(obj, 'one', 1);\n assert.equal((0, _metal.get)(obj, 'oneOrTwo'), 1, 'returns truthy value as in ||');\n }\n\n ['@test computed.or three properties'](assert) {\n let obj = {\n one: true,\n two: true,\n three: true\n };\n (0, _metal.defineProperty)(obj, 'oneTwoThree', (0, _computed.or)('one', 'two', 'three'));\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), true, 'one or two or three');\n (0, _metal.set)(obj, 'one', false);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), true, 'one or two or three');\n (0, _metal.set)(obj, 'two', false);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), true, 'one or two or three');\n (0, _metal.set)(obj, 'three', false);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), false, 'one or two or three');\n (0, _metal.set)(obj, 'three', null);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), null, 'returns last falsy value as in ||');\n (0, _metal.set)(obj, 'two', true);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), true, 'one or two or three');\n (0, _metal.set)(obj, 'one', 1);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), 1, 'returns truthy value as in ||');\n }\n\n ['@test computed.or expand properties'](assert) {\n let obj = {\n one: true,\n two: true,\n three: true\n };\n (0, _metal.defineProperty)(obj, 'oneTwoThree', (0, _computed.or)('{one,two,three}'));\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), true, 'one or two or three');\n (0, _metal.set)(obj, 'one', false);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), true, 'one or two or three');\n (0, _metal.set)(obj, 'two', false);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), true, 'one or two or three');\n (0, _metal.set)(obj, 'three', false);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), false, 'one or two or three');\n (0, _metal.set)(obj, 'three', null);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), null, 'returns last falsy value as in ||');\n (0, _metal.set)(obj, 'two', true);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), true, 'one or two or three');\n (0, _metal.set)(obj, 'one', 1);\n assert.equal((0, _metal.get)(obj, 'oneTwoThree'), 1, 'returns truthy value as in ||');\n }\n\n ['@test computed.or and computed.and warn about dependent keys with spaces']() {\n let obj = {\n one: true,\n two: true\n };\n expectAssertion(function () {\n (0, _metal.defineProperty)(obj, 'oneOrTwo', (0, _computed.or)('one', 'two three'));\n }, /Dependent keys passed to computed\\.or\\(\\) can't have spaces\\./);\n expectAssertion(function () {\n (0, _metal.defineProperty)(obj, 'oneAndTwo', (0, _computed.and)('one', 'two three'));\n }, /Dependent keys passed to computed\\.and\\(\\) can't have spaces\\./);\n }\n\n ['@test computed.oneWay'](assert) {\n let obj = {\n firstName: 'Teddy',\n lastName: 'Zeenny'\n };\n (0, _metal.defineProperty)(obj, 'nickName', (0, _computed.oneWay)('firstName'));\n assert.equal((0, _metal.get)(obj, 'firstName'), 'Teddy');\n assert.equal((0, _metal.get)(obj, 'lastName'), 'Zeenny');\n assert.equal((0, _metal.get)(obj, 'nickName'), 'Teddy');\n (0, _metal.set)(obj, 'nickName', 'TeddyBear');\n assert.equal((0, _metal.get)(obj, 'firstName'), 'Teddy');\n assert.equal((0, _metal.get)(obj, 'lastName'), 'Zeenny');\n assert.equal((0, _metal.get)(obj, 'nickName'), 'TeddyBear');\n (0, _metal.set)(obj, 'firstName', 'TEDDDDDDDDYYY');\n assert.equal((0, _metal.get)(obj, 'nickName'), 'TeddyBear');\n }\n\n ['@test computed.readOnly'](assert) {\n let obj = {\n firstName: 'Teddy',\n lastName: 'Zeenny'\n };\n (0, _metal.defineProperty)(obj, 'nickName', (0, _computed.readOnly)('firstName'));\n assert.equal((0, _metal.get)(obj, 'firstName'), 'Teddy');\n assert.equal((0, _metal.get)(obj, 'lastName'), 'Zeenny');\n assert.equal((0, _metal.get)(obj, 'nickName'), 'Teddy');\n assert.throws(function () {\n (0, _metal.set)(obj, 'nickName', 'TeddyBear');\n }, / /);\n assert.equal((0, _metal.get)(obj, 'firstName'), 'Teddy');\n assert.equal((0, _metal.get)(obj, 'lastName'), 'Zeenny');\n assert.equal((0, _metal.get)(obj, 'nickName'), 'Teddy');\n (0, _metal.set)(obj, 'firstName', 'TEDDDDDDDDYYY');\n assert.equal((0, _metal.get)(obj, 'nickName'), 'TEDDDDDDDDYYY');\n }\n\n ['@test computed.deprecatingAlias'](assert) {\n let obj = {\n bar: 'asdf',\n baz: null,\n quz: false\n };\n (0, _metal.defineProperty)(obj, 'bay', (0, _metal.computed)(function () {\n return 'apple';\n }));\n (0, _metal.defineProperty)(obj, 'barAlias', (0, _computed.deprecatingAlias)('bar', {\n id: 'bar-deprecation',\n until: 'some.version'\n }));\n (0, _metal.defineProperty)(obj, 'bazAlias', (0, _computed.deprecatingAlias)('baz', {\n id: 'baz-deprecation',\n until: 'some.version'\n }));\n (0, _metal.defineProperty)(obj, 'quzAlias', (0, _computed.deprecatingAlias)('quz', {\n id: 'quz-deprecation',\n until: 'some.version'\n }));\n (0, _metal.defineProperty)(obj, 'bayAlias', (0, _computed.deprecatingAlias)('bay', {\n id: 'bay-deprecation',\n until: 'some.version'\n }));\n expectDeprecation(function () {\n assert.equal((0, _metal.get)(obj, 'barAlias'), 'asdf');\n }, 'Usage of `barAlias` is deprecated, use `bar` instead.');\n expectDeprecation(function () {\n assert.equal((0, _metal.get)(obj, 'bazAlias'), null);\n }, 'Usage of `bazAlias` is deprecated, use `baz` instead.');\n expectDeprecation(function () {\n assert.equal((0, _metal.get)(obj, 'quzAlias'), false);\n }, 'Usage of `quzAlias` is deprecated, use `quz` instead.');\n expectDeprecation(function () {\n assert.equal((0, _metal.get)(obj, 'bayAlias'), 'apple');\n }, 'Usage of `bayAlias` is deprecated, use `bay` instead.');\n expectDeprecation(function () {\n (0, _metal.set)(obj, 'barAlias', 'newBar');\n }, 'Usage of `barAlias` is deprecated, use `bar` instead.');\n expectDeprecation(function () {\n (0, _metal.set)(obj, 'bazAlias', 'newBaz');\n }, 'Usage of `bazAlias` is deprecated, use `baz` instead.');\n expectDeprecation(function () {\n (0, _metal.set)(obj, 'quzAlias', null);\n }, 'Usage of `quzAlias` is deprecated, use `quz` instead.');\n assert.equal((0, _metal.get)(obj, 'barAlias'), 'newBar');\n assert.equal((0, _metal.get)(obj, 'bazAlias'), 'newBaz');\n assert.equal((0, _metal.get)(obj, 'quzAlias'), null);\n assert.equal((0, _metal.get)(obj, 'bar'), 'newBar');\n assert.equal((0, _metal.get)(obj, 'baz'), 'newBaz');\n assert.equal((0, _metal.get)(obj, 'quz'), null);\n }\n\n });\n});","enifed(\"@ember/object/tests/computed/macro_decorators_test\", [\"internal-test-helpers\", \"@ember/canary-features\", \"@ember/-internals/metal\", \"@ember/object/computed\"], function (_internalTestHelpers, _canaryFeatures, _metal, _computed) {\n \"use strict\";\n\n function _initializerDefineProperty(target, property, descriptor, context) {\n if (!descriptor) return;\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n });\n }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n var desc = {};\n Object.keys(descriptor).forEach(function (key) {\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n\n if ('value' in desc || desc.initializer) {\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0) {\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n\n function _initializerWarningHelper(descriptor, context) {\n throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.');\n }\n\n if (_canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT) {\n (0, _internalTestHelpers.moduleFor)('computed macros - decorators - assertions', class extends _internalTestHelpers.AbstractTestCase {\n ['@test and throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class, _descriptor, _temp;\n\n let Foo = (_class = (_temp = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor, this);\n }\n\n }, _temp), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"foo\", [_computed.and], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n new Foo();\n }, /You attempted to use @and/);\n }\n\n ['@test alias throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class3, _descriptor2, _temp2;\n\n let Foo = (_class3 = (_temp2 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor2, this);\n }\n\n }, _temp2), _descriptor2 = _applyDecoratedDescriptor(_class3.prototype, \"foo\", [_metal.alias], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class3);\n new Foo();\n }, /You attempted to use @alias/);\n }\n\n ['@test bool throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class5, _descriptor3, _temp3;\n\n let Foo = (_class5 = (_temp3 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor3, this);\n }\n\n }, _temp3), _descriptor3 = _applyDecoratedDescriptor(_class5.prototype, \"foo\", [_computed.bool], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class5);\n new Foo();\n }, /You attempted to use @bool/);\n }\n\n ['@test collect throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class7, _descriptor4, _temp4;\n\n let Foo = (_class7 = (_temp4 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor4, this);\n }\n\n }, _temp4), _descriptor4 = _applyDecoratedDescriptor(_class7.prototype, \"foo\", [_computed.collect], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class7);\n new Foo();\n }, /You attempted to use @collect/);\n }\n\n ['@test deprecatingAlias throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class9, _descriptor5, _temp5;\n\n let Foo = (_class9 = (_temp5 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor5, this);\n }\n\n }, _temp5), _descriptor5 = _applyDecoratedDescriptor(_class9.prototype, \"foo\", [_computed.deprecatingAlias], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class9);\n new Foo();\n }, /You attempted to use @deprecatingAlias/);\n }\n\n ['@test empty throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class11, _descriptor6, _temp6;\n\n let Foo = (_class11 = (_temp6 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor6, this);\n }\n\n }, _temp6), _descriptor6 = _applyDecoratedDescriptor(_class11.prototype, \"foo\", [_computed.empty], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class11);\n new Foo();\n }, /You attempted to use @empty/);\n }\n\n ['@test equal throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class13, _descriptor7, _temp7;\n\n let Foo = (_class13 = (_temp7 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor7, this);\n }\n\n }, _temp7), _descriptor7 = _applyDecoratedDescriptor(_class13.prototype, \"foo\", [_computed.equal], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class13);\n new Foo();\n }, /You attempted to use @equal/);\n }\n\n ['@test filter throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class15, _descriptor8, _temp8;\n\n let Foo = (_class15 = (_temp8 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor8, this);\n }\n\n }, _temp8), _descriptor8 = _applyDecoratedDescriptor(_class15.prototype, \"foo\", [_computed.filter], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class15);\n new Foo();\n }, /You attempted to use @filter/);\n }\n\n ['@test filterBy throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class17, _descriptor9, _temp9;\n\n let Foo = (_class17 = (_temp9 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor9, this);\n }\n\n }, _temp9), _descriptor9 = _applyDecoratedDescriptor(_class17.prototype, \"foo\", [_computed.filterBy], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class17);\n new Foo();\n }, /You attempted to use @filterBy/);\n }\n\n ['@test gt throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class19, _descriptor10, _temp10;\n\n let Foo = (_class19 = (_temp10 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor10, this);\n }\n\n }, _temp10), _descriptor10 = _applyDecoratedDescriptor(_class19.prototype, \"foo\", [_computed.gt], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class19);\n new Foo();\n }, /You attempted to use @gt/);\n }\n\n ['@test gte throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class21, _descriptor11, _temp11;\n\n let Foo = (_class21 = (_temp11 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor11, this);\n }\n\n }, _temp11), _descriptor11 = _applyDecoratedDescriptor(_class21.prototype, \"foo\", [_computed.gte], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class21);\n new Foo();\n }, /You attempted to use @gte/);\n }\n\n ['@test intersect throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class23, _descriptor12, _temp12;\n\n let Foo = (_class23 = (_temp12 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor12, this);\n }\n\n }, _temp12), _descriptor12 = _applyDecoratedDescriptor(_class23.prototype, \"foo\", [_computed.intersect], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class23);\n new Foo();\n }, /You attempted to use @intersect/);\n }\n\n ['@test lt throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class25, _descriptor13, _temp13;\n\n let Foo = (_class25 = (_temp13 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor13, this);\n }\n\n }, _temp13), _descriptor13 = _applyDecoratedDescriptor(_class25.prototype, \"foo\", [_computed.lt], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class25);\n new Foo();\n }, /You attempted to use @lt/);\n }\n\n ['@test lte throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class27, _descriptor14, _temp14;\n\n let Foo = (_class27 = (_temp14 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor14, this);\n }\n\n }, _temp14), _descriptor14 = _applyDecoratedDescriptor(_class27.prototype, \"foo\", [_computed.lte], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class27);\n new Foo();\n }, /You attempted to use @lte/);\n }\n\n ['@test map throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class29, _descriptor15, _temp15;\n\n let Foo = (_class29 = (_temp15 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor15, this);\n }\n\n }, _temp15), _descriptor15 = _applyDecoratedDescriptor(_class29.prototype, \"foo\", [_computed.map], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class29);\n new Foo();\n }, /You attempted to use @map/);\n }\n\n ['@test mapBy throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class31, _descriptor16, _temp16;\n\n let Foo = (_class31 = (_temp16 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor16, this);\n }\n\n }, _temp16), _descriptor16 = _applyDecoratedDescriptor(_class31.prototype, \"foo\", [_computed.mapBy], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class31);\n new Foo();\n }, /You attempted to use @mapBy/);\n }\n\n ['@test match throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class33, _descriptor17, _temp17;\n\n let Foo = (_class33 = (_temp17 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor17, this);\n }\n\n }, _temp17), _descriptor17 = _applyDecoratedDescriptor(_class33.prototype, \"foo\", [_computed.match], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class33);\n new Foo();\n }, /You attempted to use @match/);\n }\n\n ['@test max throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class35, _descriptor18, _temp18;\n\n let Foo = (_class35 = (_temp18 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor18, this);\n }\n\n }, _temp18), _descriptor18 = _applyDecoratedDescriptor(_class35.prototype, \"foo\", [_computed.max], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class35);\n new Foo();\n }, /You attempted to use @max/);\n }\n\n ['@test min throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class37, _descriptor19, _temp19;\n\n let Foo = (_class37 = (_temp19 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor19, this);\n }\n\n }, _temp19), _descriptor19 = _applyDecoratedDescriptor(_class37.prototype, \"foo\", [_computed.min], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class37);\n new Foo();\n }, /You attempted to use @min/);\n }\n\n ['@test not throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class39, _descriptor20, _temp20;\n\n let Foo = (_class39 = (_temp20 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor20, this);\n }\n\n }, _temp20), _descriptor20 = _applyDecoratedDescriptor(_class39.prototype, \"foo\", [_computed.not], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class39);\n new Foo();\n }, /You attempted to use @not/);\n }\n\n ['@test notEmpty throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class41, _descriptor21, _temp21;\n\n let Foo = (_class41 = (_temp21 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor21, this);\n }\n\n }, _temp21), _descriptor21 = _applyDecoratedDescriptor(_class41.prototype, \"foo\", [_computed.notEmpty], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class41);\n new Foo();\n }, /You attempted to use @notEmpty/);\n }\n\n ['@test oneWay throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class43, _descriptor22, _temp22;\n\n let Foo = (_class43 = (_temp22 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor22, this);\n }\n\n }, _temp22), _descriptor22 = _applyDecoratedDescriptor(_class43.prototype, \"foo\", [_computed.oneWay], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class43);\n new Foo();\n }, /You attempted to use @oneWay/);\n }\n\n ['@test or throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class45, _descriptor23, _temp23;\n\n let Foo = (_class45 = (_temp23 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor23, this);\n }\n\n }, _temp23), _descriptor23 = _applyDecoratedDescriptor(_class45.prototype, \"foo\", [_computed.or], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class45);\n new Foo();\n }, /You attempted to use @or/);\n }\n\n ['@test readOnly throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class47, _descriptor24, _temp24;\n\n let Foo = (_class47 = (_temp24 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor24, this);\n }\n\n }, _temp24), _descriptor24 = _applyDecoratedDescriptor(_class47.prototype, \"foo\", [_computed.readOnly], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class47);\n new Foo();\n }, /You attempted to use @readOnly/);\n }\n\n ['@test setDiff throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class49, _descriptor25, _temp25;\n\n let Foo = (_class49 = (_temp25 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor25, this);\n }\n\n }, _temp25), _descriptor25 = _applyDecoratedDescriptor(_class49.prototype, \"foo\", [_computed.setDiff], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class49);\n new Foo();\n }, /You attempted to use @setDiff/);\n }\n\n ['@test sort throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class51, _descriptor26, _temp26;\n\n let Foo = (_class51 = (_temp26 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor26, this);\n }\n\n }, _temp26), _descriptor26 = _applyDecoratedDescriptor(_class51.prototype, \"foo\", [_computed.sort], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class51);\n new Foo();\n }, /You attempted to use @sort/);\n }\n\n ['@test sum throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class53, _descriptor27, _temp27;\n\n let Foo = (_class53 = (_temp27 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor27, this);\n }\n\n }, _temp27), _descriptor27 = _applyDecoratedDescriptor(_class53.prototype, \"foo\", [_computed.sum], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class53);\n new Foo();\n }, /You attempted to use @sum/);\n }\n\n ['@test union throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class55, _descriptor28, _temp28;\n\n let Foo = (_class55 = (_temp28 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor28, this);\n }\n\n }, _temp28), _descriptor28 = _applyDecoratedDescriptor(_class55.prototype, \"foo\", [_computed.union], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class55);\n new Foo();\n }, /You attempted to use @uniq\\/@union/);\n }\n\n ['@test uniq throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class57, _descriptor29, _temp29;\n\n let Foo = (_class57 = (_temp29 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor29, this);\n }\n\n }, _temp29), _descriptor29 = _applyDecoratedDescriptor(_class57.prototype, \"foo\", [_computed.uniq], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class57);\n new Foo();\n }, /You attempted to use @uniq\\/@union/);\n }\n\n ['@test uniqBy throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class59, _descriptor30, _temp30;\n\n let Foo = (_class59 = (_temp30 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor30, this);\n }\n\n }, _temp30), _descriptor30 = _applyDecoratedDescriptor(_class59.prototype, \"foo\", [_computed.uniqBy], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class59);\n new Foo();\n }, /You attempted to use @uniqBy/);\n }\n\n ['@test alias throws an error if used without parameters']() {\n expectAssertion(() => {\n var _class61, _descriptor31, _temp31;\n\n let Foo = (_class61 = (_temp31 = class Foo {\n constructor() {\n _initializerDefineProperty(this, \"foo\", _descriptor31, this);\n }\n\n }, _temp31), _descriptor31 = _applyDecoratedDescriptor(_class61.prototype, \"foo\", [_metal.alias], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class61);\n new Foo();\n }, /You attempted to use @alias/);\n }\n\n });\n }\n});","enifed(\"@ember/object/tests/computed/reduce_computed_macros_test\", [\"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"@ember/object/computed\", \"@ember/canary-features\", \"internal-test-helpers\"], function (_runloop, _metal, _runtime, _computed, _canaryFeatures, _internalTestHelpers) {\n \"use strict\";\n\n function _initializerDefineProperty(target, property, descriptor, context) {\n if (!descriptor) return;\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n });\n }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n var desc = {};\n Object.keys(descriptor).forEach(function (key) {\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n\n if ('value' in desc || desc.initializer) {\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0) {\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n\n function _initializerWarningHelper(descriptor, context) {\n throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.');\n }\n\n let obj;\n (0, _internalTestHelpers.moduleFor)('map', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n mapped: (0, _computed.map)('array.@each.v', item => item.v),\n mappedObjects: (0, _computed.map)('arrayObjects.@each.v', item => ({\n name: item.v.name\n }))\n }).create({\n arrayObjects: (0, _runtime.A)([{\n v: {\n name: 'Robert'\n }\n }, {\n v: {\n name: 'Leanna'\n }\n }]),\n array: (0, _runtime.A)([{\n v: 1\n }, {\n v: 3\n }, {\n v: 2\n }, {\n v: 1\n }])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test map is readOnly'](assert) {\n assert.throws(function () {\n obj.set('mapped', 1);\n }, /Cannot set read-only property \"mapped\" on object:/);\n }\n\n ['@test it maps simple properties'](assert) {\n assert.deepEqual(obj.get('mapped'), [1, 3, 2, 1]);\n obj.get('array').pushObject({\n v: 5\n });\n assert.deepEqual(obj.get('mapped'), [1, 3, 2, 1, 5]);\n (0, _runtime.removeAt)(obj.get('array'), 3);\n assert.deepEqual(obj.get('mapped'), [1, 3, 2, 5]);\n }\n\n ['@test it maps simple unshifted properties'](assert) {\n let array = (0, _runtime.A)();\n obj = _runtime.Object.extend({\n mapped: (0, _computed.map)('array', item => item.toUpperCase())\n }).create({\n array\n });\n array.unshiftObject('c');\n array.unshiftObject('b');\n array.unshiftObject('a');\n array.popObject();\n assert.deepEqual(obj.get('mapped'), ['A', 'B'], 'properties unshifted in sequence are mapped correctly');\n }\n\n ['@test it has the correct `this`'](assert) {\n obj = _runtime.Object.extend({\n mapped: (0, _computed.map)('array', function (item) {\n assert.equal(this, obj, 'should have correct context');\n return this.upperCase(item);\n }),\n\n upperCase(string) {\n return string.toUpperCase();\n }\n\n }).create({\n array: ['a', 'b', 'c']\n });\n assert.deepEqual(obj.get('mapped'), ['A', 'B', 'C'], 'properties unshifted in sequence are mapped correctly');\n }\n\n ['@test it passes the index to the callback'](assert) {\n let array = ['a', 'b', 'c'];\n obj = _runtime.Object.extend({\n mapped: (0, _computed.map)('array', (item, index) => index)\n }).create({\n array\n });\n assert.deepEqual(obj.get('mapped'), [0, 1, 2], 'index is passed to callback correctly');\n }\n\n ['@test it maps objects'](assert) {\n assert.deepEqual(obj.get('mappedObjects'), [{\n name: 'Robert'\n }, {\n name: 'Leanna'\n }]);\n obj.get('arrayObjects').pushObject({\n v: {\n name: 'Eddard'\n }\n });\n assert.deepEqual(obj.get('mappedObjects'), [{\n name: 'Robert'\n }, {\n name: 'Leanna'\n }, {\n name: 'Eddard'\n }]);\n (0, _runtime.removeAt)(obj.get('arrayObjects'), 1);\n assert.deepEqual(obj.get('mappedObjects'), [{\n name: 'Robert'\n }, {\n name: 'Eddard'\n }]);\n (0, _metal.set)(obj.get('arrayObjects')[0], 'v', {\n name: 'Stannis'\n });\n assert.deepEqual(obj.get('mappedObjects'), [{\n name: 'Stannis'\n }, {\n name: 'Eddard'\n }]);\n }\n\n ['@test it maps unshifted objects with property observers'](assert) {\n let array = (0, _runtime.A)();\n let cObj = {\n v: 'c'\n };\n obj = _runtime.Object.extend({\n mapped: (0, _computed.map)('array.@each.v', item => (0, _metal.get)(item, 'v').toUpperCase())\n }).create({\n array\n });\n array.unshiftObject(cObj);\n array.unshiftObject({\n v: 'b'\n });\n array.unshiftObject({\n v: 'a'\n });\n (0, _metal.set)(cObj, 'v', 'd');\n assert.deepEqual(array.mapBy('v'), ['a', 'b', 'd'], 'precond - unmapped array is correct');\n assert.deepEqual(obj.get('mapped'), ['A', 'B', 'D'], 'properties unshifted in sequence are mapped correctly');\n }\n\n ['@test it updates if additional dependent keys are modified'](assert) {\n obj = _runtime.Object.extend({\n mapped: (0, _computed.map)('array', ['key'], function (item) {\n return item[this.key];\n })\n }).create({\n key: 'name',\n array: (0, _runtime.A)([{\n name: 'Cercei',\n house: 'Lannister'\n }])\n });\n assert.deepEqual(obj.get('mapped'), ['Cercei'], 'precond - mapped array is initially correct');\n obj.set('key', 'house');\n assert.deepEqual(obj.get('mapped'), ['Lannister'], 'mapped prop updates correctly when additional dependency is updated');\n }\n\n ['@test it throws on bad inputs']() {\n expectAssertion(() => {\n (0, _computed.map)('items.@each.{prop}', 'foo');\n }, /The final parameter provided to map must be a callback function/);\n expectAssertion(() => {\n (0, _computed.map)('items.@each.{prop}', 'foo', function () {});\n }, /The second parameter provided to map must either be the callback or an array of additional dependent keys/);\n expectAssertion(() => {\n (0, _computed.map)('items.@each.{prop}', function () {}, ['foo']);\n }, /The final parameter provided to map must be a callback function/);\n expectAssertion(() => {\n (0, _computed.map)('items.@each.{prop}', ['foo']);\n }, /The final parameter provided to map must be a callback function/);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('mapBy', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n mapped: (0, _computed.mapBy)('array', 'v')\n }).create({\n array: (0, _runtime.A)([{\n v: 1\n }, {\n v: 3\n }, {\n v: 2\n }, {\n v: 1\n }])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test mapBy is readOnly'](assert) {\n assert.throws(function () {\n obj.set('mapped', 1);\n }, /Cannot set read-only property \"mapped\" on object:/);\n }\n\n ['@test it maps properties'](assert) {\n assert.deepEqual(obj.get('mapped'), [1, 3, 2, 1]);\n obj.get('array').pushObject({\n v: 5\n });\n assert.deepEqual(obj.get('mapped'), [1, 3, 2, 1, 5]);\n (0, _runtime.removeAt)(obj.get('array'), 3);\n assert.deepEqual(obj.get('mapped'), [1, 3, 2, 5]);\n }\n\n ['@test it is observable'](assert) {\n let calls = 0;\n assert.deepEqual(obj.get('mapped'), [1, 3, 2, 1]);\n (0, _metal.addObserver)(obj, 'mapped.@each', () => calls++);\n obj.get('array').pushObject({\n v: 5\n });\n assert.equal(calls, 1, 'mapBy is observable');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('filter', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n filtered: (0, _computed.filter)('array', item => item % 2 === 0)\n }).create({\n array: (0, _runtime.A)([1, 2, 3, 4, 5, 6, 7, 8])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test filter is readOnly'](assert) {\n assert.throws(function () {\n obj.set('filtered', 1);\n }, /Cannot set read-only property \"filtered\" on object:/);\n }\n\n ['@test it filters according to the specified filter function'](assert) {\n assert.deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'filter filters by the specified function');\n }\n\n ['@test it passes the index to the callback'](assert) {\n obj = _runtime.Object.extend({\n filtered: (0, _computed.filter)('array', (item, index) => index === 1)\n }).create({\n array: ['a', 'b', 'c']\n });\n assert.deepEqual((0, _metal.get)(obj, 'filtered'), ['b'], 'index is passed to callback correctly');\n }\n\n ['@test it has the correct `this`'](assert) {\n obj = _runtime.Object.extend({\n filtered: (0, _computed.filter)('array', function (item, index) {\n assert.equal(this, obj);\n return this.isOne(index);\n }),\n\n isOne(value) {\n return value === 1;\n }\n\n }).create({\n array: ['a', 'b', 'c']\n });\n assert.deepEqual((0, _metal.get)(obj, 'filtered'), ['b'], 'index is passed to callback correctly');\n }\n\n ['@test it passes the array to the callback'](assert) {\n obj = _runtime.Object.extend({\n filtered: (0, _computed.filter)('array', (item, index, array) => index === (0, _metal.get)(array, 'length') - 2)\n }).create({\n array: (0, _runtime.A)(['a', 'b', 'c'])\n });\n assert.deepEqual(obj.get('filtered'), ['b'], 'array is passed to callback correctly');\n }\n\n ['@test it caches properly'](assert) {\n let array = obj.get('array');\n let filtered = obj.get('filtered');\n assert.ok(filtered === obj.get('filtered'));\n array.addObject(11);\n let newFiltered = obj.get('filtered');\n assert.ok(filtered !== newFiltered);\n assert.ok(obj.get('filtered') === newFiltered);\n }\n\n ['@test it updates as the array is modified'](assert) {\n let array = obj.get('array');\n assert.deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'precond - filtered array is initially correct');\n array.addObject(11);\n assert.deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'objects not passing the filter are not added');\n array.addObject(12);\n assert.deepEqual(obj.get('filtered'), [2, 4, 6, 8, 12], 'objects passing the filter are added');\n array.removeObject(3);\n array.removeObject(4);\n assert.deepEqual(obj.get('filtered'), [2, 6, 8, 12], 'objects removed from the dependent array are removed from the computed array');\n }\n\n ['@test the dependent array can be cleared one at a time'](assert) {\n let array = (0, _metal.get)(obj, 'array');\n assert.deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'precond - filtered array is initially correct'); // clear 1-8 but in a random order\n\n array.removeObject(3);\n array.removeObject(1);\n array.removeObject(2);\n array.removeObject(4);\n array.removeObject(8);\n array.removeObject(6);\n array.removeObject(5);\n array.removeObject(7);\n assert.deepEqual(obj.get('filtered'), [], 'filtered array cleared correctly');\n }\n\n ['@test the dependent array can be `clear`ed directly (#3272)'](assert) {\n assert.deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'precond - filtered array is initially correct');\n obj.get('array').clear();\n assert.deepEqual(obj.get('filtered'), [], 'filtered array cleared correctly');\n }\n\n ['@test it updates as the array is replaced'](assert) {\n assert.deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'precond - filtered array is initially correct');\n obj.set('array', [20, 21, 22, 23, 24]);\n assert.deepEqual(obj.get('filtered'), [20, 22, 24], 'computed array is updated when array is changed');\n }\n\n ['@test it updates properly on @each with {} dependencies'](assert) {\n let item = _runtime.Object.create({\n prop: true\n });\n\n obj = _runtime.Object.extend({\n filtered: (0, _computed.filter)('items.@each.{prop}', function (item) {\n return item.get('prop') === true;\n })\n }).create({\n items: (0, _runtime.A)([item])\n });\n assert.deepEqual(obj.get('filtered'), [item]);\n item.set('prop', false);\n assert.deepEqual(obj.get('filtered'), []);\n }\n\n ['@test it updates if additional dependent keys are modified'](assert) {\n obj = _runtime.Object.extend({\n filtered: (0, _computed.filter)('array', ['modulo'], function (item) {\n return item % this.modulo === 0;\n })\n }).create({\n modulo: 2,\n array: (0, _runtime.A)([1, 2, 3, 4, 5, 6, 7, 8])\n });\n assert.deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'precond - filtered array is initially correct');\n obj.set('modulo', 3);\n assert.deepEqual(obj.get('filtered'), [3, 6], 'filtered prop updates correctly when additional dependency is updated');\n }\n\n ['@test it throws on bad inputs']() {\n expectAssertion(() => {\n (0, _computed.filter)('items.@each.{prop}', 'foo');\n }, /The final parameter provided to filter must be a callback function/);\n expectAssertion(() => {\n (0, _computed.filter)('items.@each.{prop}', 'foo', function () {});\n }, /The second parameter provided to filter must either be the callback or an array of additional dependent keys/);\n expectAssertion(() => {\n (0, _computed.filter)('items.@each.{prop}', function () {}, ['foo']);\n }, /The final parameter provided to filter must be a callback function/);\n expectAssertion(() => {\n (0, _computed.filter)('items.@each.{prop}', ['foo']);\n }, /The final parameter provided to filter must be a callback function/);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('filterBy', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n a1s: (0, _computed.filterBy)('array', 'a', 1),\n as: (0, _computed.filterBy)('array', 'a'),\n bs: (0, _computed.filterBy)('array', 'b')\n }).create({\n array: (0, _runtime.A)([{\n name: 'one',\n a: 1,\n b: false\n }, {\n name: 'two',\n a: 2,\n b: false\n }, {\n name: 'three',\n a: 1,\n b: true\n }, {\n name: 'four',\n b: true\n }])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test filterBy is readOnly'](assert) {\n assert.throws(function () {\n obj.set('as', 1);\n }, /Cannot set read-only property \"as\" on object:/);\n }\n\n ['@test properties can be filtered by truthiness'](assert) {\n assert.deepEqual(obj.get('as').mapBy('name'), ['one', 'two', 'three'], 'properties can be filtered by existence');\n assert.deepEqual(obj.get('bs').mapBy('name'), ['three', 'four'], 'booleans can be filtered');\n (0, _metal.set)(obj.get('array')[0], 'a', undefined);\n (0, _metal.set)(obj.get('array')[3], 'a', true);\n (0, _metal.set)(obj.get('array')[0], 'b', true);\n (0, _metal.set)(obj.get('array')[3], 'b', false);\n assert.deepEqual(obj.get('as').mapBy('name'), ['two', 'three', 'four'], 'arrays computed by filter property respond to property changes');\n assert.deepEqual(obj.get('bs').mapBy('name'), ['one', 'three'], 'arrays computed by filtered property respond to property changes');\n obj.get('array').pushObject({\n name: 'five',\n a: 6,\n b: true\n });\n assert.deepEqual(obj.get('as').mapBy('name'), ['two', 'three', 'four', 'five'], 'arrays computed by filter property respond to added objects');\n assert.deepEqual(obj.get('bs').mapBy('name'), ['one', 'three', 'five'], 'arrays computed by filtered property respond to added objects');\n obj.get('array').popObject();\n assert.deepEqual(obj.get('as').mapBy('name'), ['two', 'three', 'four'], 'arrays computed by filter property respond to removed objects');\n assert.deepEqual(obj.get('bs').mapBy('name'), ['one', 'three'], 'arrays computed by filtered property respond to removed objects');\n obj.set('array', [{\n name: 'six',\n a: 12,\n b: true\n }]);\n assert.deepEqual(obj.get('as').mapBy('name'), ['six'], 'arrays computed by filter property respond to array changes');\n assert.deepEqual(obj.get('bs').mapBy('name'), ['six'], 'arrays computed by filtered property respond to array changes');\n }\n\n ['@test properties can be filtered by values'](assert) {\n assert.deepEqual(obj.get('a1s').mapBy('name'), ['one', 'three'], 'properties can be filtered by matching value');\n obj.get('array').pushObject({\n name: 'five',\n a: 1\n });\n assert.deepEqual(obj.get('a1s').mapBy('name'), ['one', 'three', 'five'], 'arrays computed by matching value respond to added objects');\n obj.get('array').popObject();\n assert.deepEqual(obj.get('a1s').mapBy('name'), ['one', 'three'], 'arrays computed by matching value respond to removed objects');\n (0, _metal.set)(obj.get('array')[1], 'a', 1);\n (0, _metal.set)(obj.get('array')[2], 'a', 2);\n assert.deepEqual(obj.get('a1s').mapBy('name'), ['one', 'two'], 'arrays computed by matching value respond to modified properties');\n }\n\n ['@test properties values can be replaced'](assert) {\n obj = _runtime.Object.extend({\n a1s: (0, _computed.filterBy)('array', 'a', 1),\n a1bs: (0, _computed.filterBy)('a1s', 'b')\n }).create({\n array: []\n });\n assert.deepEqual(obj.get('a1bs').mapBy('name'), [], 'properties can be filtered by matching value');\n (0, _metal.set)(obj, 'array', [{\n name: 'item1',\n a: 1,\n b: true\n }]);\n assert.deepEqual(obj.get('a1bs').mapBy('name'), ['item1'], 'properties can be filtered by matching value');\n }\n\n });\n [['uniq', _computed.uniq], ['union', _computed.union]].forEach(tuple => {\n let [name, macro] = tuple;\n (0, _internalTestHelpers.moduleFor)(\"computed.\" + name, class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n union: macro('array', 'array2', 'array3')\n }).create({\n array: (0, _runtime.A)([1, 2, 3, 4, 5, 6]),\n array2: (0, _runtime.A)([4, 5, 6, 7, 8, 9, 4, 5, 6, 7, 8, 9]),\n array3: (0, _runtime.A)([1, 8, 10])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n [\"@test \" + name + \" is readOnly\"](assert) {\n assert.throws(function () {\n obj.set('union', 1);\n }, /Cannot set read-only property \"union\" on object:/);\n }\n\n ['@test does not include duplicates'](assert) {\n let array = obj.get('array');\n let array2 = obj.get('array2');\n assert.deepEqual(obj.get('union').sort((x, y) => x - y), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], name + ' does not include duplicates');\n array.pushObject(8);\n assert.deepEqual(obj.get('union').sort((x, y) => x - y), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], name + ' does not add existing items');\n array.pushObject(11);\n assert.deepEqual(obj.get('union').sort((x, y) => x - y), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], name + ' adds new items');\n (0, _runtime.removeAt)(array2, 6); // remove 7\n\n assert.deepEqual(obj.get('union').sort((x, y) => x - y), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], name + ' does not remove items that are still in the dependent array');\n array2.removeObject(7);\n assert.deepEqual(obj.get('union').sort((x, y) => x - y), [1, 2, 3, 4, 5, 6, 8, 9, 10, 11], name + ' removes items when their last instance is gone');\n }\n\n ['@test has set-union semantics'](assert) {\n let array = obj.get('array');\n assert.deepEqual(obj.get('union').sort((x, y) => x - y), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], name + ' is initially correct');\n array.removeObject(6);\n assert.deepEqual(obj.get('union').sort((x, y) => x - y), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 'objects are not removed if they exist in other dependent arrays');\n array.clear();\n assert.deepEqual(obj.get('union').sort((x, y) => x - y), [1, 4, 5, 6, 7, 8, 9, 10], 'objects are removed when they are no longer in any dependent array');\n }\n\n });\n });\n (0, _internalTestHelpers.moduleFor)('computed.uniqBy', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n list: null,\n uniqueById: (0, _computed.uniqBy)('list', 'id')\n }).create({\n list: (0, _runtime.A)([{\n id: 1,\n value: 'one'\n }, {\n id: 2,\n value: 'two'\n }, {\n id: 1,\n value: 'one'\n }])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test uniqBy is readOnly'](assert) {\n assert.throws(function () {\n obj.set('uniqueById', 1);\n }, /Cannot set read-only property \"uniqueById\" on object:/);\n }\n\n ['@test does not include duplicates'](assert) {\n assert.deepEqual(obj.get('uniqueById'), [{\n id: 1,\n value: 'one'\n }, {\n id: 2,\n value: 'two'\n }]);\n }\n\n ['@test it does not share state among instances'](assert) {\n let MyObject = _runtime.Object.extend({\n list: [],\n uniqueByName: (0, _computed.uniqBy)('list', 'name')\n });\n\n let a = MyObject.create({\n list: [{\n name: 'bob'\n }, {\n name: 'mitch'\n }, {\n name: 'mitch'\n }]\n });\n let b = MyObject.create({\n list: [{\n name: 'warren'\n }, {\n name: 'mitch'\n }]\n });\n assert.deepEqual(a.get('uniqueByName'), [{\n name: 'bob'\n }, {\n name: 'mitch'\n }]); // Making sure that 'mitch' appears\n\n assert.deepEqual(b.get('uniqueByName'), [{\n name: 'warren'\n }, {\n name: 'mitch'\n }]);\n }\n\n ['@test it handles changes to the dependent array'](assert) {\n obj.get('list').pushObject({\n id: 3,\n value: 'three'\n });\n assert.deepEqual(obj.get('uniqueById'), [{\n id: 1,\n value: 'one'\n }, {\n id: 2,\n value: 'two'\n }, {\n id: 3,\n value: 'three'\n }], 'The list includes three');\n obj.get('list').pushObject({\n id: 3,\n value: 'three'\n });\n assert.deepEqual(obj.get('uniqueById'), [{\n id: 1,\n value: 'one'\n }, {\n id: 2,\n value: 'two'\n }, {\n id: 3,\n value: 'three'\n }], 'The list does not include a duplicate three');\n }\n\n ['@test it returns an empty array when computed on a non-array'](assert) {\n let MyObject = _runtime.Object.extend({\n list: null,\n uniq: (0, _computed.uniqBy)('list', 'name')\n });\n\n let a = MyObject.create({\n list: 'not an array'\n });\n assert.deepEqual(a.get('uniq'), []);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('computed.intersect', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n intersection: (0, _computed.intersect)('array', 'array2', 'array3')\n }).create({\n array: (0, _runtime.A)([1, 2, 3, 4, 5, 6]),\n array2: (0, _runtime.A)([3, 3, 3, 4, 5]),\n array3: (0, _runtime.A)([3, 5, 6, 7, 8])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test intersect is readOnly'](assert) {\n assert.throws(function () {\n obj.set('intersection', 1);\n }, /Cannot set read-only property \"intersection\" on object:/);\n }\n\n ['@test it has set-intersection semantics'](assert) {\n let array2 = obj.get('array2');\n let array3 = obj.get('array3');\n assert.deepEqual(obj.get('intersection').sort((x, y) => x - y), [3, 5], 'intersection is initially correct');\n array2.shiftObject();\n assert.deepEqual(obj.get('intersection').sort((x, y) => x - y), [3, 5], 'objects are not removed when they are still in all dependent arrays');\n array2.shiftObject();\n assert.deepEqual(obj.get('intersection').sort((x, y) => x - y), [3, 5], 'objects are not removed when they are still in all dependent arrays');\n array2.shiftObject();\n assert.deepEqual(obj.get('intersection'), [5], 'objects are removed once they are gone from all dependent arrays');\n array2.pushObject(1);\n assert.deepEqual(obj.get('intersection'), [5], 'objects are not added as long as they are missing from any dependent array');\n array3.pushObject(1);\n assert.deepEqual(obj.get('intersection').sort((x, y) => x - y), [1, 5], 'objects added once they belong to all dependent arrays');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('setDiff', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n diff: (0, _computed.setDiff)('array', 'array2')\n }).create({\n array: (0, _runtime.A)([1, 2, 3, 4, 5, 6, 7]),\n array2: (0, _runtime.A)([3, 4, 5, 10])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test setDiff is readOnly'](assert) {\n assert.throws(function () {\n obj.set('diff', 1);\n }, /Cannot set read-only property \"diff\" on object:/);\n }\n\n ['@test it asserts if given fewer or more than two dependent properties']() {\n expectAssertion(function () {\n _runtime.Object.extend({\n diff: (0, _computed.setDiff)('array')\n }).create({\n array: (0, _runtime.A)([1, 2, 3, 4, 5, 6, 7]),\n array2: (0, _runtime.A)([3, 4, 5])\n });\n }, /\\`computed\\.setDiff\\` requires exactly two dependent arrays/, 'setDiff requires two dependent arrays');\n expectAssertion(function () {\n _runtime.Object.extend({\n diff: (0, _computed.setDiff)('array', 'array2', 'array3')\n }).create({\n array: (0, _runtime.A)([1, 2, 3, 4, 5, 6, 7]),\n array2: (0, _runtime.A)([3, 4, 5]),\n array3: (0, _runtime.A)([7])\n });\n }, /\\`computed\\.setDiff\\` requires exactly two dependent arrays/, 'setDiff requires two dependent arrays');\n }\n\n ['@test it has set-diff semantics'](assert) {\n let array1 = obj.get('array');\n let array2 = obj.get('array2');\n assert.deepEqual(obj.get('diff').sort((x, y) => x - y), [1, 2, 6, 7], 'set-diff is initially correct');\n array2.popObject();\n assert.deepEqual(obj.get('diff').sort((x, y) => x - y), [1, 2, 6, 7], 'removing objects from the remove set has no effect if the object is not in the keep set');\n array2.shiftObject();\n assert.deepEqual(obj.get('diff').sort((x, y) => x - y), [1, 2, 3, 6, 7], \"removing objects from the remove set adds them if they're in the keep set\");\n array1.removeObject(3);\n assert.deepEqual(obj.get('diff').sort((x, y) => x - y), [1, 2, 6, 7], 'removing objects from the keep array removes them from the computed array');\n array1.pushObject(5);\n assert.deepEqual(obj.get('diff').sort((x, y) => x - y), [1, 2, 6, 7], 'objects added to the keep array that are in the remove array are not added to the computed array');\n array1.pushObject(22);\n assert.deepEqual(obj.get('diff').sort((x, y) => x - y), [1, 2, 6, 7, 22], 'objects added to the keep array not in the remove array are added to the computed array');\n }\n\n });\n\n class SortWithSortPropertiesTestCase extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n this.obj = this.buildObject();\n }\n\n afterEach() {\n if (this.obj) {\n this.cleanupObject();\n }\n }\n\n ['@test sort is readOnly'](assert) {\n assert.throws(() => {\n (0, _metal.set)(this.obj, 'sortedItems', 1);\n }, /Cannot set read-only property \"sortedItems\" on object:/);\n }\n\n ['@test arrays are initially sorted'](assert) {\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'array is initially sorted');\n }\n\n ['@test default sort order is correct'](assert) {\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'array is initially sorted');\n }\n\n ['@test changing the dependent array updates the sorted array'](assert) {\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n (0, _metal.set)(this.obj, 'items', [{\n fname: 'Roose',\n lname: 'Bolton'\n }, {\n fname: 'Theon',\n lname: 'Greyjoy'\n }, {\n fname: 'Ramsey',\n lname: 'Bolton'\n }, {\n fname: 'Stannis',\n lname: 'Baratheon'\n }]);\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Stannis', 'Ramsey', 'Roose', 'Theon'], 'changing dependent array updates sorted array');\n }\n\n ['@test adding to the dependent array updates the sorted array'](assert) {\n let items = this.obj.items;\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n items.pushObject({\n fname: 'Tyrion',\n lname: 'Lannister'\n });\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Tyrion', 'Bran', 'Robb'], 'Adding to the dependent array updates the sorted array');\n }\n\n ['@test removing from the dependent array updates the sorted array'](assert) {\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n this.obj.items.popObject();\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Robb'], 'Removing from the dependent array updates the sorted array');\n }\n\n ['@test distinct items may be sort-equal, although their relative order will not be guaranteed'](assert) {\n // We recreate jaime and \"Cersei\" here only for test stability: we want\n // their guid-ordering to be deterministic\n let jaimeInDisguise = {\n fname: 'Cersei',\n lname: 'Lannister',\n age: 34\n };\n let jaime = {\n fname: 'Jaime',\n lname: 'Lannister',\n age: 34\n };\n let items = this.obj.items;\n items.replace(0, 1, [jaime]);\n items.replace(1, 1, [jaimeInDisguise]);\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n (0, _metal.set)(jaimeInDisguise, 'fname', 'Jaime');\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Jaime', 'Jaime', 'Bran', 'Robb'], 'sorted array is updated');\n (0, _metal.set)(jaimeInDisguise, 'fname', 'Cersei');\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'sorted array is updated');\n }\n\n ['@test guid sort-order fallback with a search proxy is not confused by non-search ObjectProxys'](assert) {\n let tyrion = {\n fname: 'Tyrion',\n lname: 'Lannister'\n };\n\n let tyrionInDisguise = _runtime.ObjectProxy.create({\n fname: 'Yollo',\n lname: '',\n content: tyrion\n });\n\n let items = this.obj.items;\n items.pushObject(tyrion);\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Tyrion', 'Bran', 'Robb']);\n items.pushObject(tyrionInDisguise);\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Yollo', 'Cersei', 'Jaime', 'Tyrion', 'Bran', 'Robb']);\n }\n\n ['@test updating sort properties detaches observers for old sort properties'](assert) {\n let objectToRemove = this.obj.items[3];\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n (0, _metal.set)(this.obj, 'itemSorting', (0, _runtime.A)(['fname:desc']));\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Robb', 'Jaime', 'Cersei', 'Bran'], 'after updating sort properties array is updated');\n this.obj.items.removeObject(objectToRemove);\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Robb', 'Jaime', 'Cersei'], 'after removing item array is updated');\n (0, _metal.set)(objectToRemove, 'lname', 'Updated-Stark');\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Robb', 'Jaime', 'Cersei'], 'after changing removed item array is not updated');\n }\n\n ['@test sort works if array property is null (non array value) on first evaluation of computed prop'](assert) {\n (0, _metal.set)(this.obj, 'items', null);\n assert.deepEqual(this.obj.sortedItems, []);\n (0, _metal.set)(this.obj, 'items', (0, _runtime.A)([{\n fname: 'Cersei',\n lname: 'Lanister'\n }]));\n assert.deepEqual(this.obj.sortedItems, [{\n fname: 'Cersei',\n lname: 'Lanister'\n }]);\n }\n\n ['@test updating sort properties updates the sorted array'](assert) {\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n (0, _metal.set)(this.obj, 'itemSorting', (0, _runtime.A)(['fname:desc']));\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Robb', 'Jaime', 'Cersei', 'Bran'], 'after updating sort properties array is updated');\n }\n\n ['@test updating sort properties invalidates the sorted array'](assert) {\n let sortProps = this.obj.itemSorting;\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n sortProps.clear();\n sortProps.pushObject('fname');\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Bran', 'Cersei', 'Jaime', 'Robb'], 'after updating sort properties array is updated');\n }\n\n ['@test updating new sort properties invalidates the sorted array'](assert) {\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n (0, _metal.set)(this.obj, 'itemSorting', (0, _runtime.A)(['age:desc', 'fname:asc']));\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Robb', 'Bran'], 'precond - array is correct after item sorting is changed');\n (0, _metal.set)(this.obj.items[1], 'age', 29);\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Jaime', 'Cersei', 'Robb', 'Bran'], 'after updating sort properties array is updated');\n }\n\n ['@test sort direction defaults to ascending'](assert) {\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb']);\n }\n\n ['@test sort direction defaults to ascending (with sort property change)'](assert) {\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n (0, _metal.set)(this.obj, 'itemSorting', (0, _runtime.A)(['fname']));\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Bran', 'Cersei', 'Jaime', 'Robb'], 'sort direction defaults to ascending');\n }\n\n [\"@test updating an item's sort properties updates the sorted array\"](assert) {\n let tyrionInDisguise = this.obj.items[1];\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n (0, _metal.set)(tyrionInDisguise, 'fname', 'Tyrion');\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Jaime', 'Tyrion', 'Bran', 'Robb'], \"updating an item's sort properties updates the sorted array\");\n }\n\n [\"@test updating several of an item's sort properties updated the sorted array\"](assert) {\n let sansaInDisguise = this.obj.items[1];\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n (0, _metal.setProperties)(sansaInDisguise, {\n fname: 'Sansa',\n lname: 'Stark'\n });\n assert.deepEqual(this.obj.sortedItems.mapBy('fname'), ['Jaime', 'Bran', 'Robb', 'Sansa'], \"updating an item's sort properties updates the sorted array\");\n }\n\n [\"@test updating an item's sort properties does not error when binary search does a self compare (#3273)\"](assert) {\n let jaime = {\n name: 'Jaime',\n status: 1\n };\n let cersei = {\n name: 'Cersei',\n status: 2\n };\n this.cleanupObject();\n this.obj = this.buildObject([jaime, cersei], ['status']);\n assert.deepEqual(this.obj.sortedItems, [jaime, cersei], 'precond - array is initially sorted');\n (0, _metal.set)(cersei, 'status', 3);\n assert.deepEqual(this.obj.sortedItems, [jaime, cersei], 'array is sorted correctly');\n (0, _metal.set)(cersei, 'status', 2);\n assert.deepEqual(this.obj.sortedItems, [jaime, cersei], 'array is sorted correctly');\n }\n\n ['@test array should not be sorted if sort properties array is empty'](assert) {\n this.cleanupObject(); // This bug only manifests when array.sort(() => 0) is not equal to array.\n // In order for this to happen, the browser must use an unstable sort and the\n // array must be sufficient large. On Chrome, 12 items is currently sufficient.\n\n this.obj = this.buildObject((0, _runtime.A)([6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5]), []);\n assert.deepEqual(this.obj.sortedItems, [6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5], 'array is not changed');\n }\n\n ['@test array should update if items to be sorted is replaced when sort properties array is empty'](assert) {\n this.cleanupObject();\n this.obj = this.buildObject((0, _runtime.A)([6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5]), (0, _runtime.A)([]));\n assert.deepEqual(this.obj.sortedItems, [6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5], 'array is not changed');\n (0, _metal.set)(this.obj, 'items', (0, _runtime.A)([5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4]));\n assert.deepEqual(this.obj.sortedItems, [5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4], 'array was updated');\n }\n\n ['@test array should update if items to be sorted is mutated when sort properties array is empty'](assert) {\n this.cleanupObject();\n this.obj = this.buildObject((0, _runtime.A)([6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5]), (0, _runtime.A)([]));\n assert.deepEqual(this.obj.sortedItems, [6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5], 'array is not changed');\n this.obj.items.pushObject(12);\n assert.deepEqual(this.obj.sortedItems, [6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 12], 'array was updated');\n }\n\n ['@test array observers do not leak'](assert) {\n let daria = {\n name: 'Daria'\n };\n let jane = {\n name: 'Jane'\n };\n let sisters = [jane, daria];\n let sortProps = (0, _runtime.A)(['name']);\n this.cleanupObject();\n this.obj = this.buildObject(sisters, sortProps);\n this.obj.sortedItems;\n this.cleanupObject();\n\n try {\n sortProps.pushObject({\n name: 'Anna'\n });\n assert.ok(true);\n } catch (e) {\n assert.ok(false, e);\n }\n }\n\n ['@test property paths in sort properties update the sorted array'](assert) {\n let jaime = {\n relatedObj: {\n status: 1,\n firstName: 'Jaime',\n lastName: 'Lannister'\n }\n };\n let cersei = {\n relatedObj: {\n status: 2,\n firstName: 'Cersei',\n lastName: 'Lannister'\n }\n };\n\n let sansa = _runtime.Object.create({\n relatedObj: {\n status: 3,\n firstName: 'Sansa',\n lastName: 'Stark'\n }\n });\n\n this.cleanupObject();\n this.obj = this.buildObject([jaime, cersei, sansa], ['relatedObj.status']);\n assert.deepEqual(this.obj.sortedItems, [jaime, cersei, sansa], 'precond - array is initially sorted');\n (0, _metal.set)(cersei, 'status', 3);\n assert.deepEqual(this.obj.sortedItems, [jaime, cersei, sansa], 'array is sorted correctly');\n (0, _metal.set)(cersei, 'status', 1);\n assert.deepEqual(this.obj.sortedItems, [jaime, cersei, sansa], 'array is sorted correctly');\n sansa.set('status', 1);\n assert.deepEqual(this.obj.sortedItems, [jaime, cersei, sansa], 'array is sorted correctly');\n (0, _metal.set)(this.obj, 'itemSorting', ['relatedObj.firstName']);\n assert.deepEqual(this.obj.sortedItems, [cersei, jaime, sansa], 'array is sorted correctly');\n }\n\n ['@test if the dependentKey is neither an array nor object, it will return an empty array'](assert) {\n (0, _metal.set)(this.obj, 'items', null);\n assert.ok((0, _runtime.isArray)(this.obj.sortedItems), 'returns an empty arrays');\n (0, _metal.set)(this.obj, 'array', undefined);\n assert.ok((0, _runtime.isArray)(this.obj.sortedItems), 'returns an empty arrays');\n (0, _metal.set)(this.obj, 'array', 'not an array');\n assert.ok((0, _runtime.isArray)(this.obj.sortedItems), 'returns an empty arrays');\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('sort - sortProperties - Ember.Object', class extends SortWithSortPropertiesTestCase {\n buildObject(_items, _itemSorting) {\n let items = _items || (0, _runtime.A)([{\n fname: 'Jaime',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Cersei',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Robb',\n lname: 'Stark',\n age: 16\n }, {\n fname: 'Bran',\n lname: 'Stark',\n age: 8\n }]);\n\n let itemSorting = _itemSorting || (0, _runtime.A)(['lname', 'fname']);\n\n return _runtime.Object.extend({\n sortedItems: (0, _computed.sort)('items', 'itemSorting')\n }).create({\n itemSorting,\n items\n });\n }\n\n cleanupObject() {\n (0, _runloop.run)(this.obj, 'destroy');\n }\n\n });\n\n if (_canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT) {\n (0, _internalTestHelpers.moduleFor)('sort - sortProperties - Native Class', class extends SortWithSortPropertiesTestCase {\n buildObject(_items, _itemSorting) {\n var _dec, _class, _descriptor, _temp;\n\n let items = _items || (0, _runtime.A)([{\n fname: 'Jaime',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Cersei',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Robb',\n lname: 'Stark',\n age: 16\n }, {\n fname: 'Bran',\n lname: 'Stark',\n age: 8\n }]);\n\n let itemSorting = _itemSorting || (0, _runtime.A)(['lname', 'fname']);\n\n return new (_dec = (0, _computed.sort)('items', 'itemSorting'), (_class = (_temp = class _class {\n constructor() {\n this.items = items;\n this.itemSorting = itemSorting;\n\n _initializerDefineProperty(this, \"sortedItems\", _descriptor, this);\n }\n\n }, _temp), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sortedItems\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class))();\n }\n\n cleanupObject() {}\n\n });\n }\n\n function sortByLnameFname(a, b) {\n let lna = (0, _metal.get)(a, 'lname');\n let lnb = (0, _metal.get)(b, 'lname');\n\n if (lna !== lnb) {\n return lna > lnb ? 1 : -1;\n }\n\n return sortByFnameAsc(a, b);\n }\n\n function sortByFnameAsc(a, b) {\n let fna = (0, _metal.get)(a, 'fname');\n let fnb = (0, _metal.get)(b, 'fname');\n\n if (fna === fnb) {\n return 0;\n }\n\n return fna > fnb ? 1 : -1;\n }\n\n (0, _internalTestHelpers.moduleFor)('sort - sort function', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n sortedItems: (0, _computed.sort)('items.@each.fname', sortByLnameFname)\n }).create({\n items: (0, _runtime.A)([{\n fname: 'Jaime',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Cersei',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Robb',\n lname: 'Stark',\n age: 16\n }, {\n fname: 'Bran',\n lname: 'Stark',\n age: 8\n }])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test sort has correct `this`'](assert) {\n let obj = _runtime.Object.extend({\n sortedItems: (0, _computed.sort)('items.@each.fname', function (a, b) {\n assert.equal(this, obj, 'expected the object to be `this`');\n return this.sortByLastName(a, b);\n }),\n\n sortByLastName(a, b) {\n return sortByFnameAsc(a, b);\n }\n\n }).create({\n items: (0, _runtime.A)([{\n fname: 'Jaime',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Cersei',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Robb',\n lname: 'Stark',\n age: 16\n }, {\n fname: 'Bran',\n lname: 'Stark',\n age: 8\n }])\n });\n\n obj.get('sortedItems');\n }\n\n ['@test sort (with function) is readOnly'](assert) {\n assert.throws(function () {\n obj.set('sortedItems', 1);\n }, /Cannot set read-only property \"sortedItems\" on object:/);\n }\n\n ['@test arrays are initially sorted'](assert) {\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'array is initially sorted');\n }\n\n ['@test default sort order is correct'](assert) {\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'array is initially sorted');\n }\n\n ['@test changing the dependent array updates the sorted array'](assert) {\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n obj.set('items', [{\n fname: 'Roose',\n lname: 'Bolton'\n }, {\n fname: 'Theon',\n lname: 'Greyjoy'\n }, {\n fname: 'Ramsey',\n lname: 'Bolton'\n }, {\n fname: 'Stannis',\n lname: 'Baratheon'\n }]);\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Stannis', 'Ramsey', 'Roose', 'Theon'], 'changing dependent array updates sorted array');\n }\n\n ['@test adding to the dependent array updates the sorted array'](assert) {\n let items = obj.get('items');\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n items.pushObject({\n fname: 'Tyrion',\n lname: 'Lannister'\n });\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Tyrion', 'Bran', 'Robb'], 'Adding to the dependent array updates the sorted array');\n }\n\n ['@test removing from the dependent array updates the sorted array'](assert) {\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n obj.get('items').popObject();\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Robb'], 'Removing from the dependent array updates the sorted array');\n }\n\n ['@test distinct items may be sort-equal, although their relative order will not be guaranteed'](assert) {\n // We recreate jaime and \"Cersei\" here only for test stability: we want\n // their guid-ordering to be deterministic\n let jaimeInDisguise = {\n fname: 'Cersei',\n lname: 'Lannister',\n age: 34\n };\n let jaime = {\n fname: 'Jaime',\n lname: 'Lannister',\n age: 34\n };\n let items = obj.get('items');\n items.replace(0, 1, [jaime]);\n items.replace(1, 1, [jaimeInDisguise]);\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n (0, _metal.set)(jaimeInDisguise, 'fname', 'Jaime');\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Jaime', 'Jaime', 'Bran', 'Robb'], 'sorted array is updated');\n (0, _metal.set)(jaimeInDisguise, 'fname', 'Cersei');\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'sorted array is updated');\n }\n\n ['@test guid sort-order fallback with a search proxy is not confused by non-search ObjectProxys'](assert) {\n let tyrion = {\n fname: 'Tyrion',\n lname: 'Lannister'\n };\n\n let tyrionInDisguise = _runtime.ObjectProxy.create({\n fname: 'Yollo',\n lname: '',\n content: tyrion\n });\n\n let items = obj.get('items');\n items.pushObject(tyrion);\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Tyrion', 'Bran', 'Robb']);\n items.pushObject(tyrionInDisguise);\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Yollo', 'Cersei', 'Jaime', 'Tyrion', 'Bran', 'Robb']);\n }\n\n ['@test changing item properties specified via @each triggers a resort of the modified item'](assert) {\n let items = (0, _metal.get)(obj, 'items');\n let tyrionInDisguise = items[1];\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n (0, _metal.set)(tyrionInDisguise, 'fname', 'Tyrion');\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Jaime', 'Tyrion', 'Bran', 'Robb'], 'updating a specified property on an item resorts it');\n }\n\n ['@test changing item properties not specified via @each does not trigger a resort'](assert) {\n if (!_canaryFeatures.EMBER_METAL_TRACKED_PROPERTIES) {\n let items = obj.get('items');\n let cersei = items[1];\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n (0, _metal.set)(cersei, 'lname', 'Stark'); // plot twist! (possibly not canon)\n // The array has become unsorted. If your sort function is sensitive to\n // properties, they *must* be specified as dependent item property keys or\n // we'll be doing binary searches on unsorted arrays.\n\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'updating an unspecified property on an item does not resort it');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test sort updates if additional dependent keys are present'](assert) {\n obj = _runtime.Object.extend({\n sortedItems: (0, _computed.sort)('items', ['sortFunction'], function () {\n return this.sortFunction(...arguments);\n })\n }).create({\n sortFunction: sortByLnameFname,\n items: (0, _runtime.A)([{\n fname: 'Jaime',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Cersei',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Robb',\n lname: 'Stark',\n age: 16\n }, {\n fname: 'Bran',\n lname: 'Stark',\n age: 8\n }])\n });\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'array is initially sorted');\n obj.set('sortFunction', (a, b) => {\n if (a.age > b.age) {\n return -1;\n } else if (a.age < b.age) {\n return 1;\n }\n\n return 0;\n });\n assert.deepEqual(obj.get('sortedItems').mapBy('fname'), ['Jaime', 'Cersei', 'Robb', 'Bran'], 'array is updated when dependent key changes');\n }\n\n ['@test it throws on bad inputs']() {\n expectAssertion(() => {\n (0, _computed.sort)('foo', 'bar', 'baz');\n }, /`computed.sort` can either be used with an array of sort properties or with a sort function/);\n expectAssertion(() => {\n (0, _computed.sort)('foo', ['bar'], 'baz');\n }, /`computed.sort` can either be used with an array of sort properties or with a sort function/);\n expectAssertion(() => {\n (0, _computed.sort)('foo', 'bar', function () {});\n }, /`computed.sort` can either be used with an array of sort properties or with a sort function/);\n expectAssertion(() => {\n (0, _computed.sort)('foo', ['bar'], function () {}, 'baz');\n }, /`computed.sort` can either be used with an array of sort properties or with a sort function/);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('sort - stability', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n sortProps: ['count', 'name'],\n sortedItems: (0, _computed.sort)('items', 'sortProps')\n }).create({\n items: [{\n name: 'A',\n count: 1,\n thing: 4\n }, {\n name: 'B',\n count: 1,\n thing: 3\n }, {\n name: 'C',\n count: 1,\n thing: 2\n }, {\n name: 'D',\n count: 1,\n thing: 4\n }]\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test sorts correctly as only one property changes'](assert) {\n assert.deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'initial');\n (0, _metal.set)(obj.get('items')[3], 'count', 2);\n assert.deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'final');\n }\n\n });\n let klass;\n (0, _internalTestHelpers.moduleFor)('sort - concurrency', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n klass = _runtime.Object.extend({\n sortProps: ['count'],\n sortedItems: (0, _computed.sort)('items', 'sortProps'),\n customSortedItems: (0, _computed.sort)('items.@each.count', (a, b) => a.count - b.count)\n });\n obj = klass.create({\n items: (0, _runtime.A)([{\n name: 'A',\n count: 1,\n thing: 4,\n id: 1\n }, {\n name: 'B',\n count: 2,\n thing: 3,\n id: 2\n }, {\n name: 'C',\n count: 3,\n thing: 2,\n id: 3\n }, {\n name: 'D',\n count: 4,\n thing: 1,\n id: 4\n }])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test sorts correctly after mutation to the sort properties'](assert) {\n let sorted = obj.get('sortedItems');\n assert.deepEqual(sorted.mapBy('name'), ['A', 'B', 'C', 'D'], 'initial');\n (0, _metal.set)(obj.get('items')[1], 'count', 5);\n (0, _metal.set)(obj.get('items')[2], 'count', 6);\n assert.deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'final');\n }\n\n ['@test sort correctly after mutation to the sort'](assert) {\n assert.deepEqual(obj.get('customSortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'initial');\n (0, _metal.set)(obj.get('items')[1], 'count', 5);\n (0, _metal.set)(obj.get('items')[2], 'count', 6);\n assert.deepEqual(obj.get('customSortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'final');\n assert.deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'final');\n }\n\n ['@test sort correctly on multiple instances of the same class'](assert) {\n let obj2 = klass.create({\n items: (0, _runtime.A)([{\n name: 'W',\n count: 23,\n thing: 4\n }, {\n name: 'X',\n count: 24,\n thing: 3\n }, {\n name: 'Y',\n count: 25,\n thing: 2\n }, {\n name: 'Z',\n count: 26,\n thing: 1\n }])\n });\n assert.deepEqual(obj2.get('sortedItems').mapBy('name'), ['W', 'X', 'Y', 'Z'], 'initial');\n assert.deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'initial');\n (0, _metal.set)(obj.get('items')[1], 'count', 5);\n (0, _metal.set)(obj.get('items')[2], 'count', 6);\n (0, _metal.set)(obj2.get('items')[1], 'count', 27);\n (0, _metal.set)(obj2.get('items')[2], 'count', 28);\n assert.deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'final');\n assert.deepEqual(obj2.get('sortedItems').mapBy('name'), ['W', 'Z', 'X', 'Y'], 'final');\n obj.set('sortProps', ['thing']);\n assert.deepEqual(obj.get('sortedItems').mapBy('name'), ['D', 'C', 'B', 'A'], 'final');\n obj2.notifyPropertyChange('sortedItems'); // invalidate to flush, to get DK refreshed\n\n obj2.get('sortedItems'); // flush to get updated DK\n\n obj2.set('items.firstObject.count', 9999);\n assert.deepEqual(obj2.get('sortedItems').mapBy('name'), ['Z', 'X', 'Y', 'W'], 'final');\n }\n\n ['@test sort correctly when multiple sorts are chained on the same instance of a class'](assert) {\n let obj2 = klass.extend({\n items: (0, _metal.computed)('sibling.sortedItems.[]', function () {\n return this.get('sibling.sortedItems');\n }),\n asdf: (0, _metal.observer)('sibling.sortedItems.[]', function () {\n this.get('sibling.sortedItems');\n })\n }).create({\n sibling: obj\n });\n /*\n ┌───────────┐ ┌────────────┐\n │sortedProps│ │sortedProps2│\n └───────────┘ └────────────┘\n ▲ ▲\n │ ╔═══════════╗ │\n │─ ─ ─ ─ ─ ─ ─ ▶║ CP (sort) ║◀─ ─ ─ ─ ─ ─ ─ ┤\n │ ╚═══════════╝ │\n │ │\n ┌───────────┐ ┏━━━━━━━━━━━┓ ┏━━━━━━━━━━━━┓\n │ │ ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┃ ┃ ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┃ ┃\n │ items │◀── items.@each.count │◀──┃sortedItems┃◀─── items.@each.count │◀───┃sortedItems2┃\n │ │ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┃ ┃ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┃ ┃\n └───────────┘ ┗━━━━━━━━━━━┛ ┗━━━━━━━━━━━━┛\n */\n\n assert.deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'obj.sortedItems.name should be sorted alpha');\n assert.deepEqual(obj2.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'obj2.sortedItems.name should be sorted alpha');\n (0, _metal.set)(obj.get('items')[1], 'count', 5);\n (0, _metal.set)(obj.get('items')[2], 'count', 6);\n assert.deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'obj.sortedItems.name should now have changed');\n assert.deepEqual(obj2.get('sortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'obj2.sortedItems.name should still mirror sortedItems2');\n obj.set('sortProps', ['thing']);\n obj2.set('sortProps', ['id']);\n assert.deepEqual(obj2.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'we now sort obj2 by id, so we expect a b c d');\n assert.deepEqual(obj.get('sortedItems').mapBy('name'), ['D', 'C', 'B', 'A'], 'we now sort obj by thing');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('max', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n max: (0, _computed.max)('items')\n }).create({\n items: (0, _runtime.A)([1, 2, 3])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test max is readOnly'](assert) {\n assert.throws(function () {\n obj.set('max', 1);\n }, /Cannot set read-only property \"max\" on object:/);\n }\n\n ['@test max tracks the max number as objects are added'](assert) {\n assert.equal(obj.get('max'), 3, 'precond - max is initially correct');\n let items = obj.get('items');\n items.pushObject(5);\n assert.equal(obj.get('max'), 5, 'max updates when a larger number is added');\n items.pushObject(2);\n assert.equal(obj.get('max'), 5, 'max does not update when a smaller number is added');\n }\n\n ['@test max recomputes when the current max is removed'](assert) {\n assert.equal(obj.get('max'), 3, 'precond - max is initially correct');\n obj.get('items').removeObject(2);\n assert.equal(obj.get('max'), 3, 'max is unchanged when a non-max item is removed');\n obj.get('items').removeObject(3);\n assert.equal(obj.get('max'), 1, 'max is recomputed when the current max is removed');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('min', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n min: (0, _computed.min)('items')\n }).create({\n items: (0, _runtime.A)([1, 2, 3])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test min is readOnly'](assert) {\n assert.throws(function () {\n obj.set('min', 1);\n }, /Cannot set read-only property \"min\" on object:/);\n }\n\n ['@test min tracks the min number as objects are added'](assert) {\n assert.equal(obj.get('min'), 1, 'precond - min is initially correct');\n obj.get('items').pushObject(-2);\n assert.equal(obj.get('min'), -2, 'min updates when a smaller number is added');\n obj.get('items').pushObject(2);\n assert.equal(obj.get('min'), -2, 'min does not update when a larger number is added');\n }\n\n ['@test min recomputes when the current min is removed'](assert) {\n let items = obj.get('items');\n assert.equal(obj.get('min'), 1, 'precond - min is initially correct');\n items.removeObject(2);\n assert.equal(obj.get('min'), 1, 'min is unchanged when a non-min item is removed');\n items.removeObject(1);\n assert.equal(obj.get('min'), 3, 'min is recomputed when the current min is removed');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Ember.arrayComputed - mixed sugar', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n lannisters: (0, _computed.filterBy)('items', 'lname', 'Lannister'),\n lannisterSorting: (0, _runtime.A)(['fname']),\n sortedLannisters: (0, _computed.sort)('lannisters', 'lannisterSorting'),\n starks: (0, _computed.filterBy)('items', 'lname', 'Stark'),\n starkAges: (0, _computed.mapBy)('starks', 'age'),\n oldestStarkAge: (0, _computed.max)('starkAges')\n }).create({\n items: (0, _runtime.A)([{\n fname: 'Jaime',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Cersei',\n lname: 'Lannister',\n age: 34\n }, {\n fname: 'Robb',\n lname: 'Stark',\n age: 16\n }, {\n fname: 'Bran',\n lname: 'Stark',\n age: 8\n }])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test filtering and sorting can be combined'](assert) {\n let items = obj.get('items');\n assert.deepEqual(obj.get('sortedLannisters').mapBy('fname'), ['Cersei', 'Jaime'], 'precond - array is initially filtered and sorted');\n items.pushObject({\n fname: 'Tywin',\n lname: 'Lannister'\n });\n items.pushObject({\n fname: 'Lyanna',\n lname: 'Stark'\n });\n items.pushObject({\n fname: 'Gerion',\n lname: 'Lannister'\n });\n assert.deepEqual(obj.get('sortedLannisters').mapBy('fname'), ['Cersei', 'Gerion', 'Jaime', 'Tywin'], 'updates propagate to array');\n }\n\n ['@test filtering, sorting and reduce (max) can be combined'](assert) {\n let items = obj.get('items');\n assert.equal(16, obj.get('oldestStarkAge'), 'precond - end of chain is initially correct');\n items.pushObject({\n fname: 'Rickon',\n lname: 'Stark',\n age: 5\n });\n assert.equal(16, obj.get('oldestStarkAge'), 'chain is updated correctly');\n items.pushObject({\n fname: 'Eddard',\n lname: 'Stark',\n age: 35\n });\n assert.equal(35, obj.get('oldestStarkAge'), 'chain is updated correctly');\n }\n\n });\n\n function todo(name, priority) {\n return _runtime.Object.create({\n name: name,\n priority: priority\n });\n }\n\n function priorityComparator(todoA, todoB) {\n let pa = parseInt((0, _metal.get)(todoA, 'priority'), 10);\n let pb = parseInt((0, _metal.get)(todoB, 'priority'), 10);\n return pa - pb;\n }\n\n function evenPriorities(todo) {\n let p = parseInt((0, _metal.get)(todo, 'priority'), 10);\n return p % 2 === 0;\n }\n\n (0, _internalTestHelpers.moduleFor)('Ember.arrayComputed - chains', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n sorted: (0, _computed.sort)('todos.@each.priority', priorityComparator),\n filtered: (0, _computed.filter)('sorted.@each.priority', evenPriorities)\n }).create({\n todos: (0, _runtime.A)([todo('E', 4), todo('D', 3), todo('C', 2), todo('B', 1), todo('A', 0)])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test it can filter and sort when both depend on the same item property'](assert) {\n assert.deepEqual(obj.get('todos').mapBy('name'), ['E', 'D', 'C', 'B', 'A'], 'precond - todos initially correct');\n assert.deepEqual(obj.get('sorted').mapBy('name'), ['A', 'B', 'C', 'D', 'E'], 'precond - sorted initially correct');\n assert.deepEqual(obj.get('filtered').mapBy('name'), ['A', 'C', 'E'], 'precond - filtered initially correct');\n (0, _metal.set)(obj.get('todos')[1], 'priority', 6);\n assert.deepEqual(obj.get('todos').mapBy('name'), ['E', 'D', 'C', 'B', 'A'], 'precond - todos remain correct');\n assert.deepEqual(obj.get('sorted').mapBy('name'), ['A', 'B', 'C', 'E', 'D'], 'precond - sorted updated correctly');\n assert.deepEqual(obj.get('filtered').mapBy('name'), ['A', 'C', 'E', 'D'], 'filtered updated correctly');\n }\n\n });\n let userFnCalls;\n (0, _internalTestHelpers.moduleFor)('Chaining array and reduced CPs', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n userFnCalls = 0;\n obj = _runtime.Object.extend({\n mapped: (0, _computed.mapBy)('array', 'v'),\n max: (0, _computed.max)('mapped'),\n maxDidChange: (0, _metal.observer)('max', () => userFnCalls++)\n }).create({\n array: (0, _runtime.A)([{\n v: 1\n }, {\n v: 3\n }, {\n v: 2\n }, {\n v: 1\n }])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test it computes interdependent array computed properties'](assert) {\n assert.equal(obj.get('max'), 3, 'sanity - it properly computes the maximum value');\n let calls = 0;\n (0, _metal.addObserver)(obj, 'max', () => calls++);\n obj.get('array').pushObject({\n v: 5\n });\n assert.equal(obj.get('max'), 5, 'maximum value is updated correctly');\n assert.equal(userFnCalls, 1, 'object defined observers fire');\n assert.equal(calls, 1, 'runtime created observers fire');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('sum', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n obj = _runtime.Object.extend({\n total: (0, _computed.sum)('array')\n }).create({\n array: (0, _runtime.A)([1, 2, 3])\n });\n }\n\n afterEach() {\n (0, _runloop.run)(obj, 'destroy');\n }\n\n ['@test sum is readOnly'](assert) {\n assert.throws(function () {\n obj.set('total', 1);\n }, /Cannot set read-only property \"total\" on object:/);\n }\n\n ['@test sums the values in the dependentKey'](assert) {\n assert.equal(obj.get('total'), 6, 'sums the values');\n }\n\n ['@test if the dependentKey is neither an array nor object, it will return `0`'](assert) {\n (0, _metal.set)(obj, 'array', null);\n assert.equal((0, _metal.get)(obj, 'total'), 0, 'returns 0');\n (0, _metal.set)(obj, 'array', undefined);\n assert.equal((0, _metal.get)(obj, 'total'), 0, 'returns 0');\n (0, _metal.set)(obj, 'array', 'not an array');\n assert.equal((0, _metal.get)(obj, 'total'), 0, 'returns 0');\n }\n\n ['@test updates when array is modified'](assert) {\n obj.get('array').pushObject(1);\n assert.equal(obj.get('total'), 7, 'recomputed when elements are added');\n obj.get('array').popObject();\n assert.equal(obj.get('total'), 6, 'recomputes when elements are removed');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('collect', class extends _internalTestHelpers.AbstractTestCase {\n ['@test works'](assert) {\n let obj = {\n one: 'foo',\n two: 'bar',\n three: null\n };\n (0, _metal.defineProperty)(obj, 'all', (0, _computed.collect)('one', 'two', 'three', 'four'));\n assert.deepEqual((0, _metal.get)(obj, 'all'), ['foo', 'bar', null, null], 'have all of them');\n (0, _metal.set)(obj, 'four', true);\n assert.deepEqual((0, _metal.get)(obj, 'all'), ['foo', 'bar', null, true], 'have all of them');\n let a = [];\n (0, _metal.set)(obj, 'one', 0);\n (0, _metal.set)(obj, 'three', a);\n assert.deepEqual((0, _metal.get)(obj, 'all'), [0, 'bar', a, true], 'have all of them');\n }\n\n });\n});","enifed(\"@ember/polyfills/index\", [\"exports\", \"@ember/deprecated-features\", \"@ember/polyfills/lib/merge\", \"@ember/polyfills/lib/assign\", \"@ember/polyfills/lib/weak_set\"], function (_exports, _deprecatedFeatures, _merge, _assign, _weak_set) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.merge = _exports.assignPolyfill = _exports._WeakSet = _exports.assign = void 0;\n _exports.assign = _assign.default;\n _exports.assignPolyfill = _assign.assign;\n _exports._WeakSet = _weak_set.default;\n let merge = _deprecatedFeatures.MERGE ? _merge.default : undefined; // Export `assignPolyfill` for testing\n\n _exports.merge = merge;\n});","enifed(\"@ember/polyfills/lib/assign\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.assign = assign;\n _exports.default = void 0;\n\n /**\n @module @ember/polyfills\n */\n\n /**\n Copy properties from a source object to a target object. Source arguments remain unchanged.\n \n ```javascript\n import { assign } from '@ember/polyfills';\n \n var a = { first: 'Yehuda' };\n var b = { last: 'Katz' };\n var c = { company: 'Other Company' };\n var d = { company: 'Tilde Inc.' };\n assign(a, b, c, d); // a === { first: 'Yehuda', last: 'Katz', company: 'Tilde Inc.' };\n ```\n \n @method assign\n @for @ember/polyfills\n @param {Object} target The object to assign into\n @param {Object} ...args The objects to copy properties from\n @return {Object}\n @public\n @static\n */\n function assign(target) {\n for (let i = 1; i < arguments.length; i++) {\n let arg = arguments[i];\n\n if (!arg) {\n continue;\n }\n\n let updates = Object.keys(arg);\n\n for (let i = 0; i < updates.length; i++) {\n let prop = updates[i];\n target[prop] = arg[prop];\n }\n }\n\n return target;\n } // Note: We use the bracket notation so\n // that the babel plugin does not\n // transform it.\n // https://www.npmjs.com/package/babel-plugin-transform-object-assign\n\n\n const {\n assign: _assign\n } = Object;\n\n var _default = _assign || assign;\n\n _exports.default = _default;\n});","enifed(\"@ember/polyfills/lib/merge\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = merge;\n\n /**\n Merge the contents of two objects together into the first object.\n \n ```javascript\n import { merge } from '@ember/polyfills';\n \n merge({ first: 'Tom' }, { last: 'Dale' }); // { first: 'Tom', last: 'Dale' }\n var a = { first: 'Yehuda' };\n var b = { last: 'Katz' };\n merge(a, b); // a == { first: 'Yehuda', last: 'Katz' }, b == { last: 'Katz' }\n ```\n \n @method merge\n @static\n @for @ember/polyfills\n @param {Object} original The object to merge into\n @param {Object} updates The object to copy properties from\n @return {Object}\n @deprecated\n @public\n */\n function merge(original, updates) {\n (0, _debug.deprecate)('Use of `merge` has been deprecated. Please use `assign` instead.', false, {\n id: 'ember-polyfills.deprecate-merge',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x/#toc_ember-polyfills-deprecate-merge'\n });\n\n if (updates === null || typeof updates !== 'object') {\n return original;\n }\n\n let props = Object.keys(updates);\n let prop;\n\n for (let i = 0; i < props.length; i++) {\n prop = props[i];\n original[prop] = updates[prop];\n }\n\n return original;\n }\n});","enifed(\"@ember/polyfills/lib/weak_set\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /* globals WeakSet */\n var _default = typeof WeakSet === 'function' ? WeakSet : class WeakSetPolyFill {\n constructor() {\n this._map = new WeakMap();\n }\n\n add(val) {\n this._map.set(val, true);\n\n return this;\n }\n\n delete(val) {\n return this._map.delete(val);\n }\n\n has(val) {\n return this._map.has(val);\n }\n\n };\n\n _exports.default = _default;\n});","enifed(\"@ember/polyfills/tests/assign_test\", [\"@ember/polyfills\", \"internal-test-helpers\"], function (_polyfills, _internalTestHelpers) {\n \"use strict\";\n\n class AssignTests extends _internalTestHelpers.AbstractTestCase {\n ['@test merging objects'](assert) {\n let trgt = {\n a: 1\n };\n let src1 = {\n b: 2\n };\n let src2 = {\n c: 3\n };\n this.assign(trgt, src1, src2);\n assert.deepEqual(trgt, {\n a: 1,\n b: 2,\n c: 3\n }, 'assign copies values from one or more source objects to a target object');\n assert.deepEqual(src1, {\n b: 2\n }, 'assign does not change source object 1');\n assert.deepEqual(src2, {\n c: 3\n }, 'assign does not change source object 2');\n }\n\n ['@test merging objects with same property'](assert) {\n let trgt = {\n a: 1,\n b: 1\n };\n let src1 = {\n a: 2,\n b: 2\n };\n let src2 = {\n a: 3\n };\n this.assign(trgt, src1, src2);\n assert.deepEqual(trgt, {\n a: 3,\n b: 2\n }, 'properties are overwritten by other objects that have the same properties later in the parameters order');\n }\n\n ['@test null'](assert) {\n let trgt = {\n a: 1\n };\n this.assign(trgt, null);\n assert.deepEqual(trgt, {\n a: 1\n }, 'null as a source parameter is ignored');\n }\n\n ['@test undefined'](assert) {\n let trgt = {\n a: 1\n };\n this.assign(trgt, null);\n assert.deepEqual(trgt, {\n a: 1\n }, 'undefined as a source parameter is ignored');\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('Ember.assign (polyfill)', class extends AssignTests {\n assign() {\n return (0, _polyfills.assignPolyfill)(...arguments);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Ember.assign (maybe not-polyfill ;) )', class extends AssignTests {\n assign() {\n return (0, _polyfills.assign)(...arguments);\n }\n\n });\n});","enifed(\"@ember/polyfills/tests/merge_test\", [\"@ember/polyfills\", \"internal-test-helpers\"], function (_polyfills, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Ember.merge', class extends _internalTestHelpers.AbstractTestCase {\n ['@test merging objects'](assert) {\n let src1 = {\n a: 1\n };\n let src2 = {\n b: 2\n };\n expectDeprecation(() => {\n (0, _polyfills.merge)(src1, src2);\n }, 'Use of `merge` has been deprecated. Please use `assign` instead.');\n assert.deepEqual(src1, {\n a: 1,\n b: 2\n }, 'merge copies values from second source object to first object');\n }\n\n });\n});","enifed(\"@ember/runloop/index\", [\"exports\", \"@ember/debug\", \"@ember/-internals/error-handling\", \"@ember/-internals/metal\", \"backburner\", \"@ember/deprecated-features\"], function (_exports, _debug, _errorHandling, _metal, _backburner, _deprecatedFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.getCurrentRunLoop = getCurrentRunLoop;\n _exports.run = run;\n _exports.join = join;\n _exports.begin = begin;\n _exports.end = end;\n _exports.schedule = schedule;\n _exports.hasScheduledTimers = hasScheduledTimers;\n _exports.cancelTimers = cancelTimers;\n _exports.later = later;\n _exports.once = once;\n _exports.scheduleOnce = scheduleOnce;\n _exports.next = next;\n _exports.cancel = cancel;\n _exports.debounce = debounce;\n _exports.throttle = throttle;\n _exports.bind = _exports._globalsRun = _exports.backburner = _exports.queues = _exports._rsvpErrorQueue = void 0;\n let currentRunLoop = null;\n\n function getCurrentRunLoop() {\n return currentRunLoop;\n }\n\n function onBegin(current) {\n currentRunLoop = current;\n }\n\n function onEnd(current, next) {\n currentRunLoop = next;\n }\n\n const _rsvpErrorQueue = (\"\" + Math.random() + Date.now()).replace('.', '');\n /**\n Array of named queues. This array determines the order in which queues\n are flushed at the end of the RunLoop. You can define your own queues by\n simply adding the queue name to this array. Normally you should not need\n to inspect or modify this property.\n \n @property queues\n @type Array\n @default ['actions', 'destroy']\n @private\n */\n\n\n _exports._rsvpErrorQueue = _rsvpErrorQueue;\n const queues = ['actions', // used in router transitions to prevent unnecessary loading state entry\n // if all context promises resolve on the 'actions' queue first\n 'routerTransitions', 'render', 'afterRender', 'destroy', // used to re-throw unhandled RSVP rejection errors specifically in this\n // position to avoid breaking anything rendered in the other sections\n _rsvpErrorQueue];\n _exports.queues = queues;\n let backburnerOptions = {\n defaultQueue: 'actions',\n onBegin,\n onEnd,\n onErrorTarget: _errorHandling.onErrorTarget,\n onErrorMethod: 'onerror'\n };\n\n if (_deprecatedFeatures.RUN_SYNC) {\n queues.unshift('sync');\n backburnerOptions.sync = {\n before: _metal.beginPropertyChanges,\n after: _metal.endPropertyChanges\n };\n }\n\n const backburner = new _backburner.default(queues, backburnerOptions);\n /**\n @module @ember/runloop\n */\n // ..........................................................\n // run - this is ideally the only public API the dev sees\n //\n\n /**\n Runs the passed target and method inside of a RunLoop, ensuring any\n deferred actions including bindings and views updates are flushed at the\n end.\n \n Normally you should not need to invoke this method yourself. However if\n you are implementing raw event handlers when interfacing with other\n libraries or plugins, you should probably wrap all of your code inside this\n call.\n \n ```javascript\n import { run } from '@ember/runloop';\n \n run(function() {\n // code to be executed within a RunLoop\n });\n ```\n @method run\n @for @ember/runloop\n @static\n @param {Object} [target] target of method to call\n @param {Function|String} method Method to invoke.\n May be a function or a string. If you pass a string\n then it will be looked up on the passed target.\n @param {Object} [args*] Any additional arguments you wish to pass to the method.\n @return {Object} return value from invoking the passed function.\n @public\n */\n\n _exports.backburner = backburner;\n\n function run() {\n return backburner.run(...arguments);\n } // used for the Ember.run global only\n\n\n const _globalsRun = run.bind(null);\n /**\n If no run-loop is present, it creates a new one. If a run loop is\n present it will queue itself to run on the existing run-loops action\n queue.\n \n Please note: This is not for normal usage, and should be used sparingly.\n \n If invoked when not within a run loop:\n \n ```javascript\n import { join } from '@ember/runloop';\n \n join(function() {\n // creates a new run-loop\n });\n ```\n \n Alternatively, if called within an existing run loop:\n \n ```javascript\n import { run, join } from '@ember/runloop';\n \n run(function() {\n // creates a new run-loop\n \n join(function() {\n // joins with the existing run-loop, and queues for invocation on\n // the existing run-loops action queue.\n });\n });\n ```\n \n @method join\n @static\n @for @ember/runloop\n @param {Object} [target] target of method to call\n @param {Function|String} method Method to invoke.\n May be a function or a string. If you pass a string\n then it will be looked up on the passed target.\n @param {Object} [args*] Any additional arguments you wish to pass to the method.\n @return {Object} Return value from invoking the passed function. Please note,\n when called within an existing loop, no return value is possible.\n @public\n */\n\n\n _exports._globalsRun = _globalsRun;\n\n function join() {\n return backburner.join(...arguments);\n }\n /**\n Allows you to specify which context to call the specified function in while\n adding the execution of that function to the Ember run loop. This ability\n makes this method a great way to asynchronously integrate third-party libraries\n into your Ember application.\n \n `bind` takes two main arguments, the desired context and the function to\n invoke in that context. Any additional arguments will be supplied as arguments\n to the function that is passed in.\n \n Let's use the creation of a TinyMCE component as an example. Currently,\n TinyMCE provides a setup configuration option we can use to do some processing\n after the TinyMCE instance is initialized but before it is actually rendered.\n We can use that setup option to do some additional setup for our component.\n The component itself could look something like the following:\n \n ```app/components/rich-text-editor.js\n import Component from '@ember/component';\n import { on } from '@ember/object/evented';\n import { bind } from '@ember/runloop';\n \n export default Component.extend({\n initializeTinyMCE: on('didInsertElement', function() {\n tinymce.init({\n selector: '#' + this.$().prop('id'),\n setup: bind(this, this.setupEditor)\n });\n }),\n \n didInsertElement() {\n tinymce.init({\n selector: '#' + this.$().prop('id'),\n setup: bind(this, this.setupEditor)\n });\n }\n \n setupEditor(editor) {\n this.set('editor', editor);\n \n editor.on('change', function() {\n console.log('content changed!');\n });\n }\n });\n ```\n \n In this example, we use `bind` to bind the setupEditor method to the\n context of the RichTextEditor component and to have the invocation of that\n method be safely handled and executed by the Ember run loop.\n \n @method bind\n @static\n @for @ember/runloop\n @param {Object} [target] target of method to call\n @param {Function|String} method Method to invoke.\n May be a function or a string. If you pass a string\n then it will be looked up on the passed target.\n @param {Object} [args*] Any additional arguments you wish to pass to the method.\n @return {Function} returns a new function that will always have a particular context\n @since 1.4.0\n @public\n */\n\n\n const bind = (...curried) => {\n (0, _debug.assert)('could not find a suitable method to bind', function (methodOrTarget, methodOrArg) {\n // Applies the same logic as backburner parseArgs for detecting if a method\n // is actually being passed.\n let length = arguments.length;\n\n if (length === 0) {\n return false;\n } else if (length === 1) {\n return typeof methodOrTarget === 'function';\n } else {\n let type = typeof methodOrArg;\n return type === 'function' || // second argument is a function\n methodOrTarget !== null && type === 'string' && methodOrArg in methodOrTarget || // second argument is the name of a method in first argument\n typeof methodOrTarget === 'function' //first argument is a function\n ;\n }\n }(...curried));\n return (...args) => join(...curried.concat(args));\n };\n /**\n Begins a new RunLoop. Any deferred actions invoked after the begin will\n be buffered until you invoke a matching call to `end()`. This is\n a lower-level way to use a RunLoop instead of using `run()`.\n \n ```javascript\n import { begin, end } from '@ember/runloop';\n \n begin();\n // code to be executed within a RunLoop\n end();\n ```\n \n @method begin\n @static\n @for @ember/runloop\n @return {void}\n @public\n */\n\n\n _exports.bind = bind;\n\n function begin() {\n backburner.begin();\n }\n /**\n Ends a RunLoop. This must be called sometime after you call\n `begin()` to flush any deferred actions. This is a lower-level way\n to use a RunLoop instead of using `run()`.\n \n ```javascript\n import { begin, end } from '@ember/runloop';\n \n begin();\n // code to be executed within a RunLoop\n end();\n ```\n \n @method end\n @static\n @for @ember/runloop\n @return {void}\n @public\n */\n\n\n function end() {\n backburner.end();\n }\n /**\n Adds the passed target/method and any optional arguments to the named\n queue to be executed at the end of the RunLoop. If you have not already\n started a RunLoop when calling this method one will be started for you\n automatically.\n \n At the end of a RunLoop, any methods scheduled in this way will be invoked.\n Methods will be invoked in an order matching the named queues defined in\n the `queues` property.\n \n ```javascript\n import { schedule } from '@ember/runloop';\n \n schedule('actions', this, function() {\n // this will be executed in the 'actions' queue, after bindings have synced.\n console.log('scheduled on actions queue');\n });\n \n // Note the functions will be run in order based on the run queues order.\n // Output would be:\n // scheduled on sync queue\n // scheduled on actions queue\n ```\n \n @method schedule\n @static\n @for @ember/runloop\n @param {String} queue The name of the queue to schedule against. Default queues is 'actions'\n @param {Object} [target] target object to use as the context when invoking a method.\n @param {String|Function} method The method to invoke. If you pass a string it\n will be resolved on the target object at the time the scheduled item is\n invoked allowing you to change the target function.\n @param {Object} [arguments*] Optional arguments to be passed to the queued method.\n @return {*} Timer information for use in canceling, see `cancel`.\n @public\n */\n\n\n function schedule(queue\n /*, target, method */\n ) {\n (0, _debug.deprecate)(\"Scheduling into the '\" + queue + \"' run loop queue is deprecated.\", queue !== 'sync', {\n id: 'ember-metal.run.sync',\n until: '3.5.0'\n });\n return backburner.schedule(...arguments);\n } // Used by global test teardown\n\n\n function hasScheduledTimers() {\n return backburner.hasTimers();\n } // Used by global test teardown\n\n\n function cancelTimers() {\n backburner.cancelTimers();\n }\n /**\n Invokes the passed target/method and optional arguments after a specified\n period of time. The last parameter of this method must always be a number\n of milliseconds.\n \n You should use this method whenever you need to run some action after a\n period of time instead of using `setTimeout()`. This method will ensure that\n items that expire during the same script execution cycle all execute\n together, which is often more efficient than using a real setTimeout.\n \n ```javascript\n import { later } from '@ember/runloop';\n \n later(myContext, function() {\n // code here will execute within a RunLoop in about 500ms with this == myContext\n }, 500);\n ```\n \n @method later\n @static\n @for @ember/runloop\n @param {Object} [target] target of method to invoke\n @param {Function|String} method The method to invoke.\n If you pass a string it will be resolved on the\n target at the time the method is invoked.\n @param {Object} [args*] Optional arguments to pass to the timeout.\n @param {Number} wait Number of milliseconds to wait.\n @return {*} Timer information for use in canceling, see `cancel`.\n @public\n */\n\n\n function later()\n /*target, method*/\n {\n return backburner.later(...arguments);\n }\n /**\n Schedule a function to run one time during the current RunLoop. This is equivalent\n to calling `scheduleOnce` with the \"actions\" queue.\n \n @method once\n @static\n @for @ember/runloop\n @param {Object} [target] The target of the method to invoke.\n @param {Function|String} method The method to invoke.\n If you pass a string it will be resolved on the\n target at the time the method is invoked.\n @param {Object} [args*] Optional arguments to pass to the timeout.\n @return {Object} Timer information for use in canceling, see `cancel`.\n @public\n */\n\n\n function once(...args) {\n args.unshift('actions');\n return backburner.scheduleOnce(...args);\n }\n /**\n Schedules a function to run one time in a given queue of the current RunLoop.\n Calling this method with the same queue/target/method combination will have\n no effect (past the initial call).\n \n Note that although you can pass optional arguments these will not be\n considered when looking for duplicates. New arguments will replace previous\n calls.\n \n ```javascript\n import { run, scheduleOnce } from '@ember/runloop';\n \n function sayHi() {\n console.log('hi');\n }\n \n run(function() {\n scheduleOnce('afterRender', myContext, sayHi);\n scheduleOnce('afterRender', myContext, sayHi);\n // sayHi will only be executed once, in the afterRender queue of the RunLoop\n });\n ```\n \n Also note that for `scheduleOnce` to prevent additional calls, you need to\n pass the same function instance. The following case works as expected:\n \n ```javascript\n function log() {\n console.log('Logging only once');\n }\n \n function scheduleIt() {\n scheduleOnce('actions', myContext, log);\n }\n \n scheduleIt();\n scheduleIt();\n ```\n \n But this other case will schedule the function multiple times:\n \n ```javascript\n import { scheduleOnce } from '@ember/runloop';\n \n function scheduleIt() {\n scheduleOnce('actions', myContext, function() {\n console.log('Closure');\n });\n }\n \n scheduleIt();\n scheduleIt();\n \n // \"Closure\" will print twice, even though we're using `scheduleOnce`,\n // because the function we pass to it won't match the\n // previously scheduled operation.\n ```\n \n Available queues, and their order, can be found at `queues`\n \n @method scheduleOnce\n @static\n @for @ember/runloop\n @param {String} [queue] The name of the queue to schedule against. Default queues is 'actions'.\n @param {Object} [target] The target of the method to invoke.\n @param {Function|String} method The method to invoke.\n If you pass a string it will be resolved on the\n target at the time the method is invoked.\n @param {Object} [args*] Optional arguments to pass to the timeout.\n @return {Object} Timer information for use in canceling, see `cancel`.\n @public\n */\n\n\n function scheduleOnce(queue\n /*, target, method*/\n ) {\n (0, _debug.deprecate)(\"Scheduling into the '\" + queue + \"' run loop queue is deprecated.\", queue !== 'sync', {\n id: 'ember-metal.run.sync',\n until: '3.5.0'\n });\n return backburner.scheduleOnce(...arguments);\n }\n /**\n Schedules an item to run from within a separate run loop, after\n control has been returned to the system. This is equivalent to calling\n `later` with a wait time of 1ms.\n \n ```javascript\n import { next } from '@ember/runloop';\n \n next(myContext, function() {\n // code to be executed in the next run loop,\n // which will be scheduled after the current one\n });\n ```\n \n Multiple operations scheduled with `next` will coalesce\n into the same later run loop, along with any other operations\n scheduled by `later` that expire right around the same\n time that `next` operations will fire.\n \n Note that there are often alternatives to using `next`.\n For instance, if you'd like to schedule an operation to happen\n after all DOM element operations have completed within the current\n run loop, you can make use of the `afterRender` run loop queue (added\n by the `ember-views` package, along with the preceding `render` queue\n where all the DOM element operations happen).\n \n Example:\n \n ```app/components/my-component.js\n import Component from '@ember/component';\n import { scheduleOnce } from '@ember/runloop';\n \n export Component.extend({\n didInsertElement() {\n this._super(...arguments);\n scheduleOnce('afterRender', this, 'processChildElements');\n },\n \n processChildElements() {\n // ... do something with component's child component\n // elements after they've finished rendering, which\n // can't be done within this component's\n // `didInsertElement` hook because that gets run\n // before the child elements have been added to the DOM.\n }\n });\n ```\n \n One benefit of the above approach compared to using `next` is\n that you will be able to perform DOM/CSS operations before unprocessed\n elements are rendered to the screen, which may prevent flickering or\n other artifacts caused by delaying processing until after rendering.\n \n The other major benefit to the above approach is that `next`\n introduces an element of non-determinism, which can make things much\n harder to test, due to its reliance on `setTimeout`; it's much harder\n to guarantee the order of scheduled operations when they are scheduled\n outside of the current run loop, i.e. with `next`.\n \n @method next\n @static\n @for @ember/runloop\n @param {Object} [target] target of method to invoke\n @param {Function|String} method The method to invoke.\n If you pass a string it will be resolved on the\n target at the time the method is invoked.\n @param {Object} [args*] Optional arguments to pass to the timeout.\n @return {Object} Timer information for use in canceling, see `cancel`.\n @public\n */\n\n\n function next(...args) {\n args.push(1);\n return backburner.later(...args);\n }\n /**\n Cancels a scheduled item. Must be a value returned by `later()`,\n `once()`, `scheduleOnce()`, `next()`, `debounce()`, or\n `throttle()`.\n \n ```javascript\n import {\n next,\n cancel,\n later,\n scheduleOnce,\n once,\n throttle,\n debounce\n } from '@ember/runloop';\n \n let runNext = next(myContext, function() {\n // will not be executed\n });\n \n cancel(runNext);\n \n let runLater = later(myContext, function() {\n // will not be executed\n }, 500);\n \n cancel(runLater);\n \n let runScheduleOnce = scheduleOnce('afterRender', myContext, function() {\n // will not be executed\n });\n \n cancel(runScheduleOnce);\n \n let runOnce = once(myContext, function() {\n // will not be executed\n });\n \n cancel(runOnce);\n \n let throttle = throttle(myContext, function() {\n // will not be executed\n }, 1, false);\n \n cancel(throttle);\n \n let debounce = debounce(myContext, function() {\n // will not be executed\n }, 1);\n \n cancel(debounce);\n \n let debounceImmediate = debounce(myContext, function() {\n // will be executed since we passed in true (immediate)\n }, 100, true);\n \n // the 100ms delay until this method can be called again will be canceled\n cancel(debounceImmediate);\n ```\n \n @method cancel\n @static\n @for @ember/runloop\n @param {Object} timer Timer object to cancel\n @return {Boolean} true if canceled or false/undefined if it wasn't found\n @public\n */\n\n\n function cancel(timer) {\n return backburner.cancel(timer);\n }\n /**\n Delay calling the target method until the debounce period has elapsed\n with no additional debounce calls. If `debounce` is called again before\n the specified time has elapsed, the timer is reset and the entire period\n must pass again before the target method is called.\n \n This method should be used when an event may be called multiple times\n but the action should only be called once when the event is done firing.\n A common example is for scroll events where you only want updates to\n happen once scrolling has ceased.\n \n ```javascript\n import { debounce } from '@ember/runloop';\n \n function whoRan() {\n console.log(this.name + ' ran.');\n }\n \n let myContext = { name: 'debounce' };\n \n debounce(myContext, whoRan, 150);\n \n // less than 150ms passes\n debounce(myContext, whoRan, 150);\n \n // 150ms passes\n // whoRan is invoked with context myContext\n // console logs 'debounce ran.' one time.\n ```\n \n Immediate allows you to run the function immediately, but debounce\n other calls for this function until the wait time has elapsed. If\n `debounce` is called again before the specified time has elapsed,\n the timer is reset and the entire period must pass again before\n the method can be called again.\n \n ```javascript\n import { debounce } from '@ember/runloop';\n \n function whoRan() {\n console.log(this.name + ' ran.');\n }\n \n let myContext = { name: 'debounce' };\n \n debounce(myContext, whoRan, 150, true);\n \n // console logs 'debounce ran.' one time immediately.\n // 100ms passes\n debounce(myContext, whoRan, 150, true);\n \n // 150ms passes and nothing else is logged to the console and\n // the debouncee is no longer being watched\n debounce(myContext, whoRan, 150, true);\n \n // console logs 'debounce ran.' one time immediately.\n // 150ms passes and nothing else is logged to the console and\n // the debouncee is no longer being watched\n ```\n \n @method debounce\n @static\n @for @ember/runloop\n @param {Object} [target] target of method to invoke\n @param {Function|String} method The method to invoke.\n May be a function or a string. If you pass a string\n then it will be looked up on the passed target.\n @param {Object} [args*] Optional arguments to pass to the timeout.\n @param {Number} wait Number of milliseconds to wait.\n @param {Boolean} immediate Trigger the function on the leading instead\n of the trailing edge of the wait interval. Defaults to false.\n @return {Array} Timer information for use in canceling, see `cancel`.\n @public\n */\n\n\n function debounce() {\n return backburner.debounce(...arguments);\n }\n /**\n Ensure that the target method is never called more frequently than\n the specified spacing period. The target method is called immediately.\n \n ```javascript\n import { throttle } from '@ember/runloop';\n \n function whoRan() {\n console.log(this.name + ' ran.');\n }\n \n let myContext = { name: 'throttle' };\n \n throttle(myContext, whoRan, 150);\n // whoRan is invoked with context myContext\n // console logs 'throttle ran.'\n \n // 50ms passes\n throttle(myContext, whoRan, 150);\n \n // 50ms passes\n throttle(myContext, whoRan, 150);\n \n // 150ms passes\n throttle(myContext, whoRan, 150);\n // whoRan is invoked with context myContext\n // console logs 'throttle ran.'\n ```\n \n @method throttle\n @static\n @for @ember/runloop\n @param {Object} [target] target of method to invoke\n @param {Function|String} method The method to invoke.\n May be a function or a string. If you pass a string\n then it will be looked up on the passed target.\n @param {Object} [args*] Optional arguments to pass to the timeout.\n @param {Number} spacing Number of milliseconds to space out requests.\n @param {Boolean} immediate Trigger the function on the leading instead\n of the trailing edge of the wait interval. Defaults to true.\n @return {Array} Timer information for use in canceling, see `cancel`.\n @public\n */\n\n\n function throttle() {\n return backburner.throttle(...arguments);\n }\n});","enifed(\"@ember/runloop/tests/debounce_test\", [\"@ember/runloop\", \"internal-test-helpers\"], function (_runloop, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('debounce', class extends _internalTestHelpers.AbstractTestCase {\n ['@test debounce - with target, with method, without args'](assert) {\n let done = assert.async();\n let calledWith = [];\n let target = {\n someFunc(...args) {\n calledWith.push(args);\n }\n\n };\n (0, _runloop.debounce)(target, target.someFunc, 10);\n (0, _runloop.debounce)(target, target.someFunc, 10);\n (0, _runloop.debounce)(target, target.someFunc, 10);\n setTimeout(() => {\n assert.deepEqual(calledWith, [[]], 'someFunc called once with correct arguments');\n done();\n }, 20);\n }\n\n ['@test debounce - with target, with method name, without args'](assert) {\n let done = assert.async();\n let calledWith = [];\n let target = {\n someFunc(...args) {\n calledWith.push(args);\n }\n\n };\n (0, _runloop.debounce)(target, 'someFunc', 10);\n (0, _runloop.debounce)(target, 'someFunc', 10);\n (0, _runloop.debounce)(target, 'someFunc', 10);\n setTimeout(() => {\n assert.deepEqual(calledWith, [[]], 'someFunc called once with correct arguments');\n done();\n }, 20);\n }\n\n ['@test debounce - without target, without args'](assert) {\n let done = assert.async();\n let calledWith = [];\n\n function someFunc(...args) {\n calledWith.push(args);\n }\n\n (0, _runloop.debounce)(someFunc, 10);\n (0, _runloop.debounce)(someFunc, 10);\n (0, _runloop.debounce)(someFunc, 10);\n setTimeout(() => {\n assert.deepEqual(calledWith, [[]], 'someFunc called once with correct arguments');\n done();\n }, 20);\n }\n\n ['@test debounce - without target, with args'](assert) {\n let done = assert.async();\n let calledWith = [];\n\n function someFunc(...args) {\n calledWith.push(args);\n }\n\n (0, _runloop.debounce)(someFunc, {\n isFoo: true\n }, 10);\n (0, _runloop.debounce)(someFunc, {\n isBar: true\n }, 10);\n (0, _runloop.debounce)(someFunc, {\n isBaz: true\n }, 10);\n setTimeout(() => {\n assert.deepEqual(calledWith, [[{\n isBaz: true\n }]], 'someFunc called once with correct arguments');\n done();\n }, 20);\n }\n\n });\n});","enifed(\"@ember/runloop/tests/later_test\", [\"internal-test-helpers\", \"@ember/polyfills\", \"@ember/runloop\"], function (_internalTestHelpers, _polyfills, _runloop) {\n \"use strict\";\n\n const originalSetTimeout = window.setTimeout;\n const originalDateValueOf = Date.prototype.valueOf;\n const originalPlatform = _runloop.backburner._platform;\n\n function wait(callback, maxWaitCount = 100) {\n originalSetTimeout(() => {\n if (maxWaitCount > 0 && ((0, _runloop.hasScheduledTimers)() || (0, _runloop.getCurrentRunLoop)())) {\n wait(callback, maxWaitCount - 1);\n return;\n }\n\n callback();\n }, 10);\n } // Synchronous \"sleep\". This simulates work being done\n // after later was called but before the run loop\n // has flushed. In previous versions, this would have\n // caused the later callback to have run from\n // within the run loop flush, since by the time the\n // run loop has to flush, it would have considered\n // the timer already expired.\n\n\n function pauseUntil(time) {\n while (Date.now() < time) {\n /* do nothing - sleeping */\n }\n }\n\n (0, _internalTestHelpers.moduleFor)('run.later', class extends _internalTestHelpers.AbstractTestCase {\n teardown() {\n _runloop.backburner._platform = originalPlatform;\n window.setTimeout = originalSetTimeout;\n Date.prototype.valueOf = originalDateValueOf;\n }\n\n ['@test should invoke after specified period of time - function only'](assert) {\n let done = assert.async();\n let invoked = false;\n (0, _runloop.run)(() => {\n (0, _runloop.later)(() => invoked = true, 100);\n });\n wait(() => {\n assert.equal(invoked, true, 'should have invoked later item');\n done();\n });\n }\n\n ['@test should invoke after specified period of time - target/method'](assert) {\n let done = assert.async();\n let obj = {\n invoked: false\n };\n (0, _runloop.run)(() => {\n (0, _runloop.later)(obj, function () {\n this.invoked = true;\n }, 100);\n });\n wait(() => {\n assert.equal(obj.invoked, true, 'should have invoked later item');\n done();\n });\n }\n\n ['@test should invoke after specified period of time - target/method/args'](assert) {\n let done = assert.async();\n let obj = {\n invoked: 0\n };\n (0, _runloop.run)(() => {\n (0, _runloop.later)(obj, function (amt) {\n this.invoked += amt;\n }, 10, 100);\n });\n wait(() => {\n assert.equal(obj.invoked, 10, 'should have invoked later item');\n done();\n });\n }\n\n ['@test should always invoke within a separate runloop'](assert) {\n let done = assert.async();\n let obj = {\n invoked: 0\n };\n let firstRunLoop, secondRunLoop;\n (0, _runloop.run)(() => {\n firstRunLoop = (0, _runloop.getCurrentRunLoop)();\n (0, _runloop.later)(obj, function (amt) {\n this.invoked += amt;\n secondRunLoop = (0, _runloop.getCurrentRunLoop)();\n }, 10, 1);\n pauseUntil(Date.now() + 100);\n });\n assert.ok(firstRunLoop, 'first run loop captured');\n assert.ok(!(0, _runloop.getCurrentRunLoop)(), \"shouldn't be in a run loop after flush\");\n assert.equal(obj.invoked, 0, \"shouldn't have invoked later item yet\");\n wait(() => {\n assert.equal(obj.invoked, 10, 'should have invoked later item');\n assert.ok(secondRunLoop, 'second run loop took place');\n assert.ok(secondRunLoop !== firstRunLoop, 'two different run loops took place');\n done();\n });\n } // Our current implementation doesn't allow us to correctly enforce this ordering.\n // We should probably implement a queue to provide this guarantee.\n // See https://github.com/emberjs/ember.js/issues/3526 for more information.\n // asyncTest('callback order', function() {\n // let array = [];\n // function fn(val) { array.push(val); }\n // run(function() {\n // later(this, fn, 4, 5);\n // later(this, fn, 1, 1);\n // later(this, fn, 5, 10);\n // later(this, fn, 2, 3);\n // later(this, fn, 3, 3);\n // });\n // deepEqual(array, []);\n // wait(function() {\n // QUnit.start();\n // deepEqual(array, [1,2,3,4,5], 'callbacks were called in expected order');\n // });\n // });\n // Out current implementation doesn't allow us to properly enforce what is tested here.\n // We should probably fix it, but it's not technically a bug right now.\n // See https://github.com/emberjs/ember.js/issues/3522 for more information.\n // asyncTest('callbacks coalesce into same run loop if expiring at the same time', function() {\n // let array = [];\n // function fn(val) { array.push(getCurrentRunLoop()); }\n // run(function() {\n // // Force +new Date to return the same result while scheduling\n // // later timers. Otherwise: non-determinism!\n // let now = +new Date();\n // Date.prototype.valueOf = function() { return now; };\n // later(this, fn, 10);\n // later(this, fn, 200);\n // later(this, fn, 200);\n // Date.prototype.valueOf = originalDateValueOf;\n // });\n // deepEqual(array, []);\n // wait(function() {\n // QUnit.start();\n // equal(array.length, 3, 'all callbacks called');\n // ok(array[0] !== array[1], 'first two callbacks have different run loops');\n // ok(array[0], 'first runloop present');\n // ok(array[1], 'second runloop present');\n // equal(array[1], array[2], 'last two callbacks got the same run loop');\n // });\n // });\n\n\n ['@test inception calls to later should run callbacks in separate run loops'](assert) {\n let done = assert.async();\n let runLoop, finished;\n (0, _runloop.run)(() => {\n runLoop = (0, _runloop.getCurrentRunLoop)();\n assert.ok(runLoop);\n (0, _runloop.later)(() => {\n assert.ok((0, _runloop.getCurrentRunLoop)() && (0, _runloop.getCurrentRunLoop)() !== runLoop, 'first later callback has own run loop');\n runLoop = (0, _runloop.getCurrentRunLoop)();\n (0, _runloop.later)(() => {\n assert.ok((0, _runloop.getCurrentRunLoop)() && (0, _runloop.getCurrentRunLoop)() !== runLoop, 'second later callback has own run loop');\n finished = true;\n }, 40);\n }, 40);\n });\n wait(() => {\n assert.ok(finished, 'all .later callbacks run');\n done();\n });\n }\n\n ['@test setTimeout should never run with a negative wait'](assert) {\n let done = assert.async(); // Rationale: The old run loop code was susceptible to an occasional\n // bug where invokeLaterTimers would be scheduled with a setTimeout\n // with a negative wait. Modern browsers normalize this to 0, but\n // older browsers (IE <= 8) break with a negative wait, which\n // happens when an expired timer callback takes a while to run,\n // which is what we simulate here.\n\n let newSetTimeoutUsed;\n _runloop.backburner._platform = (0, _polyfills.assign)({}, originalPlatform, {\n setTimeout() {\n let wait = arguments[arguments.length - 1];\n newSetTimeoutUsed = true;\n assert.ok(!isNaN(wait) && wait >= 0, 'wait is a non-negative number');\n return originalPlatform.setTimeout.apply(originalPlatform, arguments);\n }\n\n });\n let count = 0;\n (0, _runloop.run)(() => {\n (0, _runloop.later)(() => {\n count++; // This will get run first. Waste some time.\n // This is intended to break invokeLaterTimers code by taking a\n // long enough time that other timers should technically expire. It's\n // fine that they're not called in this run loop; just need to\n // make sure that invokeLaterTimers doesn't end up scheduling\n // a negative setTimeout.\n\n pauseUntil(Date.now() + 60);\n }, 1);\n (0, _runloop.later)(() => {\n assert.equal(count, 1, 'callbacks called in order');\n }, 50);\n });\n wait(() => {\n assert.ok(newSetTimeoutUsed, 'stub setTimeout was used');\n done();\n });\n }\n\n });\n});","enifed(\"@ember/runloop/tests/next_test\", [\"@ember/runloop\", \"internal-test-helpers\"], function (_runloop, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('run.next', class extends _internalTestHelpers.AbstractTestCase {\n ['@test should invoke immediately on next timeout'](assert) {\n let done = assert.async();\n let invoked = false;\n (0, _runloop.run)(() => (0, _runloop.next)(() => invoked = true));\n assert.equal(invoked, false, 'should not have invoked yet');\n setTimeout(() => {\n assert.equal(invoked, true, 'should have invoked later item');\n done();\n }, 20);\n }\n\n ['@test callback should be called from within separate loop'](assert) {\n let done = assert.async();\n let firstRunLoop, secondRunLoop;\n (0, _runloop.run)(() => {\n firstRunLoop = (0, _runloop.getCurrentRunLoop)();\n (0, _runloop.next)(() => secondRunLoop = (0, _runloop.getCurrentRunLoop)());\n });\n setTimeout(() => {\n assert.ok(secondRunLoop, 'callback was called from within run loop');\n assert.ok(firstRunLoop && secondRunLoop !== firstRunLoop, 'two separate run loops were invoked');\n done();\n }, 20);\n }\n\n ['@test multiple calls to next share coalesce callbacks into same run loop'](assert) {\n let done = assert.async();\n let secondRunLoop, thirdRunLoop;\n (0, _runloop.run)(() => {\n (0, _runloop.next)(() => secondRunLoop = (0, _runloop.getCurrentRunLoop)());\n (0, _runloop.next)(() => thirdRunLoop = (0, _runloop.getCurrentRunLoop)());\n });\n setTimeout(() => {\n assert.ok(secondRunLoop && secondRunLoop === thirdRunLoop, 'callbacks coalesced into same run loop');\n done();\n }, 20);\n }\n\n });\n});","enifed(\"@ember/runloop/tests/once_test\", [\"@ember/runloop\", \"internal-test-helpers\"], function (_runloop, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/run_loop/once_test', class extends _internalTestHelpers.AbstractTestCase {\n ['@test calling invokeOnce more than once invokes only once'](assert) {\n let count = 0;\n (0, _runloop.run)(() => {\n function F() {\n count++;\n }\n\n (0, _runloop.once)(F);\n (0, _runloop.once)(F);\n (0, _runloop.once)(F);\n });\n assert.equal(count, 1, 'should have invoked once');\n }\n\n ['@test should differentiate based on target'](assert) {\n let A = {\n count: 0\n };\n let B = {\n count: 0\n };\n (0, _runloop.run)(() => {\n function F() {\n this.count++;\n }\n\n (0, _runloop.once)(A, F);\n (0, _runloop.once)(B, F);\n (0, _runloop.once)(A, F);\n (0, _runloop.once)(B, F);\n });\n assert.equal(A.count, 1, 'should have invoked once on A');\n assert.equal(B.count, 1, 'should have invoked once on B');\n }\n\n ['@test should ignore other arguments - replacing previous ones'](assert) {\n let A = {\n count: 0\n };\n let B = {\n count: 0\n };\n (0, _runloop.run)(() => {\n function F(amt) {\n this.count += amt;\n }\n\n (0, _runloop.once)(A, F, 10);\n (0, _runloop.once)(B, F, 20);\n (0, _runloop.once)(A, F, 30);\n (0, _runloop.once)(B, F, 40);\n });\n assert.equal(A.count, 30, 'should have invoked once on A');\n assert.equal(B.count, 40, 'should have invoked once on B');\n }\n\n ['@test should be inside of a runloop when running'](assert) {\n (0, _runloop.run)(() => {\n (0, _runloop.once)(() => assert.ok(Boolean((0, _runloop.getCurrentRunLoop)()), 'should have a runloop'));\n });\n }\n\n });\n});","enifed(\"@ember/runloop/tests/onerror_test\", [\"@ember/runloop\", \"@ember/-internals/error-handling\", \"@ember/debug\", \"internal-test-helpers\"], function (_runloop, _errorHandling, _debug, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/run_loop/onerror_test', class extends _internalTestHelpers.AbstractTestCase {\n ['@test With Ember.onerror undefined, errors in run are thrown'](assert) {\n let thrown = new Error('Boom!');\n let original = (0, _errorHandling.getOnerror)();\n let caught;\n (0, _errorHandling.setOnerror)(undefined);\n\n try {\n (0, _runloop.run)(() => {\n throw thrown;\n });\n } catch (error) {\n caught = error;\n } finally {\n (0, _errorHandling.setOnerror)(original);\n }\n\n assert.deepEqual(caught, thrown);\n }\n\n ['@test With Ember.onerror set, errors in run are caught'](assert) {\n let thrown = new Error('Boom!');\n let original = (0, _errorHandling.getOnerror)();\n let originalDispatchOverride = (0, _errorHandling.getDispatchOverride)();\n let originalIsTesting = (0, _debug.isTesting)();\n let caught;\n (0, _errorHandling.setOnerror)(error => {\n caught = error;\n });\n (0, _errorHandling.setDispatchOverride)(null);\n (0, _debug.setTesting)(false);\n\n try {\n (0, _runloop.run)(() => {\n throw thrown;\n });\n } finally {\n (0, _errorHandling.setOnerror)(original);\n (0, _errorHandling.setDispatchOverride)(originalDispatchOverride);\n (0, _debug.setTesting)(originalIsTesting);\n }\n\n assert.deepEqual(caught, thrown);\n }\n\n });\n});","enifed(\"@ember/runloop/tests/run_bind_test\", [\"@ember/runloop\", \"internal-test-helpers\"], function (_runloop, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/run_loop/run_bind_test', class extends _internalTestHelpers.AbstractTestCase {\n ['@test bind builds a run-loop wrapped callback handler'](assert) {\n assert.expect(3);\n let obj = {\n value: 0,\n\n increment(increment) {\n assert.ok((0, _runloop.getCurrentRunLoop)(), 'expected a run-loop');\n return this.value += increment;\n }\n\n };\n let proxiedFunction = (0, _runloop.bind)(obj, obj.increment, 1);\n assert.equal(proxiedFunction(), 1);\n assert.equal(obj.value, 1);\n }\n\n ['@test bind keeps the async callback arguments'](assert) {\n assert.expect(4);\n\n function asyncCallback(increment, increment2, increment3) {\n assert.ok((0, _runloop.getCurrentRunLoop)(), 'expected a run-loop');\n assert.equal(increment, 1);\n assert.equal(increment2, 2);\n assert.equal(increment3, 3);\n }\n\n function asyncFunction(fn) {\n fn(2, 3);\n }\n\n asyncFunction((0, _runloop.bind)(asyncCallback, asyncCallback, 1));\n }\n\n ['@test [GH#16652] bind throws an error if callback is undefined']() {\n let assertBindThrows = (msg, ...args) => {\n expectAssertion(function () {\n (0, _runloop.bind)(...args);\n }, /could not find a suitable method to bind/, msg);\n };\n\n assertBindThrows('without arguments');\n assertBindThrows('with one arguments that is not a function', 'myMethod');\n assertBindThrows('if second parameter is not a function and not a property in first parameter', Object.create(null), 'myMethod');\n }\n\n });\n});","enifed(\"@ember/runloop/tests/run_test\", [\"@ember/runloop\", \"internal-test-helpers\"], function (_runloop, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/run_loop/run_test', class extends _internalTestHelpers.AbstractTestCase {\n ['@test run invokes passed function, returning value'](assert) {\n let obj = {\n foo() {\n return [this.bar, 'FOO'];\n },\n\n bar: 'BAR',\n\n checkArgs(arg1, arg2) {\n return [arg1, this.bar, arg2];\n }\n\n };\n assert.equal((0, _runloop.run)(() => 'FOO'), 'FOO', 'pass function only');\n assert.deepEqual((0, _runloop.run)(obj, obj.foo), ['BAR', 'FOO'], 'pass obj and obj.method');\n assert.deepEqual((0, _runloop.run)(obj, 'foo'), ['BAR', 'FOO'], 'pass obj and \"method\"');\n assert.deepEqual((0, _runloop.run)(obj, obj.checkArgs, 'hello', 'world'), ['hello', 'BAR', 'world'], 'pass obj, obj.method, and extra arguments');\n }\n\n });\n});","enifed(\"@ember/runloop/tests/schedule_test\", [\"@ember/runloop\", \"internal-test-helpers\"], function (_runloop, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/run_loop/schedule_test', class extends _internalTestHelpers.AbstractTestCase {\n ['@test scheduling item in queue should defer until finished'](assert) {\n let cnt = 0;\n (0, _runloop.run)(() => {\n (0, _runloop.schedule)('actions', () => cnt++);\n (0, _runloop.schedule)('actions', () => cnt++);\n assert.equal(cnt, 0, 'should not run action yet');\n });\n assert.equal(cnt, 2, 'should flush actions now');\n }\n\n ['@test a scheduled item can be canceled'](assert) {\n let hasRan = false;\n (0, _runloop.run)(() => {\n let cancelId = (0, _runloop.schedule)('actions', () => hasRan = true);\n (0, _runloop.cancel)(cancelId);\n });\n assert.notOk(hasRan, 'should not have ran callback run');\n }\n\n ['@test nested runs should queue each phase independently'](assert) {\n let cnt = 0;\n (0, _runloop.run)(() => {\n (0, _runloop.schedule)('actions', () => cnt++);\n assert.equal(cnt, 0, 'should not run action yet');\n (0, _runloop.run)(() => {\n (0, _runloop.schedule)('actions', () => cnt++);\n });\n assert.equal(cnt, 1, 'should not run action yet');\n });\n assert.equal(cnt, 2, 'should flush actions now');\n }\n\n ['@test prior queues should be flushed before moving on to next queue'](assert) {\n let order = [];\n (0, _runloop.run)(() => {\n let runLoop = (0, _runloop.getCurrentRunLoop)();\n assert.ok(runLoop, 'run loop present');\n expectDeprecation(() => {\n (0, _runloop.schedule)('sync', () => {\n order.push('sync');\n assert.equal(runLoop, (0, _runloop.getCurrentRunLoop)(), 'same run loop used');\n });\n }, \"Scheduling into the 'sync' run loop queue is deprecated.\");\n (0, _runloop.schedule)('actions', () => {\n order.push('actions');\n assert.equal(runLoop, (0, _runloop.getCurrentRunLoop)(), 'same run loop used');\n (0, _runloop.schedule)('actions', () => {\n order.push('actions');\n assert.equal(runLoop, (0, _runloop.getCurrentRunLoop)(), 'same run loop used');\n });\n expectDeprecation(() => {\n (0, _runloop.schedule)('sync', () => {\n order.push('sync');\n assert.equal(runLoop, (0, _runloop.getCurrentRunLoop)(), 'same run loop used');\n });\n }, \"Scheduling into the 'sync' run loop queue is deprecated.\");\n });\n (0, _runloop.schedule)('destroy', () => {\n order.push('destroy');\n assert.equal(runLoop, (0, _runloop.getCurrentRunLoop)(), 'same run loop used');\n });\n });\n assert.deepEqual(order, ['sync', 'actions', 'sync', 'actions', 'destroy']);\n }\n\n });\n});","enifed(\"@ember/runloop/tests/sync_test\", [\"@ember/runloop\", \"internal-test-helpers\"], function (_runloop, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/run_loop/sync_test', class extends _internalTestHelpers.AbstractTestCase {\n ['@test sync() will immediately flush the sync queue only'](assert) {\n let cnt = 0;\n (0, _runloop.run)(() => {\n function cntup() {\n cnt++;\n }\n\n function syncfunc() {\n if (++cnt < 5) {\n expectDeprecation(() => {\n (0, _runloop.schedule)('sync', syncfunc);\n }, \"Scheduling into the 'sync' run loop queue is deprecated.\");\n }\n\n (0, _runloop.schedule)('actions', cntup);\n }\n\n syncfunc();\n assert.equal(cnt, 1, 'should not run action yet');\n });\n assert.equal(cnt, 10, 'should flush actions now too');\n }\n\n });\n});","enifed(\"@ember/runloop/tests/unwind_test\", [\"@ember/runloop\", \"@ember/error\", \"internal-test-helpers\"], function (_runloop, _error, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('system/run_loop/unwind_test', class extends _internalTestHelpers.AbstractTestCase {\n ['@test RunLoop unwinds despite unhandled exception'](assert) {\n let initialRunLoop = (0, _runloop.getCurrentRunLoop)();\n assert.throws(() => {\n (0, _runloop.run)(() => {\n (0, _runloop.schedule)('actions', function () {\n throw new _error.default('boom!');\n });\n });\n }, Error, 'boom!'); // The real danger at this point is that calls to autorun will stick\n // tasks into the already-dead runloop, which will never get\n // flushed. I can't easily demonstrate this in a unit test because\n // autorun explicitly doesn't work in test mode. - ef4\n\n assert.equal((0, _runloop.getCurrentRunLoop)(), initialRunLoop, 'Previous run loop should be cleaned up despite exception');\n }\n\n ['@test run unwinds despite unhandled exception'](assert) {\n var initialRunLoop = (0, _runloop.getCurrentRunLoop)();\n assert.throws(() => {\n (0, _runloop.run)(function () {\n throw new _error.default('boom!');\n });\n }, _error.default, 'boom!');\n assert.equal((0, _runloop.getCurrentRunLoop)(), initialRunLoop, 'Previous run loop should be cleaned up despite exception');\n }\n\n });\n});","enifed(\"@ember/service/index\", [\"exports\", \"@ember/-internals/runtime\", \"@ember/-internals/metal\"], function (_exports, _runtime, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.inject = inject;\n _exports.default = void 0;\n\n /**\n @module @ember/service\n @public\n */\n\n /**\n Creates a property that lazily looks up a service in the container. There are\n no restrictions as to what objects a service can be injected into.\n \n Example:\n \n ```app/routes/application.js\n import Route from '@ember/routing/route';\n import { inject as service } from '@ember/service';\n \n export default class ApplicationRoute extends Route {\n @service('auth') authManager;\n \n model() {\n return this.authManager.findCurrentUser();\n }\n }\n ```\n \n Classic Class Example:\n \n ```app/routes/application.js\n import Route from '@ember/routing/route';\n import { inject as service } from '@ember/service';\n \n export default Route.extend({\n authManager: service('auth'),\n \n model() {\n return this.get('authManager').findCurrentUser();\n }\n });\n ```\n \n This example will create an `authManager` property on the application route\n that looks up the `auth` service in the container, making it easily accessible\n in the `model` hook.\n \n @method inject\n @static\n @since 1.10.0\n @for @ember/service\n @param {String} name (optional) name of the service to inject, defaults to\n the property's name\n @return {ComputedDecorator} injection decorator instance\n @public\n */\n function inject() {\n return (0, _metal.inject)('service', ...arguments);\n }\n /**\n @class Service\n @extends EmberObject\n @since 1.10.0\n @public\n */\n\n\n const Service = _runtime.Object.extend();\n\n Service.reopenClass({\n isServiceFactory: true\n });\n var _default = Service;\n _exports.default = _default;\n});","enifed(\"@ember/service/tests/service_test\", [\"@ember/canary-features\", \"@ember/service\", \"@ember/-internals/runtime\", \"internal-test-helpers\"], function (_canaryFeatures, _service, _runtime, _internalTestHelpers) {\n \"use strict\";\n\n function _initializerDefineProperty(target, property, descriptor, context) {\n if (!descriptor) return;\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n });\n }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n var desc = {};\n Object.keys(descriptor).forEach(function (key) {\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n\n if ('value' in desc || desc.initializer) {\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0) {\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n\n function _initializerWarningHelper(descriptor, context) {\n throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.');\n }\n\n if (_canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT) {\n (0, _internalTestHelpers.moduleFor)('inject - decorator', class extends _internalTestHelpers.AbstractTestCase {\n ['@test works with native decorators'](assert) {\n var _dec, _class, _descriptor, _temp;\n\n let owner = (0, _internalTestHelpers.buildOwner)();\n\n class MainService extends _service.default {}\n\n let Foo = (_dec = (0, _service.inject)('main'), (_class = (_temp = class Foo extends _runtime.Object {\n constructor(...args) {\n super(...args);\n\n _initializerDefineProperty(this, \"main\", _descriptor, this);\n }\n\n }, _temp), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"main\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class));\n owner.register('service:main', MainService);\n owner.register('foo:main', Foo);\n let foo = owner.lookup('foo:main');\n assert.ok(foo.main instanceof _service.default, 'service injected correctly');\n }\n\n ['@test uses the decorated property key if not provided'](assert) {\n var _class3, _descriptor2, _temp2;\n\n let owner = (0, _internalTestHelpers.buildOwner)();\n\n class MainService extends _service.default {}\n\n let Foo = (_class3 = (_temp2 = class Foo extends _runtime.Object {\n constructor(...args) {\n super(...args);\n\n _initializerDefineProperty(this, \"main\", _descriptor2, this);\n }\n\n }, _temp2), _descriptor2 = _applyDecoratedDescriptor(_class3.prototype, \"main\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class3);\n owner.register('service:main', MainService);\n owner.register('foo:main', Foo);\n let foo = owner.lookup('foo:main');\n assert.ok(foo.main instanceof _service.default, 'service injected correctly');\n }\n\n });\n }\n});","enifed(\"@ember/string/index\", [\"exports\", \"@ember/string/lib/string_registry\", \"@ember/-internals/environment\", \"@ember/-internals/utils\"], function (_exports, _string_registry, _environment, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.loc = loc;\n _exports.w = w;\n _exports.decamelize = decamelize;\n _exports.dasherize = dasherize;\n _exports.camelize = camelize;\n _exports.classify = classify;\n _exports.underscore = underscore;\n _exports.capitalize = capitalize;\n _exports._setStrings = _exports._getStrings = void 0;\n _exports._getStrings = _string_registry.getStrings;\n _exports._setStrings = _string_registry.setStrings;\n\n /**\n @module @ember/string\n */\n const STRING_DASHERIZE_REGEXP = /[ _]/g;\n const STRING_DASHERIZE_CACHE = new _utils.Cache(1000, key => decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-'));\n const STRING_CAMELIZE_REGEXP_1 = /(\\-|\\_|\\.|\\s)+(.)?/g;\n const STRING_CAMELIZE_REGEXP_2 = /(^|\\/)([A-Z])/g;\n const CAMELIZE_CACHE = new _utils.Cache(1000, key => key.replace(STRING_CAMELIZE_REGEXP_1, (_match, _separator, chr) => chr ? chr.toUpperCase() : '').replace(STRING_CAMELIZE_REGEXP_2, (match\n /*, separator, chr */\n ) => match.toLowerCase()));\n const STRING_CLASSIFY_REGEXP_1 = /^(\\-|_)+(.)?/;\n const STRING_CLASSIFY_REGEXP_2 = /(.)(\\-|\\_|\\.|\\s)+(.)?/g;\n const STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\n const CLASSIFY_CACHE = new _utils.Cache(1000, str => {\n let replace1 = (_match, _separator, chr) => chr ? \"_\" + chr.toUpperCase() : '';\n\n let replace2 = (_match, initialChar, _separator, chr) => initialChar + (chr ? chr.toUpperCase() : '');\n\n let parts = str.split('/');\n\n for (let i = 0; i < parts.length; i++) {\n parts[i] = parts[i].replace(STRING_CLASSIFY_REGEXP_1, replace1).replace(STRING_CLASSIFY_REGEXP_2, replace2);\n }\n\n return parts.join('/').replace(STRING_CLASSIFY_REGEXP_3, (match\n /*, separator, chr */\n ) => match.toUpperCase());\n });\n const STRING_UNDERSCORE_REGEXP_1 = /([a-z\\d])([A-Z]+)/g;\n const STRING_UNDERSCORE_REGEXP_2 = /\\-|\\s+/g;\n const UNDERSCORE_CACHE = new _utils.Cache(1000, str => str.replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2').replace(STRING_UNDERSCORE_REGEXP_2, '_').toLowerCase());\n const STRING_CAPITALIZE_REGEXP = /(^|\\/)([a-z\\u00C0-\\u024F])/g;\n const CAPITALIZE_CACHE = new _utils.Cache(1000, str => str.replace(STRING_CAPITALIZE_REGEXP, (match\n /*, separator, chr */\n ) => match.toUpperCase()));\n const STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\n const DECAMELIZE_CACHE = new _utils.Cache(1000, str => str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase());\n /**\n Defines string helper methods including string formatting and localization.\n Unless `EmberENV.EXTEND_PROTOTYPES.String` is `false` these methods will also be\n added to the `String.prototype` as well.\n \n @class String\n @public\n */\n\n function _fmt(str, formats) {\n // first, replace any ORDERED replacements.\n let idx = 0; // the current index for non-numerical replacements\n\n return str.replace(/%@([0-9]+)?/g, (_s, argIndex) => {\n let i = argIndex ? parseInt(argIndex, 10) - 1 : idx++;\n let r = i < formats.length ? formats[i] : undefined;\n return typeof r === 'string' ? r : r === null ? '(null)' : r === undefined ? '' : String(r);\n });\n }\n /**\n Formats the passed string, but first looks up the string in the localized\n strings hash. This is a convenient way to localize text.\n \n Note that it is traditional but not required to prefix localized string\n keys with an underscore or other character so you can easily identify\n localized strings.\n \n ```javascript\n import { loc } from '@ember/string';\n \n Ember.STRINGS = {\n '_Hello World': 'Bonjour le monde',\n '_Hello %@ %@': 'Bonjour %@ %@'\n };\n \n loc(\"_Hello World\"); // 'Bonjour le monde';\n loc(\"_Hello %@ %@\", [\"John\", \"Smith\"]); // \"Bonjour John Smith\";\n ```\n \n @method loc\n @param {String} str The string to format\n @param {Array} formats Optional array of parameters to interpolate into string.\n @return {String} formatted string\n @public\n */\n\n\n function loc(str, formats) {\n if (!Array.isArray(formats) || arguments.length > 2) {\n formats = Array.prototype.slice.call(arguments, 1);\n }\n\n str = (0, _string_registry.getString)(str) || str;\n return _fmt(str, formats);\n }\n /**\n Splits a string into separate units separated by spaces, eliminating any\n empty strings in the process. This is a convenience method for split that\n is mostly useful when applied to the `String.prototype`.\n \n ```javascript\n import { w } from '@ember/string';\n \n w(\"alpha beta gamma\").forEach(function(key) {\n console.log(key);\n });\n \n // > alpha\n // > beta\n // > gamma\n ```\n \n @method w\n @param {String} str The string to split\n @return {Array} array containing the split strings\n @public\n */\n\n\n function w(str) {\n return str.split(/\\s+/);\n }\n /**\n Converts a camelized string into all lower case separated by underscores.\n \n ```javascript\n import { decamelize } from '@ember/string';\n \n decamelize('innerHTML'); // 'inner_html'\n decamelize('action_name'); // 'action_name'\n decamelize('css-class-name'); // 'css-class-name'\n decamelize('my favorite items'); // 'my favorite items'\n ```\n \n @method decamelize\n @param {String} str The string to decamelize.\n @return {String} the decamelized string.\n @public\n */\n\n\n function decamelize(str) {\n return DECAMELIZE_CACHE.get(str);\n }\n /**\n Replaces underscores, spaces, or camelCase with dashes.\n \n ```javascript\n import { dasherize } from '@ember/string';\n \n dasherize('innerHTML'); // 'inner-html'\n dasherize('action_name'); // 'action-name'\n dasherize('css-class-name'); // 'css-class-name'\n dasherize('my favorite items'); // 'my-favorite-items'\n dasherize('privateDocs/ownerInvoice'; // 'private-docs/owner-invoice'\n ```\n \n @method dasherize\n @param {String} str The string to dasherize.\n @return {String} the dasherized string.\n @public\n */\n\n\n function dasherize(str) {\n return STRING_DASHERIZE_CACHE.get(str);\n }\n /**\n Returns the lowerCamelCase form of a string.\n \n ```javascript\n import { camelize } from '@ember/string';\n \n camelize('innerHTML'); // 'innerHTML'\n camelize('action_name'); // 'actionName'\n camelize('css-class-name'); // 'cssClassName'\n camelize('my favorite items'); // 'myFavoriteItems'\n camelize('My Favorite Items'); // 'myFavoriteItems'\n camelize('private-docs/owner-invoice'); // 'privateDocs/ownerInvoice'\n ```\n \n @method camelize\n @param {String} str The string to camelize.\n @return {String} the camelized string.\n @public\n */\n\n\n function camelize(str) {\n return CAMELIZE_CACHE.get(str);\n }\n /**\n Returns the UpperCamelCase form of a string.\n \n ```javascript\n import { classify } from '@ember/string';\n \n classify('innerHTML'); // 'InnerHTML'\n classify('action_name'); // 'ActionName'\n classify('css-class-name'); // 'CssClassName'\n classify('my favorite items'); // 'MyFavoriteItems'\n classify('private-docs/owner-invoice'); // 'PrivateDocs/OwnerInvoice'\n ```\n \n @method classify\n @param {String} str the string to classify\n @return {String} the classified string\n @public\n */\n\n\n function classify(str) {\n return CLASSIFY_CACHE.get(str);\n }\n /**\n More general than decamelize. Returns the lower\\_case\\_and\\_underscored\n form of a string.\n \n ```javascript\n import { underscore } from '@ember/string';\n \n underscore('innerHTML'); // 'inner_html'\n underscore('action_name'); // 'action_name'\n underscore('css-class-name'); // 'css_class_name'\n underscore('my favorite items'); // 'my_favorite_items'\n underscore('privateDocs/ownerInvoice'); // 'private_docs/owner_invoice'\n ```\n \n @method underscore\n @param {String} str The string to underscore.\n @return {String} the underscored string.\n @public\n */\n\n\n function underscore(str) {\n return UNDERSCORE_CACHE.get(str);\n }\n /**\n Returns the Capitalized form of a string\n \n ```javascript\n import { capitalize } from '@ember/string';\n \n capitalize('innerHTML') // 'InnerHTML'\n capitalize('action_name') // 'Action_name'\n capitalize('css-class-name') // 'Css-class-name'\n capitalize('my favorite items') // 'My favorite items'\n capitalize('privateDocs/ownerInvoice'); // 'PrivateDocs/ownerInvoice'\n ```\n \n @method capitalize\n @param {String} str The string to capitalize.\n @return {String} The capitalized string.\n @public\n */\n\n\n function capitalize(str) {\n return CAPITALIZE_CACHE.get(str);\n }\n\n if (_environment.ENV.EXTEND_PROTOTYPES.String) {\n Object.defineProperties(String.prototype, {\n /**\n See [String.w](/api/ember/release/classes/String/methods/w?anchor=w).\n @method w\n @for @ember/string\n @static\n @private\n */\n w: {\n configurable: true,\n enumerable: false,\n writeable: true,\n\n value() {\n return w(this);\n }\n\n },\n\n /**\n See [String.loc](/api/ember/release/classes/String/methods/loc?anchor=loc).\n @method loc\n @for @ember/string\n @static\n @private\n */\n loc: {\n configurable: true,\n enumerable: false,\n writeable: true,\n\n value(...args) {\n return loc(this, args);\n }\n\n },\n\n /**\n See [String.camelize](/api/ember/release/classes/String/methods/camelize?anchor=camelize).\n @method camelize\n @for @ember/string\n @static\n @private\n */\n camelize: {\n configurable: true,\n enumerable: false,\n writeable: true,\n\n value() {\n return camelize(this);\n }\n\n },\n\n /**\n See [String.decamelize](/api/ember/release/classes/String/methods/decamelize?anchor=decamelize).\n @method decamelize\n @for @ember/string\n @static\n @private\n */\n decamelize: {\n configurable: true,\n enumerable: false,\n writeable: true,\n\n value() {\n return decamelize(this);\n }\n\n },\n\n /**\n See [String.dasherize](/api/ember/release/classes/String/methods/dasherize?anchor=dasherize).\n @method dasherize\n @for @ember/string\n @static\n @private\n */\n dasherize: {\n configurable: true,\n enumerable: false,\n writeable: true,\n\n value() {\n return dasherize(this);\n }\n\n },\n\n /**\n See [String.underscore](/api/ember/release/classes/String/methods/underscore?anchor=underscore).\n @method underscore\n @for @ember/string\n @static\n @private\n */\n underscore: {\n configurable: true,\n enumerable: false,\n writeable: true,\n\n value() {\n return underscore(this);\n }\n\n },\n\n /**\n See [String.classify](/api/ember/release/classes/String/methods/classify?anchor=classify).\n @method classify\n @for @ember/string\n @static\n @private\n */\n classify: {\n configurable: true,\n enumerable: false,\n writeable: true,\n\n value() {\n return classify(this);\n }\n\n },\n\n /**\n See [String.capitalize](/api/ember/release/classes/String/methods/capitalize?anchor=capitalize).\n @method capitalize\n @for @ember/string\n @static\n @private\n */\n capitalize: {\n configurable: true,\n enumerable: false,\n writeable: true,\n\n value() {\n return capitalize(this);\n }\n\n }\n });\n }\n});","enifed(\"@ember/string/lib/string_registry\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setStrings = setStrings;\n _exports.getStrings = getStrings;\n _exports.getString = getString;\n // STATE within a module is frowned upon, this exists\n // to support Ember.STRINGS but shield ember internals from this legacy global\n // API.\n let STRINGS = {};\n\n function setStrings(strings) {\n STRINGS = strings;\n }\n\n function getStrings() {\n return STRINGS;\n }\n\n function getString(name) {\n return STRINGS[name];\n }\n});","enifed(\"@ember/string/tests/camelize_test\", [\"@ember/-internals/environment\", \"@ember/string\", \"internal-test-helpers\"], function (_environment, _string, _internalTestHelpers) {\n \"use strict\";\n\n function test(assert, given, expected, description) {\n assert.deepEqual((0, _string.camelize)(given), expected, description);\n\n if (_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.deepEqual(given.camelize(), expected, description);\n }\n }\n\n (0, _internalTestHelpers.moduleFor)('EmberStringUtils.camelize', class extends _internalTestHelpers.AbstractTestCase {\n ['@test String.prototype.camelize is not modified without EXTEND_PROTOTYPES'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.ok('undefined' === typeof String.prototype.camelize, 'String.prototype helper disabled');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test String camelize tests'](assert) {\n test(assert, 'my favorite items', 'myFavoriteItems', 'camelize normal string');\n test(assert, 'I Love Ramen', 'iLoveRamen', 'camelize capitalized string');\n test(assert, 'css-class-name', 'cssClassName', 'camelize dasherized string');\n test(assert, 'action_name', 'actionName', 'camelize underscored string');\n test(assert, 'action.name', 'actionName', 'camelize dot notation string');\n test(assert, 'innerHTML', 'innerHTML', 'does nothing with camelcased string');\n test(assert, 'PrivateDocs/OwnerInvoice', 'privateDocs/ownerInvoice', 'camelize namespaced classified string');\n test(assert, 'private_docs/owner_invoice', 'privateDocs/ownerInvoice', 'camelize namespaced underscored string');\n test(assert, 'private-docs/owner-invoice', 'privateDocs/ownerInvoice', 'camelize namespaced dasherized string');\n }\n\n });\n});","enifed(\"@ember/string/tests/capitalize_test\", [\"@ember/-internals/environment\", \"@ember/string\", \"internal-test-helpers\"], function (_environment, _string, _internalTestHelpers) {\n \"use strict\";\n\n function test(assert, given, expected, description) {\n assert.deepEqual((0, _string.capitalize)(given), expected, description);\n\n if (_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.deepEqual(given.capitalize(), expected, description);\n }\n }\n\n (0, _internalTestHelpers.moduleFor)('EmberStringUtils.capitalize', class extends _internalTestHelpers.AbstractTestCase {\n ['@test String.prototype.capitalize is not modified without EXTEND_PROTOTYPES'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.ok('undefined' === typeof String.prototype.capitalize, 'String.prototype helper disabled');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test String capitalize tests'](assert) {\n test(assert, 'my favorite items', 'My favorite items', 'capitalize normal string');\n test(assert, 'css-class-name', 'Css-class-name', 'capitalize dasherized string');\n test(assert, 'action_name', 'Action_name', 'capitalize underscored string');\n test(assert, 'innerHTML', 'InnerHTML', 'capitalize camelcased string');\n test(assert, 'Capitalized string', 'Capitalized string', 'does nothing with capitalized string');\n test(assert, 'privateDocs/ownerInvoice', 'PrivateDocs/OwnerInvoice', 'capitalize namespaced camelized string');\n test(assert, 'private_docs/owner_invoice', 'Private_docs/Owner_invoice', 'capitalize namespaced underscored string');\n test(assert, 'private-docs/owner-invoice', 'Private-docs/Owner-invoice', 'capitalize namespaced dasherized string');\n test(assert, 'šabc', 'Šabc', 'capitalize string with accent character');\n }\n\n });\n});","enifed(\"@ember/string/tests/classify_test\", [\"@ember/-internals/environment\", \"@ember/string\", \"internal-test-helpers\"], function (_environment, _string, _internalTestHelpers) {\n \"use strict\";\n\n function test(assert, given, expected, description) {\n assert.deepEqual((0, _string.classify)(given), expected, description);\n\n if (_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.deepEqual(given.classify(), expected, description);\n }\n }\n\n (0, _internalTestHelpers.moduleFor)('EmberStringUtils.classify', class extends _internalTestHelpers.AbstractTestCase {\n ['@test String.prototype.classify is not modified without EXTEND_PROTOTYPES'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.ok('undefined' === typeof String.prototype.classify, 'String.prototype helper disabled');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test String classify tests'](assert) {\n test(assert, 'my favorite items', 'MyFavoriteItems', 'classify normal string');\n test(assert, 'css-class-name', 'CssClassName', 'classify dasherized string');\n test(assert, 'action_name', 'ActionName', 'classify underscored string');\n test(assert, 'privateDocs/ownerInvoice', 'PrivateDocs/OwnerInvoice', 'classify namespaced camelized string');\n test(assert, 'private_docs/owner_invoice', 'PrivateDocs/OwnerInvoice', 'classify namespaced underscored string');\n test(assert, 'private-docs/owner-invoice', 'PrivateDocs/OwnerInvoice', 'classify namespaced dasherized string');\n test(assert, '-view-registry', '_ViewRegistry', 'classify prefixed dasherized string');\n test(assert, 'components/-text-field', 'Components/_TextField', 'classify namespaced prefixed dasherized string');\n test(assert, '_Foo_Bar', '_FooBar', 'classify underscore-prefixed underscored string');\n test(assert, '_Foo-Bar', '_FooBar', 'classify underscore-prefixed dasherized string');\n test(assert, '_foo/_bar', '_Foo/_Bar', 'classify underscore-prefixed-namespaced underscore-prefixed string');\n test(assert, '-foo/_bar', '_Foo/_Bar', 'classify dash-prefixed-namespaced underscore-prefixed string');\n test(assert, '-foo/-bar', '_Foo/_Bar', 'classify dash-prefixed-namespaced dash-prefixed string');\n test(assert, 'InnerHTML', 'InnerHTML', 'does nothing with classified string');\n test(assert, '_FooBar', '_FooBar', 'does nothing with classified prefixed string');\n }\n\n });\n});","enifed(\"@ember/string/tests/dasherize_test\", [\"@ember/-internals/environment\", \"@ember/string\", \"internal-test-helpers\"], function (_environment, _string, _internalTestHelpers) {\n \"use strict\";\n\n function test(assert, given, expected, description) {\n assert.deepEqual((0, _string.dasherize)(given), expected, description);\n\n if (_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.deepEqual(given.dasherize(), expected, description);\n }\n }\n\n (0, _internalTestHelpers.moduleFor)('EmberStringUtils.dasherize', class extends _internalTestHelpers.AbstractTestCase {\n ['@test String.prototype.dasherize is not modified without EXTEND_PROTOTYPES'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.ok('undefined' === typeof String.prototype.dasherize, 'String.prototype helper disabled');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test String dasherize tests'](assert) {\n test(assert, 'my favorite items', 'my-favorite-items', 'dasherize normal string');\n test(assert, 'css-class-name', 'css-class-name', 'does nothing with dasherized string');\n test(assert, 'action_name', 'action-name', 'dasherize underscored string');\n test(assert, 'innerHTML', 'inner-html', 'dasherize camelcased string');\n test(assert, 'toString', 'to-string', 'dasherize string that is the property name of Object.prototype');\n test(assert, 'PrivateDocs/OwnerInvoice', 'private-docs/owner-invoice', 'dasherize namespaced classified string');\n test(assert, 'privateDocs/ownerInvoice', 'private-docs/owner-invoice', 'dasherize namespaced camelized string');\n test(assert, 'private_docs/owner_invoice', 'private-docs/owner-invoice', 'dasherize namespaced underscored string');\n }\n\n });\n});","enifed(\"@ember/string/tests/decamelize_test\", [\"@ember/-internals/environment\", \"@ember/string\", \"internal-test-helpers\"], function (_environment, _string, _internalTestHelpers) {\n \"use strict\";\n\n function test(assert, given, expected, description) {\n assert.deepEqual((0, _string.decamelize)(given), expected, description);\n\n if (_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.deepEqual(given.decamelize(), expected, description);\n }\n }\n\n (0, _internalTestHelpers.moduleFor)('EmberStringUtils.decamelize', class extends _internalTestHelpers.AbstractTestCase {\n ['@test String.prototype.decamelize is not modified without EXTEND_PROTOTYPES'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.ok('undefined' === typeof String.prototype.decamelize, 'String.prototype helper disabled');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test String decamelize tests'](assert) {\n test(assert, 'my favorite items', 'my favorite items', 'does nothing with normal string');\n test(assert, 'css-class-name', 'css-class-name', 'does nothing with dasherized string');\n test(assert, 'action_name', 'action_name', 'does nothing with underscored string');\n test(assert, 'innerHTML', 'inner_html', 'converts a camelized string into all lower case separated by underscores.');\n test(assert, 'size160Url', 'size160_url', 'decamelizes strings with numbers');\n test(assert, 'PrivateDocs/OwnerInvoice', 'private_docs/owner_invoice', 'decamelize namespaced classified string');\n test(assert, 'privateDocs/ownerInvoice', 'private_docs/owner_invoice', 'decamelize namespaced camelized string');\n }\n\n });\n});","enifed(\"@ember/string/tests/loc_test\", [\"@ember/-internals/environment\", \"@ember/string\", \"@ember/string/lib/string_registry\", \"internal-test-helpers\"], function (_environment, _string, _string_registry, _internalTestHelpers) {\n \"use strict\";\n\n let oldString;\n\n function test(assert, given, args, expected, description) {\n assert.equal((0, _string.loc)(given, args), expected, description);\n\n if (_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.deepEqual(given.loc(...args), expected, description);\n }\n }\n\n (0, _internalTestHelpers.moduleFor)('EmberStringUtils.loc', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n oldString = (0, _string_registry.getStrings)();\n (0, _string_registry.setStrings)({\n '_Hello World': 'Bonjour le monde',\n '_Hello %@': 'Bonjour %@',\n '_Hello %@ %@': 'Bonjour %@ %@',\n '_Hello %@# %@#': 'Bonjour %@2 %@1'\n });\n }\n\n afterEach() {\n (0, _string_registry.setStrings)(oldString);\n }\n\n ['@test String.prototype.loc is not available without EXTEND_PROTOTYPES'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.ok('undefined' === typeof String.prototype.loc, 'String.prototype helper disabled');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test String loc tests'](assert) {\n test(assert, '_Hello World', [], 'Bonjour le monde', \"loc('_Hello World') => 'Bonjour le monde'\");\n test(assert, '_Hello %@ %@', ['John', 'Doe'], 'Bonjour John Doe', \"loc('_Hello %@ %@', ['John', 'Doe']) => 'Bonjour John Doe'\");\n test(assert, '_Hello %@# %@#', ['John', 'Doe'], 'Bonjour Doe John', \"loc('_Hello %@# %@#', ['John', 'Doe']) => 'Bonjour Doe John'\");\n test(assert, '_Not In Strings', [], '_Not In Strings', \"loc('_Not In Strings') => '_Not In Strings'\");\n }\n\n ['@test works with argument form'](assert) {\n assert.equal((0, _string.loc)('_Hello %@', 'John'), 'Bonjour John');\n assert.equal((0, _string.loc)('_Hello %@ %@', ['John'], 'Doe'), 'Bonjour John Doe');\n }\n\n });\n});","enifed(\"@ember/string/tests/underscore_test\", [\"@ember/-internals/environment\", \"@ember/string\", \"internal-test-helpers\"], function (_environment, _string, _internalTestHelpers) {\n \"use strict\";\n\n function test(assert, given, expected, description) {\n assert.deepEqual((0, _string.underscore)(given), expected, description);\n\n if (_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.deepEqual(given.underscore(), expected, description);\n }\n }\n\n (0, _internalTestHelpers.moduleFor)('EmberStringUtils.underscore', class extends _internalTestHelpers.AbstractTestCase {\n ['@test String.prototype.underscore is not available without EXTEND_PROTOTYPES'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.ok('undefined' === typeof String.prototype.underscore, 'String.prototype helper disabled');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test String underscore tests'](assert) {\n test(assert, 'my favorite items', 'my_favorite_items', 'with normal string');\n test(assert, 'css-class-name', 'css_class_name', 'with dasherized string');\n test(assert, 'action_name', 'action_name', 'does nothing with underscored string');\n test(assert, 'innerHTML', 'inner_html', 'with camelcased string');\n test(assert, 'PrivateDocs/OwnerInvoice', 'private_docs/owner_invoice', 'underscore namespaced classified string');\n test(assert, 'privateDocs/ownerInvoice', 'private_docs/owner_invoice', 'underscore namespaced camelized string');\n test(assert, 'private-docs/owner-invoice', 'private_docs/owner_invoice', 'underscore namespaced dasherized string');\n }\n\n });\n});","enifed(\"@ember/string/tests/w_test\", [\"@ember/-internals/environment\", \"@ember/string\", \"internal-test-helpers\"], function (_environment, _string, _internalTestHelpers) {\n \"use strict\";\n\n function test(assert, given, expected, description) {\n assert.deepEqual((0, _string.w)(given), expected, description);\n\n if (_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.deepEqual(given.w(), expected, description);\n }\n }\n\n (0, _internalTestHelpers.moduleFor)('EmberStringUtils.w', class extends _internalTestHelpers.AbstractTestCase {\n ['@test String.prototype.w is not available without EXTEND_PROTOTYPES'](assert) {\n if (!_environment.ENV.EXTEND_PROTOTYPES.String) {\n assert.ok('undefined' === typeof String.prototype.w, 'String.prototype helper disabled');\n } else {\n assert.expect(0);\n }\n }\n\n ['@test String w tests'](assert) {\n test(assert, 'one two three', ['one', 'two', 'three'], \"w('one two three') => ['one','two','three']\");\n test(assert, 'one two three', ['one', 'two', 'three'], \"w('one two three') with extra spaces between words => ['one','two','three']\");\n test(assert, 'one\\ttwo three', ['one', 'two', 'three'], \"w('one two three') with tabs\");\n }\n\n });\n});","enifed(\"@glimmer/compiler\", [\"exports\", \"node-module\", \"@glimmer/util\", \"@glimmer/wire-format\", \"@glimmer/syntax\"], function (_exports, _nodeModule, _util, _wireFormat, _syntax) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.precompile = precompile;\n _exports.TemplateVisitor = _exports.TemplateCompiler = _exports.defaultId = void 0;\n\n class SymbolTable {\n static top() {\n return new ProgramSymbolTable();\n }\n\n child(locals) {\n let symbols = locals.map(name => this.allocate(name));\n return new BlockSymbolTable(this, locals, symbols);\n }\n\n }\n\n class ProgramSymbolTable extends SymbolTable {\n constructor() {\n super(...arguments);\n this.symbols = [];\n this.size = 1;\n this.named = (0, _util.dict)();\n this.blocks = (0, _util.dict)();\n }\n\n has(_name) {\n return false;\n }\n\n get(_name) {\n throw (0, _util.unreachable)();\n }\n\n getLocalsMap() {\n return {};\n }\n\n getEvalInfo() {\n return [];\n }\n\n allocateNamed(name) {\n let named = this.named[name];\n\n if (!named) {\n named = this.named[name] = this.allocate(name);\n }\n\n return named;\n }\n\n allocateBlock(name) {\n let block = this.blocks[name];\n\n if (!block) {\n block = this.blocks[name] = this.allocate(\"&\" + name);\n }\n\n return block;\n }\n\n allocate(identifier) {\n this.symbols.push(identifier);\n return this.size++;\n }\n\n }\n\n class BlockSymbolTable extends SymbolTable {\n constructor(parent, symbols, slots) {\n super();\n this.parent = parent;\n this.symbols = symbols;\n this.slots = slots;\n }\n\n has(name) {\n return this.symbols.indexOf(name) !== -1 || this.parent.has(name);\n }\n\n get(name) {\n let slot = this.symbols.indexOf(name);\n return slot === -1 ? this.parent.get(name) : this.slots[slot];\n }\n\n getLocalsMap() {\n let dict$$1 = this.parent.getLocalsMap();\n this.symbols.forEach(symbol => dict$$1[symbol] = this.get(symbol));\n return dict$$1;\n }\n\n getEvalInfo() {\n let locals = this.getLocalsMap();\n return Object.keys(locals).map(symbol => locals[symbol]);\n }\n\n allocateNamed(name) {\n return this.parent.allocateNamed(name);\n }\n\n allocateBlock(name) {\n return this.parent.allocateBlock(name);\n }\n\n allocate(identifier) {\n return this.parent.allocate(identifier);\n }\n\n }\n /**\n * Takes in an AST and outputs a list of actions to be consumed\n * by a compiler. For example, the template\n *\n * foo{{bar}}baz
\n *\n * produces the actions\n *\n * [['startProgram', [programNode, 0]],\n * ['text', [textNode, 0, 3]],\n * ['mustache', [mustacheNode, 1, 3]],\n * ['openElement', [elementNode, 2, 3, 0]],\n * ['text', [textNode, 0, 1]],\n * ['closeElement', [elementNode, 2, 3],\n * ['endProgram', [programNode]]]\n *\n * This visitor walks the AST depth first and backwards. As\n * a result the bottom-most child template will appear at the\n * top of the actions list whereas the root template will appear\n * at the bottom of the list. For example,\n *\n * {{#if}}foo{{else}}bar {{/if}}
\n *\n * produces the actions\n *\n * [['startProgram', [programNode, 0]],\n * ['text', [textNode, 0, 2, 0]],\n * ['openElement', [elementNode, 1, 2, 0]],\n * ['closeElement', [elementNode, 1, 2]],\n * ['endProgram', [programNode]],\n * ['startProgram', [programNode, 0]],\n * ['text', [textNode, 0, 1]],\n * ['endProgram', [programNode]],\n * ['startProgram', [programNode, 2]],\n * ['openElement', [elementNode, 0, 1, 1]],\n * ['block', [blockNode, 0, 1]],\n * ['closeElement', [elementNode, 0, 1]],\n * ['endProgram', [programNode]]]\n *\n * The state of the traversal is maintained by a stack of frames.\n * Whenever a node with children is entered (either a ProgramNode\n * or an ElementNode) a frame is pushed onto the stack. The frame\n * contains information about the state of the traversal of that\n * node. For example,\n *\n * - index of the current child node being visited\n * - the number of mustaches contained within its child nodes\n * - the list of actions generated by its child nodes\n */\n\n\n class Frame {\n constructor() {\n this.parentNode = null;\n this.children = null;\n this.childIndex = null;\n this.childCount = null;\n this.childTemplateCount = 0;\n this.mustacheCount = 0;\n this.actions = [];\n this.blankChildTextNodes = null;\n this.symbols = null;\n }\n\n }\n\n class TemplateVisitor {\n constructor() {\n this.frameStack = [];\n this.actions = [];\n this.programDepth = -1;\n }\n\n visit(node) {\n this[node.type](node);\n } // Traversal methods\n\n\n Program(program) {\n this.programDepth++;\n let parentFrame = this.getCurrentFrame();\n let programFrame = this.pushFrame();\n\n if (!parentFrame) {\n program['symbols'] = SymbolTable.top();\n } else {\n program['symbols'] = parentFrame.symbols.child(program.blockParams);\n }\n\n let startType, endType;\n\n if (this.programDepth === 0) {\n startType = 'startProgram';\n endType = 'endProgram';\n } else {\n startType = 'startBlock';\n endType = 'endBlock';\n }\n\n programFrame.parentNode = program;\n programFrame.children = program.body;\n programFrame.childCount = program.body.length;\n programFrame.blankChildTextNodes = [];\n programFrame.actions.push([endType, [program, this.programDepth]]);\n programFrame.symbols = program['symbols'];\n\n for (let i = program.body.length - 1; i >= 0; i--) {\n programFrame.childIndex = i;\n this.visit(program.body[i]);\n }\n\n programFrame.actions.push([startType, [program, programFrame.childTemplateCount, programFrame.blankChildTextNodes.reverse()]]);\n this.popFrame();\n this.programDepth--; // Push the completed template into the global actions list\n\n if (parentFrame) {\n parentFrame.childTemplateCount++;\n }\n\n this.actions.push(...programFrame.actions.reverse());\n }\n\n ElementNode(element) {\n let parentFrame = this.currentFrame;\n let elementFrame = this.pushFrame();\n elementFrame.parentNode = element;\n elementFrame.children = element.children;\n elementFrame.childCount = element.children.length;\n elementFrame.mustacheCount += element.modifiers.length;\n elementFrame.blankChildTextNodes = [];\n elementFrame.symbols = element['symbols'] = parentFrame.symbols.child(element.blockParams);\n let actionArgs = [element, parentFrame.childIndex, parentFrame.childCount];\n elementFrame.actions.push(['closeElement', actionArgs]);\n\n for (let i = element.attributes.length - 1; i >= 0; i--) {\n this.visit(element.attributes[i]);\n }\n\n for (let i = element.children.length - 1; i >= 0; i--) {\n elementFrame.childIndex = i;\n this.visit(element.children[i]);\n }\n\n let open = ['openElement', [...actionArgs, elementFrame.mustacheCount, elementFrame.blankChildTextNodes.reverse()]];\n elementFrame.actions.push(open);\n this.popFrame(); // Propagate the element's frame state to the parent frame\n\n if (elementFrame.mustacheCount > 0) {\n parentFrame.mustacheCount++;\n }\n\n parentFrame.childTemplateCount += elementFrame.childTemplateCount;\n parentFrame.actions.push(...elementFrame.actions);\n }\n\n AttrNode(attr) {\n if (attr.value.type !== 'TextNode') {\n this.currentFrame.mustacheCount++;\n }\n }\n\n TextNode(text) {\n let frame = this.currentFrame;\n\n if (text.chars === '') {\n frame.blankChildTextNodes.push(domIndexOf(frame.children, text));\n }\n\n frame.actions.push(['text', [text, frame.childIndex, frame.childCount]]);\n }\n\n BlockStatement(node) {\n let frame = this.currentFrame;\n frame.mustacheCount++;\n frame.actions.push(['block', [node, frame.childIndex, frame.childCount]]);\n\n if (node.inverse) {\n this.visit(node.inverse);\n }\n\n if (node.program) {\n this.visit(node.program);\n }\n }\n\n PartialStatement(node) {\n let frame = this.currentFrame;\n frame.mustacheCount++;\n frame.actions.push(['mustache', [node, frame.childIndex, frame.childCount]]);\n }\n\n CommentStatement(text) {\n let frame = this.currentFrame;\n frame.actions.push(['comment', [text, frame.childIndex, frame.childCount]]);\n }\n\n MustacheCommentStatement() {// Intentional empty: Handlebars comments should not affect output.\n }\n\n MustacheStatement(mustache) {\n let frame = this.currentFrame;\n frame.mustacheCount++;\n frame.actions.push(['mustache', [mustache, frame.childIndex, frame.childCount]]);\n } // Frame helpers\n\n\n get currentFrame() {\n return this.getCurrentFrame();\n }\n\n getCurrentFrame() {\n return this.frameStack[this.frameStack.length - 1];\n }\n\n pushFrame() {\n let frame = new Frame();\n this.frameStack.push(frame);\n return frame;\n }\n\n popFrame() {\n return this.frameStack.pop();\n }\n\n } // Returns the index of `domNode` in the `nodes` array, skipping\n // over any nodes which do not represent DOM nodes.\n\n\n _exports.TemplateVisitor = TemplateVisitor;\n\n function domIndexOf(nodes, domNode) {\n let index = -1;\n\n for (let i = 0; i < nodes.length; i++) {\n let node = nodes[i];\n\n if (node.type !== 'TextNode' && node.type !== 'ElementNode') {\n continue;\n } else {\n index++;\n }\n\n if (node === domNode) {\n return index;\n }\n }\n\n return -1;\n }\n\n class Block {\n constructor() {\n this.statements = [];\n }\n\n push(statement) {\n this.statements.push(statement);\n }\n\n }\n\n class InlineBlock extends Block {\n constructor(table) {\n super();\n this.table = table;\n }\n\n toJSON() {\n return {\n statements: this.statements,\n parameters: this.table.slots\n };\n }\n\n }\n\n class TemplateBlock extends Block {\n constructor(symbolTable) {\n super();\n this.symbolTable = symbolTable;\n this.type = 'template';\n this.yields = new _util.DictSet();\n this.named = new _util.DictSet();\n this.blocks = [];\n this.hasEval = false;\n }\n\n push(statement) {\n this.statements.push(statement);\n }\n\n toJSON() {\n return {\n symbols: this.symbolTable.symbols,\n statements: this.statements,\n hasEval: this.hasEval\n };\n }\n\n }\n\n class ComponentBlock extends Block {\n constructor(tag, table, selfClosing) {\n super();\n this.tag = tag;\n this.table = table;\n this.selfClosing = selfClosing;\n this.attributes = [];\n this.arguments = [];\n this.inParams = true;\n this.positionals = [];\n }\n\n push(statement) {\n if (this.inParams) {\n if ((0, _wireFormat.isFlushElement)(statement)) {\n this.inParams = false;\n } else if ((0, _wireFormat.isArgument)(statement)) {\n this.arguments.push(statement);\n } else if ((0, _wireFormat.isAttribute)(statement)) {\n this.attributes.push(statement);\n } else {\n throw new Error('Compile Error: only parameters allowed before flush-element');\n }\n } else {\n this.statements.push(statement);\n }\n }\n\n toJSON() {\n let args = this.arguments;\n let keys = args.map(arg => arg[1]);\n let values = args.map(arg => arg[2]);\n let block = this.selfClosing ? null : {\n statements: this.statements,\n parameters: this.table.slots\n };\n return [this.tag, this.attributes, [keys, values], block];\n }\n\n }\n\n class Template {\n constructor(symbols) {\n this.block = new TemplateBlock(symbols);\n }\n\n toJSON() {\n return this.block.toJSON();\n }\n\n }\n\n class JavaScriptCompiler {\n constructor(opcodes, symbols, options) {\n this.blocks = new _util.Stack();\n this.values = [];\n this.opcodes = opcodes;\n this.template = new Template(symbols);\n this.options = options;\n }\n\n static process(opcodes, symbols, options) {\n let compiler = new JavaScriptCompiler(opcodes, symbols, options);\n return compiler.process();\n }\n\n get currentBlock() {\n return this.blocks.current;\n }\n\n process() {\n this.opcodes.forEach(op => {\n let opcode = op[0];\n let arg = op[1];\n\n if (!this[opcode]) {\n throw new Error(\"unimplemented \" + opcode + \" on JavaScriptCompiler\");\n }\n\n this[opcode](arg);\n });\n return this.template;\n } /// Nesting\n\n\n startBlock(program) {\n let block = new InlineBlock(program['symbols']);\n this.blocks.push(block);\n }\n\n endBlock() {\n let {\n template,\n blocks\n } = this;\n let block = blocks.pop();\n template.block.blocks.push(block.toJSON());\n }\n\n startProgram() {\n this.blocks.push(this.template.block);\n }\n\n endProgram() {} /// Statements\n\n\n text(content) {\n this.push([_wireFormat.Ops.Text, content]);\n }\n\n append(trusted) {\n this.push([_wireFormat.Ops.Append, this.popValue(), trusted]);\n }\n\n comment(value) {\n this.push([_wireFormat.Ops.Comment, value]);\n }\n\n modifier(name) {\n let params = this.popValue();\n let hash = this.popValue();\n this.push([_wireFormat.Ops.Modifier, name, params, hash]);\n }\n\n block([name, template, inverse]) {\n let params = this.popValue();\n let hash = this.popValue();\n let blocks = this.template.block.blocks;\n this.push([_wireFormat.Ops.Block, name, params, hash, blocks[template], blocks[inverse]]);\n }\n\n openComponent(element) {\n let tag = this.options && this.options.customizeComponentName ? this.options.customizeComponentName(element.tag) : element.tag;\n let component = new ComponentBlock(tag, element['symbols'], element.selfClosing);\n this.blocks.push(component);\n }\n\n openSplattedElement(element) {\n let tag = element.tag;\n\n if (element.blockParams.length > 0) {\n throw new Error(\"Compile Error: <\" + element.tag + \"> is not a component and doesn't support block parameters\");\n } else {\n this.push([_wireFormat.Ops.OpenSplattedElement, tag]);\n }\n }\n\n openElement(element) {\n let tag = element.tag;\n\n if (element.blockParams.length > 0) {\n throw new Error(\"Compile Error: <\" + element.tag + \"> is not a component and doesn't support block parameters\");\n } else {\n this.push([_wireFormat.Ops.OpenElement, tag]);\n }\n }\n\n flushElement() {\n this.push([_wireFormat.Ops.FlushElement]);\n }\n\n closeComponent(_element) {\n if (_element.modifiers.length > 0) {\n throw new Error('Compile Error: Element modifiers are not allowed in components');\n }\n\n let [tag, attrs, args, block] = this.endComponent();\n this.push([_wireFormat.Ops.Component, tag, attrs, args, block]);\n }\n\n closeDynamicComponent(_element) {\n let [, attrs, args, block] = this.endComponent();\n this.push([_wireFormat.Ops.DynamicComponent, this.popValue(), attrs, args, block]);\n }\n\n closeElement(_element) {\n this.push([_wireFormat.Ops.CloseElement]);\n }\n\n staticAttr([name, namespace]) {\n let value = this.popValue();\n this.push([_wireFormat.Ops.StaticAttr, name, value, namespace]);\n }\n\n dynamicAttr([name, namespace]) {\n let value = this.popValue();\n this.push([_wireFormat.Ops.DynamicAttr, name, value, namespace]);\n }\n\n componentAttr([name, namespace]) {\n let value = this.popValue();\n this.push([_wireFormat.Ops.ComponentAttr, name, value, namespace]);\n }\n\n trustingAttr([name, namespace]) {\n let value = this.popValue();\n this.push([_wireFormat.Ops.TrustingAttr, name, value, namespace]);\n }\n\n trustingComponentAttr([name, namespace]) {\n let value = this.popValue();\n this.push([_wireFormat.Ops.TrustingComponentAttr, name, value, namespace]);\n }\n\n staticArg(name) {\n let value = this.popValue();\n this.push([_wireFormat.Ops.StaticArg, name, value]);\n }\n\n dynamicArg(name) {\n let value = this.popValue();\n this.push([_wireFormat.Ops.DynamicArg, name, value]);\n }\n\n yield(to) {\n let params = this.popValue();\n this.push([_wireFormat.Ops.Yield, to, params]);\n }\n\n attrSplat(to) {\n // consume (and disregard) the value pushed for the\n // ...attributes attribute\n this.popValue();\n this.push([_wireFormat.Ops.AttrSplat, to]);\n }\n\n debugger(evalInfo) {\n this.push([_wireFormat.Ops.Debugger, evalInfo]);\n this.template.block.hasEval = true;\n }\n\n hasBlock(name) {\n this.pushValue([_wireFormat.Ops.HasBlock, name]);\n }\n\n hasBlockParams(name) {\n this.pushValue([_wireFormat.Ops.HasBlockParams, name]);\n }\n\n partial(evalInfo) {\n let params = this.popValue();\n this.push([_wireFormat.Ops.Partial, params[0], evalInfo]);\n this.template.block.hasEval = true;\n } /// Expressions\n\n\n literal(value) {\n if (value === undefined) {\n this.pushValue([_wireFormat.Ops.Undefined]);\n } else {\n this.pushValue(value);\n }\n }\n\n unknown(name) {\n this.pushValue([_wireFormat.Ops.Unknown, name]);\n }\n\n get([head, path]) {\n this.pushValue([_wireFormat.Ops.Get, head, path]);\n }\n\n maybeLocal(path) {\n this.pushValue([_wireFormat.Ops.MaybeLocal, path]);\n }\n\n concat() {\n this.pushValue([_wireFormat.Ops.Concat, this.popValue()]);\n }\n\n helper(name) {\n let params = this.popValue();\n let hash = this.popValue();\n this.pushValue([_wireFormat.Ops.Helper, name, params, hash]);\n } /// Stack Management Opcodes\n\n\n prepareArray(size) {\n let values = [];\n\n for (let i = 0; i < size; i++) {\n values.push(this.popValue());\n }\n\n this.pushValue(values);\n }\n\n prepareObject(size) {\n let keys = new Array(size);\n let values = new Array(size);\n\n for (let i = 0; i < size; i++) {\n keys[i] = this.popValue();\n values[i] = this.popValue();\n }\n\n this.pushValue([keys, values]);\n } /// Utilities\n\n\n endComponent() {\n let component = this.blocks.pop();\n return component.toJSON();\n }\n\n push(args) {\n while (args[args.length - 1] === null) {\n args.pop();\n }\n\n this.currentBlock.push(args);\n }\n\n pushValue(val) {\n this.values.push(val);\n }\n\n popValue() {\n return this.values.pop();\n }\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\n\n const XLINK = 'http://www.w3.org/1999/xlink';\n const XML = 'http://www.w3.org/XML/1998/namespace';\n const XMLNS = 'http://www.w3.org/2000/xmlns/';\n const 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\n function getAttrNamespace(attrName) {\n return WHITELIST[attrName] || null;\n }\n\n class SymbolAllocator {\n constructor(ops) {\n this.ops = ops;\n this.symbolStack = new _util.Stack();\n }\n\n process() {\n let out = [];\n let {\n ops\n } = this;\n\n for (let i = 0; i < ops.length; i++) {\n let op = ops[i];\n let result = this.dispatch(op);\n\n if (result === undefined) {\n out.push(op);\n } else {\n out.push(result);\n }\n }\n\n return out;\n }\n\n dispatch(op) {\n let name = op[0];\n let operand = op[1];\n return this[name](operand);\n }\n\n get symbols() {\n return this.symbolStack.current;\n }\n\n startProgram(op) {\n this.symbolStack.push(op['symbols']);\n }\n\n endProgram(_op) {\n this.symbolStack.pop();\n }\n\n startBlock(op) {\n this.symbolStack.push(op['symbols']);\n }\n\n endBlock(_op) {\n this.symbolStack.pop();\n }\n\n flushElement(op) {\n this.symbolStack.push(op['symbols']);\n }\n\n closeElement(_op) {\n this.symbolStack.pop();\n }\n\n closeComponent(_op) {\n this.symbolStack.pop();\n }\n\n closeDynamicComponent(_op) {\n this.symbolStack.pop();\n }\n\n attrSplat(_op) {\n return ['attrSplat', this.symbols.allocateBlock('attrs')];\n }\n\n get(op) {\n let [name, rest] = op;\n\n if (name === 0) {\n return ['get', [0, rest]];\n }\n\n if (isLocal(name, this.symbols)) {\n let head = this.symbols.get(name);\n return ['get', [head, rest]];\n } else if (name[0] === '@') {\n let head = this.symbols.allocateNamed(name);\n return ['get', [head, rest]];\n } else {\n return ['maybeLocal', [name, ...rest]];\n }\n }\n\n maybeGet(op) {\n let [name, rest] = op;\n\n if (name === 0) {\n return ['get', [0, rest]];\n }\n\n if (isLocal(name, this.symbols)) {\n let head = this.symbols.get(name);\n return ['get', [head, rest]];\n } else if (name[0] === '@') {\n let head = this.symbols.allocateNamed(name);\n return ['get', [head, rest]];\n } else if (rest.length === 0) {\n return ['unknown', name];\n } else {\n return ['maybeLocal', [name, ...rest]];\n }\n }\n\n yield(op) {\n if (op === 0) {\n throw new Error('Cannot yield to this');\n }\n\n return ['yield', this.symbols.allocateBlock(op)];\n }\n\n debugger(_op) {\n return ['debugger', this.symbols.getEvalInfo()];\n }\n\n hasBlock(op) {\n if (op === 0) {\n throw new Error('Cannot hasBlock this');\n }\n\n return ['hasBlock', this.symbols.allocateBlock(op)];\n }\n\n hasBlockParams(op) {\n if (op === 0) {\n throw new Error('Cannot hasBlockParams this');\n }\n\n return ['hasBlockParams', this.symbols.allocateBlock(op)];\n }\n\n partial(_op) {\n return ['partial', this.symbols.getEvalInfo()];\n }\n\n text(_op) {}\n\n comment(_op) {}\n\n openComponent(_op) {}\n\n openElement(_op) {}\n\n openSplattedElement(_op) {}\n\n staticArg(_op) {}\n\n dynamicArg(_op) {}\n\n staticAttr(_op) {}\n\n trustingAttr(_op) {}\n\n trustingComponentAttr(_op) {}\n\n dynamicAttr(_op) {}\n\n componentAttr(_op) {}\n\n modifier(_op) {}\n\n append(_op) {}\n\n block(_op) {}\n\n literal(_op) {}\n\n helper(_op) {}\n\n unknown(_op) {}\n\n maybeLocal(_op) {}\n\n prepareArray(_op) {}\n\n prepareObject(_op) {}\n\n concat(_op) {}\n\n }\n\n function isLocal(name, symbols) {\n return symbols && symbols.has(name);\n }\n\n function isTrustedValue(value) {\n return value.escaped !== undefined && !value.escaped;\n }\n\n class TemplateCompiler {\n constructor() {\n this.templateId = 0;\n this.templateIds = [];\n this.opcodes = [];\n this.includeMeta = false;\n }\n\n static compile(ast, options) {\n let templateVisitor = new TemplateVisitor();\n templateVisitor.visit(ast);\n let compiler = new TemplateCompiler();\n let opcodes = compiler.process(templateVisitor.actions);\n let symbols = new SymbolAllocator(opcodes).process();\n return JavaScriptCompiler.process(symbols, ast['symbols'], options);\n }\n\n process(actions) {\n actions.forEach(([name, ...args]) => {\n if (!this[name]) {\n throw new Error(\"Unimplemented \" + name + \" on TemplateCompiler\");\n }\n\n this[name](...args);\n });\n return this.opcodes;\n }\n\n startProgram([program]) {\n this.opcode(['startProgram', program], program);\n }\n\n endProgram() {\n this.opcode(['endProgram', null], null);\n }\n\n startBlock([program]) {\n this.templateId++;\n this.opcode(['startBlock', program], program);\n }\n\n endBlock() {\n this.templateIds.push(this.templateId - 1);\n this.opcode(['endBlock', null], null);\n }\n\n text([action]) {\n this.opcode(['text', action.chars], action);\n }\n\n comment([action]) {\n this.opcode(['comment', action.value], action);\n }\n\n openElement([action]) {\n let attributes = action.attributes;\n let hasSplat = false;\n\n for (let i = 0; i < attributes.length; i++) {\n let attr = attributes[i];\n\n if (attr.name === '...attributes') {\n hasSplat = true;\n break;\n }\n }\n\n let actionIsComponent = false;\n\n if (isDynamicComponent(action)) {\n let head, rest;\n [head, ...rest] = action.tag.split('.');\n\n if (head === 'this') {\n head = 0;\n }\n\n this.opcode(['get', [head, rest]]);\n this.opcode(['openComponent', action], action);\n actionIsComponent = true;\n } else if (isComponent(action)) {\n this.opcode(['openComponent', action], action);\n actionIsComponent = true;\n } else if (hasSplat) {\n this.opcode(['openSplattedElement', action], action);\n } else {\n this.opcode(['openElement', action], action);\n }\n\n let typeAttr = null;\n let attrs = action.attributes;\n\n for (let i = 0; i < attrs.length; i++) {\n if (attrs[i].name === 'type') {\n typeAttr = attrs[i];\n continue;\n }\n\n this.attribute([attrs[i]], hasSplat || actionIsComponent);\n }\n\n if (typeAttr) {\n this.attribute([typeAttr], hasSplat || actionIsComponent);\n }\n\n this.opcode(['flushElement', action], null);\n }\n\n closeElement([action]) {\n if (isDynamicComponent(action)) {\n this.opcode(['closeDynamicComponent', action], action);\n } else if (isComponent(action)) {\n this.opcode(['closeComponent', action], action);\n } else if (action.modifiers.length > 0) {\n for (let i = 0; i < action.modifiers.length; i++) {\n this.modifier([action.modifiers[i]]);\n }\n\n this.opcode(['closeElement', action], action);\n } else {\n this.opcode(['closeElement', action], action);\n }\n }\n\n attribute([action], isComponent) {\n let {\n name,\n value\n } = action;\n let namespace = getAttrNamespace(name);\n let isStatic = this.prepareAttributeValue(value);\n\n if (name.charAt(0) === '@') {\n // Arguments\n if (isStatic) {\n this.opcode(['staticArg', name], action);\n } else if (action.value.type === 'MustacheStatement') {\n this.opcode(['dynamicArg', name], action);\n } else {\n this.opcode(['dynamicArg', name], action);\n }\n } else {\n let isTrusting = isTrustedValue(value);\n\n if (isStatic && name === '...attributes') {\n this.opcode(['attrSplat', null], action);\n } else if (isStatic && !isComponent) {\n this.opcode(['staticAttr', [name, namespace]], action);\n } else if (isTrusting) {\n this.opcode([isComponent ? 'trustingComponentAttr' : 'trustingAttr', [name, namespace]], action);\n } else if (action.value.type === 'MustacheStatement') {\n this.opcode([isComponent ? 'componentAttr' : 'dynamicAttr', [name, null]], action);\n } else {\n this.opcode([isComponent ? 'componentAttr' : 'dynamicAttr', [name, namespace]], action);\n }\n }\n }\n\n modifier([action]) {\n assertIsSimplePath(action.path, action.loc, 'modifier');\n let {\n path: {\n parts\n }\n } = action;\n this.prepareHelper(action);\n this.opcode(['modifier', parts[0]], action);\n }\n\n mustache([action]) {\n let {\n path\n } = action;\n\n if ((0, _syntax.isLiteral)(path)) {\n this.mustacheExpression(action);\n this.opcode(['append', !action.escaped], action);\n } else if (isYield(path)) {\n let to = assertValidYield(action);\n this.yield(to, action);\n } else if (isPartial(path)) {\n let params = assertValidPartial(action);\n this.partial(params, action);\n } else if (isDebugger(path)) {\n assertValidDebuggerUsage(action);\n this.debugger('debugger', action);\n } else {\n this.mustacheExpression(action);\n this.opcode(['append', !action.escaped], action);\n }\n }\n\n block([action\n /*, index, count*/\n ]) {\n this.prepareHelper(action);\n let templateId = this.templateIds.pop();\n let inverseId = action.inverse === null ? null : this.templateIds.pop();\n this.opcode(['block', [action.path.parts[0], templateId, inverseId]], action);\n } /// Internal actions, not found in the original processed actions\n\n\n arg([path]) {\n let {\n parts: [head, ...rest]\n } = path;\n this.opcode(['get', [\"@\" + head, rest]], path);\n }\n\n mustacheExpression(expr) {\n let {\n path\n } = expr;\n\n if ((0, _syntax.isLiteral)(path)) {\n this.opcode(['literal', path.value], expr);\n } else if (isBuiltInHelper(path)) {\n this.builtInHelper(expr);\n } else if (isArg(path)) {\n this.arg([path]);\n } else if (isHelperInvocation(expr)) {\n this.prepareHelper(expr);\n this.opcode(['helper', path.parts[0]], expr);\n } else if (path.this) {\n this.opcode(['get', [0, path.parts]], expr);\n } else {\n let [head, ...parts] = path.parts;\n this.opcode(['maybeGet', [head, parts]], expr);\n } // } else if (isLocal(path, this.symbols)) {\n // let [head, ...parts] = path.parts;\n // this.opcode(['get', [head, parts]], expr);\n // } else if (isSimplePath(path)) {\n // this.opcode(['unknown', path.parts[0]], expr);\n // } else {\n // this.opcode(['maybeLocal', path.parts], expr);\n // }\n\n } /// Internal Syntax\n\n\n yield(to, action) {\n this.prepareParams(action.params);\n this.opcode(['yield', to], action);\n }\n\n debugger(_name, action) {\n this.opcode(['debugger', null], action);\n }\n\n hasBlock(name, action) {\n this.opcode(['hasBlock', name], action);\n }\n\n hasBlockParams(name, action) {\n this.opcode(['hasBlockParams', name], action);\n }\n\n partial(_params, action) {\n this.prepareParams(action.params);\n this.opcode(['partial', null], action);\n }\n\n builtInHelper(expr) {\n let {\n path\n } = expr;\n\n if (isHasBlock(path)) {\n let name = assertValidHasBlockUsage(expr.path.original, expr);\n this.hasBlock(name, expr);\n } else if (isHasBlockParams(path)) {\n let name = assertValidHasBlockUsage(expr.path.original, expr);\n this.hasBlockParams(name, expr);\n }\n } /// Expressions, invoked recursively from prepareParams and prepareHash\n\n\n SubExpression(expr) {\n if (isBuiltInHelper(expr.path)) {\n this.builtInHelper(expr);\n } else {\n this.prepareHelper(expr);\n this.opcode(['helper', expr.path.parts[0]], expr);\n }\n }\n\n PathExpression(expr) {\n if (expr.data) {\n this.arg([expr]);\n } else {\n let [head, ...rest] = expr.parts;\n\n if (expr.this) {\n this.opcode(['get', [0, expr.parts]], expr);\n } else {\n this.opcode(['get', [head, rest]], expr);\n }\n }\n }\n\n StringLiteral(action) {\n this.opcode(['literal', action.value], action);\n }\n\n BooleanLiteral(action) {\n this.opcode(['literal', action.value], action);\n }\n\n NumberLiteral(action) {\n this.opcode(['literal', action.value], action);\n }\n\n NullLiteral(action) {\n this.opcode(['literal', action.value], action);\n }\n\n UndefinedLiteral(action) {\n this.opcode(['literal', action.value], action);\n } /// Utilities\n\n\n opcode(opcode, action = null) {\n // TODO: This doesn't really work\n if (this.includeMeta && action) {\n opcode.push(this.meta(action));\n }\n\n this.opcodes.push(opcode);\n }\n\n prepareHelper(expr) {\n assertIsSimplePath(expr.path, expr.loc, 'helper');\n let {\n params,\n hash\n } = expr;\n this.prepareHash(hash);\n this.prepareParams(params);\n }\n\n prepareParams(params) {\n if (!params.length) {\n this.opcode(['literal', null], null);\n return;\n }\n\n for (let i = params.length - 1; i >= 0; i--) {\n let param = params[i];\n this[param.type](param);\n }\n\n this.opcode(['prepareArray', params.length], null);\n }\n\n prepareHash(hash) {\n let pairs = hash.pairs;\n\n if (!pairs.length) {\n this.opcode(['literal', null], null);\n return;\n }\n\n for (let i = pairs.length - 1; i >= 0; i--) {\n let {\n key,\n value\n } = pairs[i];\n this[value.type](value);\n this.opcode(['literal', key], null);\n }\n\n this.opcode(['prepareObject', pairs.length], null);\n }\n\n prepareAttributeValue(value) {\n // returns the static value if the value is static\n switch (value.type) {\n case 'TextNode':\n this.opcode(['literal', value.chars], value);\n return true;\n\n case 'MustacheStatement':\n this.attributeMustache([value]);\n return false;\n\n case 'ConcatStatement':\n this.prepareConcatParts(value.parts);\n this.opcode(['concat', null], value);\n return false;\n }\n }\n\n prepareConcatParts(parts) {\n for (let i = parts.length - 1; i >= 0; i--) {\n let part = parts[i];\n\n if (part.type === 'MustacheStatement') {\n this.attributeMustache([part]);\n } else if (part.type === 'TextNode') {\n this.opcode(['literal', part.chars], null);\n }\n }\n\n this.opcode(['prepareArray', parts.length], null);\n }\n\n attributeMustache([action]) {\n this.mustacheExpression(action);\n }\n\n meta(node) {\n let loc = node.loc;\n\n if (!loc) {\n return [];\n }\n\n let {\n source,\n start,\n end\n } = loc;\n return ['loc', [source || null, [start.line, start.column], [end.line, end.column]]];\n }\n\n }\n\n _exports.TemplateCompiler = TemplateCompiler;\n\n function isHelperInvocation(mustache) {\n return mustache.params && mustache.params.length > 0 || mustache.hash && mustache.hash.pairs.length > 0;\n }\n\n function isSimplePath({\n parts\n }) {\n return parts.length === 1;\n }\n\n function isYield(path) {\n return path.original === 'yield';\n }\n\n function isPartial(path) {\n return path.original === 'partial';\n }\n\n function isDebugger(path) {\n return path.original === 'debugger';\n }\n\n function isHasBlock(path) {\n return path.original === 'has-block';\n }\n\n function isHasBlockParams(path) {\n return path.original === 'has-block-params';\n }\n\n function isBuiltInHelper(path) {\n return isHasBlock(path) || isHasBlockParams(path);\n }\n\n function isArg(path) {\n return !!path['data'];\n }\n\n function isDynamicComponent(element) {\n let open = element.tag.charAt(0);\n let [maybeLocal] = element.tag.split('.');\n let isNamedArgument = open === '@';\n let isLocal = element['symbols'].has(maybeLocal);\n let isThisPath = element.tag.indexOf('this.') === 0;\n return isLocal || isNamedArgument || isThisPath;\n }\n\n function isComponent(element) {\n let open = element.tag.charAt(0);\n let isPath = element.tag.indexOf('.') > -1;\n let isUpperCase = open === open.toUpperCase() && open !== open.toLowerCase();\n return isUpperCase && !isPath || isDynamicComponent(element);\n }\n\n function assertIsSimplePath(path, loc, context) {\n if (!isSimplePath(path)) {\n throw new _syntax.SyntaxError(\"`\" + path.original + \"` is not a valid name for a \" + context + \" on line \" + loc.start.line + \".\", path.loc);\n }\n }\n\n function assertValidYield(statement) {\n let {\n pairs\n } = statement.hash;\n\n if (pairs.length === 1 && pairs[0].key !== 'to' || pairs.length > 1) {\n throw new _syntax.SyntaxError(\"yield only takes a single named argument: 'to'\", statement.loc);\n } else if (pairs.length === 1 && pairs[0].value.type !== 'StringLiteral') {\n throw new _syntax.SyntaxError(\"you can only yield to a literal value\", statement.loc);\n } else if (pairs.length === 0) {\n return 'default';\n } else {\n return pairs[0].value.value;\n }\n }\n\n function assertValidPartial(statement) {\n let {\n params,\n hash,\n escaped,\n loc\n } = statement;\n\n if (params && params.length !== 1) {\n throw new _syntax.SyntaxError(\"Partial found with no arguments. You must specify a template name. (on line \" + loc.start.line + \")\", statement.loc);\n } else if (hash && hash.pairs.length > 0) {\n throw new _syntax.SyntaxError(\"partial does not take any named arguments (on line \" + loc.start.line + \")\", statement.loc);\n } else if (!escaped) {\n throw new _syntax.SyntaxError(\"{{{partial ...}}} is not supported, please use {{partial ...}} instead (on line \" + loc.start.line + \")\", statement.loc);\n }\n\n return params;\n }\n\n function assertValidHasBlockUsage(type, call) {\n let {\n params,\n hash,\n loc\n } = call;\n\n if (hash && hash.pairs.length > 0) {\n throw new _syntax.SyntaxError(type + \" does not take any named arguments\", call.loc);\n }\n\n if (params.length === 0) {\n return 'default';\n } else if (params.length === 1) {\n let param = params[0];\n\n if (param.type === 'StringLiteral') {\n return param.value;\n } else {\n throw new _syntax.SyntaxError(\"you can only yield to a literal value (on line \" + loc.start.line + \")\", call.loc);\n }\n } else {\n throw new _syntax.SyntaxError(type + \" only takes a single positional argument (on line \" + loc.start.line + \")\", call.loc);\n }\n }\n\n function assertValidDebuggerUsage(statement) {\n let {\n params,\n hash\n } = statement;\n\n if (hash && hash.pairs.length > 0) {\n throw new _syntax.SyntaxError(\"debugger does not take any named arguments\", statement.loc);\n }\n\n if (params.length === 0) {\n return 'default';\n } else {\n throw new _syntax.SyntaxError(\"debugger does not take any positional arguments\", statement.loc);\n }\n }\n\n const defaultId = (() => {\n if (typeof _nodeModule.require === 'function') {\n try {\n /* tslint:disable:no-require-imports */\n const crypto = (0, _nodeModule.require)(\"crypto\");\n /* tslint:enable:no-require-imports */\n\n let idFn = src => {\n let hash = crypto.createHash('sha1');\n hash.update(src, 'utf8'); // trim to 6 bytes of data (2^48 - 1)\n\n return hash.digest('base64').substring(0, 8);\n };\n\n idFn('test');\n return idFn;\n } catch (e) {}\n }\n\n return function idFn() {\n return null;\n };\n })();\n\n _exports.defaultId = defaultId;\n const defaultOptions = {\n id: defaultId,\n meta: {}\n };\n\n function precompile(string, options = defaultOptions) {\n let ast = (0, _syntax.preprocess)(string, options);\n let {\n meta\n } = options;\n let {\n block\n } = TemplateCompiler.compile(ast, options);\n let idFn = options.id || defaultId;\n let blockJSON = JSON.stringify(block.toJSON());\n let templateJSONObject = {\n id: idFn(JSON.stringify(meta) + blockJSON),\n block: blockJSON,\n meta: meta\n }; // JSON is javascript\n\n return JSON.stringify(templateJSONObject);\n }\n});","enifed(\"@glimmer/encoder\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.InstructionEncoder = void 0;\n\n class InstructionEncoder {\n constructor(buffer) {\n this.buffer = buffer;\n this.typePos = 0;\n this.size = 0;\n }\n\n encode(type, machine) {\n if (type > 255\n /* TYPE_SIZE */\n ) {\n throw new Error(\"Opcode type over 8-bits. Got \" + type + \".\");\n }\n\n this.buffer.push(type | machine | arguments.length - 2 << 8\n /* ARG_SHIFT */\n );\n this.typePos = this.buffer.length - 1;\n\n for (let i = 2; i < arguments.length; i++) {\n let op = arguments[i];\n\n if (typeof op === 'number' && op > 4294967295\n /* MAX_SIZE */\n ) {\n throw new Error(\"Operand over 32-bits. Got \" + op + \".\");\n }\n\n this.buffer.push(op);\n }\n\n this.size = this.buffer.length;\n }\n\n patch(position, target) {\n if (this.buffer[position + 1] === -1) {\n this.buffer[position + 1] = target;\n } else {\n throw new Error('Trying to patch operand in populated slot instead of a reserved slot.');\n }\n }\n\n patchWith(position, target, operand) {\n if (this.buffer[position + 1] === -1) {\n this.buffer[position + 1] = target;\n this.buffer[position + 2] = operand;\n } else {\n throw new Error('Trying to patch operand in populated slot instead of a reserved slot.');\n }\n }\n\n }\n\n _exports.InstructionEncoder = InstructionEncoder;\n});","enifed(\"@glimmer/env\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.DEBUG = void 0;\n const DEBUG = true;\n _exports.DEBUG = DEBUG;\n});","enifed(\"@glimmer/low-level\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.Stack = _exports.Storage = void 0;\n\n class Storage {\n constructor() {\n this.array = [];\n this.next = 0;\n }\n\n add(element) {\n let {\n next: slot,\n array\n } = this;\n\n if (slot === array.length) {\n this.next++;\n } else {\n let prev = array[slot];\n this.next = prev;\n }\n\n this.array[slot] = element;\n return slot;\n }\n\n deref(pointer) {\n return this.array[pointer];\n }\n\n drop(pointer) {\n this.array[pointer] = this.next;\n this.next = pointer;\n }\n\n }\n\n _exports.Storage = Storage;\n\n class Stack {\n constructor(vec = []) {\n this.vec = vec;\n }\n\n clone() {\n return new Stack(this.vec.slice());\n }\n\n sliceFrom(start) {\n return new Stack(this.vec.slice(start));\n }\n\n slice(start, end) {\n return new Stack(this.vec.slice(start, end));\n }\n\n copy(from, to) {\n this.vec[to] = this.vec[from];\n } // TODO: how to model u64 argument?\n\n\n writeRaw(pos, value) {\n // TODO: Grow?\n this.vec[pos] = value;\n } // TODO: partially decoded enum?\n\n\n getRaw(pos) {\n return this.vec[pos];\n }\n\n reset() {\n this.vec.length = 0;\n }\n\n len() {\n return this.vec.length;\n }\n\n }\n\n _exports.Stack = Stack;\n});","enifed(\"@glimmer/node\", [\"exports\", \"@glimmer/runtime\"], function (_exports, _runtime) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.serializeBuilder = serializeBuilder;\n _exports.NodeDOMTreeConstruction = void 0;\n\n class NodeDOMTreeConstruction extends _runtime.DOMTreeConstruction {\n constructor(doc) {\n super(doc);\n } // override to prevent usage of `this.document` until after the constructor\n\n\n setupUselessElement() {} // override to avoid SVG detection/work when in node (this is not needed in SSR)\n\n\n createElement(tag) {\n return this.document.createElement(tag);\n } // override to avoid namespace shenanigans when in node (this is not needed in SSR)\n\n\n setAttribute(element, name, value) {\n element.setAttribute(name, value);\n }\n\n }\n\n _exports.NodeDOMTreeConstruction = NodeDOMTreeConstruction;\n const TEXT_NODE = 3;\n\n function currentNode(cursor) {\n let {\n element,\n nextSibling\n } = cursor;\n\n if (nextSibling === null) {\n return element.lastChild;\n } else {\n return nextSibling.previousSibling;\n }\n }\n\n class SerializeBuilder extends _runtime.NewElementBuilder {\n constructor() {\n super(...arguments);\n this.serializeBlockDepth = 0;\n }\n\n __openBlock() {\n let depth = this.serializeBlockDepth++;\n\n this.__appendComment(\"%+b:\" + depth + \"%\");\n\n super.__openBlock();\n }\n\n __closeBlock() {\n super.__closeBlock();\n\n this.__appendComment(\"%-b:\" + --this.serializeBlockDepth + \"%\");\n }\n\n __appendHTML(html) {\n // Do we need to run the html tokenizer here?\n let first = this.__appendComment('%glmr%');\n\n if (this.element.tagName === 'TABLE') {\n let openIndex = html.indexOf('<');\n\n if (openIndex > -1) {\n let tr = html.slice(openIndex + 1, openIndex + 3);\n\n if (tr === 'tr') {\n html = \"\" + html + \" \";\n }\n }\n }\n\n if (html === '') {\n this.__appendComment('% %');\n } else {\n super.__appendHTML(html);\n }\n\n let last = this.__appendComment('%glmr%');\n\n return new _runtime.ConcreteBounds(this.element, first, last);\n }\n\n __appendText(string) {\n let current = currentNode(this);\n\n if (string === '') {\n return this.__appendComment('% %');\n } else if (current && current.nodeType === TEXT_NODE) {\n this.__appendComment('%|%');\n }\n\n return super.__appendText(string);\n }\n\n closeElement() {\n if (this.element['needsExtraClose'] === true) {\n this.element['needsExtraClose'] = false;\n super.closeElement();\n }\n\n super.closeElement();\n }\n\n openElement(tag) {\n if (tag === 'tr') {\n if (this.element.tagName !== 'TBODY') {\n this.openElement('tbody'); // This prevents the closeBlock comment from being re-parented\n // under the auto inserted tbody. Rehydration builder needs to\n // account for the insertion since it is injected here and not\n // really in the template.\n\n this.constructing['needsExtraClose'] = true;\n this.flushElement();\n }\n }\n\n return super.openElement(tag);\n }\n\n pushRemoteElement(element, cursorId, nextSibling = null) {\n let {\n dom\n } = this;\n let script = dom.createElement('script');\n script.setAttribute('glmr', cursorId);\n dom.insertBefore(element, script, nextSibling);\n super.pushRemoteElement(element, cursorId, nextSibling);\n }\n\n }\n\n function serializeBuilder(env, cursor) {\n return SerializeBuilder.forInitialRender(env, cursor);\n }\n});","enifed(\"@glimmer/opcode-compiler\", [\"exports\", \"@glimmer/util\", \"@glimmer/vm\", \"@glimmer/wire-format\", \"@glimmer/encoder\", \"@glimmer/program\"], function (_exports, _util, _vm, _wireFormat, _encoder, _program) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.compile = compile;\n _exports.templateFactory = templateFactory;\n _exports.debug = debug;\n _exports.debugSlice = debugSlice;\n _exports.logOpcode = logOpcode;\n _exports.PLACEHOLDER_HANDLE = _exports.WrappedBuilder = _exports.PartialDefinition = _exports.StdOpcodeBuilder = _exports.OpcodeBuilder = _exports.EagerOpcodeBuilder = _exports.LazyOpcodeBuilder = _exports.CompilableProgram = _exports.CompilableBlock = _exports.debugCompiler = _exports.AbstractCompiler = _exports.LazyCompiler = _exports.Macros = _exports.ATTRS_BLOCK = void 0;\n const PLACEHOLDER_HANDLE = -1;\n _exports.PLACEHOLDER_HANDLE = PLACEHOLDER_HANDLE;\n var Ops$1;\n\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[\"Debugger\"] = 3] = \"Debugger\";\n })(Ops$1 || (Ops$1 = {}));\n\n var Ops$2 = _wireFormat.Ops;\n const ATTRS_BLOCK = '&attrs';\n _exports.ATTRS_BLOCK = ATTRS_BLOCK;\n\n class Compilers {\n constructor(offset = 0) {\n this.offset = offset;\n this.names = (0, _util.dict)();\n this.funcs = [];\n }\n\n add(name, func) {\n this.funcs.push(func);\n this.names[name] = this.funcs.length - 1;\n }\n\n compile(sexp, builder) {\n let name = sexp[this.offset];\n let index = this.names[name];\n let func = this.funcs[index];\n func(sexp, builder);\n }\n\n }\n\n let _statementCompiler;\n\n function statementCompiler() {\n if (_statementCompiler) {\n return _statementCompiler;\n }\n\n const STATEMENTS = _statementCompiler = new Compilers();\n STATEMENTS.add(Ops$2.Text, (sexp, builder) => {\n builder.text(sexp[1]);\n });\n STATEMENTS.add(Ops$2.Comment, (sexp, builder) => {\n builder.comment(sexp[1]);\n });\n STATEMENTS.add(Ops$2.CloseElement, (_sexp, builder) => {\n builder.closeElement();\n });\n STATEMENTS.add(Ops$2.FlushElement, (_sexp, builder) => {\n builder.flushElement();\n });\n STATEMENTS.add(Ops$2.Modifier, (sexp, builder) => {\n let {\n referrer\n } = builder;\n let [, name, params, hash] = sexp;\n let handle = builder.compiler.resolveModifier(name, referrer);\n\n if (handle !== null) {\n builder.modifier(handle, params, hash);\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$2.StaticAttr, (sexp, builder) => {\n let [, name, value, namespace] = sexp;\n builder.staticAttr(name, namespace, value);\n });\n STATEMENTS.add(Ops$2.DynamicAttr, (sexp, builder) => {\n dynamicAttr(sexp, false, builder);\n });\n STATEMENTS.add(Ops$2.ComponentAttr, (sexp, builder) => {\n componentAttr(sexp, false, builder);\n });\n STATEMENTS.add(Ops$2.TrustingAttr, (sexp, builder) => {\n dynamicAttr(sexp, true, builder);\n });\n STATEMENTS.add(Ops$2.TrustingComponentAttr, (sexp, builder) => {\n componentAttr(sexp, true, builder);\n });\n STATEMENTS.add(Ops$2.OpenElement, (sexp, builder) => {\n builder.openPrimitiveElement(sexp[1]);\n });\n STATEMENTS.add(Ops$2.OpenSplattedElement, (sexp, builder) => {\n builder.putComponentOperations();\n builder.openPrimitiveElement(sexp[1]);\n });\n STATEMENTS.add(Ops$2.DynamicComponent, (sexp, builder) => {\n let [, definition, attrs, args, template] = sexp;\n let block = builder.template(template);\n let attrsBlock = null;\n\n if (attrs.length > 0) {\n attrsBlock = builder.inlineBlock({\n statements: attrs,\n parameters: _util.EMPTY_ARRAY\n });\n }\n\n builder.dynamicComponent(definition, attrsBlock, null, args, false, block, null);\n });\n STATEMENTS.add(Ops$2.Component, (sexp, builder) => {\n let [, tag, attrs, args, block] = sexp;\n let {\n referrer\n } = builder;\n let {\n handle,\n capabilities,\n compilable\n } = builder.compiler.resolveLayoutForTag(tag, referrer);\n\n if (handle !== null && capabilities !== null) {\n let attrsBlock = null;\n\n if (attrs.length > 0) {\n attrsBlock = builder.inlineBlock({\n statements: attrs,\n parameters: _util.EMPTY_ARRAY\n });\n }\n\n let child = builder.template(block);\n\n if (compilable) {\n builder.pushComponentDefinition(handle);\n builder.invokeStaticComponent(capabilities, compilable, attrsBlock, null, args, false, child && child);\n } else {\n builder.pushComponentDefinition(handle);\n builder.invokeComponent(capabilities, attrsBlock, null, args, false, child && child);\n }\n } else {\n throw new Error(\"Compile Error: Cannot find component \" + tag);\n }\n });\n STATEMENTS.add(Ops$2.Partial, (sexp, builder) => {\n let [, name, evalInfo] = sexp;\n let {\n referrer\n } = builder;\n builder.replayableIf({\n args() {\n builder.expr(name);\n builder.dup();\n return 2;\n },\n\n ifTrue() {\n builder.invokePartial(referrer, builder.evalSymbols(), evalInfo);\n builder.popScope();\n builder.popFrame(); // FIXME: WAT\n }\n\n });\n });\n STATEMENTS.add(Ops$2.Yield, (sexp, builder) => {\n let [, to, params] = sexp;\n builder.yield(to, params);\n });\n STATEMENTS.add(Ops$2.AttrSplat, (sexp, builder) => {\n let [, to] = sexp;\n builder.yield(to, []);\n });\n STATEMENTS.add(Ops$2.Debugger, (sexp, builder) => {\n let [, evalInfo] = sexp;\n builder.debugger(builder.evalSymbols(), evalInfo);\n });\n STATEMENTS.add(Ops$2.ClientSideStatement, (sexp, builder) => {\n CLIENT_SIDE.compile(sexp, builder);\n });\n STATEMENTS.add(Ops$2.Append, (sexp, builder) => {\n let [, value, trusting] = sexp;\n let returned = builder.compileInline(sexp) || value;\n if (returned === true) return;\n builder.guardedAppend(value, trusting);\n });\n STATEMENTS.add(Ops$2.Block, (sexp, builder) => {\n let [, name, params, hash, _template, _inverse] = sexp;\n let template = builder.template(_template);\n let inverse = builder.template(_inverse);\n let templateBlock = template && template;\n let inverseBlock = inverse && inverse;\n builder.compileBlock(name, params, hash, templateBlock, inverseBlock);\n });\n const CLIENT_SIDE = new Compilers(1);\n CLIENT_SIDE.add(Ops$1.OpenComponentElement, (sexp, builder) => {\n builder.putComponentOperations();\n builder.openPrimitiveElement(sexp[2]);\n });\n CLIENT_SIDE.add(Ops$1.DidCreateElement, (_sexp, builder) => {\n builder.didCreateElement(_vm.Register.s0);\n });\n CLIENT_SIDE.add(Ops$1.Debugger, () => {\n // tslint:disable-next-line:no-debugger\n debugger;\n });\n CLIENT_SIDE.add(Ops$1.DidRenderLayout, (_sexp, builder) => {\n builder.didRenderLayout(_vm.Register.s0);\n });\n return STATEMENTS;\n }\n\n function componentAttr(sexp, trusting, builder) {\n let [, name, value, namespace] = sexp;\n builder.expr(value);\n\n if (namespace) {\n builder.componentAttr(name, namespace, trusting);\n } else {\n builder.componentAttr(name, null, trusting);\n }\n }\n\n function dynamicAttr(sexp, trusting, builder) {\n let [, name, value, namespace] = sexp;\n builder.expr(value);\n\n if (namespace) {\n builder.dynamicAttr(name, namespace, trusting);\n } else {\n builder.dynamicAttr(name, null, trusting);\n }\n }\n\n let _expressionCompiler;\n\n function expressionCompiler() {\n if (_expressionCompiler) {\n return _expressionCompiler;\n }\n\n const EXPRESSIONS = _expressionCompiler = new Compilers();\n EXPRESSIONS.add(Ops$2.Unknown, (sexp, builder) => {\n let {\n compiler,\n referrer,\n containingLayout: {\n asPartial\n }\n } = builder;\n let name = sexp[1];\n let handle = compiler.resolveHelper(name, referrer);\n\n if (handle !== null) {\n builder.helper(handle, null, null);\n } else if (asPartial) {\n builder.resolveMaybeLocal(name);\n } else {\n builder.getVariable(0);\n builder.getProperty(name);\n }\n });\n EXPRESSIONS.add(Ops$2.Concat, (sexp, builder) => {\n let parts = sexp[1];\n\n for (let i = 0; i < parts.length; i++) {\n builder.expr(parts[i]);\n }\n\n builder.concat(parts.length);\n });\n EXPRESSIONS.add(Ops$2.Helper, (sexp, builder) => {\n let {\n compiler,\n referrer\n } = builder;\n let [, name, params, hash] = sexp; // TODO: triage this in the WF compiler\n\n if (name === 'component') {\n let [definition, ...restArgs] = params;\n builder.curryComponent(definition, restArgs, hash, true);\n return;\n }\n\n let handle = compiler.resolveHelper(name, referrer);\n\n if (handle !== null) {\n builder.helper(handle, params, hash);\n } else {\n throw new Error(\"Compile Error: \" + name + \" is not a helper\");\n }\n });\n EXPRESSIONS.add(Ops$2.Get, (sexp, builder) => {\n let [, head, path] = sexp;\n builder.getVariable(head);\n\n for (let i = 0; i < path.length; i++) {\n builder.getProperty(path[i]);\n }\n });\n EXPRESSIONS.add(Ops$2.MaybeLocal, (sexp, builder) => {\n let [, path] = sexp;\n\n if (builder.containingLayout.asPartial) {\n let head = path[0];\n path = path.slice(1);\n builder.resolveMaybeLocal(head);\n } else {\n builder.getVariable(0);\n }\n\n for (let i = 0; i < path.length; i++) {\n builder.getProperty(path[i]);\n }\n });\n EXPRESSIONS.add(Ops$2.Undefined, (_sexp, builder) => {\n return builder.pushPrimitiveReference(undefined);\n });\n EXPRESSIONS.add(Ops$2.HasBlock, (sexp, builder) => {\n builder.hasBlock(sexp[1]);\n });\n EXPRESSIONS.add(Ops$2.HasBlockParams, (sexp, builder) => {\n builder.hasBlockParams(sexp[1]);\n });\n return EXPRESSIONS;\n }\n\n class Macros {\n constructor() {\n let {\n blocks,\n inlines\n } = populateBuiltins();\n this.blocks = blocks;\n this.inlines = inlines;\n }\n\n }\n\n _exports.Macros = Macros;\n\n class Blocks {\n constructor() {\n this.names = (0, _util.dict)();\n this.funcs = [];\n }\n\n add(name, func) {\n this.funcs.push(func);\n this.names[name] = this.funcs.length - 1;\n }\n\n addMissing(func) {\n this.missing = func;\n }\n\n compile(name, params, hash, template, inverse, builder) {\n let index = this.names[name];\n\n if (index === undefined) {\n let func = this.missing;\n let handled = func(name, params, hash, template, inverse, builder);\n } else {\n let func = this.funcs[index];\n func(params, hash, template, inverse, builder);\n }\n }\n\n }\n\n class Inlines {\n constructor() {\n this.names = (0, _util.dict)();\n this.funcs = [];\n }\n\n add(name, func) {\n this.funcs.push(func);\n this.names[name] = this.funcs.length - 1;\n }\n\n addMissing(func) {\n this.missing = func;\n }\n\n compile(sexp, builder) {\n let value = sexp[1]; // 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\n if (!Array.isArray(value)) return ['expr', value];\n let name;\n let params;\n let hash;\n\n if (value[0] === Ops$2.Helper) {\n name = value[1];\n params = value[2];\n hash = value[3];\n } else if (value[0] === Ops$2.Unknown) {\n name = value[1];\n params = hash = null;\n } else {\n return ['expr', value];\n }\n\n let index = this.names[name];\n\n if (index === undefined && this.missing) {\n let func = this.missing;\n let returned = func(name, params, hash, builder);\n return returned === false ? ['expr', value] : returned;\n } else if (index !== undefined) {\n let func = this.funcs[index];\n let returned = func(name, params, hash, builder);\n return returned === false ? ['expr', value] : returned;\n } else {\n return ['expr', value];\n }\n }\n\n }\n\n function populateBuiltins(blocks = new Blocks(), inlines = new Inlines()) {\n blocks.add('if', (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\n builder.replayableIf({\n args() {\n builder.expr(params[0]);\n builder.toBoolean();\n return 1;\n },\n\n ifTrue() {\n builder.invokeStaticBlock(template);\n },\n\n ifFalse() {\n if (inverse) {\n builder.invokeStaticBlock(inverse);\n }\n }\n\n });\n });\n blocks.add('unless', (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\n builder.replayableIf({\n args() {\n builder.expr(params[0]);\n builder.toBoolean();\n return 1;\n },\n\n ifTrue() {\n if (inverse) {\n builder.invokeStaticBlock(inverse);\n }\n },\n\n ifFalse() {\n builder.invokeStaticBlock(template);\n }\n\n });\n });\n blocks.add('with', (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\n builder.replayableIf({\n args() {\n builder.expr(params[0]);\n builder.dup();\n builder.toBoolean();\n return 2;\n },\n\n ifTrue() {\n builder.invokeStaticBlock(template, 1);\n },\n\n ifFalse() {\n if (inverse) {\n builder.invokeStaticBlock(inverse);\n }\n }\n\n });\n });\n blocks.add('each', (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.replayable({\n args() {\n if (hash && hash[0][0] === 'key') {\n builder.expr(hash[1][0]);\n } else {\n builder.pushPrimitiveReference(null);\n }\n\n builder.expr(params[0]);\n return 2;\n },\n\n body() {\n builder.putIterator();\n builder.jumpUnless('ELSE');\n builder.pushFrame();\n builder.dup(_vm.Register.fp, 1);\n builder.returnTo('ITER');\n builder.enterList('BODY');\n builder.label('ITER');\n builder.iterate('BREAK');\n builder.label('BODY');\n builder.invokeStaticBlock(template, 2);\n builder.pop(2);\n builder.jump('FINALLY');\n builder.label('BREAK');\n builder.exitList();\n builder.popFrame();\n builder.jump('FINALLY');\n builder.label('ELSE');\n\n if (inverse) {\n builder.invokeStaticBlock(inverse);\n }\n }\n\n });\n });\n blocks.add('in-element', (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\n builder.replayableIf({\n args() {\n let [keys, values] = hash;\n\n for (let i = 0; i < keys.length; i++) {\n let key = keys[i];\n\n if (key === 'nextSibling' || key === 'guid') {\n builder.expr(values[i]);\n } else {\n throw new Error(\"SYNTAX ERROR: #in-element does not take a `\" + keys[0] + \"` option\");\n }\n }\n\n builder.expr(params[0]);\n builder.dup();\n return 4;\n },\n\n ifTrue() {\n builder.pushRemoteElement();\n builder.invokeStaticBlock(template);\n builder.popRemoteElement();\n }\n\n });\n });\n blocks.add('-with-dynamic-vars', (_params, hash, template, _inverse, builder) => {\n if (hash) {\n let [names, expressions] = hash;\n builder.compileParams(expressions);\n builder.pushDynamicScope();\n builder.bindDynamicScope(names);\n builder.invokeStaticBlock(template);\n builder.popDynamicScope();\n } else {\n builder.invokeStaticBlock(template);\n }\n });\n blocks.add('component', (_params, hash, template, inverse, builder) => {\n let tag = _params[0];\n\n if (typeof tag === 'string') {\n let returned = builder.staticComponentHelper(_params[0], hash, template);\n if (returned) return;\n }\n\n let [definition, ...params] = _params;\n builder.dynamicComponent(definition, null, params, hash, true, template, inverse);\n });\n inlines.add('component', (_name, _params, hash, builder) => {\n let tag = _params && _params[0];\n\n if (typeof tag === 'string') {\n let returned = builder.staticComponentHelper(tag, hash, null);\n if (returned) return true;\n }\n\n let [definition, ...params] = _params;\n builder.dynamicComponent(definition, null, params, hash, true, null, null);\n return true;\n });\n return {\n blocks,\n inlines\n };\n }\n\n const PLACEHOLDER_HANDLE$1 = -1;\n\n class CompilableProgram {\n constructor(compiler, layout) {\n this.compiler = compiler;\n this.layout = layout;\n this.compiled = null;\n }\n\n get symbolTable() {\n return this.layout.block;\n }\n\n compile() {\n if (this.compiled !== null) return this.compiled;\n this.compiled = PLACEHOLDER_HANDLE$1;\n let {\n block: {\n statements\n }\n } = this.layout;\n return this.compiled = this.compiler.add(statements, this.layout);\n }\n\n }\n\n _exports.CompilableProgram = CompilableProgram;\n\n class CompilableBlock {\n constructor(compiler, parsed) {\n this.compiler = compiler;\n this.parsed = parsed;\n this.compiled = null;\n }\n\n get symbolTable() {\n return this.parsed.block;\n }\n\n compile() {\n if (this.compiled !== null) return this.compiled; // Track that compilation has started but not yet finished by temporarily\n // using a placeholder handle. In eager compilation mode, where compile()\n // may be called recursively, we use this as a signal that the handle cannot\n // be known synchronously and must be linked lazily.\n\n this.compiled = PLACEHOLDER_HANDLE$1;\n let {\n block: {\n statements\n },\n containingLayout\n } = this.parsed;\n return this.compiled = this.compiler.add(statements, containingLayout);\n }\n\n }\n\n _exports.CompilableBlock = CompilableBlock;\n\n function compile(statements, builder, compiler) {\n let sCompiler = statementCompiler();\n\n for (let i = 0; i < statements.length; i++) {\n sCompiler.compile(statements[i], builder);\n }\n\n let handle = builder.commit();\n return handle;\n }\n\n function debugSlice(program, start, end) {}\n\n function logOpcode(type, params) {\n let out = type;\n\n if (params) {\n let args = Object.keys(params).map(p => \" \" + p + \"=\" + json(params[p])).join('');\n out += args;\n }\n\n return \"(\" + out + \")\";\n }\n\n function json(param) {}\n\n function debug(pos, c, op, ...operands) {\n let metadata = null;\n\n if (!metadata) {\n throw (0, _util.unreachable)(\"Missing Opcode Metadata for \" + op);\n }\n\n let out = (0, _util.dict)();\n metadata.ops.forEach((operand, index) => {\n let op = operands[index];\n\n switch (operand.type) {\n case 'to':\n out[operand.name] = pos + op;\n break;\n\n case 'i32':\n case 'symbol':\n case 'block':\n out[operand.name] = op;\n break;\n\n case 'handle':\n out[operand.name] = c.resolveHandle(op);\n break;\n\n case 'str':\n out[operand.name] = c.getString(op);\n break;\n\n case 'option-str':\n out[operand.name] = op ? c.getString(op) : null;\n break;\n\n case 'str-array':\n out[operand.name] = c.getStringArray(op);\n break;\n\n case 'array':\n out[operand.name] = c.getArray(op);\n break;\n\n case 'bool':\n out[operand.name] = !!op;\n break;\n\n case 'primitive':\n out[operand.name] = decodePrimitive(op, c);\n break;\n\n case 'register':\n out[operand.name] = _vm.Register[op];\n break;\n\n case 'serializable':\n out[operand.name] = c.getSerializable(op);\n break;\n\n case 'lazy-constant':\n out[operand.name] = c.getOther(op);\n break;\n }\n });\n return [metadata.name, out];\n }\n\n function decodePrimitive(primitive, constants) {\n let flag = primitive & 7; // 111\n\n let value = primitive >> 3;\n\n switch (flag) {\n case 0\n /* NUMBER */\n :\n return value;\n\n case 1\n /* FLOAT */\n :\n return constants.getNumber(value);\n\n case 2\n /* STRING */\n :\n return constants.getString(value);\n\n case 3\n /* BOOLEAN_OR_VOID */\n :\n switch (value) {\n case 0:\n return false;\n\n case 1:\n return true;\n\n case 2:\n return null;\n\n case 3:\n return undefined;\n }\n\n case 4\n /* NEGATIVE */\n :\n case 5\n /* BIG_NUM */\n :\n return constants.getNumber(value);\n\n default:\n throw (0, _util.unreachable)();\n }\n }\n\n class StdLib {\n constructor(main, trustingGuardedAppend, cautiousGuardedAppend) {\n this.main = main;\n this.trustingGuardedAppend = trustingGuardedAppend;\n this.cautiousGuardedAppend = cautiousGuardedAppend;\n }\n\n static compile(compiler) {\n let main = this.std(compiler, b => b.main());\n let trustingGuardedAppend = this.std(compiler, b => b.stdAppend(true));\n let cautiousGuardedAppend = this.std(compiler, b => b.stdAppend(false));\n return new StdLib(main, trustingGuardedAppend, cautiousGuardedAppend);\n }\n\n static std(compiler, callback) {\n return StdOpcodeBuilder.build(compiler, callback);\n }\n\n getAppend(trusting) {\n return trusting ? this.trustingGuardedAppend : this.cautiousGuardedAppend;\n }\n\n }\n\n class AbstractCompiler {\n constructor(macros, program, resolver) {\n this.macros = macros;\n this.program = program;\n this.resolver = resolver;\n this.initialize();\n }\n\n initialize() {\n this.stdLib = StdLib.compile(this);\n }\n\n get constants() {\n return this.program.constants;\n }\n\n compileInline(sexp, builder) {\n let {\n inlines\n } = this.macros;\n return inlines.compile(sexp, builder);\n }\n\n compileBlock(name, params, hash, template, inverse, builder) {\n let {\n blocks\n } = this.macros;\n blocks.compile(name, params, hash, template, inverse, builder);\n }\n\n add(statements, containingLayout) {\n return compile(statements, this.builderFor(containingLayout), this);\n }\n\n commit(scopeSize, buffer) {\n let heap = this.program.heap; // TODO: change the whole malloc API and do something more efficient\n\n let handle = heap.malloc();\n\n for (let i = 0; i < buffer.length; i++) {\n let value = buffer[i];\n\n if (typeof value === 'function') {\n heap.pushPlaceholder(value);\n } else {\n heap.push(value);\n }\n }\n\n heap.finishMalloc(handle, scopeSize);\n return handle;\n }\n\n resolveLayoutForTag(tag, referrer) {\n let {\n resolver\n } = this;\n let handle = resolver.lookupComponentDefinition(tag, referrer);\n if (handle === null) return {\n handle: null,\n capabilities: null,\n compilable: null\n };\n return this.resolveLayoutForHandle(handle);\n }\n\n resolveLayoutForHandle(handle) {\n let {\n resolver\n } = this;\n let capabilities = resolver.getCapabilities(handle);\n let compilable = null;\n\n if (!capabilities.dynamicLayout) {\n compilable = resolver.getLayout(handle);\n }\n\n return {\n handle,\n capabilities,\n compilable\n };\n }\n\n resolveModifier(name, referrer) {\n return this.resolver.lookupModifier(name, referrer);\n }\n\n resolveHelper(name, referrer) {\n return this.resolver.lookupHelper(name, referrer);\n }\n\n }\n\n _exports.AbstractCompiler = AbstractCompiler;\n let debugCompiler;\n _exports.debugCompiler = debugCompiler;\n\n class WrappedBuilder {\n constructor(compiler, layout) {\n this.compiler = compiler;\n this.layout = layout;\n this.compiled = null;\n let {\n block\n } = layout;\n let symbols = block.symbols.slice(); // ensure ATTRS_BLOCK is always included (only once) in the list of symbols\n\n let attrsBlockIndex = symbols.indexOf(ATTRS_BLOCK);\n\n if (attrsBlockIndex === -1) {\n this.attrsBlockNumber = symbols.push(ATTRS_BLOCK);\n } else {\n this.attrsBlockNumber = attrsBlockIndex + 1;\n }\n\n this.symbolTable = {\n hasEval: block.hasEval,\n symbols\n };\n }\n\n compile() {\n if (this.compiled !== null) return this.compiled; //========DYNAMIC\n // PutValue(TagExpr)\n // Test\n // JumpUnless(BODY)\n // PutComponentOperations\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\n let {\n compiler,\n layout\n } = this;\n let b = compiler.builderFor(layout);\n b.startLabels();\n b.fetch(_vm.Register.s1);\n b.getComponentTagName(_vm.Register.s0);\n b.primitiveReference();\n b.dup();\n b.load(_vm.Register.s1);\n b.jumpUnless('BODY');\n b.fetch(_vm.Register.s1);\n b.putComponentOperations();\n b.openDynamicElement();\n b.didCreateElement(_vm.Register.s0);\n b.yield(this.attrsBlockNumber, []);\n b.flushElement();\n b.label('BODY');\n b.invokeStaticBlock(blockFor(layout, compiler));\n b.fetch(_vm.Register.s1);\n b.jumpUnless('END');\n b.closeElement();\n b.label('END');\n b.load(_vm.Register.s1);\n b.stopLabels();\n let handle = b.commit();\n return this.compiled = handle;\n }\n\n }\n\n _exports.WrappedBuilder = WrappedBuilder;\n\n function blockFor(layout, compiler) {\n return new CompilableBlock(compiler, {\n block: {\n statements: layout.block.statements,\n parameters: _util.EMPTY_ARRAY\n },\n containingLayout: layout\n });\n }\n\n class ComponentBuilder {\n constructor(builder) {\n this.builder = builder;\n }\n\n static(handle, args) {\n let [params, hash, _default, inverse] = args;\n let {\n builder\n } = this;\n\n if (handle !== null) {\n let {\n capabilities,\n compilable\n } = builder.compiler.resolveLayoutForHandle(handle);\n\n if (compilable) {\n builder.pushComponentDefinition(handle);\n builder.invokeStaticComponent(capabilities, compilable, null, params, hash, false, _default, inverse);\n } else {\n builder.pushComponentDefinition(handle);\n builder.invokeComponent(capabilities, null, params, hash, false, _default, inverse);\n }\n }\n }\n\n }\n\n class Labels {\n constructor() {\n this.labels = (0, _util.dict)();\n this.targets = [];\n }\n\n label(name, index) {\n this.labels[name] = index;\n }\n\n target(at, target) {\n this.targets.push({\n at,\n target\n });\n }\n\n patch(encoder) {\n let {\n targets,\n labels\n } = this;\n\n for (let i = 0; i < targets.length; i++) {\n let {\n at,\n target\n } = targets[i];\n let address = labels[target] - at;\n encoder.patch(at, address);\n }\n }\n\n }\n\n class StdOpcodeBuilder {\n constructor(compiler, size = 0) {\n this.size = size;\n this.encoder = new _encoder.InstructionEncoder([]);\n this.labelsStack = new _util.Stack();\n this.compiler = compiler;\n }\n\n static build(compiler, callback) {\n let builder = new StdOpcodeBuilder(compiler);\n callback(builder);\n return builder.commit();\n }\n\n push(name) {\n switch (arguments.length) {\n case 1:\n return this.encoder.encode(name, 0);\n\n case 2:\n return this.encoder.encode(name, 0, arguments[1]);\n\n case 3:\n return this.encoder.encode(name, 0, arguments[1], arguments[2]);\n\n default:\n return this.encoder.encode(name, 0, arguments[1], arguments[2], arguments[3]);\n }\n }\n\n pushMachine(name) {\n switch (arguments.length) {\n case 1:\n return this.encoder.encode(name, 1024\n /* MACHINE_MASK */\n );\n\n case 2:\n return this.encoder.encode(name, 1024\n /* MACHINE_MASK */\n , arguments[1]);\n\n case 3:\n return this.encoder.encode(name, 1024\n /* MACHINE_MASK */\n , arguments[1], arguments[2]);\n\n default:\n return this.encoder.encode(name, 1024\n /* MACHINE_MASK */\n , arguments[1], arguments[2], arguments[3]);\n }\n }\n\n commit() {\n this.pushMachine(24\n /* Return */\n );\n return this.compiler.commit(this.size, this.encoder.buffer);\n }\n\n reserve(name) {\n this.encoder.encode(name, 0, -1);\n }\n\n reserveWithOperand(name, operand) {\n this.encoder.encode(name, 0, -1, operand);\n }\n\n reserveMachine(name) {\n this.encoder.encode(name, 1024\n /* MACHINE_MASK */\n , -1);\n } ///\n\n\n main() {\n this.push(68\n /* Main */\n , _vm.Register.s0);\n this.invokePreparedComponent(false, false, true);\n }\n\n appendHTML() {\n this.push(28\n /* AppendHTML */\n );\n }\n\n appendSafeHTML() {\n this.push(29\n /* AppendSafeHTML */\n );\n }\n\n appendDocumentFragment() {\n this.push(30\n /* AppendDocumentFragment */\n );\n }\n\n appendNode() {\n this.push(31\n /* AppendNode */\n );\n }\n\n appendText() {\n this.push(32\n /* AppendText */\n );\n }\n\n beginComponentTransaction() {\n this.push(91\n /* BeginComponentTransaction */\n );\n }\n\n commitComponentTransaction() {\n this.push(92\n /* CommitComponentTransaction */\n );\n }\n\n pushDynamicScope() {\n this.push(44\n /* PushDynamicScope */\n );\n }\n\n popDynamicScope() {\n this.push(45\n /* PopDynamicScope */\n );\n }\n\n pushRemoteElement() {\n this.push(41\n /* PushRemoteElement */\n );\n }\n\n popRemoteElement() {\n this.push(42\n /* PopRemoteElement */\n );\n }\n\n pushRootScope(symbols, bindCallerScope) {\n this.push(20\n /* RootScope */\n , symbols, bindCallerScope ? 1 : 0);\n }\n\n pushVirtualRootScope(register) {\n this.push(21\n /* VirtualRootScope */\n , register);\n }\n\n pushChildScope() {\n this.push(22\n /* ChildScope */\n );\n }\n\n popScope() {\n this.push(23\n /* PopScope */\n );\n }\n\n prepareArgs(state) {\n this.push(79\n /* PrepareArgs */\n , state);\n }\n\n createComponent(state, hasDefault) {\n let flag = hasDefault | 0;\n this.push(81\n /* CreateComponent */\n , flag, state);\n }\n\n registerComponentDestructor(state) {\n this.push(82\n /* RegisterComponentDestructor */\n , state);\n }\n\n putComponentOperations() {\n this.push(83\n /* PutComponentOperations */\n );\n }\n\n getComponentSelf(state) {\n this.push(84\n /* GetComponentSelf */\n , state);\n }\n\n getComponentTagName(state) {\n this.push(85\n /* GetComponentTagName */\n , state);\n }\n\n getComponentLayout(state) {\n this.push(86\n /* GetComponentLayout */\n , state);\n }\n\n setupForEval(state) {\n this.push(87\n /* SetupForEval */\n , state);\n }\n\n invokeComponentLayout(state) {\n this.push(90\n /* InvokeComponentLayout */\n , state);\n }\n\n didCreateElement(state) {\n this.push(93\n /* DidCreateElement */\n , state);\n }\n\n didRenderLayout(state) {\n this.push(94\n /* DidRenderLayout */\n , state);\n }\n\n pushFrame() {\n this.pushMachine(57\n /* PushFrame */\n );\n }\n\n popFrame() {\n this.pushMachine(58\n /* PopFrame */\n );\n }\n\n pushSmallFrame() {\n this.pushMachine(59\n /* PushSmallFrame */\n );\n }\n\n popSmallFrame() {\n this.pushMachine(60\n /* PopSmallFrame */\n );\n }\n\n invokeVirtual() {\n this.pushMachine(49\n /* InvokeVirtual */\n );\n }\n\n invokeYield() {\n this.push(51\n /* InvokeYield */\n );\n }\n\n toBoolean() {\n this.push(63\n /* ToBoolean */\n );\n }\n\n invokePreparedComponent(hasBlock, bindableBlocks, bindableAtNames, populateLayout = null) {\n this.beginComponentTransaction();\n this.pushDynamicScope();\n this.createComponent(_vm.Register.s0, hasBlock); // this has to run after createComponent to allow\n // for late-bound layouts, but a caller is free\n // to populate the layout earlier if it wants to\n // and do nothing here.\n\n if (populateLayout) populateLayout();\n this.registerComponentDestructor(_vm.Register.s0);\n this.getComponentSelf(_vm.Register.s0);\n this.pushVirtualRootScope(_vm.Register.s0);\n this.setVariable(0);\n this.setupForEval(_vm.Register.s0);\n if (bindableAtNames) this.setNamedVariables(_vm.Register.s0);\n if (bindableBlocks) this.setBlocks(_vm.Register.s0);\n this.pop();\n this.invokeComponentLayout(_vm.Register.s0);\n this.didRenderLayout(_vm.Register.s0);\n this.popFrame();\n this.popScope();\n this.popDynamicScope();\n this.commitComponentTransaction();\n }\n\n get pos() {\n return this.encoder.typePos;\n }\n\n get nextPos() {\n return this.encoder.size;\n } ///\n\n\n compileInline(sexp) {\n return this.compiler.compileInline(sexp, this);\n }\n\n compileBlock(name, params, hash, template, inverse) {\n this.compiler.compileBlock(name, params, hash, template, inverse, this);\n }\n\n label(name) {\n this.labels.label(name, this.nextPos);\n } // helpers\n\n\n get labels() {\n return this.labelsStack.current;\n }\n\n startLabels() {\n this.labelsStack.push(new Labels());\n }\n\n stopLabels() {\n let label = this.labelsStack.pop();\n label.patch(this.encoder);\n } // components\n\n\n pushCurriedComponent() {\n this.push(74\n /* PushCurriedComponent */\n );\n }\n\n pushDynamicComponentInstance() {\n this.push(73\n /* PushDynamicComponentInstance */\n );\n } // dom\n\n\n openDynamicElement() {\n this.push(34\n /* OpenDynamicElement */\n );\n }\n\n flushElement() {\n this.push(38\n /* FlushElement */\n );\n }\n\n closeElement() {\n this.push(39\n /* CloseElement */\n );\n } // lists\n\n\n putIterator() {\n this.push(66\n /* PutIterator */\n );\n }\n\n enterList(start) {\n this.reserve(64\n /* EnterList */\n );\n this.labels.target(this.pos, start);\n }\n\n exitList() {\n this.push(65\n /* ExitList */\n );\n }\n\n iterate(breaks) {\n this.reserve(67\n /* Iterate */\n );\n this.labels.target(this.pos, breaks);\n } // expressions\n\n\n setNamedVariables(state) {\n this.push(2\n /* SetNamedVariables */\n , state);\n }\n\n setBlocks(state) {\n this.push(3\n /* SetBlocks */\n , state);\n }\n\n setVariable(symbol) {\n this.push(4\n /* SetVariable */\n , symbol);\n }\n\n setBlock(symbol) {\n this.push(5\n /* SetBlock */\n , symbol);\n }\n\n getVariable(symbol) {\n this.push(6\n /* GetVariable */\n , symbol);\n }\n\n getBlock(symbol) {\n this.push(8\n /* GetBlock */\n , symbol);\n }\n\n hasBlock(symbol) {\n this.push(9\n /* HasBlock */\n , symbol);\n }\n\n concat(size) {\n this.push(11\n /* Concat */\n , size);\n }\n\n load(register) {\n this.push(18\n /* Load */\n , register);\n }\n\n fetch(register) {\n this.push(19\n /* Fetch */\n , register);\n }\n\n dup(register = _vm.Register.sp, offset = 0) {\n return this.push(16\n /* Dup */\n , register, offset);\n }\n\n pop(count = 1) {\n return this.push(17\n /* Pop */\n , count);\n } // vm\n\n\n returnTo(label) {\n this.reserveMachine(25\n /* ReturnTo */\n );\n this.labels.target(this.pos, label);\n }\n\n primitiveReference() {\n this.push(14\n /* PrimitiveReference */\n );\n }\n\n reifyU32() {\n this.push(15\n /* ReifyU32 */\n );\n }\n\n enter(args) {\n this.push(61\n /* Enter */\n , args);\n }\n\n exit() {\n this.push(62\n /* Exit */\n );\n }\n\n return() {\n this.pushMachine(24\n /* Return */\n );\n }\n\n jump(target) {\n this.reserveMachine(52\n /* Jump */\n );\n this.labels.target(this.pos, target);\n }\n\n jumpIf(target) {\n this.reserve(53\n /* JumpIf */\n );\n this.labels.target(this.pos, target);\n }\n\n jumpUnless(target) {\n this.reserve(54\n /* JumpUnless */\n );\n this.labels.target(this.pos, target);\n }\n\n jumpEq(value, target) {\n this.reserveWithOperand(55\n /* JumpEq */\n , value);\n this.labels.target(this.pos, target);\n }\n\n assertSame() {\n this.push(56\n /* AssertSame */\n );\n }\n\n pushEmptyArgs() {\n this.push(77\n /* PushEmptyArgs */\n );\n }\n\n switch(_opcode, callback) {\n // Setup the switch DSL\n let clauses = [];\n let count = 0;\n\n function when(match, callback) {\n clauses.push({\n match,\n callback,\n label: \"CLAUSE\" + count++\n });\n } // Call the callback\n\n\n callback(when); // Emit the opcodes for the switch\n\n this.enter(2);\n this.assertSame();\n this.reifyU32();\n this.startLabels(); // First, emit the jump opcodes. We don't need a jump for the last\n // opcode, since it bleeds directly into its clause.\n\n clauses.slice(0, -1).forEach(clause => this.jumpEq(clause.match, clause.label)); // Enumerate the clauses in reverse order. Earlier matches will\n // require fewer checks.\n\n for (let i = clauses.length - 1; i >= 0; i--) {\n let clause = clauses[i];\n this.label(clause.label);\n this.pop(2);\n clause.callback(); // The first match is special: it is placed directly before the END\n // label, so no additional jump is needed at the end of it.\n\n if (i !== 0) {\n this.jump('END');\n }\n }\n\n this.label('END');\n this.stopLabels();\n this.exit();\n }\n\n stdAppend(trusting) {\n this.switch(this.contentType(), when => {\n when(1\n /* String */\n , () => {\n if (trusting) {\n this.assertSame();\n this.appendHTML();\n } else {\n this.appendText();\n }\n });\n when(0\n /* Component */\n , () => {\n this.pushCurriedComponent();\n this.pushDynamicComponentInstance();\n this.invokeBareComponent();\n });\n when(3\n /* SafeString */\n , () => {\n this.assertSame();\n this.appendSafeHTML();\n });\n when(4\n /* Fragment */\n , () => {\n this.assertSame();\n this.appendDocumentFragment();\n });\n when(5\n /* Node */\n , () => {\n this.assertSame();\n this.appendNode();\n });\n });\n }\n\n populateLayout(state) {\n this.push(89\n /* PopulateLayout */\n , state);\n }\n\n invokeBareComponent() {\n this.fetch(_vm.Register.s0);\n this.dup(_vm.Register.sp, 1);\n this.load(_vm.Register.s0);\n this.pushFrame();\n this.pushEmptyArgs();\n this.prepareArgs(_vm.Register.s0);\n this.invokePreparedComponent(false, false, true, () => {\n this.getComponentLayout(_vm.Register.s0);\n this.populateLayout(_vm.Register.s0);\n });\n this.load(_vm.Register.s0);\n }\n\n isComponent() {\n this.push(69\n /* IsComponent */\n );\n }\n\n contentType() {\n this.push(70\n /* ContentType */\n );\n }\n\n pushBlockScope() {\n this.push(47\n /* PushBlockScope */\n );\n }\n\n }\n\n _exports.StdOpcodeBuilder = StdOpcodeBuilder;\n\n class OpcodeBuilder extends StdOpcodeBuilder {\n constructor(compiler, containingLayout) {\n super(compiler, containingLayout ? containingLayout.block.symbols.length : 0);\n this.containingLayout = containingLayout;\n this.component = new ComponentBuilder(this);\n this.expressionCompiler = expressionCompiler();\n this.constants = compiler.constants;\n this.stdLib = compiler.stdLib;\n } /// MECHANICS\n\n\n get referrer() {\n return this.containingLayout && this.containingLayout.referrer;\n }\n\n expr(expression) {\n if (Array.isArray(expression)) {\n this.expressionCompiler.compile(expression, this);\n } else {\n this.pushPrimitiveReference(expression);\n }\n } ///\n // args\n\n\n pushArgs(names, flags) {\n let serialized = this.constants.stringArray(names);\n this.push(76\n /* PushArgs */\n , serialized, flags);\n }\n\n pushYieldableBlock(block) {\n this.pushSymbolTable(block && block.symbolTable);\n this.pushBlockScope();\n this.pushBlock(block);\n }\n\n curryComponent(definition,\n /* TODO: attrs: Option, */\n params, hash, synthetic) {\n let referrer = this.containingLayout.referrer;\n this.pushFrame();\n this.compileArgs(params, hash, null, synthetic);\n this.push(80\n /* CaptureArgs */\n );\n this.expr(definition);\n this.push(71\n /* CurryComponent */\n , this.constants.serializable(referrer));\n this.popFrame();\n this.fetch(_vm.Register.v0);\n }\n\n pushSymbolTable(table) {\n if (table) {\n let constant = this.constants.serializable(table);\n this.push(48\n /* PushSymbolTable */\n , constant);\n } else {\n this.primitive(null);\n }\n }\n\n invokeComponent(capabilities, attrs, params, hash, synthetic, block, inverse = null, layout) {\n this.fetch(_vm.Register.s0);\n this.dup(_vm.Register.sp, 1);\n this.load(_vm.Register.s0);\n this.pushFrame();\n let bindableBlocks = !!(block || inverse || attrs);\n let bindableAtNames = capabilities === true || capabilities.prepareArgs || !!(hash && hash[0].length !== 0);\n let blocks = {\n main: block,\n else: inverse,\n attrs\n };\n this.compileArgs(params, hash, blocks, synthetic);\n this.prepareArgs(_vm.Register.s0);\n this.invokePreparedComponent(block !== null, bindableBlocks, bindableAtNames, () => {\n if (layout) {\n this.pushSymbolTable(layout.symbolTable);\n this.pushLayout(layout);\n this.resolveLayout();\n } else {\n this.getComponentLayout(_vm.Register.s0);\n }\n\n this.populateLayout(_vm.Register.s0);\n });\n this.load(_vm.Register.s0);\n }\n\n invokeStaticComponent(capabilities, layout, attrs, params, hash, synthetic, block, inverse = null) {\n let {\n symbolTable\n } = layout;\n let bailOut = symbolTable.hasEval || capabilities.prepareArgs;\n\n if (bailOut) {\n this.invokeComponent(capabilities, attrs, params, hash, synthetic, block, inverse, layout);\n return;\n }\n\n this.fetch(_vm.Register.s0);\n this.dup(_vm.Register.sp, 1);\n this.load(_vm.Register.s0);\n let {\n symbols\n } = symbolTable;\n\n if (capabilities.createArgs) {\n this.pushFrame();\n this.compileArgs(params, hash, null, synthetic);\n }\n\n this.beginComponentTransaction();\n\n if (capabilities.dynamicScope) {\n this.pushDynamicScope();\n }\n\n if (capabilities.createInstance) {\n this.createComponent(_vm.Register.s0, block !== null);\n }\n\n if (capabilities.createArgs) {\n this.popFrame();\n }\n\n this.pushFrame();\n this.registerComponentDestructor(_vm.Register.s0);\n let bindings = [];\n this.getComponentSelf(_vm.Register.s0);\n bindings.push({\n symbol: 0,\n isBlock: false\n });\n\n for (let i = 0; i < symbols.length; i++) {\n let symbol = symbols[i];\n\n switch (symbol.charAt(0)) {\n case '&':\n let callerBlock = null;\n\n if (symbol === '&default') {\n callerBlock = block;\n } else if (symbol === '&inverse') {\n callerBlock = inverse;\n } else if (symbol === ATTRS_BLOCK) {\n callerBlock = attrs;\n } else {\n throw (0, _util.unreachable)();\n }\n\n if (callerBlock) {\n this.pushYieldableBlock(callerBlock);\n bindings.push({\n symbol: i + 1,\n isBlock: true\n });\n } else {\n this.pushYieldableBlock(null);\n bindings.push({\n symbol: i + 1,\n isBlock: true\n });\n }\n\n break;\n\n case '@':\n if (!hash) {\n break;\n }\n\n let [keys, values] = hash;\n let lookupName = symbol;\n\n if (synthetic) {\n lookupName = symbol.slice(1);\n }\n\n let index = keys.indexOf(lookupName);\n\n if (index !== -1) {\n this.expr(values[index]);\n bindings.push({\n symbol: i + 1,\n isBlock: false\n });\n }\n\n break;\n }\n }\n\n this.pushRootScope(symbols.length + 1, !!(block || inverse || attrs));\n\n for (let i = bindings.length - 1; i >= 0; i--) {\n let {\n symbol,\n isBlock\n } = bindings[i];\n\n if (isBlock) {\n this.setBlock(symbol);\n } else {\n this.setVariable(symbol);\n }\n }\n\n this.invokeStatic(layout);\n\n if (capabilities.createInstance) {\n this.didRenderLayout(_vm.Register.s0);\n }\n\n this.popFrame();\n this.popScope();\n\n if (capabilities.dynamicScope) {\n this.popDynamicScope();\n }\n\n this.commitComponentTransaction();\n this.load(_vm.Register.s0);\n }\n\n dynamicComponent(definition, attrs, params, hash, synthetic, block, inverse = null) {\n this.replayable({\n args: () => {\n this.expr(definition);\n this.dup();\n return 2;\n },\n body: () => {\n this.jumpUnless('ELSE');\n this.resolveDynamicComponent(this.containingLayout.referrer);\n this.pushDynamicComponentInstance();\n this.invokeComponent(true, attrs, params, hash, synthetic, block, inverse);\n this.label('ELSE');\n }\n });\n }\n\n yield(to, params) {\n this.compileArgs(params, null, null, false);\n this.getBlock(to);\n this.resolveBlock();\n this.invokeYield();\n this.popScope();\n this.popFrame();\n }\n\n guardedAppend(expression, trusting) {\n this.pushFrame();\n this.expr(expression);\n this.pushMachine(50\n /* InvokeStatic */\n , this.stdLib.getAppend(trusting));\n this.popFrame();\n }\n\n invokeStaticBlock(block, callerCount = 0) {\n let {\n parameters\n } = block.symbolTable;\n let calleeCount = parameters.length;\n let count = Math.min(callerCount, calleeCount);\n this.pushFrame();\n\n if (count) {\n this.pushChildScope();\n\n for (let i = 0; i < count; i++) {\n this.dup(_vm.Register.fp, callerCount - i);\n this.setVariable(parameters[i]);\n }\n }\n\n this.pushBlock(block);\n this.resolveBlock();\n this.invokeVirtual();\n\n if (count) {\n this.popScope();\n }\n\n this.popFrame();\n } /// CONVENIENCE\n // internal helpers\n\n\n string(_string) {\n return this.constants.string(_string);\n }\n\n names(_names) {\n let names = [];\n\n for (let i = 0; i < _names.length; i++) {\n let n = _names[i];\n names[i] = this.constants.string(n);\n }\n\n return this.constants.array(names);\n }\n\n symbols(symbols) {\n return this.constants.array(symbols);\n } // vm\n\n\n primitive(_primitive) {\n let type = 0\n /* NUMBER */\n ;\n let primitive;\n\n switch (typeof _primitive) {\n case 'number':\n if (_primitive % 1 === 0) {\n if (_primitive > -1) {\n primitive = _primitive;\n } else {\n primitive = this.constants.number(_primitive);\n type = 4\n /* NEGATIVE */\n ;\n }\n } else {\n primitive = this.constants.number(_primitive);\n type = 1\n /* FLOAT */\n ;\n }\n\n break;\n\n case 'string':\n primitive = this.string(_primitive);\n type = 2\n /* STRING */\n ;\n break;\n\n case 'boolean':\n primitive = _primitive | 0;\n type = 3\n /* BOOLEAN_OR_VOID */\n ;\n break;\n\n case 'object':\n // assume null\n primitive = 2;\n type = 3\n /* BOOLEAN_OR_VOID */\n ;\n break;\n\n case 'undefined':\n primitive = 3;\n type = 3\n /* BOOLEAN_OR_VOID */\n ;\n break;\n\n default:\n throw new Error('Invalid primitive passed to pushPrimitive');\n }\n\n let immediate = this.sizeImmediate(primitive << 3 | type, primitive);\n this.push(13\n /* Primitive */\n , immediate);\n }\n\n sizeImmediate(shifted, primitive) {\n if (shifted >= 4294967295\n /* MAX_SIZE */\n || shifted < 0) {\n return this.constants.number(primitive) << 3 | 5\n /* BIG_NUM */\n ;\n }\n\n return shifted;\n }\n\n pushPrimitiveReference(primitive) {\n this.primitive(primitive);\n this.primitiveReference();\n } // components\n\n\n pushComponentDefinition(handle) {\n this.push(72\n /* PushComponentDefinition */\n , this.constants.handle(handle));\n }\n\n resolveDynamicComponent(referrer) {\n this.push(75\n /* ResolveDynamicComponent */\n , this.constants.serializable(referrer));\n }\n\n staticComponentHelper(tag, hash, template) {\n let {\n handle,\n capabilities,\n compilable\n } = this.compiler.resolveLayoutForTag(tag, this.referrer);\n\n if (handle !== null && capabilities !== null) {\n if (compilable) {\n if (hash) {\n for (let i = 0; i < hash.length; i = i + 2) {\n hash[i][0] = \"@\" + hash[i][0];\n }\n }\n\n this.pushComponentDefinition(handle);\n this.invokeStaticComponent(capabilities, compilable, null, null, hash, false, template && template);\n return true;\n }\n }\n\n return false;\n } // partial\n\n\n invokePartial(referrer, symbols, evalInfo) {\n let _meta = this.constants.serializable(referrer);\n\n let _symbols = this.constants.stringArray(symbols);\n\n let _evalInfo = this.constants.array(evalInfo);\n\n this.push(95\n /* InvokePartial */\n , _meta, _symbols, _evalInfo);\n }\n\n resolveMaybeLocal(name) {\n this.push(96\n /* ResolveMaybeLocal */\n , this.string(name));\n } // debugger\n\n\n debugger(symbols, evalInfo) {\n this.push(97\n /* Debugger */\n , this.constants.stringArray(symbols), this.constants.array(evalInfo));\n } // dom\n\n\n text(text) {\n this.push(26\n /* Text */\n , this.constants.string(text));\n }\n\n openPrimitiveElement(tag) {\n this.push(33\n /* OpenElement */\n , this.constants.string(tag));\n }\n\n modifier(locator, params, hash) {\n this.pushFrame();\n this.compileArgs(params, hash, null, true);\n this.push(40\n /* Modifier */\n , this.constants.handle(locator));\n this.popFrame();\n }\n\n comment(_comment) {\n let comment = this.constants.string(_comment);\n this.push(27\n /* Comment */\n , comment);\n }\n\n dynamicAttr(_name, _namespace, trusting) {\n let name = this.constants.string(_name);\n let namespace = _namespace ? this.constants.string(_namespace) : 0;\n this.push(36\n /* DynamicAttr */\n , name, trusting === true ? 1 : 0, namespace);\n }\n\n componentAttr(_name, _namespace, trusting) {\n let name = this.constants.string(_name);\n let namespace = _namespace ? this.constants.string(_namespace) : 0;\n this.push(37\n /* ComponentAttr */\n , name, trusting === true ? 1 : 0, namespace);\n }\n\n staticAttr(_name, _namespace, _value) {\n let name = this.constants.string(_name);\n let namespace = _namespace ? this.constants.string(_namespace) : 0;\n let value = this.constants.string(_value);\n this.push(35\n /* StaticAttr */\n , name, value, namespace);\n } // expressions\n\n\n hasBlockParams(to) {\n this.getBlock(to);\n this.resolveBlock();\n this.push(10\n /* HasBlockParams */\n );\n }\n\n getProperty(key) {\n this.push(7\n /* GetProperty */\n , this.string(key));\n }\n\n helper(helper, params, hash) {\n this.pushFrame();\n this.compileArgs(params, hash, null, true);\n this.push(1\n /* Helper */\n , this.constants.handle(helper));\n this.popFrame();\n this.fetch(_vm.Register.v0);\n }\n\n bindDynamicScope(_names) {\n this.push(43\n /* BindDynamicScope */\n , this.names(_names));\n } // convenience methods\n\n /**\n * A convenience for pushing some arguments on the stack and\n * running some code if the code needs to be re-executed during\n * updating execution if some of the arguments have changed.\n *\n * # Initial Execution\n *\n * The `args` function should push zero or more arguments onto\n * the stack and return the number of arguments pushed.\n *\n * The `body` function provides the instructions to execute both\n * during initial execution and during updating execution.\n *\n * Internally, this function starts by pushing a new frame, so\n * that the body can return and sets the return point ($ra) to\n * the ENDINITIAL label.\n *\n * It then executes the `args` function, which adds instructions\n * responsible for pushing the arguments for the block to the\n * stack. These arguments will be restored to the stack before\n * updating execution.\n *\n * Next, it adds the Enter opcode, which marks the current position\n * in the DOM, and remembers the current $pc (the next instruction)\n * as the first instruction to execute during updating execution.\n *\n * Next, it runs `body`, which adds the opcodes that should\n * execute both during initial execution and during updating execution.\n * If the `body` wishes to finish early, it should Jump to the\n * `FINALLY` label.\n *\n * Next, it adds the FINALLY label, followed by:\n *\n * - the Exit opcode, which finalizes the marked DOM started by the\n * Enter opcode.\n * - the Return opcode, which returns to the current return point\n * ($ra).\n *\n * Finally, it adds the ENDINITIAL label followed by the PopFrame\n * instruction, which restores $fp, $sp and $ra.\n *\n * # Updating Execution\n *\n * Updating execution for this `replayable` occurs if the `body` added an\n * assertion, via one of the `JumpIf`, `JumpUnless` or `AssertSame` opcodes.\n *\n * If, during updating executon, the assertion fails, the initial VM is\n * restored, and the stored arguments are pushed onto the stack. The DOM\n * between the starting and ending markers is cleared, and the VM's cursor\n * is set to the area just cleared.\n *\n * The return point ($ra) is set to -1, the exit instruction.\n *\n * Finally, the $pc is set to to the instruction saved off by the\n * Enter opcode during initial execution, and execution proceeds as\n * usual.\n *\n * The only difference is that when a `Return` instruction is\n * encountered, the program jumps to -1 rather than the END label,\n * and the PopFrame opcode is not needed.\n */\n\n\n replayable({\n args,\n body\n }) {\n // Start a new label frame, to give END and RETURN\n // a unique meaning.\n this.startLabels();\n this.pushFrame(); // If the body invokes a block, its return will return to\n // END. Otherwise, the return in RETURN will return to END.\n\n this.returnTo('ENDINITIAL'); // Push the arguments onto the stack. The args() function\n // tells us how many stack elements to retain for re-execution\n // when updating.\n\n let count = args(); // Start a new updating closure, remembering `count` elements\n // from the stack. Everything after this point, and before END,\n // will execute both initially and to update the block.\n //\n // The enter and exit opcodes also track the area of the DOM\n // associated with this block. If an assertion inside the block\n // fails (for example, the test value changes from true to false\n // in an #if), the DOM is cleared and the program is re-executed,\n // restoring `count` elements to the stack and executing the\n // instructions between the enter and exit.\n\n this.enter(count); // Evaluate the body of the block. The body of the block may\n // return, which will jump execution to END during initial\n // execution, and exit the updating routine.\n\n body(); // All execution paths in the body should run the FINALLY once\n // they are done. It is executed both during initial execution\n // and during updating execution.\n\n this.label('FINALLY'); // Finalize the DOM.\n\n this.exit(); // In initial execution, this is a noop: it returns to the\n // immediately following opcode. In updating execution, this\n // exits the updating routine.\n\n this.return(); // Cleanup code for the block. Runs on initial execution\n // but not on updating.\n\n this.label('ENDINITIAL');\n this.popFrame();\n this.stopLabels();\n }\n /**\n * A specialized version of the `replayable` convenience that allows the\n * caller to provide different code based upon whether the item at\n * the top of the stack is true or false.\n *\n * As in `replayable`, the `ifTrue` and `ifFalse` code can invoke `return`.\n *\n * During the initial execution, a `return` will continue execution\n * in the cleanup code, which finalizes the current DOM block and pops\n * the current frame.\n *\n * During the updating execution, a `return` will exit the updating\n * routine, as it can reuse the DOM block and is always only a single\n * frame deep.\n */\n\n\n replayableIf({\n args,\n ifTrue,\n ifFalse\n }) {\n this.replayable({\n args,\n body: () => {\n // If the conditional is false, jump to the ELSE label.\n this.jumpUnless('ELSE'); // Otherwise, execute the code associated with the true branch.\n\n ifTrue(); // We're done, so return. In the initial execution, this runs\n // the cleanup code. In the updating VM, it exits the updating\n // routine.\n\n this.jump('FINALLY');\n this.label('ELSE'); // If the conditional is false, and code associatied ith the\n // false branch was provided, execute it. If there was no code\n // associated with the false branch, jumping to the else statement\n // has no other behavior.\n\n if (ifFalse) {\n ifFalse();\n }\n }\n });\n }\n\n inlineBlock(block) {\n return new CompilableBlock(this.compiler, {\n block,\n containingLayout: this.containingLayout\n });\n }\n\n evalSymbols() {\n let {\n containingLayout: {\n block\n }\n } = this;\n return block.hasEval ? block.symbols : null;\n }\n\n compileParams(params) {\n if (!params) return 0;\n\n for (let i = 0; i < params.length; i++) {\n this.expr(params[i]);\n }\n\n return params.length;\n }\n\n compileArgs(params, hash, blocks, synthetic) {\n if (blocks) {\n this.pushYieldableBlock(blocks.main);\n this.pushYieldableBlock(blocks.else);\n this.pushYieldableBlock(blocks.attrs);\n }\n\n let count = this.compileParams(params);\n let flags = count << 4;\n if (synthetic) flags |= 0b1000;\n\n if (blocks) {\n flags |= 0b111;\n }\n\n let names = _util.EMPTY_ARRAY;\n\n if (hash) {\n names = hash[0];\n let val = hash[1];\n\n for (let i = 0; i < val.length; i++) {\n this.expr(val[i]);\n }\n }\n\n this.pushArgs(names, flags);\n }\n\n template(block) {\n if (!block) return null;\n return this.inlineBlock(block);\n }\n\n }\n\n _exports.OpcodeBuilder = OpcodeBuilder;\n\n class LazyOpcodeBuilder extends OpcodeBuilder {\n pushBlock(block) {\n if (block) {\n this.pushOther(block);\n } else {\n this.primitive(null);\n }\n }\n\n resolveBlock() {\n this.push(46\n /* CompileBlock */\n );\n }\n\n pushLayout(layout) {\n if (layout) {\n this.pushOther(layout);\n } else {\n this.primitive(null);\n }\n }\n\n resolveLayout() {\n this.push(46\n /* CompileBlock */\n );\n }\n\n invokeStatic(compilable) {\n this.pushOther(compilable);\n this.push(46\n /* CompileBlock */\n );\n this.pushMachine(49\n /* InvokeVirtual */\n );\n }\n\n pushOther(value) {\n this.push(12\n /* Constant */\n , this.other(value));\n }\n\n other(value) {\n return this.constants.other(value);\n }\n\n }\n\n _exports.LazyOpcodeBuilder = LazyOpcodeBuilder;\n\n class EagerOpcodeBuilder extends OpcodeBuilder {\n pushBlock(block) {\n let handle = block ? block.compile() : null;\n this.primitive(handle);\n }\n\n resolveBlock() {\n return;\n }\n\n pushLayout(layout) {\n if (layout) {\n this.primitive(layout.compile());\n } else {\n this.primitive(null);\n }\n }\n\n resolveLayout() {}\n\n invokeStatic(compilable) {\n let handle = compilable.compile(); // If the handle for the invoked component is not yet known (for example,\n // because this is a recursive invocation and we're still compiling), push a\n // function that will produce the correct handle when the heap is\n // serialized.\n\n if (handle === PLACEHOLDER_HANDLE$1) {\n this.pushMachine(50\n /* InvokeStatic */\n , () => compilable.compile());\n } else {\n this.pushMachine(50\n /* InvokeStatic */\n , handle);\n }\n }\n\n }\n\n _exports.EagerOpcodeBuilder = EagerOpcodeBuilder;\n\n class LazyCompiler extends AbstractCompiler {\n // FIXME: turn to static method\n constructor(lookup, resolver, macros) {\n let constants = new _program.LazyConstants(resolver);\n let program = new _program.Program(constants);\n super(macros, program, lookup);\n }\n\n builderFor(containingLayout) {\n return new LazyOpcodeBuilder(this, containingLayout);\n }\n\n }\n\n _exports.LazyCompiler = LazyCompiler;\n\n class PartialDefinition {\n constructor(name, // for debugging\n template) {\n this.name = name;\n this.template = template;\n }\n\n getPartial() {\n let partial = this.template.asPartial();\n let handle = partial.compile();\n return {\n symbolTable: partial.symbolTable,\n handle\n };\n }\n\n }\n\n _exports.PartialDefinition = PartialDefinition;\n let clientId = 0;\n\n function templateFactory({\n id: templateId,\n meta,\n block\n }) {\n let parsedBlock;\n let id = templateId || \"client-\" + clientId++;\n\n let create = (compiler, envMeta) => {\n let newMeta = envMeta ? (0, _util.assign)({}, envMeta, meta) : meta;\n\n if (!parsedBlock) {\n parsedBlock = JSON.parse(block);\n }\n\n return new TemplateImpl(compiler, {\n id,\n block: parsedBlock,\n referrer: newMeta\n });\n };\n\n return {\n id,\n meta,\n create\n };\n }\n\n class TemplateImpl {\n constructor(compiler, parsedLayout) {\n this.compiler = compiler;\n this.parsedLayout = parsedLayout;\n this.layout = null;\n this.partial = null;\n this.wrappedLayout = null;\n let {\n block\n } = parsedLayout;\n this.symbols = block.symbols;\n this.hasEval = block.hasEval;\n this.referrer = parsedLayout.referrer;\n this.id = parsedLayout.id || \"client-\" + clientId++;\n }\n\n asLayout() {\n if (this.layout) return this.layout;\n return this.layout = new CompilableProgram(this.compiler, Object.assign({}, this.parsedLayout, {\n asPartial: false\n }));\n }\n\n asPartial() {\n if (this.partial) return this.partial;\n return this.layout = new CompilableProgram(this.compiler, Object.assign({}, this.parsedLayout, {\n asPartial: true\n }));\n }\n\n asWrappedLayout() {\n if (this.wrappedLayout) return this.wrappedLayout;\n return this.wrappedLayout = new WrappedBuilder(this.compiler, Object.assign({}, this.parsedLayout, {\n asPartial: false\n }));\n }\n\n }\n});","enifed(\"@glimmer/program\", [\"exports\", \"@glimmer/util\"], function (_exports, _util) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.Opcode = _exports.Program = _exports.RuntimeProgram = _exports.WriteOnlyProgram = _exports.Heap = _exports.LazyConstants = _exports.Constants = _exports.RuntimeConstants = _exports.WriteOnlyConstants = _exports.WELL_KNOWN_EMPTY_ARRAY_POSITION = void 0;\n const UNRESOLVED = {};\n const WELL_KNOWN_EMPTY_ARRAY_POSITION = 0;\n _exports.WELL_KNOWN_EMPTY_ARRAY_POSITION = WELL_KNOWN_EMPTY_ARRAY_POSITION;\n const WELL_KNOW_EMPTY_ARRAY = Object.freeze([]);\n\n class WriteOnlyConstants {\n constructor() {\n // `0` means NULL\n this.strings = [];\n this.arrays = [WELL_KNOW_EMPTY_ARRAY];\n this.tables = [];\n this.handles = [];\n this.resolved = [];\n this.numbers = [];\n }\n\n string(value) {\n let index = this.strings.indexOf(value);\n\n if (index > -1) {\n return index;\n }\n\n return this.strings.push(value) - 1;\n }\n\n stringArray(strings) {\n let _strings = new Array(strings.length);\n\n for (let i = 0; i < strings.length; i++) {\n _strings[i] = this.string(strings[i]);\n }\n\n return this.array(_strings);\n }\n\n array(values) {\n if (values.length === 0) {\n return WELL_KNOWN_EMPTY_ARRAY_POSITION;\n }\n\n let index = this.arrays.indexOf(values);\n\n if (index > -1) {\n return index;\n }\n\n return this.arrays.push(values) - 1;\n }\n\n handle(handle) {\n let index = this.handles.indexOf(handle);\n\n if (index > -1) {\n return index;\n }\n\n this.resolved.push(UNRESOLVED);\n return this.handles.push(handle) - 1;\n }\n\n serializable(value) {\n let str = JSON.stringify(value);\n let index = this.strings.indexOf(str);\n\n if (index > -1) {\n return index;\n }\n\n return this.strings.push(str) - 1;\n }\n\n number(number) {\n let index = this.numbers.indexOf(number);\n\n if (index > -1) {\n return index;\n }\n\n return this.numbers.push(number) - 1;\n }\n\n toPool() {\n return {\n strings: this.strings,\n arrays: this.arrays,\n handles: this.handles,\n numbers: this.numbers\n };\n }\n\n }\n\n _exports.WriteOnlyConstants = WriteOnlyConstants;\n\n class RuntimeConstants {\n constructor(resolver, pool) {\n this.resolver = resolver;\n this.strings = pool.strings;\n this.arrays = pool.arrays;\n this.handles = pool.handles;\n this.resolved = this.handles.map(() => UNRESOLVED);\n this.numbers = pool.numbers;\n }\n\n getString(value) {\n return this.strings[value];\n }\n\n getNumber(value) {\n return this.numbers[value];\n }\n\n getStringArray(value) {\n let names = this.getArray(value);\n\n let _names = new Array(names.length);\n\n for (let i = 0; i < names.length; i++) {\n let n = names[i];\n _names[i] = this.getString(n);\n }\n\n return _names;\n }\n\n getArray(value) {\n return this.arrays[value];\n }\n\n resolveHandle(index) {\n let resolved = this.resolved[index];\n\n if (resolved === UNRESOLVED) {\n let handle = this.handles[index];\n resolved = this.resolved[index] = this.resolver.resolve(handle);\n }\n\n return resolved;\n }\n\n getSerializable(s) {\n return JSON.parse(this.strings[s]);\n }\n\n }\n\n _exports.RuntimeConstants = RuntimeConstants;\n\n class Constants extends WriteOnlyConstants {\n constructor(resolver, pool) {\n super();\n this.resolver = resolver;\n\n if (pool) {\n this.strings = pool.strings;\n this.arrays = pool.arrays;\n this.handles = pool.handles;\n this.resolved = this.handles.map(() => UNRESOLVED);\n this.numbers = pool.numbers;\n }\n }\n\n getNumber(value) {\n return this.numbers[value];\n }\n\n getString(value) {\n return this.strings[value];\n }\n\n getStringArray(value) {\n let names = this.getArray(value);\n\n let _names = new Array(names.length);\n\n for (let i = 0; i < names.length; i++) {\n let n = names[i];\n _names[i] = this.getString(n);\n }\n\n return _names;\n }\n\n getArray(value) {\n return this.arrays[value];\n }\n\n resolveHandle(index) {\n let resolved = this.resolved[index];\n\n if (resolved === UNRESOLVED) {\n let handle = this.handles[index];\n resolved = this.resolved[index] = this.resolver.resolve(handle);\n }\n\n return resolved;\n }\n\n getSerializable(s) {\n return JSON.parse(this.strings[s]);\n }\n\n }\n\n _exports.Constants = Constants;\n\n class LazyConstants extends Constants {\n constructor() {\n super(...arguments);\n this.others = [];\n this.serializables = [];\n }\n\n serializable(value) {\n let index = this.serializables.indexOf(value);\n\n if (index > -1) {\n return index;\n }\n\n return this.serializables.push(value) - 1;\n }\n\n getSerializable(s) {\n return this.serializables[s];\n }\n\n getOther(value) {\n return this.others[value - 1];\n }\n\n other(other) {\n return this.others.push(other);\n }\n\n }\n\n _exports.LazyConstants = LazyConstants;\n\n class Opcode {\n constructor(heap) {\n this.heap = heap;\n this.offset = 0;\n }\n\n get size() {\n let rawType = this.heap.getbyaddr(this.offset);\n return ((rawType & 768\n /* OPERAND_LEN_MASK */\n ) >> 8\n /* ARG_SHIFT */\n ) + 1;\n }\n\n get isMachine() {\n let rawType = this.heap.getbyaddr(this.offset);\n return rawType & 1024\n /* MACHINE_MASK */\n ;\n }\n\n get type() {\n return this.heap.getbyaddr(this.offset) & 255\n /* TYPE_MASK */\n ;\n }\n\n get op1() {\n return this.heap.getbyaddr(this.offset + 1);\n }\n\n get op2() {\n return this.heap.getbyaddr(this.offset + 2);\n }\n\n get op3() {\n return this.heap.getbyaddr(this.offset + 3);\n }\n\n }\n\n _exports.Opcode = Opcode;\n\n function encodeTableInfo(scopeSize, state) {\n return state | scopeSize << 2;\n }\n\n function changeState(info, newState) {\n return info | newState << 30;\n }\n\n const PAGE_SIZE = 0x100000;\n /**\n * The Heap is responsible for dynamically allocating\n * memory in which we read/write the VM's instructions\n * from/to. When we malloc we pass out a VMHandle, which\n * is used as an indirect way of accessing the memory during\n * execution of the VM. Internally we track the different\n * regions of the memory in an int array known as the table.\n *\n * The table 32-bit aligned and has the following layout:\n *\n * | ... | hp (u32) | info (u32) | size (u32) |\n * | ... | Handle | Scope Size | State | Size |\n * | ... | 32bits | 30bits | 2bits | 32bit |\n *\n * With this information we effectively have the ability to\n * control when we want to free memory. That being said you\n * can not free during execution as raw address are only\n * valid during the execution. This means you cannot close\n * over them as you will have a bad memory access exception.\n */\n\n class Heap {\n constructor(serializedHeap) {\n this.placeholders = [];\n this.offset = 0;\n this.handle = 0;\n this.capacity = PAGE_SIZE;\n\n if (serializedHeap) {\n let {\n buffer,\n table,\n handle\n } = serializedHeap;\n this.heap = new Uint32Array(buffer);\n this.table = table;\n this.offset = this.heap.length;\n this.handle = handle;\n this.capacity = 0;\n } else {\n this.heap = new Uint32Array(PAGE_SIZE);\n this.table = [];\n }\n }\n\n push(item) {\n this.sizeCheck();\n this.heap[this.offset++] = item;\n }\n\n sizeCheck() {\n if (this.capacity === 0) {\n let heap = slice(this.heap, 0, this.offset);\n this.heap = new Uint32Array(heap.length + PAGE_SIZE);\n this.heap.set(heap, 0);\n this.capacity = PAGE_SIZE;\n }\n\n this.capacity--;\n }\n\n getbyaddr(address) {\n return this.heap[address];\n }\n\n setbyaddr(address, value) {\n this.heap[address] = value;\n }\n\n malloc() {\n // push offset, info, size\n this.table.push(this.offset, 0, 0);\n let handle = this.handle;\n this.handle += 3\n /* ENTRY_SIZE */\n ;\n return handle;\n }\n\n finishMalloc(handle, scopeSize) {\n this.table[handle + 1\n /* INFO_OFFSET */\n ] = encodeTableInfo(scopeSize, 0\n /* Allocated */\n );\n }\n\n size() {\n return this.offset;\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 getaddr(handle) {\n return this.table[handle];\n }\n\n gethandle(address) {\n this.table.push(address, encodeTableInfo(0, 3\n /* Pointer */\n ), 0);\n let handle = this.handle;\n this.handle += 3\n /* ENTRY_SIZE */\n ;\n return handle;\n }\n\n sizeof(handle) {\n return -1;\n }\n\n scopesizeof(handle) {\n let info = this.table[handle + 1\n /* INFO_OFFSET */\n ];\n return info >> 2;\n }\n\n free(handle) {\n let info = this.table[handle + 1\n /* INFO_OFFSET */\n ];\n this.table[handle + 1\n /* INFO_OFFSET */\n ] = changeState(info, 1\n /* Freed */\n );\n }\n\n pushPlaceholder(valueFunc) {\n this.sizeCheck();\n let address = this.offset++;\n this.heap[address] = 2147483647\n /* MAX_SIZE */\n ;\n this.placeholders.push([address, valueFunc]);\n }\n\n patchPlaceholders() {\n let {\n placeholders\n } = this;\n\n for (let i = 0; i < placeholders.length; i++) {\n let [address, getValue] = placeholders[i];\n this.setbyaddr(address, getValue());\n }\n }\n\n capture(offset = this.offset) {\n this.patchPlaceholders(); // Only called in eager mode\n\n let buffer = slice(this.heap, 0, offset).buffer;\n return {\n handle: this.handle,\n table: this.table,\n buffer: buffer\n };\n }\n\n }\n\n _exports.Heap = Heap;\n\n class WriteOnlyProgram {\n constructor(constants = new WriteOnlyConstants(), heap = new Heap()) {\n this.constants = constants;\n this.heap = heap;\n this._opcode = new Opcode(this.heap);\n }\n\n opcode(offset) {\n this._opcode.offset = offset;\n return this._opcode;\n }\n\n }\n\n _exports.WriteOnlyProgram = WriteOnlyProgram;\n\n class RuntimeProgram {\n constructor(constants, heap) {\n this.constants = constants;\n this.heap = heap;\n this._opcode = new Opcode(this.heap);\n }\n\n static hydrate(rawHeap, pool, resolver) {\n let heap = new Heap(rawHeap);\n let constants = new RuntimeConstants(resolver, pool);\n return new RuntimeProgram(constants, heap);\n }\n\n opcode(offset) {\n this._opcode.offset = offset;\n return this._opcode;\n }\n\n }\n\n _exports.RuntimeProgram = RuntimeProgram;\n\n class Program extends WriteOnlyProgram {}\n\n _exports.Program = Program;\n\n function slice(arr, start, end) {\n if (arr.slice !== undefined) {\n return arr.slice(start, end);\n }\n\n let ret = new Uint32Array(end);\n\n for (; start < end; start++) {\n ret[start] = arr[start];\n }\n\n return ret;\n }\n});","enifed(\"@glimmer/reference\", [\"exports\", \"@glimmer/util\"], function (_exports, _util) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isConst = isConst;\n _exports.isConstTag = isConstTag;\n _exports.bump = bump;\n _exports.combineTagged = combineTagged;\n _exports.combineSlice = combineSlice;\n _exports.combine = combine;\n _exports.map = map;\n _exports.isModified = isModified;\n _exports.ReferenceCache = _exports.CachedReference = _exports.UpdatableTag = _exports.CachedTag = _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.ListItem = _exports.ConstReference = void 0;\n const CONSTANT = 0;\n _exports.CONSTANT = CONSTANT;\n const INITIAL = 1;\n _exports.INITIAL = INITIAL;\n const VOLATILE = NaN;\n _exports.VOLATILE = VOLATILE;\n\n class RevisionTag {\n validate(snapshot) {\n return this.value() === snapshot;\n }\n\n }\n\n _exports.RevisionTag = RevisionTag;\n RevisionTag.id = 0;\n const VALUE = [];\n const VALIDATE = [];\n\n class TagWrapper {\n constructor(type, inner) {\n this.type = type;\n this.inner = inner;\n }\n\n value() {\n let func = VALUE[this.type];\n return func(this.inner);\n }\n\n validate(snapshot) {\n let func = VALIDATE[this.type];\n return func(this.inner, snapshot);\n }\n\n }\n\n _exports.TagWrapper = TagWrapper;\n\n function register(Type) {\n let type = VALUE.length;\n VALUE.push(tag => tag.value());\n VALIDATE.push((tag, snapshot) => tag.validate(snapshot));\n Type.id = type;\n } ///\n // CONSTANT: 0\n\n\n VALUE.push(() => CONSTANT);\n VALIDATE.push((_tag, snapshot) => snapshot === CONSTANT);\n const CONSTANT_TAG = new TagWrapper(0, null); // VOLATILE: 1\n\n _exports.CONSTANT_TAG = CONSTANT_TAG;\n VALUE.push(() => VOLATILE);\n VALIDATE.push((_tag, snapshot) => snapshot === VOLATILE);\n const VOLATILE_TAG = new TagWrapper(1, null); // CURRENT: 2\n\n _exports.VOLATILE_TAG = VOLATILE_TAG;\n VALUE.push(() => $REVISION);\n VALIDATE.push((_tag, snapshot) => snapshot === $REVISION);\n const CURRENT_TAG = new TagWrapper(2, null);\n _exports.CURRENT_TAG = CURRENT_TAG;\n\n function isConst({\n tag\n }) {\n return tag === CONSTANT_TAG;\n }\n\n function isConstTag(tag) {\n return tag === CONSTANT_TAG;\n } ///\n\n\n let $REVISION = INITIAL;\n\n function bump() {\n $REVISION++;\n }\n\n class DirtyableTag extends RevisionTag {\n static create(revision = $REVISION) {\n return new TagWrapper(this.id, new DirtyableTag(revision));\n }\n\n constructor(revision = $REVISION) {\n super();\n this.revision = revision;\n }\n\n value() {\n return this.revision;\n }\n\n dirty() {\n this.revision = ++$REVISION;\n }\n\n }\n\n _exports.DirtyableTag = DirtyableTag;\n register(DirtyableTag);\n\n function combineTagged(tagged) {\n let optimized = [];\n\n for (let i = 0, l = tagged.length; i < l; i++) {\n let tag = tagged[i].tag;\n if (tag === VOLATILE_TAG) return VOLATILE_TAG;\n if (tag === CONSTANT_TAG) continue;\n optimized.push(tag);\n }\n\n return _combine(optimized);\n }\n\n function combineSlice(slice) {\n let optimized = [];\n let node = slice.head();\n\n while (node !== null) {\n let 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\n return _combine(optimized);\n }\n\n function combine(tags) {\n let optimized = [];\n\n for (let i = 0, l = tags.length; i < l; i++) {\n let tag = tags[i];\n if (tag === VOLATILE_TAG) return VOLATILE_TAG;\n if (tag === CONSTANT_TAG) continue;\n optimized.push(tag);\n }\n\n return _combine(optimized);\n }\n\n function _combine(tags) {\n switch (tags.length) {\n case 0:\n return CONSTANT_TAG;\n\n case 1:\n return tags[0];\n\n case 2:\n return TagsPair.create(tags[0], tags[1]);\n\n default:\n return TagsCombinator.create(tags);\n }\n }\n\n class CachedTag extends RevisionTag {\n constructor() {\n super(...arguments);\n this.lastChecked = null;\n this.lastValue = null;\n }\n\n value() {\n let {\n lastChecked\n } = this;\n\n if (lastChecked !== $REVISION) {\n this.lastChecked = $REVISION;\n this.lastValue = this.compute();\n }\n\n return this.lastValue;\n }\n\n invalidate() {\n this.lastChecked = null;\n }\n\n }\n\n _exports.CachedTag = CachedTag;\n\n class TagsPair extends CachedTag {\n static create(first, second) {\n return new TagWrapper(this.id, new TagsPair(first, second));\n }\n\n constructor(first, second) {\n super();\n this.first = first;\n this.second = second;\n }\n\n compute() {\n return Math.max(this.first.value(), this.second.value());\n }\n\n }\n\n register(TagsPair);\n\n class TagsCombinator extends CachedTag {\n static create(tags) {\n return new TagWrapper(this.id, new TagsCombinator(tags));\n }\n\n constructor(tags) {\n super();\n this.tags = tags;\n }\n\n compute() {\n let {\n tags\n } = this;\n let max = -1;\n\n for (let i = 0; i < tags.length; i++) {\n let value = tags[i].value();\n max = Math.max(value, max);\n }\n\n return max;\n }\n\n }\n\n register(TagsCombinator);\n\n class UpdatableTag extends CachedTag {\n static create(tag) {\n return new TagWrapper(this.id, new UpdatableTag(tag));\n }\n\n constructor(tag) {\n super();\n this.tag = tag;\n this.lastUpdated = INITIAL;\n }\n\n compute() {\n return Math.max(this.lastUpdated, this.tag.value());\n }\n\n update(tag) {\n if (tag !== this.tag) {\n this.tag = tag;\n this.lastUpdated = $REVISION;\n this.invalidate();\n }\n }\n\n }\n\n _exports.UpdatableTag = UpdatableTag;\n register(UpdatableTag);\n\n class CachedReference {\n constructor() {\n this.lastRevision = null;\n this.lastValue = null;\n }\n\n value() {\n let {\n tag,\n lastRevision,\n lastValue\n } = this;\n\n if (lastRevision === null || !tag.validate(lastRevision)) {\n lastValue = this.lastValue = this.compute();\n this.lastRevision = tag.value();\n }\n\n return lastValue;\n }\n\n invalidate() {\n this.lastRevision = null;\n }\n\n }\n\n _exports.CachedReference = CachedReference;\n\n class MapperReference extends CachedReference {\n constructor(reference, mapper) {\n super();\n this.tag = reference.tag;\n this.reference = reference;\n this.mapper = mapper;\n }\n\n compute() {\n let {\n reference,\n mapper\n } = this;\n return mapper(reference.value());\n }\n\n }\n\n function map(reference, mapper) {\n return new MapperReference(reference, mapper);\n } //////////\n\n\n class ReferenceCache {\n constructor(reference) {\n this.lastValue = null;\n this.lastRevision = null;\n this.initialized = false;\n this.tag = reference.tag;\n this.reference = reference;\n }\n\n peek() {\n if (!this.initialized) {\n return this.initialize();\n }\n\n return this.lastValue;\n }\n\n revalidate() {\n if (!this.initialized) {\n return this.initialize();\n }\n\n let {\n reference,\n lastRevision\n } = this;\n let tag = reference.tag;\n if (tag.validate(lastRevision)) return NOT_MODIFIED;\n this.lastRevision = tag.value();\n let {\n lastValue\n } = this;\n let value = reference.value();\n if (value === lastValue) return NOT_MODIFIED;\n this.lastValue = value;\n return value;\n }\n\n initialize() {\n let {\n reference\n } = this;\n let value = this.lastValue = reference.value();\n this.lastRevision = reference.tag.value();\n this.initialized = true;\n return value;\n }\n\n }\n\n _exports.ReferenceCache = ReferenceCache;\n const NOT_MODIFIED = 'adb3b78e-3d22-4e4b-877a-6317c2c5c145';\n\n function isModified(value) {\n return value !== NOT_MODIFIED;\n }\n\n class ConstReference {\n constructor(inner) {\n this.inner = inner;\n this.tag = CONSTANT_TAG;\n }\n\n value() {\n return this.inner;\n }\n\n }\n\n _exports.ConstReference = ConstReference;\n\n class ListItem extends _util.ListNode {\n constructor(iterable, result) {\n super(iterable.valueReferenceFor(result));\n this.retained = false;\n this.seen = false;\n this.key = result.key;\n this.iterable = iterable;\n this.memo = iterable.memoReferenceFor(result);\n }\n\n update(item) {\n this.retained = true;\n this.iterable.updateValueReference(this.value, item);\n this.iterable.updateMemoReference(this.memo, item);\n }\n\n shouldRemove() {\n return !this.retained;\n }\n\n reset() {\n this.retained = false;\n this.seen = false;\n }\n\n }\n\n _exports.ListItem = ListItem;\n\n class IterationArtifacts {\n constructor(iterable) {\n this.iterator = null;\n this.map = (0, _util.dict)();\n this.list = new _util.LinkedList();\n this.tag = iterable.tag;\n this.iterable = iterable;\n }\n\n isEmpty() {\n let iterator = this.iterator = this.iterable.iterate();\n return iterator.isEmpty();\n }\n\n iterate() {\n let iterator;\n\n if (this.iterator === null) {\n iterator = this.iterable.iterate();\n } else {\n iterator = this.iterator;\n }\n\n this.iterator = null;\n return iterator;\n }\n\n has(key) {\n return !!this.map[key];\n }\n\n get(key) {\n return this.map[key];\n }\n\n wasSeen(key) {\n let node = this.map[key];\n return node !== undefined && node.seen;\n }\n\n append(item) {\n let {\n map,\n list,\n iterable\n } = this;\n let node = map[item.key] = new ListItem(iterable, item);\n list.append(node);\n return node;\n }\n\n insertBefore(item, reference) {\n let {\n map,\n list,\n iterable\n } = this;\n let node = map[item.key] = new ListItem(iterable, item);\n node.retained = true;\n list.insertBefore(node, reference);\n return node;\n }\n\n move(item, reference) {\n let {\n list\n } = this;\n item.retained = true;\n list.remove(item);\n list.insertBefore(item, reference);\n }\n\n remove(item) {\n let {\n list\n } = this;\n list.remove(item);\n delete this.map[item.key];\n }\n\n nextNode(item) {\n return this.list.nextNode(item);\n }\n\n head() {\n return this.list.head();\n }\n\n }\n\n _exports.IterationArtifacts = IterationArtifacts;\n\n class ReferenceIterator {\n // if anyone needs to construct this object with something other than\n // an iterable, let @wycats know.\n constructor(iterable) {\n this.iterator = null;\n let artifacts = new IterationArtifacts(iterable);\n this.artifacts = artifacts;\n }\n\n next() {\n let {\n artifacts\n } = this;\n let iterator = this.iterator = this.iterator || artifacts.iterate();\n let item = iterator.next();\n if (item === null) return null;\n return artifacts.append(item);\n }\n\n }\n\n _exports.ReferenceIterator = ReferenceIterator;\n var Phase;\n\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\n class IteratorSynchronizer {\n constructor({\n target,\n artifacts\n }) {\n this.target = target;\n this.artifacts = artifacts;\n this.iterator = artifacts.iterate();\n this.current = artifacts.head();\n }\n\n sync() {\n let phase = Phase.Append;\n\n while (true) {\n switch (phase) {\n case Phase.Append:\n phase = this.nextAppend();\n break;\n\n case Phase.Prune:\n phase = this.nextPrune();\n break;\n\n case Phase.Done:\n this.nextDone();\n return;\n }\n }\n }\n\n advanceToKey(key) {\n let {\n current,\n artifacts\n } = this;\n let seek = current;\n\n while (seek !== null && seek.key !== key) {\n seek.seen = true;\n seek = artifacts.nextNode(seek);\n }\n\n if (seek !== null) {\n this.current = artifacts.nextNode(seek);\n }\n }\n\n nextAppend() {\n let {\n iterator,\n current,\n artifacts\n } = this;\n let item = iterator.next();\n\n if (item === null) {\n return this.startPrune();\n }\n\n let {\n key\n } = item;\n\n if (current !== null && 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\n return Phase.Append;\n }\n\n nextRetain(item) {\n let {\n artifacts,\n current\n } = this;\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 nextMove(item) {\n let {\n current,\n artifacts,\n target\n } = this;\n let {\n key\n } = item;\n let found = artifacts.get(item.key);\n found.update(item);\n\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 nextInsert(item) {\n let {\n artifacts,\n target,\n current\n } = this;\n let node = artifacts.insertBefore(item, current);\n target.insert(node.key, node.value, node.memo, current ? current.key : null);\n }\n\n startPrune() {\n this.current = this.artifacts.head();\n return Phase.Prune;\n }\n\n nextPrune() {\n let {\n artifacts,\n target,\n current\n } = this;\n\n if (current === null) {\n return Phase.Done;\n }\n\n let node = current;\n this.current = artifacts.nextNode(node);\n\n if (node.shouldRemove()) {\n artifacts.remove(node);\n target.delete(node.key);\n } else {\n node.reset();\n }\n\n return Phase.Prune;\n }\n\n nextDone() {\n this.target.done();\n }\n\n }\n\n _exports.IteratorSynchronizer = IteratorSynchronizer;\n});","enifed(\"@glimmer/runtime\", [\"exports\", \"@glimmer/util\", \"@glimmer/reference\", \"@glimmer/vm\", \"@glimmer/low-level\"], function (_exports, _util, _reference, _vm2, _lowLevel) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.renderMain = renderMain;\n _exports.renderComponent = renderComponent;\n _exports.setDebuggerCallback = setDebuggerCallback;\n _exports.resetDebuggerCallback = resetDebuggerCallback;\n _exports.getDynamicVar = getDynamicVar;\n _exports.isCurriedComponentDefinition = isCurriedComponentDefinition;\n _exports.curry = curry;\n _exports.isWhitespace = isWhitespace;\n _exports.normalizeProperty = normalizeProperty;\n _exports.clientBuilder = clientBuilder;\n _exports.rehydrationBuilder = rehydrationBuilder;\n _exports.isSerializationFirstNode = isSerializationFirstNode;\n _exports.capabilityFlagsFrom = capabilityFlagsFrom;\n _exports.hasCapability = hasCapability;\n _exports.Cursor = _exports.ConcreteBounds = _exports.SERIALIZATION_FIRST_NODE_STRING = _exports.RehydrateBuilder = _exports.NewElementBuilder = _exports.DOMTreeConstruction = _exports.IDOMChanges = _exports.SVG_NAMESPACE = _exports.DOMChanges = _exports.CurriedComponentDefinition = _exports.MINIMAL_CAPABILITIES = _exports.DEFAULT_CAPABILITIES = _exports.DefaultEnvironment = _exports.Environment = _exports.Scope = _exports.EMPTY_ARGS = _exports.DynamicAttribute = _exports.SimpleDynamicAttribute = _exports.RenderResult = _exports.UpdatingVM = _exports.LowLevelVM = _exports.ConditionalReference = _exports.PrimitiveReference = _exports.UNDEFINED_REFERENCE = _exports.NULL_REFERENCE = void 0;\n\n // these import bindings will be stripped from build\n class AppendOpcodes {\n constructor() {\n this.evaluateOpcode = (0, _util.fillNulls)(98\n /* Size */\n ).slice();\n }\n\n add(name, evaluate, kind = 'syscall') {\n this.evaluateOpcode[name] = {\n syscall: kind === 'syscall',\n evaluate\n };\n }\n\n debugBefore(vm, opcode, type) {\n let sp;\n let state;\n return {\n sp: sp,\n state\n };\n }\n\n debugAfter(vm, opcode, type, pre) {\n let expectedChange;\n let {\n sp,\n state\n } = pre;\n let metadata = null;\n\n if (metadata !== null) {\n if (typeof metadata.stackChange === 'number') {\n expectedChange = metadata.stackChange;\n } else {\n expectedChange = metadata.stackChange({\n opcode,\n constants: vm.constants,\n state\n });\n if (isNaN(expectedChange)) throw (0, _util.unreachable)();\n }\n }\n }\n\n evaluate(vm, opcode, type) {\n let operation = this.evaluateOpcode[type];\n\n if (operation.syscall) {\n operation.evaluate(vm, opcode);\n } else {\n operation.evaluate(vm.inner, opcode);\n }\n }\n\n }\n\n const APPEND_OPCODES = new AppendOpcodes();\n\n class AbstractOpcode {\n constructor() {\n (0, _util.initializeGuid)(this);\n }\n\n }\n\n class UpdatingOpcode extends AbstractOpcode {\n constructor() {\n super(...arguments);\n this.next = null;\n this.prev = null;\n }\n\n }\n\n class PrimitiveReference extends _reference.ConstReference {\n constructor(value) {\n super(value);\n }\n\n static 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 get(_key) {\n return UNDEFINED_REFERENCE;\n }\n\n }\n\n _exports.PrimitiveReference = PrimitiveReference;\n\n class StringReference extends PrimitiveReference {\n constructor() {\n super(...arguments);\n this.lengthReference = null;\n }\n\n get(key) {\n if (key === 'length') {\n let {\n lengthReference\n } = this;\n\n if (lengthReference === null) {\n lengthReference = this.lengthReference = new ValueReference(this.inner.length);\n }\n\n return lengthReference;\n } else {\n return super.get(key);\n }\n }\n\n }\n\n class ValueReference extends PrimitiveReference {\n constructor(value) {\n super(value);\n }\n\n }\n\n const UNDEFINED_REFERENCE = new ValueReference(undefined);\n _exports.UNDEFINED_REFERENCE = UNDEFINED_REFERENCE;\n const NULL_REFERENCE = new ValueReference(null);\n _exports.NULL_REFERENCE = NULL_REFERENCE;\n const TRUE_REFERENCE = new ValueReference(true);\n const FALSE_REFERENCE = new ValueReference(false);\n\n class ConditionalReference {\n constructor(inner) {\n this.inner = inner;\n this.tag = inner.tag;\n }\n\n value() {\n return this.toBool(this.inner.value());\n }\n\n toBool(value) {\n return !!value;\n }\n\n }\n\n _exports.ConditionalReference = ConditionalReference;\n\n class ConcatReference extends _reference.CachedReference {\n constructor(parts) {\n super();\n this.parts = parts;\n this.tag = (0, _reference.combineTagged)(parts);\n }\n\n compute() {\n let parts = new Array();\n\n for (let i = 0; i < this.parts.length; i++) {\n let value = this.parts[i].value();\n\n if (value !== null && value !== undefined) {\n parts[i] = castToString(value);\n }\n }\n\n if (parts.length > 0) {\n return parts.join('');\n }\n\n return null;\n }\n\n }\n\n function castToString(value) {\n if (typeof value.toString !== 'function') {\n return '';\n }\n\n return String(value);\n }\n\n APPEND_OPCODES.add(1\n /* Helper */\n , (vm, {\n op1: handle\n }) => {\n let stack = vm.stack;\n let helper = vm.constants.resolveHandle(handle);\n let args = stack.pop();\n let value = helper(vm, args);\n vm.loadValue(_vm2.Register.v0, value);\n });\n APPEND_OPCODES.add(6\n /* GetVariable */\n , (vm, {\n op1: symbol\n }) => {\n let expr = vm.referenceForSymbol(symbol);\n vm.stack.push(expr);\n });\n APPEND_OPCODES.add(4\n /* SetVariable */\n , (vm, {\n op1: symbol\n }) => {\n let expr = vm.stack.pop();\n vm.scope().bindSymbol(symbol, expr);\n });\n APPEND_OPCODES.add(5\n /* SetBlock */\n , (vm, {\n op1: symbol\n }) => {\n let handle = vm.stack.pop();\n let scope = vm.stack.pop(); // FIXME(mmun): shouldn't need to cast this\n\n let table = vm.stack.pop();\n let block = table ? [handle, scope, table] : null;\n vm.scope().bindBlock(symbol, block);\n });\n APPEND_OPCODES.add(96\n /* ResolveMaybeLocal */\n , (vm, {\n op1: _name\n }) => {\n let name = vm.constants.getString(_name);\n let locals = vm.scope().getPartialMap();\n let ref = locals[name];\n\n if (ref === undefined) {\n ref = vm.getSelf().get(name);\n }\n\n vm.stack.push(ref);\n });\n APPEND_OPCODES.add(20\n /* RootScope */\n , (vm, {\n op1: symbols,\n op2: bindCallerScope\n }) => {\n vm.pushRootScope(symbols, !!bindCallerScope);\n });\n APPEND_OPCODES.add(7\n /* GetProperty */\n , (vm, {\n op1: _key\n }) => {\n let key = vm.constants.getString(_key);\n let expr = vm.stack.pop();\n vm.stack.push(expr.get(key));\n });\n APPEND_OPCODES.add(8\n /* GetBlock */\n , (vm, {\n op1: _block\n }) => {\n let {\n stack\n } = vm;\n let block = vm.scope().getBlock(_block);\n\n if (block) {\n stack.push(block[2]);\n stack.push(block[1]);\n stack.push(block[0]);\n } else {\n stack.push(null);\n stack.push(null);\n stack.push(null);\n }\n });\n APPEND_OPCODES.add(9\n /* HasBlock */\n , (vm, {\n op1: _block\n }) => {\n let hasBlock = !!vm.scope().getBlock(_block);\n vm.stack.push(hasBlock ? TRUE_REFERENCE : FALSE_REFERENCE);\n });\n APPEND_OPCODES.add(10\n /* HasBlockParams */\n , vm => {\n // FIXME(mmun): should only need to push the symbol table\n let block = vm.stack.pop();\n let scope = vm.stack.pop();\n let table = vm.stack.pop();\n let hasBlockParams = table && table.parameters.length;\n vm.stack.push(hasBlockParams ? TRUE_REFERENCE : FALSE_REFERENCE);\n });\n APPEND_OPCODES.add(11\n /* Concat */\n , (vm, {\n op1: count\n }) => {\n let out = new Array(count);\n\n for (let i = count; i > 0; i--) {\n let offset = i - 1;\n out[offset] = vm.stack.pop();\n }\n\n vm.stack.push(new ConcatReference(out));\n });\n const CURRIED_COMPONENT_DEFINITION_BRAND = 'CURRIED COMPONENT DEFINITION [id=6f00feb9-a0ef-4547-99ea-ac328f80acea]';\n\n function isCurriedComponentDefinition(definition) {\n return !!(definition && definition[CURRIED_COMPONENT_DEFINITION_BRAND]);\n }\n\n function isComponentDefinition(definition) {\n return definition && definition[CURRIED_COMPONENT_DEFINITION_BRAND];\n }\n\n class CurriedComponentDefinition {\n /** @internal */\n constructor(inner, args) {\n this.inner = inner;\n this.args = args;\n this[CURRIED_COMPONENT_DEFINITION_BRAND] = true;\n }\n\n unwrap(args) {\n args.realloc(this.offset);\n let definition = this;\n\n while (true) {\n let {\n args: curriedArgs,\n inner\n } = definition;\n\n if (curriedArgs) {\n args.positional.prepend(curriedArgs.positional);\n args.named.merge(curriedArgs.named);\n }\n\n if (!isCurriedComponentDefinition(inner)) {\n return inner;\n }\n\n definition = inner;\n }\n }\n /** @internal */\n\n\n get offset() {\n let {\n inner,\n args\n } = this;\n let length = args ? args.positional.length : 0;\n return isCurriedComponentDefinition(inner) ? length + inner.offset : length;\n }\n\n }\n\n _exports.CurriedComponentDefinition = CurriedComponentDefinition;\n\n function curry(spec, args = null) {\n return new CurriedComponentDefinition(spec, args);\n }\n\n function normalizeStringValue(value) {\n if (isEmpty(value)) {\n return '';\n }\n\n return String(value);\n }\n\n function shouldCoerce(value) {\n return isString(value) || isEmpty(value) || typeof value === 'boolean' || typeof value === 'number';\n }\n\n function isEmpty(value) {\n return value === null || value === undefined || typeof value.toString !== 'function';\n }\n\n function isSafeString(value) {\n return typeof value === 'object' && value !== null && typeof value.toHTML === 'function';\n }\n\n function isNode(value) {\n return typeof value === 'object' && value !== null && typeof value.nodeType === 'number';\n }\n\n function isFragment(value) {\n return isNode(value) && value.nodeType === 11;\n }\n\n function isString(value) {\n return typeof value === 'string';\n }\n\n class DynamicTextContent extends UpdatingOpcode {\n constructor(node, reference, lastValue) {\n super();\n this.node = node;\n this.reference = reference;\n this.lastValue = lastValue;\n this.type = 'dynamic-text';\n this.tag = reference.tag;\n this.lastRevision = this.tag.value();\n }\n\n evaluate() {\n let {\n reference,\n tag\n } = this;\n\n if (!tag.validate(this.lastRevision)) {\n this.lastRevision = tag.value();\n this.update(reference.value());\n }\n }\n\n update(value) {\n let {\n lastValue\n } = this;\n if (value === lastValue) return;\n let normalized;\n\n if (isEmpty(value)) {\n normalized = '';\n } else if (isString(value)) {\n normalized = value;\n } else {\n normalized = String(value);\n }\n\n if (normalized !== lastValue) {\n let textNode = this.node;\n textNode.nodeValue = this.lastValue = normalized;\n }\n }\n\n }\n\n class IsCurriedComponentDefinitionReference extends ConditionalReference {\n static create(inner) {\n return new IsCurriedComponentDefinitionReference(inner);\n }\n\n toBool(value) {\n return isCurriedComponentDefinition(value);\n }\n\n }\n\n class ContentTypeReference {\n constructor(inner) {\n this.inner = inner;\n this.tag = inner.tag;\n }\n\n value() {\n let value = this.inner.value();\n\n if (shouldCoerce(value)) {\n return 1\n /* String */\n ;\n } else if (isComponentDefinition(value)) {\n return 0\n /* Component */\n ;\n } else if (isSafeString(value)) {\n return 3\n /* SafeString */\n ;\n } else if (isFragment(value)) {\n return 4\n /* Fragment */\n ;\n } else if (isNode(value)) {\n return 5\n /* Node */\n ;\n } else {\n return 1\n /* String */\n ;\n }\n }\n\n }\n\n APPEND_OPCODES.add(28\n /* AppendHTML */\n , vm => {\n let reference = vm.stack.pop();\n let rawValue = reference.value();\n let value = isEmpty(rawValue) ? '' : String(rawValue);\n vm.elements().appendDynamicHTML(value);\n });\n APPEND_OPCODES.add(29\n /* AppendSafeHTML */\n , vm => {\n let reference = vm.stack.pop();\n let rawValue = reference.value().toHTML();\n let value = isEmpty(rawValue) ? '' : rawValue;\n vm.elements().appendDynamicHTML(value);\n });\n APPEND_OPCODES.add(32\n /* AppendText */\n , vm => {\n let reference = vm.stack.pop();\n let rawValue = reference.value();\n let value = isEmpty(rawValue) ? '' : String(rawValue);\n let node = vm.elements().appendDynamicText(value);\n\n if (!(0, _reference.isConst)(reference)) {\n vm.updateWith(new DynamicTextContent(node, reference, value));\n }\n });\n APPEND_OPCODES.add(30\n /* AppendDocumentFragment */\n , vm => {\n let reference = vm.stack.pop();\n let value = reference.value();\n vm.elements().appendDynamicFragment(value);\n });\n APPEND_OPCODES.add(31\n /* AppendNode */\n , vm => {\n let reference = vm.stack.pop();\n let value = reference.value();\n vm.elements().appendDynamicNode(value);\n });\n APPEND_OPCODES.add(22\n /* ChildScope */\n , vm => vm.pushChildScope());\n APPEND_OPCODES.add(23\n /* PopScope */\n , vm => vm.popScope());\n APPEND_OPCODES.add(44\n /* PushDynamicScope */\n , vm => vm.pushDynamicScope());\n APPEND_OPCODES.add(45\n /* PopDynamicScope */\n , vm => vm.popDynamicScope());\n APPEND_OPCODES.add(12\n /* Constant */\n , (vm, {\n op1: other\n }) => {\n vm.stack.push(vm.constants.getOther(other));\n });\n APPEND_OPCODES.add(13\n /* Primitive */\n , (vm, {\n op1: primitive\n }) => {\n let stack = vm.stack;\n let flag = primitive & 7; // 111\n\n let value = primitive >> 3;\n\n switch (flag) {\n case 0\n /* NUMBER */\n :\n stack.push(value);\n break;\n\n case 1\n /* FLOAT */\n :\n stack.push(vm.constants.getNumber(value));\n break;\n\n case 2\n /* STRING */\n :\n stack.push(vm.constants.getString(value));\n break;\n\n case 3\n /* BOOLEAN_OR_VOID */\n :\n stack.pushEncodedImmediate(primitive);\n break;\n\n case 4\n /* NEGATIVE */\n :\n stack.push(vm.constants.getNumber(value));\n break;\n\n case 5\n /* BIG_NUM */\n :\n stack.push(vm.constants.getNumber(value));\n break;\n }\n });\n APPEND_OPCODES.add(14\n /* PrimitiveReference */\n , vm => {\n let stack = vm.stack;\n stack.push(PrimitiveReference.create(stack.pop()));\n });\n APPEND_OPCODES.add(15\n /* ReifyU32 */\n , vm => {\n let stack = vm.stack;\n stack.push(stack.peek().value());\n });\n APPEND_OPCODES.add(16\n /* Dup */\n , (vm, {\n op1: register,\n op2: offset\n }) => {\n let position = vm.fetchValue(register) - offset;\n vm.stack.dup(position);\n });\n APPEND_OPCODES.add(17\n /* Pop */\n , (vm, {\n op1: count\n }) => {\n vm.stack.pop(count);\n });\n APPEND_OPCODES.add(18\n /* Load */\n , (vm, {\n op1: register\n }) => {\n vm.load(register);\n });\n APPEND_OPCODES.add(19\n /* Fetch */\n , (vm, {\n op1: register\n }) => {\n vm.fetch(register);\n });\n APPEND_OPCODES.add(43\n /* BindDynamicScope */\n , (vm, {\n op1: _names\n }) => {\n let names = vm.constants.getArray(_names);\n vm.bindDynamicScope(names);\n });\n APPEND_OPCODES.add(61\n /* Enter */\n , (vm, {\n op1: args\n }) => {\n vm.enter(args);\n });\n APPEND_OPCODES.add(62\n /* Exit */\n , vm => {\n vm.exit();\n });\n APPEND_OPCODES.add(48\n /* PushSymbolTable */\n , (vm, {\n op1: _table\n }) => {\n let stack = vm.stack;\n stack.push(vm.constants.getSerializable(_table));\n });\n APPEND_OPCODES.add(47\n /* PushBlockScope */\n , vm => {\n let stack = vm.stack;\n stack.push(vm.scope());\n });\n APPEND_OPCODES.add(46\n /* CompileBlock */\n , vm => {\n let stack = vm.stack;\n let block = stack.pop();\n\n if (block) {\n stack.push(block.compile());\n } else {\n stack.pushNull();\n }\n });\n APPEND_OPCODES.add(51\n /* InvokeYield */\n , vm => {\n let {\n stack\n } = vm;\n let handle = stack.pop();\n let scope = stack.pop(); // FIXME(mmun): shouldn't need to cast this\n\n let table = stack.pop();\n let args = stack.pop();\n\n if (table === null) {\n // To balance the pop{Frame,Scope}\n vm.pushFrame();\n vm.pushScope(scope); // Could be null but it doesnt matter as it is immediatelly popped.\n\n return;\n }\n\n let invokingScope = scope; // If necessary, create a child scope\n\n {\n let locals = table.parameters;\n let localsCount = locals.length;\n\n if (localsCount > 0) {\n invokingScope = invokingScope.child();\n\n for (let i = 0; i < localsCount; i++) {\n invokingScope.bindSymbol(locals[i], args.at(i));\n }\n }\n }\n vm.pushFrame();\n vm.pushScope(invokingScope);\n vm.call(handle);\n });\n APPEND_OPCODES.add(53\n /* JumpIf */\n , (vm, {\n op1: target\n }) => {\n let reference = vm.stack.pop();\n\n if ((0, _reference.isConst)(reference)) {\n if (reference.value()) {\n vm.goto(target);\n }\n } else {\n let cache = new _reference.ReferenceCache(reference);\n\n if (cache.peek()) {\n vm.goto(target);\n }\n\n vm.updateWith(new Assert(cache));\n }\n });\n APPEND_OPCODES.add(54\n /* JumpUnless */\n , (vm, {\n op1: target\n }) => {\n let reference = vm.stack.pop();\n\n if ((0, _reference.isConst)(reference)) {\n if (!reference.value()) {\n vm.goto(target);\n }\n } else {\n let cache = new _reference.ReferenceCache(reference);\n\n if (!cache.peek()) {\n vm.goto(target);\n }\n\n vm.updateWith(new Assert(cache));\n }\n });\n APPEND_OPCODES.add(55\n /* JumpEq */\n , (vm, {\n op1: target,\n op2: comparison\n }) => {\n let other = vm.stack.peek();\n\n if (other === comparison) {\n vm.goto(target);\n }\n });\n APPEND_OPCODES.add(56\n /* AssertSame */\n , vm => {\n let reference = vm.stack.peek();\n\n if (!(0, _reference.isConst)(reference)) {\n vm.updateWith(Assert.initialize(new _reference.ReferenceCache(reference)));\n }\n });\n APPEND_OPCODES.add(63\n /* ToBoolean */\n , vm => {\n let {\n env,\n stack\n } = vm;\n stack.push(env.toConditionalReference(stack.pop()));\n });\n\n class Assert extends UpdatingOpcode {\n constructor(cache) {\n super();\n this.type = 'assert';\n this.tag = cache.tag;\n this.cache = cache;\n }\n\n static initialize(cache) {\n let assert = new Assert(cache);\n cache.peek();\n return assert;\n }\n\n evaluate(vm) {\n let {\n cache\n } = this;\n\n if ((0, _reference.isModified)(cache.revalidate())) {\n vm.throw();\n }\n }\n\n }\n\n class JumpIfNotModifiedOpcode extends UpdatingOpcode {\n constructor(tag, target) {\n super();\n this.target = target;\n this.type = 'jump-if-not-modified';\n this.tag = tag;\n this.lastRevision = tag.value();\n }\n\n evaluate(vm) {\n let {\n tag,\n target,\n lastRevision\n } = this;\n\n if (!vm.alwaysRevalidate && tag.validate(lastRevision)) {\n vm.goto(target);\n }\n }\n\n didModify() {\n this.lastRevision = this.tag.value();\n }\n\n }\n\n class DidModifyOpcode extends UpdatingOpcode {\n constructor(target) {\n super();\n this.target = target;\n this.type = 'did-modify';\n this.tag = _reference.CONSTANT_TAG;\n }\n\n evaluate() {\n this.target.didModify();\n }\n\n }\n\n class LabelOpcode {\n constructor(label) {\n this.tag = _reference.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 evaluate() {}\n\n inspect() {\n return this.label + \" [\" + this._guid + \"]\";\n }\n\n }\n\n APPEND_OPCODES.add(26\n /* Text */\n , (vm, {\n op1: text\n }) => {\n vm.elements().appendText(vm.constants.getString(text));\n });\n APPEND_OPCODES.add(27\n /* Comment */\n , (vm, {\n op1: text\n }) => {\n vm.elements().appendComment(vm.constants.getString(text));\n });\n APPEND_OPCODES.add(33\n /* OpenElement */\n , (vm, {\n op1: tag\n }) => {\n vm.elements().openElement(vm.constants.getString(tag));\n });\n APPEND_OPCODES.add(34\n /* OpenDynamicElement */\n , vm => {\n let tagName = vm.stack.pop().value();\n vm.elements().openElement(tagName);\n });\n APPEND_OPCODES.add(41\n /* PushRemoteElement */\n , vm => {\n let elementRef = vm.stack.pop();\n let nextSiblingRef = vm.stack.pop();\n let guidRef = vm.stack.pop();\n let element;\n let nextSibling;\n let guid = guidRef.value();\n\n if ((0, _reference.isConst)(elementRef)) {\n element = elementRef.value();\n } else {\n let cache = new _reference.ReferenceCache(elementRef);\n element = cache.peek();\n vm.updateWith(new Assert(cache));\n }\n\n if ((0, _reference.isConst)(nextSiblingRef)) {\n nextSibling = nextSiblingRef.value();\n } else {\n let cache = new _reference.ReferenceCache(nextSiblingRef);\n nextSibling = cache.peek();\n vm.updateWith(new Assert(cache));\n }\n\n vm.elements().pushRemoteElement(element, guid, nextSibling);\n });\n APPEND_OPCODES.add(42\n /* PopRemoteElement */\n , vm => {\n vm.elements().popRemoteElement();\n });\n APPEND_OPCODES.add(38\n /* FlushElement */\n , vm => {\n let operations = vm.fetchValue(_vm2.Register.t0);\n\n if (operations) {\n operations.flush(vm);\n vm.loadValue(_vm2.Register.t0, null);\n }\n\n vm.elements().flushElement();\n });\n APPEND_OPCODES.add(39\n /* CloseElement */\n , vm => {\n vm.elements().closeElement();\n });\n APPEND_OPCODES.add(40\n /* Modifier */\n , (vm, {\n op1: handle\n }) => {\n let {\n manager,\n state\n } = vm.constants.resolveHandle(handle);\n let stack = vm.stack;\n let args = stack.pop();\n let {\n element,\n updateOperations\n } = vm.elements();\n let dynamicScope = vm.dynamicScope();\n let modifier = manager.create(element, state, args, dynamicScope, updateOperations);\n vm.env.scheduleInstallModifier(modifier, manager);\n let destructor = manager.getDestructor(modifier);\n\n if (destructor) {\n vm.newDestroyable(destructor);\n }\n\n let tag = manager.getTag(modifier);\n\n if (!(0, _reference.isConstTag)(tag)) {\n vm.updateWith(new UpdateModifierOpcode(tag, manager, modifier));\n }\n });\n\n class UpdateModifierOpcode extends UpdatingOpcode {\n constructor(tag, manager, modifier) {\n super();\n this.tag = tag;\n this.manager = manager;\n this.modifier = modifier;\n this.type = 'update-modifier';\n this.lastUpdated = tag.value();\n }\n\n evaluate(vm) {\n let {\n manager,\n modifier,\n tag,\n lastUpdated\n } = this;\n\n if (!tag.validate(lastUpdated)) {\n vm.env.scheduleUpdateModifier(modifier, manager);\n this.lastUpdated = tag.value();\n }\n }\n\n }\n\n APPEND_OPCODES.add(35\n /* StaticAttr */\n , (vm, {\n op1: _name,\n op2: _value,\n op3: _namespace\n }) => {\n let name = vm.constants.getString(_name);\n let value = vm.constants.getString(_value);\n let namespace = _namespace ? vm.constants.getString(_namespace) : null;\n vm.elements().setStaticAttribute(name, value, namespace);\n });\n APPEND_OPCODES.add(36\n /* DynamicAttr */\n , (vm, {\n op1: _name,\n op2: trusting,\n op3: _namespace\n }) => {\n let name = vm.constants.getString(_name);\n let reference = vm.stack.pop();\n let value = reference.value();\n let namespace = _namespace ? vm.constants.getString(_namespace) : null;\n let attribute = vm.elements().setDynamicAttribute(name, value, !!trusting, namespace);\n\n if (!(0, _reference.isConst)(reference)) {\n vm.updateWith(new UpdateDynamicAttributeOpcode(reference, attribute));\n }\n });\n\n class UpdateDynamicAttributeOpcode extends UpdatingOpcode {\n constructor(reference, attribute) {\n super();\n this.reference = reference;\n this.attribute = attribute;\n this.type = 'patch-element';\n this.tag = reference.tag;\n this.lastRevision = this.tag.value();\n }\n\n evaluate(vm) {\n let {\n attribute,\n reference,\n tag\n } = this;\n\n if (!tag.validate(this.lastRevision)) {\n this.lastRevision = tag.value();\n attribute.update(reference.value(), vm.env);\n }\n }\n\n }\n\n function resolveComponent(resolver, name, meta) {\n let definition = resolver.lookupComponentDefinition(name, meta);\n return definition;\n }\n\n class CurryComponentReference {\n constructor(inner, resolver, meta, args) {\n this.inner = inner;\n this.resolver = resolver;\n this.meta = meta;\n this.args = args;\n this.tag = inner.tag;\n this.lastValue = null;\n this.lastDefinition = null;\n }\n\n value() {\n let {\n inner,\n lastValue\n } = this;\n let value = inner.value();\n\n if (value === lastValue) {\n return this.lastDefinition;\n }\n\n let definition = null;\n\n if (isCurriedComponentDefinition(value)) {\n definition = value;\n } else if (typeof value === 'string' && value) {\n let {\n resolver,\n meta\n } = this;\n definition = resolveComponent(resolver, value, meta);\n }\n\n definition = this.curry(definition);\n this.lastValue = value;\n this.lastDefinition = definition;\n return definition;\n }\n\n get() {\n return UNDEFINED_REFERENCE;\n }\n\n curry(definition) {\n let {\n args\n } = this;\n\n if (!args && isCurriedComponentDefinition(definition)) {\n return definition;\n } else if (!definition) {\n return null;\n } else {\n return new CurriedComponentDefinition(definition, args);\n }\n }\n\n }\n\n class ClassListReference {\n constructor(list) {\n this.list = list;\n this.tag = (0, _reference.combineTagged)(list);\n this.list = list;\n }\n\n value() {\n let ret = [];\n let {\n list\n } = this;\n\n for (let i = 0; i < list.length; i++) {\n let value = normalizeStringValue(list[i].value());\n if (value) ret.push(value);\n }\n\n return ret.length === 0 ? null : ret.join(' ');\n }\n\n }\n /**\n * Converts a ComponentCapabilities object into a 32-bit integer representation.\n */\n\n\n function capabilityFlagsFrom(capabilities) {\n return 0 | (capabilities.dynamicLayout ? 1\n /* DynamicLayout */\n : 0) | (capabilities.dynamicTag ? 2\n /* DynamicTag */\n : 0) | (capabilities.prepareArgs ? 4\n /* PrepareArgs */\n : 0) | (capabilities.createArgs ? 8\n /* CreateArgs */\n : 0) | (capabilities.attributeHook ? 16\n /* AttributeHook */\n : 0) | (capabilities.elementHook ? 32\n /* ElementHook */\n : 0) | (capabilities.dynamicScope ? 64\n /* DynamicScope */\n : 0) | (capabilities.createCaller ? 128\n /* CreateCaller */\n : 0) | (capabilities.updateHook ? 256\n /* UpdateHook */\n : 0) | (capabilities.createInstance ? 512\n /* CreateInstance */\n : 0);\n }\n\n function hasCapability(capabilities, capability) {\n return !!(capabilities & capability);\n }\n\n APPEND_OPCODES.add(69\n /* IsComponent */\n , vm => {\n let stack = vm.stack;\n let ref = stack.pop();\n stack.push(IsCurriedComponentDefinitionReference.create(ref));\n });\n APPEND_OPCODES.add(70\n /* ContentType */\n , vm => {\n let stack = vm.stack;\n let ref = stack.peek();\n stack.push(new ContentTypeReference(ref));\n });\n APPEND_OPCODES.add(71\n /* CurryComponent */\n , (vm, {\n op1: _meta\n }) => {\n let stack = vm.stack;\n let definition = stack.pop();\n let capturedArgs = stack.pop();\n let meta = vm.constants.getSerializable(_meta);\n let resolver = vm.constants.resolver;\n vm.loadValue(_vm2.Register.v0, new CurryComponentReference(definition, resolver, meta, capturedArgs)); // expectStackChange(vm.stack, -args.length - 1, 'CurryComponent');\n });\n APPEND_OPCODES.add(72\n /* PushComponentDefinition */\n , (vm, {\n op1: handle\n }) => {\n let definition = vm.constants.resolveHandle(handle);\n let {\n manager\n } = definition;\n let capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n let instance = {\n definition,\n manager,\n capabilities,\n state: null,\n handle: null,\n table: null,\n lookup: null\n };\n vm.stack.push(instance);\n });\n APPEND_OPCODES.add(75\n /* ResolveDynamicComponent */\n , (vm, {\n op1: _meta\n }) => {\n let stack = vm.stack;\n let component = stack.pop().value();\n let meta = vm.constants.getSerializable(_meta);\n vm.loadValue(_vm2.Register.t1, null); // Clear the temp register\n\n let definition;\n\n if (typeof component === 'string') {\n let {\n constants: {\n resolver\n }\n } = vm;\n let resolvedDefinition = resolveComponent(resolver, component, meta);\n definition = resolvedDefinition;\n } else if (isCurriedComponentDefinition(component)) {\n definition = component;\n } else {\n throw (0, _util.unreachable)();\n }\n\n stack.push(definition);\n });\n APPEND_OPCODES.add(73\n /* PushDynamicComponentInstance */\n , vm => {\n let {\n stack\n } = vm;\n let definition = stack.pop();\n let capabilities, manager;\n\n if (isCurriedComponentDefinition(definition)) {\n manager = capabilities = null;\n } else {\n manager = definition.manager;\n capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n }\n\n stack.push({\n definition,\n capabilities,\n manager,\n state: null,\n handle: null,\n table: null\n });\n });\n APPEND_OPCODES.add(74\n /* PushCurriedComponent */\n , (vm, {}) => {\n let stack = vm.stack;\n let component = stack.pop().value();\n let definition;\n\n if (isCurriedComponentDefinition(component)) {\n definition = component;\n } else {\n throw (0, _util.unreachable)();\n }\n\n stack.push(definition);\n });\n APPEND_OPCODES.add(76\n /* PushArgs */\n , (vm, {\n op1: _names,\n op2: flags\n }) => {\n let stack = vm.stack;\n let names = vm.constants.getStringArray(_names);\n let positionalCount = flags >> 4;\n let synthetic = flags & 0b1000;\n let blockNames = [];\n if (flags & 0b0100) blockNames.push('main');\n if (flags & 0b0010) blockNames.push('else');\n if (flags & 0b0001) blockNames.push('attrs');\n vm.args.setup(stack, names, blockNames, positionalCount, !!synthetic);\n stack.push(vm.args);\n });\n APPEND_OPCODES.add(77\n /* PushEmptyArgs */\n , vm => {\n let {\n stack\n } = vm;\n stack.push(vm.args.empty(stack));\n });\n APPEND_OPCODES.add(80\n /* CaptureArgs */\n , vm => {\n let stack = vm.stack;\n let args = stack.pop();\n let capturedArgs = args.capture();\n stack.push(capturedArgs);\n });\n APPEND_OPCODES.add(79\n /* PrepareArgs */\n , (vm, {\n op1: _state\n }) => {\n let stack = vm.stack;\n let instance = vm.fetchValue(_state);\n let args = stack.pop();\n let {\n definition\n } = instance;\n\n if (isCurriedComponentDefinition(definition)) {\n definition = resolveCurriedComponentDefinition(instance, definition, args);\n }\n\n let {\n manager,\n state\n } = definition;\n let capabilities = instance.capabilities;\n\n if (hasCapability(capabilities, 4\n /* PrepareArgs */\n ) !== true) {\n stack.push(args);\n return;\n }\n\n let blocks = args.blocks.values;\n let blockNames = args.blocks.names;\n let preparedArgs = manager.prepareArgs(state, args);\n\n if (preparedArgs) {\n args.clear();\n\n for (let i = 0; i < blocks.length; i++) {\n stack.push(blocks[i]);\n }\n\n let {\n positional,\n named\n } = preparedArgs;\n let positionalCount = positional.length;\n\n for (let i = 0; i < positionalCount; i++) {\n stack.push(positional[i]);\n }\n\n let names = Object.keys(named);\n\n for (let i = 0; i < names.length; i++) {\n stack.push(named[names[i]]);\n }\n\n args.setup(stack, names, blockNames, positionalCount, true);\n }\n\n stack.push(args);\n });\n\n function resolveCurriedComponentDefinition(instance, definition, args) {\n let unwrappedDefinition = instance.definition = definition.unwrap(args);\n let {\n manager,\n state\n } = unwrappedDefinition;\n instance.manager = manager;\n instance.capabilities = capabilityFlagsFrom(manager.getCapabilities(state));\n return unwrappedDefinition;\n }\n\n APPEND_OPCODES.add(81\n /* CreateComponent */\n , (vm, {\n op1: flags,\n op2: _state\n }) => {\n let instance = vm.fetchValue(_state);\n let {\n definition,\n manager\n } = instance;\n let capabilities = instance.capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n let dynamicScope = null;\n\n if (hasCapability(capabilities, 64\n /* DynamicScope */\n )) {\n dynamicScope = vm.dynamicScope();\n }\n\n let hasDefaultBlock = flags & 1;\n let args = null;\n\n if (hasCapability(capabilities, 8\n /* CreateArgs */\n )) {\n args = vm.stack.peek();\n }\n\n let self = null;\n\n if (hasCapability(capabilities, 128\n /* CreateCaller */\n )) {\n self = vm.getSelf();\n }\n\n let state = manager.create(vm.env, definition.state, args, dynamicScope, self, !!hasDefaultBlock); // We want to reuse the `state` POJO here, because we know that the opcodes\n // only transition at exactly one place.\n\n instance.state = state;\n let tag = manager.getTag(state);\n\n if (hasCapability(capabilities, 256\n /* UpdateHook */\n ) && !(0, _reference.isConstTag)(tag)) {\n vm.updateWith(new UpdateComponentOpcode(tag, state, manager, dynamicScope));\n }\n });\n APPEND_OPCODES.add(82\n /* RegisterComponentDestructor */\n , (vm, {\n op1: _state\n }) => {\n let {\n manager,\n state\n } = vm.fetchValue(_state);\n let destructor = manager.getDestructor(state);\n if (destructor) vm.newDestroyable(destructor);\n });\n APPEND_OPCODES.add(91\n /* BeginComponentTransaction */\n , vm => {\n vm.beginCacheGroup();\n vm.elements().pushSimpleBlock();\n });\n APPEND_OPCODES.add(83\n /* PutComponentOperations */\n , vm => {\n vm.loadValue(_vm2.Register.t0, new ComponentElementOperations());\n });\n APPEND_OPCODES.add(37\n /* ComponentAttr */\n , (vm, {\n op1: _name,\n op2: trusting,\n op3: _namespace\n }) => {\n let name = vm.constants.getString(_name);\n let reference = vm.stack.pop();\n let namespace = _namespace ? vm.constants.getString(_namespace) : null;\n vm.fetchValue(_vm2.Register.t0).setAttribute(name, reference, !!trusting, namespace);\n });\n\n class ComponentElementOperations {\n constructor() {\n this.attributes = (0, _util.dict)();\n this.classes = [];\n }\n\n setAttribute(name, value, trusting, namespace) {\n let deferred = {\n value,\n namespace,\n trusting\n };\n\n if (name === 'class') {\n this.classes.push(value);\n }\n\n this.attributes[name] = deferred;\n }\n\n flush(vm) {\n for (let name in this.attributes) {\n let attr = this.attributes[name];\n let {\n value: reference,\n namespace,\n trusting\n } = attr;\n\n if (name === 'class') {\n reference = new ClassListReference(this.classes);\n }\n\n if (name === 'type') {\n continue;\n }\n\n let attribute = vm.elements().setDynamicAttribute(name, reference.value(), trusting, namespace);\n\n if (!(0, _reference.isConst)(reference)) {\n vm.updateWith(new UpdateDynamicAttributeOpcode(reference, attribute));\n }\n }\n\n if ('type' in this.attributes) {\n let type = this.attributes.type;\n let {\n value: reference,\n namespace,\n trusting\n } = type;\n let attribute = vm.elements().setDynamicAttribute('type', reference.value(), trusting, namespace);\n\n if (!(0, _reference.isConst)(reference)) {\n vm.updateWith(new UpdateDynamicAttributeOpcode(reference, attribute));\n }\n }\n }\n\n }\n\n APPEND_OPCODES.add(93\n /* DidCreateElement */\n , (vm, {\n op1: _state\n }) => {\n let {\n definition,\n state\n } = vm.fetchValue(_state);\n let {\n manager\n } = definition;\n let operations = vm.fetchValue(_vm2.Register.t0);\n let action = 'DidCreateElementOpcode#evaluate';\n manager.didCreateElement(state, vm.elements().expectConstructing(action), operations);\n });\n APPEND_OPCODES.add(84\n /* GetComponentSelf */\n , (vm, {\n op1: _state\n }) => {\n let {\n definition,\n state\n } = vm.fetchValue(_state);\n let {\n manager\n } = definition;\n vm.stack.push(manager.getSelf(state));\n });\n APPEND_OPCODES.add(85\n /* GetComponentTagName */\n , (vm, {\n op1: _state\n }) => {\n let {\n definition,\n state\n } = vm.fetchValue(_state);\n let {\n manager\n } = definition;\n vm.stack.push(manager.getTagName(state));\n }); // Dynamic Invocation Only\n\n APPEND_OPCODES.add(86\n /* GetComponentLayout */\n , (vm, {\n op1: _state\n }) => {\n let instance = vm.fetchValue(_state);\n let {\n manager,\n definition\n } = instance;\n let {\n constants: {\n resolver\n },\n stack\n } = vm;\n let {\n state: instanceState,\n capabilities\n } = instance;\n let {\n state: definitionState\n } = definition;\n let invoke;\n\n if (hasStaticLayoutCapability(capabilities, manager)) {\n invoke = manager.getLayout(definitionState, resolver);\n } else if (hasDynamicLayoutCapability(capabilities, manager)) {\n invoke = manager.getDynamicLayout(instanceState, resolver);\n } else {\n throw (0, _util.unreachable)();\n }\n\n stack.push(invoke.symbolTable);\n stack.push(invoke.handle);\n });\n\n function hasStaticLayoutCapability(capabilities, _manager) {\n return hasCapability(capabilities, 1\n /* DynamicLayout */\n ) === false;\n }\n\n function hasDynamicLayoutCapability(capabilities, _manager) {\n return hasCapability(capabilities, 1\n /* DynamicLayout */\n ) === true;\n }\n\n APPEND_OPCODES.add(68\n /* Main */\n , (vm, {\n op1: register\n }) => {\n let definition = vm.stack.pop();\n let invocation = vm.stack.pop();\n let {\n manager\n } = definition;\n let capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n let state = {\n definition,\n manager,\n capabilities,\n state: null,\n handle: invocation.handle,\n table: invocation.symbolTable,\n lookup: null\n };\n vm.loadValue(register, state);\n });\n APPEND_OPCODES.add(89\n /* PopulateLayout */\n , (vm, {\n op1: _state\n }) => {\n let {\n stack\n } = vm;\n let handle = stack.pop();\n let table = stack.pop();\n let state = vm.fetchValue(_state);\n state.handle = handle;\n state.table = table;\n });\n APPEND_OPCODES.add(21\n /* VirtualRootScope */\n , (vm, {\n op1: _state\n }) => {\n let {\n symbols\n } = vm.fetchValue(_state).table;\n vm.pushRootScope(symbols.length + 1, true);\n });\n APPEND_OPCODES.add(87\n /* SetupForEval */\n , (vm, {\n op1: _state\n }) => {\n let state = vm.fetchValue(_state);\n\n if (state.table.hasEval) {\n let lookup = state.lookup = (0, _util.dict)();\n vm.scope().bindEvalScope(lookup);\n }\n });\n APPEND_OPCODES.add(2\n /* SetNamedVariables */\n , (vm, {\n op1: _state\n }) => {\n let state = vm.fetchValue(_state);\n let scope = vm.scope();\n let args = vm.stack.peek();\n let callerNames = args.named.atNames;\n\n for (let i = callerNames.length - 1; i >= 0; i--) {\n let atName = callerNames[i];\n let symbol = state.table.symbols.indexOf(callerNames[i]);\n let value = args.named.get(atName, false);\n if (symbol !== -1) scope.bindSymbol(symbol + 1, value);\n if (state.lookup) state.lookup[atName] = value;\n }\n });\n\n function bindBlock(symbolName, blockName, state, blocks, vm) {\n let symbol = state.table.symbols.indexOf(symbolName);\n let block = blocks.get(blockName);\n\n if (symbol !== -1) {\n vm.scope().bindBlock(symbol + 1, block);\n }\n\n if (state.lookup) state.lookup[symbolName] = block;\n }\n\n APPEND_OPCODES.add(3\n /* SetBlocks */\n , (vm, {\n op1: _state\n }) => {\n let state = vm.fetchValue(_state);\n let {\n blocks\n } = vm.stack.peek();\n bindBlock('&attrs', 'attrs', state, blocks, vm);\n bindBlock('&inverse', 'else', state, blocks, vm);\n bindBlock('&default', 'main', state, blocks, vm);\n }); // Dynamic Invocation Only\n\n APPEND_OPCODES.add(90\n /* InvokeComponentLayout */\n , (vm, {\n op1: _state\n }) => {\n let state = vm.fetchValue(_state);\n vm.call(state.handle);\n });\n APPEND_OPCODES.add(94\n /* DidRenderLayout */\n , (vm, {\n op1: _state\n }) => {\n let {\n manager,\n state\n } = vm.fetchValue(_state);\n let bounds = vm.elements().popBlock();\n let mgr = manager;\n mgr.didRenderLayout(state, bounds);\n vm.env.didCreate(state, manager);\n vm.updateWith(new DidUpdateLayoutOpcode(manager, state, bounds));\n });\n APPEND_OPCODES.add(92\n /* CommitComponentTransaction */\n , vm => {\n vm.commitCacheGroup();\n });\n\n class UpdateComponentOpcode extends UpdatingOpcode {\n constructor(tag, component, manager, dynamicScope) {\n super();\n this.tag = tag;\n this.component = component;\n this.manager = manager;\n this.dynamicScope = dynamicScope;\n this.type = 'update-component';\n }\n\n evaluate(_vm) {\n let {\n component,\n manager,\n dynamicScope\n } = this;\n manager.update(component, dynamicScope);\n }\n\n }\n\n class DidUpdateLayoutOpcode extends UpdatingOpcode {\n constructor(manager, component, bounds) {\n super();\n this.manager = manager;\n this.component = component;\n this.bounds = bounds;\n this.type = 'did-update-layout';\n this.tag = _reference.CONSTANT_TAG;\n }\n\n evaluate(vm) {\n let {\n manager,\n component,\n bounds\n } = this;\n manager.didUpdateLayout(component, bounds);\n vm.env.didUpdate(component, manager);\n }\n\n }\n /* tslint:disable */\n\n\n function debugCallback(context, get) {\n console.info('Use `context`, and `get()` to debug this template.'); // for example...\n\n context === get('this');\n debugger;\n }\n /* tslint:enable */\n\n\n let callback = debugCallback; // For testing purposes\n\n function setDebuggerCallback(cb) {\n callback = cb;\n }\n\n function resetDebuggerCallback() {\n callback = debugCallback;\n }\n\n class ScopeInspector {\n constructor(scope, symbols, evalInfo) {\n this.scope = scope;\n this.locals = (0, _util.dict)();\n\n for (let i = 0; i < evalInfo.length; i++) {\n let slot = evalInfo[i];\n let name = symbols[slot - 1];\n let ref = scope.getSymbol(slot);\n this.locals[name] = ref;\n }\n }\n\n get(path) {\n let {\n scope,\n locals\n } = this;\n let parts = path.split('.');\n let [head, ...tail] = path.split('.');\n let evalScope = scope.getEvalScope();\n let ref;\n\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\n return tail.reduce((r, part) => r.get(part), ref);\n }\n\n }\n\n APPEND_OPCODES.add(97\n /* Debugger */\n , (vm, {\n op1: _symbols,\n op2: _evalInfo\n }) => {\n let symbols = vm.constants.getStringArray(_symbols);\n let evalInfo = vm.constants.getArray(_evalInfo);\n let inspector = new ScopeInspector(vm.scope(), symbols, evalInfo);\n callback(vm.getSelf().value(), path => inspector.get(path).value());\n });\n APPEND_OPCODES.add(95\n /* InvokePartial */\n , (vm, {\n op1: _meta,\n op2: _symbols,\n op3: _evalInfo\n }) => {\n let {\n constants,\n constants: {\n resolver\n },\n stack\n } = vm;\n let name = stack.pop().value();\n let meta = constants.getSerializable(_meta);\n let outerSymbols = constants.getStringArray(_symbols);\n let evalInfo = constants.getArray(_evalInfo);\n let handle = resolver.lookupPartial(name, meta);\n let definition = resolver.resolve(handle);\n let {\n symbolTable,\n handle: vmHandle\n } = definition.getPartial();\n {\n let partialSymbols = symbolTable.symbols;\n let outerScope = vm.scope();\n let partialScope = vm.pushRootScope(partialSymbols.length, false);\n let evalScope = outerScope.getEvalScope();\n partialScope.bindCallerScope(outerScope.getCallerScope());\n partialScope.bindEvalScope(evalScope);\n partialScope.bindSelf(outerScope.getSelf());\n let locals = Object.create(outerScope.getPartialMap());\n\n for (let i = 0; i < evalInfo.length; i++) {\n let slot = evalInfo[i];\n let name = outerSymbols[slot - 1];\n let ref = outerScope.getSymbol(slot);\n locals[name] = ref;\n }\n\n if (evalScope) {\n for (let i = 0; i < partialSymbols.length; i++) {\n let name = partialSymbols[i];\n let symbol = i + 1;\n let value = evalScope[name];\n if (value !== undefined) partialScope.bind(symbol, value);\n }\n }\n\n partialScope.bindPartialMap(locals);\n vm.pushFrame(); // sp += 2\n\n vm.call(vmHandle);\n }\n });\n\n class IterablePresenceReference {\n constructor(artifacts) {\n this.tag = artifacts.tag;\n this.artifacts = artifacts;\n }\n\n value() {\n return !this.artifacts.isEmpty();\n }\n\n }\n\n APPEND_OPCODES.add(66\n /* PutIterator */\n , vm => {\n let stack = vm.stack;\n let listRef = stack.pop();\n let key = stack.pop();\n let iterable = vm.env.iterableFor(listRef, key.value());\n let iterator = new _reference.ReferenceIterator(iterable);\n stack.push(iterator);\n stack.push(new IterablePresenceReference(iterator.artifacts));\n });\n APPEND_OPCODES.add(64\n /* EnterList */\n , (vm, {\n op1: relativeStart\n }) => {\n vm.enterList(relativeStart);\n });\n APPEND_OPCODES.add(65\n /* ExitList */\n , vm => {\n vm.exitList();\n });\n APPEND_OPCODES.add(67\n /* Iterate */\n , (vm, {\n op1: breaks\n }) => {\n let stack = vm.stack;\n let item = stack.peek().next();\n\n if (item) {\n let tryOpcode = vm.iterate(item.memo, item.value);\n vm.enterItem(item.key, tryOpcode);\n } else {\n vm.goto(breaks);\n }\n });\n\n class Cursor {\n constructor(element, nextSibling) {\n this.element = element;\n this.nextSibling = nextSibling;\n }\n\n }\n\n _exports.Cursor = Cursor;\n\n class ConcreteBounds {\n constructor(parentNode, first, last) {\n this.parentNode = parentNode;\n this.first = first;\n this.last = last;\n }\n\n parentElement() {\n return this.parentNode;\n }\n\n firstNode() {\n return this.first;\n }\n\n lastNode() {\n return this.last;\n }\n\n }\n\n _exports.ConcreteBounds = ConcreteBounds;\n\n class SingleNodeBounds {\n constructor(parentNode, node) {\n this.parentNode = parentNode;\n this.node = node;\n }\n\n parentElement() {\n return this.parentNode;\n }\n\n firstNode() {\n return this.node;\n }\n\n lastNode() {\n return this.node;\n }\n\n }\n\n function move(bounds, reference) {\n let parent = bounds.parentElement();\n let first = bounds.firstNode();\n let last = bounds.lastNode();\n let current = first;\n\n while (true) {\n let next = current.nextSibling;\n parent.insertBefore(current, reference);\n\n if (current === last) {\n return next;\n }\n\n current = next;\n }\n }\n\n function clear(bounds) {\n let parent = bounds.parentElement();\n let first = bounds.firstNode();\n let last = bounds.lastNode();\n let current = first;\n\n while (true) {\n let next = current.nextSibling;\n parent.removeChild(current);\n\n if (current === last) {\n return next;\n }\n\n current = next;\n }\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\n\n function applySVGInnerHTMLFix(document, DOMClass, svgNamespace) {\n if (!document) return DOMClass;\n\n if (!shouldApplyFix(document, svgNamespace)) {\n return DOMClass;\n }\n\n let div = document.createElement('div');\n return class DOMChangesWithSVGInnerHTMLFix extends DOMClass {\n insertHTMLBefore(parent, nextSibling, html) {\n if (html === '') {\n return super.insertHTMLBefore(parent, nextSibling, html);\n }\n\n if (parent.namespaceURI !== svgNamespace) {\n return super.insertHTMLBefore(parent, nextSibling, html);\n }\n\n return fixSVG(parent, div, html, nextSibling);\n }\n\n };\n }\n\n function fixSVG(parent, div, html, reference) {\n let source; // This is important, because decendants of the integration\n // point are parsed in the HTML namespace\n\n if (parent.tagName.toUpperCase() === 'FOREIGNOBJECT') {\n // IE, Edge: also do not correctly support using `innerHTML` on SVG\n // namespaced elements. So here a wrapper is used.\n let wrappedHtml = '' + html + ' ';\n div.innerHTML = wrappedHtml;\n source = div.firstChild.firstChild;\n } else {\n // IE, Edge: also do not correctly support using `innerHTML` on SVG\n // namespaced elements. So here a wrapper is used.\n let wrappedHtml = '' + html + ' ';\n div.innerHTML = wrappedHtml;\n source = div.firstChild;\n }\n\n return moveNodesBefore(source, parent, reference);\n }\n\n function shouldApplyFix(document, svgNamespace) {\n let svg = document.createElementNS(svgNamespace, 'svg');\n\n try {\n svg['insertAdjacentHTML']('beforeend', ' ');\n } catch (e) {// 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) {\n // The test worked as expected, no fix required\n return false;\n }\n\n return true;\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 // Hello
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\n\n function applyTextNodeMergingFix(document, DOMClass) {\n if (!document) return DOMClass;\n\n if (!shouldApplyFix$1(document)) {\n return DOMClass;\n }\n\n return class DOMChangesWithTextNodeMergingFix extends DOMClass {\n constructor(document) {\n super(document);\n this.uselessComment = document.createComment('');\n }\n\n insertHTMLBefore(parent, nextSibling, html) {\n if (html === '') {\n return super.insertHTMLBefore(parent, nextSibling, html);\n }\n\n let didSetUselessComment = false;\n let nextPrevious = nextSibling ? nextSibling.previousSibling : parent.lastChild;\n\n if (nextPrevious && nextPrevious instanceof Text) {\n didSetUselessComment = true;\n parent.insertBefore(this.uselessComment, nextSibling);\n }\n\n let bounds = super.insertHTMLBefore(parent, nextSibling, html);\n\n if (didSetUselessComment) {\n parent.removeChild(this.uselessComment);\n }\n\n return bounds;\n }\n\n };\n }\n\n function shouldApplyFix$1(document) {\n let mergingTextDiv = document.createElement('div');\n mergingTextDiv.innerHTML = 'first';\n mergingTextDiv.insertAdjacentHTML('beforeend', 'second');\n\n if (mergingTextDiv.childNodes.length === 2) {\n // It worked as expected, no fix required\n return false;\n }\n\n return true;\n }\n\n const SVG_NAMESPACE = \"http://www.w3.org/2000/svg\"\n /* SVG */\n ; // http://www.w3.org/TR/html/syntax.html#html-integration-point\n\n _exports.SVG_NAMESPACE = SVG_NAMESPACE;\n const SVG_INTEGRATION_POINTS = {\n foreignObject: 1,\n desc: 1,\n 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\n const 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(tag => BLACKLIST_TABLE[tag] = 1);\n const WHITESPACE = /[\\t-\\r \\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]/;\n let doc = typeof document === 'undefined' ? null : document;\n\n function isWhitespace(string) {\n return WHITESPACE.test(string);\n }\n\n function moveNodesBefore(source, target, nextSibling) {\n let first = source.firstChild;\n let last = first;\n let current = first;\n\n while (current) {\n let next = current.nextSibling;\n target.insertBefore(current, nextSibling);\n last = current;\n current = next;\n }\n\n return new ConcreteBounds(target, first, last);\n }\n\n class DOMOperations {\n constructor(document) {\n this.document = document;\n this.setupUselessElement();\n } // split into seperate method so that NodeDOMTreeConstruction\n // can override it.\n\n\n setupUselessElement() {\n this.uselessElement = this.document.createElement('div');\n }\n\n createElement(tag, context) {\n let isElementInSVGNamespace, isHTMLIntegrationPoint;\n\n if (context) {\n isElementInSVGNamespace = context.namespaceURI === SVG_NAMESPACE || tag === 'svg';\n isHTMLIntegrationPoint = SVG_INTEGRATION_POINTS[context.tagName];\n } else {\n isElementInSVGNamespace = tag === 'svg';\n isHTMLIntegrationPoint = false;\n }\n\n if (isElementInSVGNamespace && !isHTMLIntegrationPoint) {\n // FIXME: This does not properly handle 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\n return this.document.createElementNS(SVG_NAMESPACE, tag);\n } else {\n return this.document.createElement(tag);\n }\n }\n\n insertBefore(parent, node, reference) {\n parent.insertBefore(node, reference);\n }\n\n insertHTMLBefore(parent, nextSibling, html) {\n if (html === '') {\n let comment = this.createComment('');\n parent.insertBefore(comment, nextSibling);\n return new ConcreteBounds(parent, comment, comment);\n }\n\n let prev = nextSibling ? nextSibling.previousSibling : parent.lastChild;\n let last;\n\n if (nextSibling === null) {\n parent.insertAdjacentHTML(\"beforeend\"\n /* beforeend */\n , html);\n last = parent.lastChild;\n } else if (nextSibling instanceof HTMLElement) {\n nextSibling.insertAdjacentHTML(\"beforebegin\"\n /* beforebegin */\n , 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 let {\n uselessElement\n } = this;\n parent.insertBefore(uselessElement, nextSibling);\n uselessElement.insertAdjacentHTML(\"beforebegin\"\n /* beforebegin */\n , html);\n last = uselessElement.previousSibling;\n parent.removeChild(uselessElement);\n }\n\n let first = prev ? prev.nextSibling : parent.firstChild;\n return new ConcreteBounds(parent, first, last);\n }\n\n createTextNode(text) {\n return this.document.createTextNode(text);\n }\n\n createComment(data) {\n return this.document.createComment(data);\n }\n\n }\n\n var DOM;\n\n (function (DOM) {\n class TreeConstruction extends DOMOperations {\n createElementNS(namespace, tag) {\n return this.document.createElementNS(namespace, tag);\n }\n\n setAttribute(element, name, value, namespace = null) {\n if (namespace) {\n element.setAttributeNS(namespace, name, value);\n } else {\n element.setAttribute(name, value);\n }\n }\n\n }\n\n DOM.TreeConstruction = TreeConstruction;\n let appliedTreeContruction = TreeConstruction;\n appliedTreeContruction = applyTextNodeMergingFix(doc, appliedTreeContruction);\n appliedTreeContruction = applySVGInnerHTMLFix(doc, appliedTreeContruction, SVG_NAMESPACE);\n DOM.DOMTreeConstruction = appliedTreeContruction;\n })(DOM || (DOM = {}));\n\n class DOMChanges extends DOMOperations {\n constructor(document) {\n super(document);\n this.document = document;\n this.namespace = null;\n }\n\n setAttribute(element, name, value) {\n element.setAttribute(name, value);\n }\n\n removeAttribute(element, name) {\n element.removeAttribute(name);\n }\n\n insertAfter(element, node, reference) {\n this.insertBefore(element, node, reference.nextSibling);\n }\n\n }\n\n _exports.IDOMChanges = DOMChanges;\n let helper = DOMChanges;\n helper = applyTextNodeMergingFix(doc, helper);\n helper = applySVGInnerHTMLFix(doc, helper, SVG_NAMESPACE);\n var helper$1 = helper;\n _exports.DOMChanges = helper$1;\n const DOMTreeConstruction = DOM.DOMTreeConstruction;\n _exports.DOMTreeConstruction = DOMTreeConstruction;\n const badProtocols = ['javascript:', 'vbscript:'];\n const badTags = ['A', 'BODY', 'LINK', 'IMG', 'IFRAME', 'BASE', 'FORM'];\n const badTagsForDataURI = ['EMBED'];\n const badAttributes = ['href', 'src', 'background', 'action'];\n const badAttributesForDataURI = ['src'];\n\n function has(array, item) {\n return array.indexOf(item) !== -1;\n }\n\n function checkURI(tagName, attribute) {\n return (tagName === null || has(badTags, tagName)) && has(badAttributes, attribute);\n }\n\n function checkDataURI(tagName, attribute) {\n if (tagName === null) return false;\n return has(badTagsForDataURI, tagName) && has(badAttributesForDataURI, attribute);\n }\n\n function requiresSanitization(tagName, attribute) {\n return checkURI(tagName, attribute) || checkDataURI(tagName, attribute);\n }\n\n function sanitizeAttributeValue(env, element, attribute, value) {\n let tagName = null;\n\n if (value === null || value === undefined) {\n return value;\n }\n\n if (isSafeString(value)) {\n return value.toHTML();\n }\n\n if (!element) {\n tagName = null;\n } else {\n tagName = element.tagName.toUpperCase();\n }\n\n let str = normalizeStringValue(value);\n\n if (checkURI(tagName, attribute)) {\n let protocol = env.protocolForURL(str);\n\n if (has(badProtocols, protocol)) {\n return \"unsafe:\" + str;\n }\n }\n\n if (checkDataURI(tagName, attribute)) {\n return \"unsafe:\" + str;\n }\n\n return str;\n }\n /*\n * @method normalizeProperty\n * @param element {HTMLElement}\n * @param slotName {String}\n * @returns {Object} { name, type }\n */\n\n\n function normalizeProperty(element, slotName) {\n let type, normalized;\n\n if (slotName in element) {\n normalized = slotName;\n type = 'prop';\n } else {\n let lower = slotName.toLowerCase();\n\n if (lower in element) {\n type = 'prop';\n normalized = lower;\n } else {\n type = 'attr';\n normalized = slotName;\n }\n }\n\n if (type === 'prop' && (normalized.toLowerCase() === 'style' || preferAttr(element.tagName, normalized))) {\n type = 'attr';\n }\n\n return {\n normalized,\n type\n };\n } // properties that MUST be set as attributes, due to:\n // * browser bug\n // * strange spec outlier\n\n\n const ATTR_OVERRIDES = {\n INPUT: {\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: {\n form: true\n },\n OPTION: {\n form: true\n },\n TEXTAREA: {\n form: true\n },\n LABEL: {\n form: true\n },\n FIELDSET: {\n form: true\n },\n LEGEND: {\n form: true\n },\n OBJECT: {\n form: true\n },\n BUTTON: {\n form: true\n }\n };\n\n function preferAttr(tagName, propName) {\n let tag = ATTR_OVERRIDES[tagName.toUpperCase()];\n return tag && tag[propName.toLowerCase()] || false;\n }\n\n function dynamicAttribute(element, attr, namespace) {\n let {\n tagName,\n namespaceURI\n } = element;\n let attribute = {\n element,\n name: attr,\n namespace\n };\n\n if (namespaceURI === SVG_NAMESPACE) {\n return buildDynamicAttribute(tagName, attr, attribute);\n }\n\n let {\n type,\n normalized\n } = normalizeProperty(element, attr);\n\n if (type === 'attr') {\n return buildDynamicAttribute(tagName, normalized, attribute);\n } else {\n return buildDynamicProperty(tagName, normalized, attribute);\n }\n }\n\n function buildDynamicAttribute(tagName, name, attribute) {\n if (requiresSanitization(tagName, name)) {\n return new SafeDynamicAttribute(attribute);\n } else {\n return new SimpleDynamicAttribute(attribute);\n }\n }\n\n function buildDynamicProperty(tagName, name, attribute) {\n if (requiresSanitization(tagName, name)) {\n return new SafeDynamicProperty(name, attribute);\n }\n\n if (isUserInputValue(tagName, name)) {\n return new InputValueDynamicAttribute(name, attribute);\n }\n\n if (isOptionSelected(tagName, name)) {\n return new OptionSelectedDynamicAttribute(name, attribute);\n }\n\n return new DefaultDynamicProperty(name, attribute);\n }\n\n class DynamicAttribute {\n constructor(attribute) {\n this.attribute = attribute;\n }\n\n }\n\n _exports.DynamicAttribute = DynamicAttribute;\n\n class SimpleDynamicAttribute extends DynamicAttribute {\n set(dom, value, _env) {\n let normalizedValue = normalizeValue(value);\n\n if (normalizedValue !== null) {\n let {\n name,\n namespace\n } = this.attribute;\n\n dom.__setAttribute(name, normalizedValue, namespace);\n }\n }\n\n update(value, _env) {\n let normalizedValue = normalizeValue(value);\n let {\n element,\n name\n } = this.attribute;\n\n if (normalizedValue === null) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, normalizedValue);\n }\n }\n\n }\n\n _exports.SimpleDynamicAttribute = SimpleDynamicAttribute;\n\n class DefaultDynamicProperty extends DynamicAttribute {\n constructor(normalizedName, attribute) {\n super(attribute);\n this.normalizedName = normalizedName;\n }\n\n set(dom, value, _env) {\n if (value !== null && value !== undefined) {\n this.value = value;\n\n dom.__setProperty(this.normalizedName, value);\n }\n }\n\n update(value, _env) {\n let {\n element\n } = this.attribute;\n\n if (this.value !== value) {\n element[this.normalizedName] = this.value = value;\n\n if (value === null || value === undefined) {\n this.removeAttribute();\n }\n }\n }\n\n removeAttribute() {\n // TODO this sucks but to preserve properties first and to meet current\n // semantics we must do this.\n let {\n element,\n namespace\n } = this.attribute;\n\n if (namespace) {\n element.removeAttributeNS(namespace, this.normalizedName);\n } else {\n element.removeAttribute(this.normalizedName);\n }\n }\n\n }\n\n class SafeDynamicProperty extends DefaultDynamicProperty {\n set(dom, value, env) {\n let {\n element,\n name\n } = this.attribute;\n let sanitized = sanitizeAttributeValue(env, element, name, value);\n super.set(dom, sanitized, env);\n }\n\n update(value, env) {\n let {\n element,\n name\n } = this.attribute;\n let sanitized = sanitizeAttributeValue(env, element, name, value);\n super.update(sanitized, env);\n }\n\n }\n\n class SafeDynamicAttribute extends SimpleDynamicAttribute {\n set(dom, value, env) {\n let {\n element,\n name\n } = this.attribute;\n let sanitized = sanitizeAttributeValue(env, element, name, value);\n super.set(dom, sanitized, env);\n }\n\n update(value, env) {\n let {\n element,\n name\n } = this.attribute;\n let sanitized = sanitizeAttributeValue(env, element, name, value);\n super.update(sanitized, env);\n }\n\n }\n\n class InputValueDynamicAttribute extends DefaultDynamicProperty {\n set(dom, value) {\n dom.__setProperty('value', normalizeStringValue(value));\n }\n\n update(value) {\n let input = this.attribute.element;\n let currentValue = input.value;\n let normalizedValue = normalizeStringValue(value);\n\n if (currentValue !== normalizedValue) {\n input.value = normalizedValue;\n }\n }\n\n }\n\n class OptionSelectedDynamicAttribute extends DefaultDynamicProperty {\n set(dom, value) {\n if (value !== null && value !== undefined && value !== false) {\n dom.__setProperty('selected', true);\n }\n }\n\n update(value) {\n let option = this.attribute.element;\n\n if (value) {\n option.selected = true;\n } else {\n option.selected = false;\n }\n }\n\n }\n\n function isOptionSelected(tagName, attribute) {\n return tagName === 'OPTION' && attribute === 'selected';\n }\n\n function isUserInputValue(tagName, attribute) {\n return (tagName === 'INPUT' || tagName === 'TEXTAREA') && attribute === 'value';\n }\n\n function normalizeValue(value) {\n if (value === false || value === undefined || value === null || typeof value.toString === 'undefined') {\n return null;\n }\n\n if (value === true) {\n return '';\n } // onclick function etc in SSR\n\n\n if (typeof value === 'function') {\n return null;\n }\n\n return String(value);\n }\n\n class Scope {\n constructor( // the 0th slot is `self`\n slots, callerScope, // named arguments and blocks passed to a layout that uses eval\n evalScope, // locals in scope when the partial was invoked\n partialMap) {\n this.slots = slots;\n this.callerScope = callerScope;\n this.evalScope = evalScope;\n this.partialMap = partialMap;\n }\n\n static root(self, size = 0) {\n let refs = new Array(size + 1);\n\n for (let i = 0; i <= size; i++) {\n refs[i] = UNDEFINED_REFERENCE;\n }\n\n return new Scope(refs, null, null, null).init({\n self\n });\n }\n\n static sized(size = 0) {\n let refs = new Array(size + 1);\n\n for (let i = 0; i <= size; i++) {\n refs[i] = UNDEFINED_REFERENCE;\n }\n\n return new Scope(refs, null, null, null);\n }\n\n init({\n self\n }) {\n this.slots[0] = self;\n return this;\n }\n\n getSelf() {\n return this.get(0);\n }\n\n getSymbol(symbol) {\n return this.get(symbol);\n }\n\n getBlock(symbol) {\n let block = this.get(symbol);\n return block === UNDEFINED_REFERENCE ? null : block;\n }\n\n getEvalScope() {\n return this.evalScope;\n }\n\n getPartialMap() {\n return this.partialMap;\n }\n\n bind(symbol, value) {\n this.set(symbol, value);\n }\n\n bindSelf(self) {\n this.set(0, self);\n }\n\n bindSymbol(symbol, value) {\n this.set(symbol, value);\n }\n\n bindBlock(symbol, value) {\n this.set(symbol, value);\n }\n\n bindEvalScope(map) {\n this.evalScope = map;\n }\n\n bindPartialMap(map) {\n this.partialMap = map;\n }\n\n bindCallerScope(scope) {\n this.callerScope = scope;\n }\n\n getCallerScope() {\n return this.callerScope;\n }\n\n child() {\n return new Scope(this.slots.slice(), this.callerScope, this.evalScope, this.partialMap);\n }\n\n get(index) {\n if (index >= this.slots.length) {\n throw new RangeError(\"BUG: cannot get $\" + index + \" from scope; length=\" + this.slots.length);\n }\n\n return this.slots[index];\n }\n\n 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\n this.slots[index] = value;\n }\n\n }\n\n _exports.Scope = Scope;\n\n class Transaction {\n constructor() {\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 didCreate(component, manager) {\n this.createdComponents.push(component);\n this.createdManagers.push(manager);\n }\n\n didUpdate(component, manager) {\n this.updatedComponents.push(component);\n this.updatedManagers.push(manager);\n }\n\n scheduleInstallModifier(modifier, manager) {\n this.scheduledInstallManagers.push(manager);\n this.scheduledInstallModifiers.push(modifier);\n }\n\n scheduleUpdateModifier(modifier, manager) {\n this.scheduledUpdateModifierManagers.push(manager);\n this.scheduledUpdateModifiers.push(modifier);\n }\n\n didDestroy(d) {\n this.destructors.push(d);\n }\n\n commit() {\n let {\n createdComponents,\n createdManagers\n } = this;\n\n for (let i = 0; i < createdComponents.length; i++) {\n let component = createdComponents[i];\n let manager = createdManagers[i];\n manager.didCreate(component);\n }\n\n let {\n updatedComponents,\n updatedManagers\n } = this;\n\n for (let i = 0; i < updatedComponents.length; i++) {\n let component = updatedComponents[i];\n let manager = updatedManagers[i];\n manager.didUpdate(component);\n }\n\n let {\n destructors\n } = this;\n\n for (let i = 0; i < destructors.length; i++) {\n destructors[i].destroy();\n }\n\n let {\n scheduledInstallManagers,\n scheduledInstallModifiers\n } = this;\n\n for (let i = 0; i < scheduledInstallManagers.length; i++) {\n let manager = scheduledInstallManagers[i];\n let modifier = scheduledInstallModifiers[i];\n manager.install(modifier);\n }\n\n let {\n scheduledUpdateModifierManagers,\n scheduledUpdateModifiers\n } = this;\n\n for (let i = 0; i < scheduledUpdateModifierManagers.length; i++) {\n let manager = scheduledUpdateModifierManagers[i];\n let modifier = scheduledUpdateModifiers[i];\n manager.update(modifier);\n }\n }\n\n }\n\n class Environment {\n constructor({\n appendOperations,\n updateOperations\n }) {\n this._transaction = null;\n this.appendOperations = appendOperations;\n this.updateOperations = updateOperations;\n }\n\n toConditionalReference(reference) {\n return new ConditionalReference(reference);\n }\n\n getAppendOperations() {\n return this.appendOperations;\n }\n\n getDOM() {\n return this.updateOperations;\n }\n\n begin() {\n this._transaction = new Transaction();\n }\n\n get transaction() {\n return this._transaction;\n }\n\n didCreate(component, manager) {\n this.transaction.didCreate(component, manager);\n }\n\n didUpdate(component, manager) {\n this.transaction.didUpdate(component, manager);\n }\n\n scheduleInstallModifier(modifier, manager) {\n this.transaction.scheduleInstallModifier(modifier, manager);\n }\n\n scheduleUpdateModifier(modifier, manager) {\n this.transaction.scheduleUpdateModifier(modifier, manager);\n }\n\n didDestroy(d) {\n this.transaction.didDestroy(d);\n }\n\n commit() {\n let transaction = this.transaction;\n this._transaction = null;\n transaction.commit();\n }\n\n attributeFor(element, attr, _isTrusting, namespace = null) {\n return dynamicAttribute(element, attr, namespace);\n }\n\n }\n\n _exports.Environment = Environment;\n\n class DefaultEnvironment extends Environment {\n constructor(options) {\n if (!options) {\n let document = window.document;\n let appendOperations = new DOMTreeConstruction(document);\n let updateOperations = new DOMChanges(document);\n options = {\n appendOperations,\n updateOperations\n };\n }\n\n super(options);\n }\n\n }\n\n _exports.DefaultEnvironment = DefaultEnvironment;\n\n class LowLevelVM {\n constructor(stack, heap, program, externs, pc = -1, ra = -1) {\n this.stack = stack;\n this.heap = heap;\n this.program = program;\n this.externs = externs;\n this.pc = pc;\n this.ra = ra;\n this.currentOpSize = 0;\n } // Start a new frame and save $ra and $fp on the stack\n\n\n pushFrame() {\n this.stack.push(this.ra);\n this.stack.push(this.stack.fp);\n this.stack.fp = this.stack.sp - 1;\n } // Restore $ra, $sp and $fp\n\n\n popFrame() {\n this.stack.sp = this.stack.fp - 1;\n this.ra = this.stack.get(0);\n this.stack.fp = this.stack.get(1);\n }\n\n pushSmallFrame() {\n this.stack.push(this.ra);\n }\n\n popSmallFrame() {\n this.ra = this.stack.popSmi();\n } // Jump to an address in `program`\n\n\n goto(offset) {\n let addr = this.pc + offset - this.currentOpSize;\n this.pc = addr;\n } // Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\n\n\n call(handle) {\n this.ra = this.pc;\n this.pc = this.heap.getaddr(handle);\n } // Put a specific `program` address in $ra\n\n\n returnTo(offset) {\n let addr = this.pc + offset - this.currentOpSize;\n this.ra = addr;\n } // Return to the `program` address stored in $ra\n\n\n return() {\n this.pc = this.ra;\n }\n\n nextStatement() {\n let {\n pc,\n program\n } = this;\n\n if (pc === -1) {\n return null;\n } // We have to save off the current operations size so that\n // when we do a jump we can calculate the correct offset\n // to where we are going. We can't simply ask for the size\n // in a jump because we have have already incremented the\n // program counter to the next instruction prior to executing.\n\n\n let {\n size\n } = this.program.opcode(pc);\n let operationSize = this.currentOpSize = size;\n this.pc += operationSize;\n return program.opcode(pc);\n }\n\n evaluateOuter(opcode, vm) {\n {\n this.evaluateInner(opcode, vm);\n }\n }\n\n evaluateInner(opcode, vm) {\n if (opcode.isMachine) {\n this.evaluateMachine(opcode);\n } else {\n this.evaluateSyscall(opcode, vm);\n }\n }\n\n evaluateMachine(opcode) {\n switch (opcode.type) {\n case 57\n /* PushFrame */\n :\n return this.pushFrame();\n\n case 58\n /* PopFrame */\n :\n return this.popFrame();\n\n case 59\n /* PushSmallFrame */\n :\n return this.pushSmallFrame();\n\n case 60\n /* PopSmallFrame */\n :\n return this.popSmallFrame();\n\n case 50\n /* InvokeStatic */\n :\n return this.call(opcode.op1);\n\n case 49\n /* InvokeVirtual */\n :\n return this.call(this.stack.popSmi());\n\n case 52\n /* Jump */\n :\n return this.goto(opcode.op1);\n\n case 24\n /* Return */\n :\n return this.return();\n\n case 25\n /* ReturnTo */\n :\n return this.returnTo(opcode.op1);\n }\n }\n\n evaluateSyscall(opcode, vm) {\n APPEND_OPCODES.evaluate(vm, opcode, opcode.type);\n }\n\n }\n\n class First {\n constructor(node) {\n this.node = node;\n }\n\n firstNode() {\n return this.node;\n }\n\n }\n\n class Last {\n constructor(node) {\n this.node = node;\n }\n\n lastNode() {\n return this.node;\n }\n\n }\n\n class NewElementBuilder {\n constructor(env, parentNode, nextSibling) {\n this.constructing = null;\n this.operations = null;\n this.cursorStack = new _util.Stack();\n this.blockStack = new _util.Stack();\n this.pushElement(parentNode, nextSibling);\n this.env = env;\n this.dom = env.getAppendOperations();\n this.updateOperations = env.getDOM();\n }\n\n static forInitialRender(env, cursor) {\n let builder = new this(env, cursor.element, cursor.nextSibling);\n builder.pushSimpleBlock();\n return builder;\n }\n\n static resume(env, tracker, nextSibling) {\n let parentNode = tracker.parentElement();\n let stack = new this(env, parentNode, nextSibling);\n stack.pushSimpleBlock();\n stack.pushBlockTracker(tracker);\n return stack;\n }\n\n get element() {\n return this.cursorStack.current.element;\n }\n\n get nextSibling() {\n return this.cursorStack.current.nextSibling;\n }\n\n expectConstructing(method) {\n return this.constructing;\n }\n\n block() {\n return this.blockStack.current;\n }\n\n popElement() {\n this.cursorStack.pop();\n this.cursorStack.current;\n }\n\n pushSimpleBlock() {\n return this.pushBlockTracker(new SimpleBlockTracker(this.element));\n }\n\n pushUpdatableBlock() {\n return this.pushBlockTracker(new UpdatableBlockTracker(this.element));\n }\n\n pushBlockList(list) {\n return this.pushBlockTracker(new BlockListTracker(this.element, list));\n }\n\n pushBlockTracker(tracker, isRemote = false) {\n let current = this.blockStack.current;\n\n if (current !== null) {\n current.newDestroyable(tracker);\n\n if (!isRemote) {\n current.didAppendBounds(tracker);\n }\n }\n\n this.__openBlock();\n\n this.blockStack.push(tracker);\n return tracker;\n }\n\n popBlock() {\n this.block().finalize(this);\n\n this.__closeBlock();\n\n return this.blockStack.pop();\n }\n\n __openBlock() {}\n\n __closeBlock() {} // todo return seems unused\n\n\n openElement(tag) {\n let element = this.__openElement(tag);\n\n this.constructing = element;\n return element;\n }\n\n __openElement(tag) {\n return this.dom.createElement(tag, this.element);\n }\n\n flushElement() {\n let parent = this.element;\n let element = this.constructing;\n\n this.__flushElement(parent, element);\n\n this.constructing = null;\n this.operations = null;\n this.pushElement(element, null);\n this.didOpenElement(element);\n }\n\n __flushElement(parent, constructing) {\n this.dom.insertBefore(parent, constructing, this.nextSibling);\n }\n\n closeElement() {\n this.willCloseElement();\n this.popElement();\n }\n\n pushRemoteElement(element, guid, nextSibling = null) {\n this.__pushRemoteElement(element, guid, nextSibling);\n }\n\n __pushRemoteElement(element, _guid, nextSibling) {\n this.pushElement(element, nextSibling);\n let tracker = new RemoteBlockTracker(element);\n this.pushBlockTracker(tracker, true);\n }\n\n popRemoteElement() {\n this.popBlock();\n this.popElement();\n }\n\n pushElement(element, nextSibling) {\n this.cursorStack.push(new Cursor(element, nextSibling));\n }\n\n didAddDestroyable(d) {\n this.block().newDestroyable(d);\n }\n\n didAppendBounds(bounds) {\n this.block().didAppendBounds(bounds);\n return bounds;\n }\n\n didAppendNode(node) {\n this.block().didAppendNode(node);\n return node;\n }\n\n didOpenElement(element) {\n this.block().openElement(element);\n return element;\n }\n\n willCloseElement() {\n this.block().closeElement();\n }\n\n appendText(string) {\n return this.didAppendNode(this.__appendText(string));\n }\n\n __appendText(text) {\n let {\n dom,\n element,\n nextSibling\n } = this;\n let node = dom.createTextNode(text);\n dom.insertBefore(element, node, nextSibling);\n return node;\n }\n\n __appendNode(node) {\n this.dom.insertBefore(this.element, node, this.nextSibling);\n return node;\n }\n\n __appendFragment(fragment) {\n let first = fragment.firstChild;\n\n if (first) {\n let ret = new ConcreteBounds(this.element, first, fragment.lastChild);\n this.dom.insertBefore(this.element, fragment, this.nextSibling);\n return ret;\n } else {\n return new SingleNodeBounds(this.element, this.__appendComment(''));\n }\n }\n\n __appendHTML(html) {\n return this.dom.insertHTMLBefore(this.element, this.nextSibling, html);\n }\n\n appendDynamicHTML(value) {\n let bounds = this.trustedContent(value);\n this.didAppendBounds(bounds);\n }\n\n appendDynamicText(value) {\n let node = this.untrustedContent(value);\n this.didAppendNode(node);\n return node;\n }\n\n appendDynamicFragment(value) {\n let bounds = this.__appendFragment(value);\n\n this.didAppendBounds(bounds);\n }\n\n appendDynamicNode(value) {\n let node = this.__appendNode(value);\n\n let bounds = new SingleNodeBounds(this.element, node);\n this.didAppendBounds(bounds);\n }\n\n trustedContent(value) {\n return this.__appendHTML(value);\n }\n\n untrustedContent(value) {\n return this.__appendText(value);\n }\n\n appendComment(string) {\n return this.didAppendNode(this.__appendComment(string));\n }\n\n __appendComment(string) {\n let {\n dom,\n element,\n nextSibling\n } = this;\n let node = dom.createComment(string);\n dom.insertBefore(element, node, nextSibling);\n return node;\n }\n\n __setAttribute(name, value, namespace) {\n this.dom.setAttribute(this.constructing, name, value, namespace);\n }\n\n __setProperty(name, value) {\n this.constructing[name] = value;\n }\n\n setStaticAttribute(name, value, namespace) {\n this.__setAttribute(name, value, namespace);\n }\n\n setDynamicAttribute(name, value, trusting, namespace) {\n let element = this.constructing;\n let attribute = this.env.attributeFor(element, name, trusting, namespace);\n attribute.set(this, value, this.env);\n return attribute;\n }\n\n }\n\n _exports.NewElementBuilder = NewElementBuilder;\n\n class SimpleBlockTracker {\n constructor(parent) {\n this.parent = parent;\n this.first = null;\n this.last = null;\n this.destroyables = null;\n this.nesting = 0;\n }\n\n destroy() {\n let {\n destroyables\n } = this;\n\n if (destroyables && destroyables.length) {\n for (let i = 0; i < destroyables.length; i++) {\n destroyables[i].destroy();\n }\n }\n }\n\n parentElement() {\n return this.parent;\n }\n\n firstNode() {\n let first = this.first;\n return first.firstNode();\n }\n\n lastNode() {\n let last = this.last;\n return last.lastNode();\n }\n\n openElement(element) {\n this.didAppendNode(element);\n this.nesting++;\n }\n\n closeElement() {\n this.nesting--;\n }\n\n didAppendNode(node) {\n if (this.nesting !== 0) return;\n\n if (!this.first) {\n this.first = new First(node);\n }\n\n this.last = new Last(node);\n }\n\n didAppendBounds(bounds) {\n if (this.nesting !== 0) return;\n\n if (!this.first) {\n this.first = bounds;\n }\n\n this.last = bounds;\n }\n\n newDestroyable(d) {\n this.destroyables = this.destroyables || [];\n this.destroyables.push(d);\n }\n\n finalize(stack) {\n if (this.first === null) {\n stack.appendComment('');\n }\n }\n\n }\n\n class RemoteBlockTracker extends SimpleBlockTracker {\n destroy() {\n super.destroy();\n clear(this);\n }\n\n }\n\n class UpdatableBlockTracker extends SimpleBlockTracker {\n reset(env) {\n let {\n destroyables\n } = this;\n\n if (destroyables && destroyables.length) {\n for (let i = 0; i < destroyables.length; i++) {\n env.didDestroy(destroyables[i]);\n }\n }\n\n let 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 }\n\n class BlockListTracker {\n constructor(parent, boundList) {\n this.parent = parent;\n this.boundList = boundList;\n this.parent = parent;\n this.boundList = boundList;\n }\n\n destroy() {\n this.boundList.forEachNode(node => node.destroy());\n }\n\n parentElement() {\n return this.parent;\n }\n\n firstNode() {\n let head = this.boundList.head();\n return head.firstNode();\n }\n\n lastNode() {\n let tail = this.boundList.tail();\n return tail.lastNode();\n }\n\n openElement(_element) {}\n\n closeElement() {}\n\n didAppendNode(_node) {}\n\n didAppendBounds(_bounds) {}\n\n newDestroyable(_d) {}\n\n finalize(_stack) {}\n\n }\n\n function clientBuilder(env, cursor) {\n return NewElementBuilder.forInitialRender(env, cursor);\n }\n\n const MAX_SMI = 0xfffffff;\n\n class InnerStack {\n constructor(inner = new _lowLevel.Stack(), js = []) {\n this.inner = inner;\n this.js = js;\n }\n\n slice(start, end) {\n let inner;\n\n if (typeof start === 'number' && typeof end === 'number') {\n inner = this.inner.slice(start, end);\n } else if (typeof start === 'number' && end === undefined) {\n inner = this.inner.sliceFrom(start);\n } else {\n inner = this.inner.clone();\n }\n\n return new InnerStack(inner, this.js.slice(start, end));\n }\n\n sliceInner(start, end) {\n let out = [];\n\n for (let i = start; i < end; i++) {\n out.push(this.get(i));\n }\n\n return out;\n }\n\n copy(from, to) {\n this.inner.copy(from, to);\n }\n\n write(pos, value) {\n if (isImmediate(value)) {\n this.inner.writeRaw(pos, encodeImmediate(value));\n } else {\n let idx = this.js.length;\n this.js.push(value);\n this.inner.writeRaw(pos, ~idx);\n }\n }\n\n writeRaw(pos, value) {\n this.inner.writeRaw(pos, value);\n }\n\n get(pos) {\n let value = this.inner.getRaw(pos);\n\n if (value < 0) {\n return this.js[~value];\n } else {\n return decodeImmediate(value);\n }\n }\n\n reset() {\n this.inner.reset();\n this.js.length = 0;\n }\n\n get length() {\n return this.inner.len();\n }\n\n }\n\n class EvaluationStack {\n constructor(stack, fp, sp) {\n this.stack = stack;\n this.fp = fp;\n this.sp = sp;\n }\n\n static empty() {\n return new this(new InnerStack(), 0, -1);\n }\n\n static restore(snapshot) {\n let stack = new InnerStack();\n\n for (let i = 0; i < snapshot.length; i++) {\n stack.write(i, snapshot[i]);\n }\n\n return new this(stack, 0, snapshot.length - 1);\n }\n\n push(value) {\n this.stack.write(++this.sp, value);\n }\n\n pushEncodedImmediate(value) {\n this.stack.writeRaw(++this.sp, value);\n }\n\n pushNull() {\n this.stack.write(++this.sp, null);\n }\n\n dup(position = this.sp) {\n this.stack.copy(position, ++this.sp);\n }\n\n copy(from, to) {\n this.stack.copy(from, to);\n }\n\n pop(n = 1) {\n let top = this.stack.get(this.sp);\n this.sp -= n;\n return top;\n }\n\n popSmi() {\n return this.stack.get(this.sp--);\n }\n\n peek(offset = 0) {\n return this.stack.get(this.sp - offset);\n }\n\n get(offset, base = this.fp) {\n return this.stack.get(base + offset);\n }\n\n set(value, offset, base = this.fp) {\n this.stack.write(base + offset, value);\n }\n\n slice(start, end) {\n return this.stack.slice(start, end);\n }\n\n sliceArray(start, end) {\n return this.stack.sliceInner(start, end);\n }\n\n capture(items) {\n let end = this.sp + 1;\n let start = end - items;\n return this.stack.sliceInner(start, end);\n }\n\n reset() {\n this.stack.reset();\n }\n\n toArray() {\n return this.stack.sliceInner(this.fp, this.sp + 1);\n }\n\n }\n\n function isImmediate(value) {\n let type = typeof value;\n if (value === null || value === undefined) return true;\n\n switch (type) {\n case 'boolean':\n case 'undefined':\n return true;\n\n case 'number':\n // not an integer\n if (value % 1 !== 0) return false;\n let abs = Math.abs(value);\n if (abs > MAX_SMI) return false;\n return true;\n\n default:\n return false;\n }\n }\n\n function encodeSmi(primitive) {\n if (primitive < 0) {\n let abs = Math.abs(primitive);\n if (abs > MAX_SMI) throw new Error('not smi');\n return Math.abs(primitive) << 3 | 4\n /* NEGATIVE */\n ;\n } else {\n if (primitive > MAX_SMI) throw new Error('not smi');\n return primitive << 3 | 0\n /* NUMBER */\n ;\n }\n }\n\n function encodeImmediate(primitive) {\n switch (typeof primitive) {\n case 'number':\n return encodeSmi(primitive);\n\n case 'boolean':\n return primitive ? 11\n /* True */\n : 3\n /* False */\n ;\n\n case 'object':\n // assume null\n return 19\n /* Null */\n ;\n\n case 'undefined':\n return 27\n /* Undef */\n ;\n\n default:\n throw (0, _util.unreachable)();\n }\n }\n\n function decodeSmi(smi) {\n switch (smi & 0b111) {\n case 0\n /* NUMBER */\n :\n return smi >> 3;\n\n case 4\n /* NEGATIVE */\n :\n return -(smi >> 3);\n\n default:\n throw (0, _util.unreachable)();\n }\n }\n\n function decodeImmediate(immediate) {\n switch (immediate) {\n case 3\n /* False */\n :\n return false;\n\n case 11\n /* True */\n :\n return true;\n\n case 19\n /* Null */\n :\n return null;\n\n case 27\n /* Undef */\n :\n return undefined;\n\n default:\n return decodeSmi(immediate);\n }\n }\n\n class UpdatingVM {\n constructor(env, program, {\n alwaysRevalidate = false\n }) {\n this.frameStack = new _util.Stack();\n this.env = env;\n this.constants = program.constants;\n this.dom = env.getDOM();\n this.alwaysRevalidate = alwaysRevalidate;\n }\n\n execute(opcodes, handler) {\n let {\n frameStack\n } = this;\n this.try(opcodes, handler);\n\n while (true) {\n if (frameStack.isEmpty()) break;\n let opcode = this.frame.nextStatement();\n\n if (opcode === null) {\n this.frameStack.pop();\n continue;\n }\n\n opcode.evaluate(this);\n }\n }\n\n get frame() {\n return this.frameStack.current;\n }\n\n goto(op) {\n this.frame.goto(op);\n }\n\n try(ops, handler) {\n this.frameStack.push(new UpdatingVMFrame(ops, handler));\n }\n\n throw() {\n this.frame.handleException();\n this.frameStack.pop();\n }\n\n }\n\n _exports.UpdatingVM = UpdatingVM;\n\n class BlockOpcode extends UpdatingOpcode {\n constructor(start, state, runtime, bounds, children) {\n super();\n this.start = start;\n this.state = state;\n this.runtime = runtime;\n this.type = 'block';\n this.next = null;\n this.prev = null;\n this.children = children;\n this.bounds = bounds;\n }\n\n parentElement() {\n return this.bounds.parentElement();\n }\n\n firstNode() {\n return this.bounds.firstNode();\n }\n\n lastNode() {\n return this.bounds.lastNode();\n }\n\n evaluate(vm) {\n vm.try(this.children, null);\n }\n\n destroy() {\n this.bounds.destroy();\n }\n\n didDestroy() {\n this.runtime.env.didDestroy(this.bounds);\n }\n\n }\n\n class TryOpcode extends BlockOpcode {\n constructor(start, state, runtime, bounds, children) {\n super(start, state, runtime, bounds, children);\n this.type = 'try';\n this.tag = this._tag = _reference.UpdatableTag.create(_reference.CONSTANT_TAG);\n }\n\n didInitializeChildren() {\n this._tag.inner.update((0, _reference.combineSlice)(this.children));\n }\n\n evaluate(vm) {\n vm.try(this.children, this);\n }\n\n handleException() {\n let {\n state,\n bounds,\n children,\n start,\n prev,\n next,\n runtime\n } = this;\n children.clear();\n let elementStack = NewElementBuilder.resume(runtime.env, bounds, bounds.reset(runtime.env));\n let vm = VM.resume(state, runtime, elementStack);\n let updating = new _util.LinkedList();\n vm.execute(start, vm => {\n vm.stack = EvaluationStack.restore(state.stack);\n vm.updatingOpcodeStack.push(updating);\n vm.updateWith(this);\n vm.updatingOpcodeStack.push(children);\n });\n this.prev = prev;\n this.next = next;\n }\n\n }\n\n class ListRevalidationDelegate {\n constructor(opcode, marker) {\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 insert(key, item, memo, before) {\n let {\n map,\n opcode,\n updating\n } = this;\n let nextSibling = null;\n let reference = null;\n\n if (typeof before === 'string') {\n reference = map[before];\n nextSibling = reference['bounds'].firstNode();\n } else {\n nextSibling = this.marker;\n }\n\n let vm = opcode.vmForInsertion(nextSibling);\n let tryOpcode = null;\n let {\n start\n } = opcode;\n vm.execute(start, vm => {\n map[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 retain(_key, _item, _memo) {}\n\n move(key, _item, _memo, before) {\n let {\n map,\n updating\n } = this;\n let entry = map[key];\n let reference = map[before] || null;\n\n if (typeof before === 'string') {\n move(entry, reference.firstNode());\n } else {\n move(entry, this.marker);\n }\n\n updating.remove(entry);\n updating.insertBefore(entry, reference);\n }\n\n delete(key) {\n let {\n map\n } = this;\n let opcode = map[key];\n opcode.didDestroy();\n clear(opcode);\n this.updating.remove(opcode);\n delete map[key];\n this.didDelete = true;\n }\n\n done() {\n this.opcode.didInitializeChildren(this.didInsert || this.didDelete);\n }\n\n }\n\n class ListBlockOpcode extends BlockOpcode {\n constructor(start, state, runtime, bounds, children, artifacts) {\n super(start, state, runtime, bounds, children);\n this.type = 'list-block';\n this.map = (0, _util.dict)();\n this.lastIterated = _reference.INITIAL;\n this.artifacts = artifacts;\n\n let _tag = this._tag = _reference.UpdatableTag.create(_reference.CONSTANT_TAG);\n\n this.tag = (0, _reference.combine)([artifacts.tag, _tag]);\n }\n\n didInitializeChildren(listDidChange = true) {\n this.lastIterated = this.artifacts.tag.value();\n\n if (listDidChange) {\n this._tag.inner.update((0, _reference.combineSlice)(this.children));\n }\n }\n\n evaluate(vm) {\n let {\n artifacts,\n lastIterated\n } = this;\n\n if (!artifacts.tag.validate(lastIterated)) {\n let {\n bounds\n } = this;\n let {\n dom\n } = vm;\n let marker = dom.createComment('');\n dom.insertAfter(bounds.parentElement(), marker, bounds.lastNode());\n let target = new ListRevalidationDelegate(this, marker);\n let synchronizer = new _reference.IteratorSynchronizer({\n target,\n artifacts\n });\n synchronizer.sync();\n this.parentElement().removeChild(marker);\n } // Run now-updated updating opcodes\n\n\n super.evaluate(vm);\n }\n\n vmForInsertion(nextSibling) {\n let {\n bounds,\n state,\n runtime\n } = this;\n let elementStack = NewElementBuilder.forInitialRender(runtime.env, {\n element: bounds.parentElement(),\n nextSibling\n });\n return VM.resume(state, runtime, elementStack);\n }\n\n }\n\n class UpdatingVMFrame {\n constructor(ops, exceptionHandler) {\n this.ops = ops;\n this.exceptionHandler = exceptionHandler;\n this.current = ops.head();\n }\n\n goto(op) {\n this.current = op;\n }\n\n nextStatement() {\n let {\n current,\n ops\n } = this;\n if (current) this.current = ops.nextNode(current);\n return current;\n }\n\n handleException() {\n if (this.exceptionHandler) {\n this.exceptionHandler.handleException();\n }\n }\n\n }\n\n class RenderResult {\n constructor(env, program, updating, bounds) {\n this.env = env;\n this.program = program;\n this.updating = updating;\n this.bounds = bounds;\n }\n\n rerender({\n alwaysRevalidate = false\n } = {\n alwaysRevalidate: false\n }) {\n let {\n env,\n program,\n updating\n } = this;\n let vm = new UpdatingVM(env, program, {\n alwaysRevalidate\n });\n vm.execute(updating, this);\n }\n\n parentElement() {\n return this.bounds.parentElement();\n }\n\n firstNode() {\n return this.bounds.firstNode();\n }\n\n lastNode() {\n return this.bounds.lastNode();\n }\n\n handleException() {\n throw 'this should never happen';\n }\n\n destroy() {\n this.bounds.destroy();\n clear(this.bounds);\n }\n\n }\n\n _exports.RenderResult = RenderResult;\n\n class Arguments {\n constructor() {\n this.stack = null;\n this.positional = new PositionalArguments();\n this.named = new NamedArguments();\n this.blocks = new BlockArguments();\n }\n\n empty(stack) {\n let base = stack.sp + 1;\n this.named.empty(stack, base);\n this.positional.empty(stack, base);\n this.blocks.empty(stack, base);\n return this;\n }\n\n setup(stack, names, blockNames, positionalCount, synthetic) {\n this.stack = stack;\n /*\n | ... | blocks | positional | named |\n | ... | b0 b1 | p0 p1 p2 p3 | n0 n1 |\n index | ... | 4/5/6 7/8/9 | 10 11 12 13 | 14 15 |\n ^ ^ ^ ^\n bbase pbase nbase sp\n */\n\n let named = this.named;\n let namedCount = names.length;\n let namedBase = stack.sp - namedCount + 1;\n named.setup(stack, namedBase, namedCount, names, synthetic);\n let positional = this.positional;\n let positionalBase = namedBase - positionalCount;\n positional.setup(stack, positionalBase, positionalCount);\n let blocks = this.blocks;\n let blocksCount = blockNames.length;\n let blocksBase = positionalBase - blocksCount * 3;\n blocks.setup(stack, blocksBase, blocksCount, blockNames);\n }\n\n get tag() {\n return (0, _reference.combineTagged)([this.positional, this.named]);\n }\n\n get base() {\n return this.blocks.base;\n }\n\n get length() {\n return this.positional.length + this.named.length + this.blocks.length * 3;\n }\n\n at(pos) {\n return this.positional.at(pos);\n }\n\n realloc(offset) {\n let {\n stack\n } = this;\n\n if (offset > 0 && stack !== null) {\n let {\n positional,\n named\n } = this;\n let newBase = positional.base + offset;\n let length = positional.length + named.length;\n\n for (let i = length - 1; i >= 0; i--) {\n stack.copy(i + positional.base, i + newBase);\n }\n\n positional.base += offset;\n named.base += offset;\n stack.sp += offset;\n }\n }\n\n capture() {\n let positional = this.positional.length === 0 ? EMPTY_POSITIONAL : this.positional.capture();\n let named = this.named.length === 0 ? EMPTY_NAMED : this.named.capture();\n return new CapturedArguments(this.tag, positional, named, this.length);\n }\n\n clear() {\n let {\n stack,\n length\n } = this;\n if (length > 0 && stack !== null) stack.pop(length);\n }\n\n }\n\n class CapturedArguments {\n constructor(tag, positional, named, length) {\n this.tag = tag;\n this.positional = positional;\n this.named = named;\n this.length = length;\n }\n\n value() {\n return {\n named: this.named.value(),\n positional: this.positional.value()\n };\n }\n\n }\n\n class PositionalArguments {\n constructor() {\n this.base = 0;\n this.length = 0;\n this.stack = null;\n this._tag = null;\n this._references = null;\n }\n\n empty(stack, base) {\n this.stack = stack;\n this.base = base;\n this.length = 0;\n this._tag = _reference.CONSTANT_TAG;\n this._references = _util.EMPTY_ARRAY;\n }\n\n setup(stack, base, length) {\n this.stack = stack;\n this.base = base;\n this.length = length;\n\n if (length === 0) {\n this._tag = _reference.CONSTANT_TAG;\n this._references = _util.EMPTY_ARRAY;\n } else {\n this._tag = null;\n this._references = null;\n }\n }\n\n get tag() {\n let tag = this._tag;\n\n if (!tag) {\n tag = this._tag = (0, _reference.combineTagged)(this.references);\n }\n\n return tag;\n }\n\n at(position) {\n let {\n base,\n length,\n stack\n } = this;\n\n if (position < 0 || position >= length) {\n return UNDEFINED_REFERENCE;\n }\n\n return stack.get(position, base);\n }\n\n capture() {\n return new CapturedPositionalArguments(this.tag, this.references);\n }\n\n prepend(other) {\n let additions = other.length;\n\n if (additions > 0) {\n let {\n base,\n length,\n stack\n } = this;\n this.base = base = base - additions;\n this.length = length + additions;\n\n for (let i = 0; i < additions; i++) {\n stack.set(other.at(i), i, base);\n }\n\n this._tag = null;\n this._references = null;\n }\n }\n\n get references() {\n let references = this._references;\n\n if (!references) {\n let {\n stack,\n base,\n length\n } = this;\n references = this._references = stack.sliceArray(base, base + length);\n }\n\n return references;\n }\n\n }\n\n class CapturedPositionalArguments {\n constructor(tag, references, length = references.length) {\n this.tag = tag;\n this.references = references;\n this.length = length;\n }\n\n static empty() {\n return new CapturedPositionalArguments(_reference.CONSTANT_TAG, _util.EMPTY_ARRAY, 0);\n }\n\n at(position) {\n return this.references[position];\n }\n\n value() {\n return this.references.map(this.valueOf);\n }\n\n get(name) {\n let {\n references,\n length\n } = this;\n\n if (name === 'length') {\n return PrimitiveReference.create(length);\n } else {\n let idx = parseInt(name, 10);\n\n if (idx < 0 || idx >= length) {\n return UNDEFINED_REFERENCE;\n } else {\n return references[idx];\n }\n }\n }\n\n valueOf(reference) {\n return reference.value();\n }\n\n }\n\n class NamedArguments {\n constructor() {\n this.base = 0;\n this.length = 0;\n this._references = null;\n this._names = _util.EMPTY_ARRAY;\n this._atNames = _util.EMPTY_ARRAY;\n }\n\n empty(stack, base) {\n this.stack = stack;\n this.base = base;\n this.length = 0;\n this._references = _util.EMPTY_ARRAY;\n this._names = _util.EMPTY_ARRAY;\n this._atNames = _util.EMPTY_ARRAY;\n }\n\n setup(stack, base, length, names, synthetic) {\n this.stack = stack;\n this.base = base;\n this.length = length;\n\n if (length === 0) {\n this._references = _util.EMPTY_ARRAY;\n this._names = _util.EMPTY_ARRAY;\n this._atNames = _util.EMPTY_ARRAY;\n } else {\n this._references = null;\n\n if (synthetic) {\n this._names = names;\n this._atNames = null;\n } else {\n this._names = null;\n this._atNames = names;\n }\n }\n }\n\n get tag() {\n return (0, _reference.combineTagged)(this.references);\n }\n\n get names() {\n let names = this._names;\n\n if (!names) {\n names = this._names = this._atNames.map(this.toSyntheticName);\n }\n\n return names;\n }\n\n get atNames() {\n let atNames = this._atNames;\n\n if (!atNames) {\n atNames = this._atNames = this._names.map(this.toAtName);\n }\n\n return atNames;\n }\n\n has(name) {\n return this.names.indexOf(name) !== -1;\n }\n\n get(name, synthetic = true) {\n let {\n base,\n stack\n } = this;\n let names = synthetic ? this.names : this.atNames;\n let idx = names.indexOf(name);\n\n if (idx === -1) {\n return UNDEFINED_REFERENCE;\n }\n\n return stack.get(idx, base);\n }\n\n capture() {\n return new CapturedNamedArguments(this.tag, this.names, this.references);\n }\n\n merge(other) {\n let {\n length: extras\n } = other;\n\n if (extras > 0) {\n let {\n names,\n length,\n stack\n } = this;\n let {\n names: extraNames\n } = other;\n\n if (Object.isFrozen(names) && names.length === 0) {\n names = [];\n }\n\n for (let i = 0; i < extras; i++) {\n let name = extraNames[i];\n let idx = names.indexOf(name);\n\n if (idx === -1) {\n length = names.push(name);\n stack.push(other.references[i]);\n }\n }\n\n this.length = length;\n this._references = null;\n this._names = names;\n this._atNames = null;\n }\n }\n\n get references() {\n let references = this._references;\n\n if (!references) {\n let {\n base,\n length,\n stack\n } = this;\n references = this._references = stack.sliceArray(base, base + length);\n }\n\n return references;\n }\n\n toSyntheticName(name) {\n return name.slice(1);\n }\n\n toAtName(name) {\n return \"@\" + name;\n }\n\n }\n\n class CapturedNamedArguments {\n constructor(tag, names, references) {\n this.tag = tag;\n this.names = names;\n this.references = references;\n this.length = names.length;\n this._map = null;\n }\n\n get map() {\n let map = this._map;\n\n if (!map) {\n let {\n names,\n references\n } = this;\n map = this._map = (0, _util.dict)();\n\n for (let i = 0; i < names.length; i++) {\n let name = names[i];\n map[name] = references[i];\n }\n }\n\n return map;\n }\n\n has(name) {\n return this.names.indexOf(name) !== -1;\n }\n\n get(name) {\n let {\n names,\n references\n } = this;\n let idx = names.indexOf(name);\n\n if (idx === -1) {\n return UNDEFINED_REFERENCE;\n } else {\n return references[idx];\n }\n }\n\n value() {\n let {\n names,\n references\n } = this;\n let out = (0, _util.dict)();\n\n for (let i = 0; i < names.length; i++) {\n let name = names[i];\n out[name] = references[i].value();\n }\n\n return out;\n }\n\n }\n\n class BlockArguments {\n constructor() {\n this.internalValues = null;\n this.internalTag = null;\n this.names = _util.EMPTY_ARRAY;\n this.length = 0;\n this.base = 0;\n }\n\n empty(stack, base) {\n this.stack = stack;\n this.names = _util.EMPTY_ARRAY;\n this.base = base;\n this.length = 0;\n this.internalTag = _reference.CONSTANT_TAG;\n this.internalValues = _util.EMPTY_ARRAY;\n }\n\n setup(stack, base, length, names) {\n this.stack = stack;\n this.names = names;\n this.base = base;\n this.length = length;\n\n if (length === 0) {\n this.internalTag = _reference.CONSTANT_TAG;\n this.internalValues = _util.EMPTY_ARRAY;\n } else {\n this.internalTag = null;\n this.internalValues = null;\n }\n }\n\n get values() {\n let values = this.internalValues;\n\n if (!values) {\n let {\n base,\n length,\n stack\n } = this;\n values = this.internalValues = stack.sliceArray(base, base + length * 3);\n }\n\n return values;\n }\n\n has(name) {\n return this.names.indexOf(name) !== -1;\n }\n\n get(name) {\n let {\n base,\n stack,\n names\n } = this;\n let idx = names.indexOf(name);\n\n if (names.indexOf(name) === -1) {\n return null;\n }\n\n let table = stack.get(idx * 3, base);\n let scope = stack.get(idx * 3 + 1, base); // FIXME(mmun): shouldn't need to cast this\n\n let handle = stack.get(idx * 3 + 2, base);\n return handle === null ? null : [handle, scope, table];\n }\n\n capture() {\n return new CapturedBlockArguments(this.names, this.values);\n }\n\n }\n\n class CapturedBlockArguments {\n constructor(names, values) {\n this.names = names;\n this.values = values;\n this.length = names.length;\n }\n\n has(name) {\n return this.names.indexOf(name) !== -1;\n }\n\n get(name) {\n let idx = this.names.indexOf(name);\n if (idx === -1) return null;\n return [this.values[idx * 3 + 2], this.values[idx * 3 + 1], this.values[idx * 3]];\n }\n\n }\n\n const EMPTY_NAMED = new CapturedNamedArguments(_reference.CONSTANT_TAG, _util.EMPTY_ARRAY, _util.EMPTY_ARRAY);\n const EMPTY_POSITIONAL = new CapturedPositionalArguments(_reference.CONSTANT_TAG, _util.EMPTY_ARRAY);\n const EMPTY_ARGS = new CapturedArguments(_reference.CONSTANT_TAG, EMPTY_POSITIONAL, EMPTY_NAMED, 0);\n _exports.EMPTY_ARGS = EMPTY_ARGS;\n\n class VM {\n constructor(runtime, scope, dynamicScope, elementStack) {\n this.runtime = runtime;\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.s0 = null;\n this.s1 = null;\n this.t0 = null;\n this.t1 = null;\n this.v0 = null;\n this.heap = this.program.heap;\n this.constants = this.program.constants;\n this.elementStack = elementStack;\n this.scopeStack.push(scope);\n this.dynamicScopeStack.push(dynamicScope);\n this.args = new Arguments();\n this.inner = new LowLevelVM(EvaluationStack.empty(), this.heap, runtime.program, {\n debugBefore: opcode => {\n return APPEND_OPCODES.debugBefore(this, opcode, opcode.type);\n },\n debugAfter: (opcode, state) => {\n APPEND_OPCODES.debugAfter(this, opcode, opcode.type, state);\n }\n });\n }\n\n get stack() {\n return this.inner.stack;\n }\n\n set stack(value) {\n this.inner.stack = value;\n }\n /* Registers */\n\n\n set currentOpSize(value) {\n this.inner.currentOpSize = value;\n }\n\n get currentOpSize() {\n return this.inner.currentOpSize;\n }\n\n get pc() {\n return this.inner.pc;\n }\n\n set pc(value) {\n this.inner.pc = value;\n }\n\n get ra() {\n return this.inner.ra;\n }\n\n set ra(value) {\n this.inner.ra = value;\n }\n\n get fp() {\n return this.stack.fp;\n }\n\n set fp(fp) {\n this.stack.fp = fp;\n }\n\n get sp() {\n return this.stack.sp;\n }\n\n set sp(sp) {\n this.stack.sp = sp;\n } // Fetch a value from a register onto the stack\n\n\n fetch(register) {\n this.stack.push(this[_vm2.Register[register]]);\n } // Load a value from the stack into a register\n\n\n load(register) {\n this[_vm2.Register[register]] = this.stack.pop();\n } // Fetch a value from a register\n\n\n fetchValue(register) {\n return this[_vm2.Register[register]];\n } // Load a value into a register\n\n\n loadValue(register, value) {\n this[_vm2.Register[register]] = value;\n }\n /**\n * Migrated to Inner\n */\n // Start a new frame and save $ra and $fp on the stack\n\n\n pushFrame() {\n this.inner.pushFrame();\n } // Restore $ra, $sp and $fp\n\n\n popFrame() {\n this.inner.popFrame();\n } // Jump to an address in `program`\n\n\n goto(offset) {\n this.inner.goto(offset);\n } // Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\n\n\n call(handle) {\n this.inner.call(handle);\n } // Put a specific `program` address in $ra\n\n\n returnTo(offset) {\n this.inner.returnTo(offset);\n } // Return to the `program` address stored in $ra\n\n\n return() {\n this.inner.return();\n }\n /**\n * End of migrated.\n */\n\n\n static initial(program, env, self, dynamicScope, elementStack, handle) {\n let scopeSize = program.heap.scopesizeof(handle);\n let scope = Scope.root(self, scopeSize);\n let vm = new VM({\n program,\n env\n }, scope, dynamicScope, elementStack);\n vm.pc = vm.heap.getaddr(handle);\n vm.updatingOpcodeStack.push(new _util.LinkedList());\n return vm;\n }\n\n static empty(program, env, elementStack, handle) {\n let dynamicScope = {\n get() {\n return UNDEFINED_REFERENCE;\n },\n\n set() {\n return UNDEFINED_REFERENCE;\n },\n\n child() {\n return dynamicScope;\n }\n\n };\n let vm = new VM({\n program,\n env\n }, Scope.root(UNDEFINED_REFERENCE, 0), dynamicScope, elementStack);\n vm.updatingOpcodeStack.push(new _util.LinkedList());\n vm.pc = vm.heap.getaddr(handle);\n return vm;\n }\n\n static resume({\n scope,\n dynamicScope\n }, runtime, stack) {\n return new VM(runtime, scope, dynamicScope, stack);\n }\n\n get program() {\n return this.runtime.program;\n }\n\n get env() {\n return this.runtime.env;\n }\n\n capture(args) {\n return {\n dynamicScope: this.dynamicScope(),\n scope: this.scope(),\n stack: this.stack.capture(args)\n };\n }\n\n beginCacheGroup() {\n this.cacheGroups.push(this.updating().tail());\n }\n\n commitCacheGroup() {\n // JumpIfNotModified(END)\n // (head)\n // (....)\n // (tail)\n // DidModify\n // END: Noop\n let END = new LabelOpcode('END');\n let opcodes = this.updating();\n let marker = this.cacheGroups.pop();\n let head = marker ? opcodes.nextNode(marker) : opcodes.head();\n let tail = opcodes.tail();\n let tag = (0, _reference.combineSlice)(new _util.ListSlice(head, tail));\n let guard = new JumpIfNotModifiedOpcode(tag, END);\n opcodes.insertBefore(guard, head);\n opcodes.append(new DidModifyOpcode(guard));\n opcodes.append(END);\n }\n\n enter(args) {\n let updating = new _util.LinkedList();\n let state = this.capture(args);\n let tracker = this.elements().pushUpdatableBlock();\n let tryOpcode = new TryOpcode(this.heap.gethandle(this.pc), state, this.runtime, tracker, updating);\n this.didEnter(tryOpcode);\n }\n\n iterate(memo, value) {\n let stack = this.stack;\n stack.push(value);\n stack.push(memo);\n let state = this.capture(2);\n let tracker = this.elements().pushUpdatableBlock(); // let ip = this.ip;\n // this.ip = end + 4;\n // this.frames.push(ip);\n\n return new TryOpcode(this.heap.gethandle(this.pc), state, this.runtime, tracker, new _util.LinkedList());\n }\n\n enterItem(key, opcode) {\n this.listBlock().map[key] = opcode;\n this.didEnter(opcode);\n }\n\n enterList(relativeStart) {\n let updating = new _util.LinkedList();\n let state = this.capture(0);\n let tracker = this.elements().pushBlockList(updating);\n let artifacts = this.stack.peek().artifacts;\n let addr = this.pc + relativeStart - this.currentOpSize;\n let start = this.heap.gethandle(addr);\n let opcode = new ListBlockOpcode(start, state, this.runtime, tracker, updating, artifacts);\n this.listBlockStack.push(opcode);\n this.didEnter(opcode);\n }\n\n didEnter(opcode) {\n this.updateWith(opcode);\n this.updatingOpcodeStack.push(opcode.children);\n }\n\n exit() {\n this.elements().popBlock();\n this.updatingOpcodeStack.pop();\n let parent = this.updating().tail();\n parent.didInitializeChildren();\n }\n\n exitList() {\n this.exit();\n this.listBlockStack.pop();\n }\n\n updateWith(opcode) {\n this.updating().append(opcode);\n }\n\n listBlock() {\n return this.listBlockStack.current;\n }\n\n updating() {\n return this.updatingOpcodeStack.current;\n }\n\n elements() {\n return this.elementStack;\n }\n\n scope() {\n return this.scopeStack.current;\n }\n\n dynamicScope() {\n return this.dynamicScopeStack.current;\n }\n\n pushChildScope() {\n this.scopeStack.push(this.scope().child());\n }\n\n pushDynamicScope() {\n let child = this.dynamicScope().child();\n this.dynamicScopeStack.push(child);\n return child;\n }\n\n pushRootScope(size, bindCaller) {\n let scope = Scope.sized(size);\n if (bindCaller) scope.bindCallerScope(this.scope());\n this.scopeStack.push(scope);\n return scope;\n }\n\n pushScope(scope) {\n this.scopeStack.push(scope);\n }\n\n popScope() {\n this.scopeStack.pop();\n }\n\n popDynamicScope() {\n this.dynamicScopeStack.pop();\n }\n\n newDestroyable(d) {\n this.elements().didAddDestroyable(d);\n } /// SCOPE HELPERS\n\n\n getSelf() {\n return this.scope().getSelf();\n }\n\n referenceForSymbol(symbol) {\n return this.scope().getSymbol(symbol);\n } /// EXECUTION\n\n\n execute(start, initialize) {\n this.pc = this.heap.getaddr(start);\n if (initialize) initialize(this);\n let result;\n\n while (true) {\n result = this.next();\n if (result.done) break;\n }\n\n return result.value;\n }\n\n next() {\n let {\n env,\n program,\n updatingOpcodeStack,\n elementStack\n } = this;\n let opcode = this.inner.nextStatement();\n let result;\n\n if (opcode !== null) {\n this.inner.evaluateOuter(opcode, this);\n result = {\n done: false,\n value: null\n };\n } else {\n // Unload the stack\n this.stack.reset();\n result = {\n done: true,\n value: new RenderResult(env, program, updatingOpcodeStack.pop(), elementStack.popBlock())\n };\n }\n\n return result;\n }\n\n bindDynamicScope(names) {\n let scope = this.dynamicScope();\n\n for (let i = names.length - 1; i >= 0; i--) {\n let name = this.constants.getString(names[i]);\n scope.set(name, this.stack.pop());\n }\n }\n\n }\n\n _exports.LowLevelVM = VM;\n\n class TemplateIteratorImpl {\n constructor(vm) {\n this.vm = vm;\n }\n\n next() {\n return this.vm.next();\n }\n\n }\n\n function renderMain(program, env, self, dynamicScope, builder, handle) {\n let vm = VM.initial(program, env, self, dynamicScope, builder, handle);\n return new TemplateIteratorImpl(vm);\n }\n /**\n * Returns a TemplateIterator configured to render a root component.\n */\n\n\n function renderComponent(program, env, builder, main, name, args = {}) {\n const vm = VM.empty(program, env, builder, main);\n const {\n resolver\n } = vm.constants;\n const definition = resolveComponent(resolver, name, null);\n const {\n manager,\n state\n } = definition;\n const capabilities = capabilityFlagsFrom(manager.getCapabilities(state));\n let invocation;\n\n if (hasStaticLayoutCapability(capabilities, manager)) {\n invocation = manager.getLayout(state, resolver);\n } else {\n throw new Error('Cannot invoke components with dynamic layouts as a root component.');\n } // Get a list of tuples of argument names and references, like\n // [['title', reference], ['name', reference]]\n\n\n const argList = Object.keys(args).map(key => [key, args[key]]);\n const blockNames = ['main', 'else', 'attrs']; // Prefix argument names with `@` symbol\n\n const argNames = argList.map(([name]) => \"@\" + name);\n vm.pushFrame(); // Push blocks on to the stack, three stack values per block\n\n for (let i = 0; i < 3 * blockNames.length; i++) {\n vm.stack.push(null);\n }\n\n vm.stack.push(null); // For each argument, push its backing reference on to the stack\n\n argList.forEach(([, reference]) => {\n vm.stack.push(reference);\n }); // Configure VM based on blocks and args just pushed on to the stack.\n\n vm.args.setup(vm.stack, argNames, blockNames, 0, false); // Needed for the Op.Main opcode: arguments, component invocation object, and\n // component definition.\n\n vm.stack.push(vm.args);\n vm.stack.push(invocation);\n vm.stack.push(definition);\n return new TemplateIteratorImpl(vm);\n }\n\n class DynamicVarReference {\n constructor(scope, nameRef) {\n this.scope = scope;\n this.nameRef = nameRef;\n\n let varTag = this.varTag = _reference.UpdatableTag.create(_reference.CONSTANT_TAG);\n\n this.tag = (0, _reference.combine)([nameRef.tag, varTag]);\n }\n\n value() {\n return this.getVar().value();\n }\n\n get(key) {\n return this.getVar().get(key);\n }\n\n getVar() {\n let name = String(this.nameRef.value());\n let ref = this.scope.get(name);\n this.varTag.inner.update(ref.tag);\n return ref;\n }\n\n }\n\n function getDynamicVar(vm, args) {\n let scope = vm.dynamicScope();\n let nameRef = args.positional.at(0);\n return new DynamicVarReference(scope, nameRef);\n }\n /** @internal */\n\n\n const DEFAULT_CAPABILITIES = {\n dynamicLayout: true,\n dynamicTag: true,\n prepareArgs: true,\n createArgs: true,\n attributeHook: false,\n elementHook: false,\n dynamicScope: true,\n createCaller: false,\n updateHook: true,\n createInstance: true\n };\n _exports.DEFAULT_CAPABILITIES = DEFAULT_CAPABILITIES;\n const MINIMAL_CAPABILITIES = {\n dynamicLayout: false,\n dynamicTag: false,\n prepareArgs: false,\n createArgs: false,\n attributeHook: false,\n elementHook: false,\n dynamicScope: false,\n createCaller: false,\n updateHook: false,\n createInstance: false\n };\n _exports.MINIMAL_CAPABILITIES = MINIMAL_CAPABILITIES;\n const SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';\n _exports.SERIALIZATION_FIRST_NODE_STRING = SERIALIZATION_FIRST_NODE_STRING;\n\n function isSerializationFirstNode(node) {\n return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;\n }\n\n class RehydratingCursor extends Cursor {\n constructor(element, nextSibling, startingBlockDepth) {\n super(element, nextSibling);\n this.startingBlockDepth = startingBlockDepth;\n this.candidate = null;\n this.injectedOmittedNode = false;\n this.openBlockDepth = startingBlockDepth - 1;\n }\n\n }\n\n class RehydrateBuilder extends NewElementBuilder {\n // private candidate: Option = null;\n constructor(env, parentNode, nextSibling) {\n super(env, parentNode, nextSibling);\n this.unmatchedAttributes = null;\n this.blockDepth = 0;\n if (nextSibling) throw new Error('Rehydration with nextSibling not supported');\n let node = this.currentCursor.element.firstChild;\n\n while (node !== null) {\n if (isComment(node) && isSerializationFirstNode(node)) {\n break;\n }\n\n node = node.nextSibling;\n }\n\n this.candidate = node;\n }\n\n get currentCursor() {\n return this.cursorStack.current;\n }\n\n get candidate() {\n if (this.currentCursor) {\n return this.currentCursor.candidate;\n }\n\n return null;\n }\n\n set candidate(node) {\n this.currentCursor.candidate = node;\n }\n\n pushElement(element, nextSibling) {\n let {\n blockDepth = 0\n } = this;\n let cursor = new RehydratingCursor(element, nextSibling, blockDepth);\n let currentCursor = this.currentCursor;\n\n if (currentCursor) {\n if (currentCursor.candidate) {\n /**\n * <--------------- currentCursor.element\n * \n *
<--------------- currentCursor.candidate -> cursor.element\n * <- currentCursor.candidate.firstChild -> cursor.candidate\n * Foo\n * \n *
\n * <-- becomes currentCursor.candidate\n */\n // where to rehydrate from if we are in rehydration mode\n cursor.candidate = element.firstChild; // where to continue when we pop\n\n currentCursor.candidate = element.nextSibling;\n }\n }\n\n this.cursorStack.push(cursor);\n }\n\n clearMismatch(candidate) {\n let current = candidate;\n let currentCursor = this.currentCursor;\n\n if (currentCursor !== null) {\n let openBlockDepth = currentCursor.openBlockDepth;\n\n if (openBlockDepth >= currentCursor.startingBlockDepth) {\n while (current && !(isComment(current) && getCloseBlockDepth(current) === openBlockDepth)) {\n current = this.remove(current);\n }\n } else {\n while (current !== null) {\n current = this.remove(current);\n }\n } // current cursor parentNode should be openCandidate if element\n // or openCandidate.parentNode if comment\n\n\n currentCursor.nextSibling = current; // disable rehydration until we popElement or closeBlock for openBlockDepth\n\n currentCursor.candidate = null;\n }\n }\n\n __openBlock() {\n let {\n currentCursor\n } = this;\n if (currentCursor === null) return;\n let blockDepth = this.blockDepth;\n this.blockDepth++;\n let {\n candidate\n } = currentCursor;\n if (candidate === null) return;\n\n if (isComment(candidate) && getOpenBlockDepth(candidate) === blockDepth) {\n currentCursor.candidate = this.remove(candidate);\n currentCursor.openBlockDepth = blockDepth;\n } else {\n this.clearMismatch(candidate);\n }\n }\n\n __closeBlock() {\n let {\n currentCursor\n } = this;\n if (currentCursor === null) return; // openBlock is the last rehydrated open block\n\n let openBlockDepth = currentCursor.openBlockDepth; // this currently is the expected next open block depth\n\n this.blockDepth--;\n let {\n candidate\n } = currentCursor; // rehydrating\n\n if (candidate !== null) {\n if (isComment(candidate) && getCloseBlockDepth(candidate) === openBlockDepth) {\n currentCursor.candidate = this.remove(candidate);\n currentCursor.openBlockDepth--;\n } else {\n this.clearMismatch(candidate);\n } // if the openBlockDepth matches the blockDepth we just closed to\n // then restore rehydration\n\n }\n\n if (currentCursor.openBlockDepth === this.blockDepth) {\n currentCursor.candidate = this.remove(currentCursor.nextSibling);\n currentCursor.openBlockDepth--;\n }\n }\n\n __appendNode(node) {\n let {\n candidate\n } = this; // This code path is only used when inserting precisely one node. It needs more\n // comparison logic, but we can probably lean on the cases where this code path\n // is actually used.\n\n if (candidate) {\n return candidate;\n } else {\n return super.__appendNode(node);\n }\n }\n\n __appendHTML(html) {\n let candidateBounds = this.markerBounds();\n\n if (candidateBounds) {\n let first = candidateBounds.firstNode();\n let last = candidateBounds.lastNode();\n let newBounds = new ConcreteBounds(this.element, first.nextSibling, last.previousSibling);\n let possibleEmptyMarker = this.remove(first);\n this.remove(last);\n\n if (possibleEmptyMarker !== null && isEmpty$1(possibleEmptyMarker)) {\n this.candidate = this.remove(possibleEmptyMarker);\n\n if (this.candidate !== null) {\n this.clearMismatch(this.candidate);\n }\n }\n\n return newBounds;\n } else {\n return super.__appendHTML(html);\n }\n }\n\n remove(node) {\n let element = node.parentNode;\n let next = node.nextSibling;\n element.removeChild(node);\n return next;\n }\n\n markerBounds() {\n let _candidate = this.candidate;\n\n if (_candidate && isMarker(_candidate)) {\n let first = _candidate;\n let last = first.nextSibling;\n\n while (last && !isMarker(last)) {\n last = last.nextSibling;\n }\n\n return new ConcreteBounds(this.element, first, last);\n } else {\n return null;\n }\n }\n\n __appendText(string) {\n let {\n candidate\n } = this;\n\n if (candidate) {\n if (isTextNode(candidate)) {\n if (candidate.nodeValue !== string) {\n candidate.nodeValue = string;\n }\n\n this.candidate = candidate.nextSibling;\n return candidate;\n } else if (candidate && (isSeparator(candidate) || isEmpty$1(candidate))) {\n this.candidate = candidate.nextSibling;\n this.remove(candidate);\n return this.__appendText(string);\n } else if (isEmpty$1(candidate)) {\n let next = this.remove(candidate);\n this.candidate = next;\n let text = this.dom.createTextNode(string);\n this.dom.insertBefore(this.element, text, next);\n return text;\n } else {\n this.clearMismatch(candidate);\n return super.__appendText(string);\n }\n } else {\n return super.__appendText(string);\n }\n }\n\n __appendComment(string) {\n let _candidate = this.candidate;\n\n if (_candidate && isComment(_candidate)) {\n if (_candidate.nodeValue !== string) {\n _candidate.nodeValue = string;\n }\n\n this.candidate = _candidate.nextSibling;\n return _candidate;\n } else if (_candidate) {\n this.clearMismatch(_candidate);\n }\n\n return super.__appendComment(string);\n }\n\n __openElement(tag) {\n let _candidate = this.candidate;\n\n if (_candidate && isElement(_candidate) && isSameNodeType(_candidate, tag)) {\n this.unmatchedAttributes = [].slice.call(_candidate.attributes);\n return _candidate;\n } else if (_candidate) {\n if (isElement(_candidate) && _candidate.tagName === 'TBODY') {\n this.pushElement(_candidate, null);\n this.currentCursor.injectedOmittedNode = true;\n return this.__openElement(tag);\n }\n\n this.clearMismatch(_candidate);\n }\n\n return super.__openElement(tag);\n }\n\n __setAttribute(name, value, namespace) {\n let unmatched = this.unmatchedAttributes;\n\n if (unmatched) {\n let attr = findByName(unmatched, name);\n\n if (attr) {\n if (attr.value !== value) {\n attr.value = value;\n }\n\n unmatched.splice(unmatched.indexOf(attr), 1);\n return;\n }\n }\n\n return super.__setAttribute(name, value, namespace);\n }\n\n __setProperty(name, value) {\n let unmatched = this.unmatchedAttributes;\n\n if (unmatched) {\n let attr = findByName(unmatched, name);\n\n if (attr) {\n if (attr.value !== value) {\n attr.value = value;\n }\n\n unmatched.splice(unmatched.indexOf(attr), 1);\n return;\n }\n }\n\n return super.__setProperty(name, value);\n }\n\n __flushElement(parent, constructing) {\n let {\n unmatchedAttributes: unmatched\n } = this;\n\n if (unmatched) {\n for (let i = 0; i < unmatched.length; i++) {\n this.constructing.removeAttribute(unmatched[i].name);\n }\n\n this.unmatchedAttributes = null;\n } else {\n super.__flushElement(parent, constructing);\n }\n }\n\n willCloseElement() {\n let {\n candidate,\n currentCursor\n } = this;\n\n if (candidate !== null) {\n this.clearMismatch(candidate);\n }\n\n if (currentCursor && currentCursor.injectedOmittedNode) {\n this.popElement();\n }\n\n super.willCloseElement();\n }\n\n getMarker(element, guid) {\n let marker = element.querySelector(\"script[glmr=\\\"\" + guid + \"\\\"]\");\n\n if (marker) {\n return marker;\n }\n\n throw new Error('Cannot find serialized cursor for `in-element`');\n }\n\n __pushRemoteElement(element, cursorId, nextSibling = null) {\n let marker = this.getMarker(element, cursorId);\n\n if (marker.parentNode === element) {\n let currentCursor = this.currentCursor;\n let candidate = currentCursor.candidate;\n this.pushElement(element, nextSibling);\n currentCursor.candidate = candidate;\n this.candidate = this.remove(marker);\n let tracker = new RemoteBlockTracker(element);\n this.pushBlockTracker(tracker, true);\n }\n }\n\n didAppendBounds(bounds) {\n super.didAppendBounds(bounds);\n\n if (this.candidate) {\n let last = bounds.lastNode();\n this.candidate = last && last.nextSibling;\n }\n\n return bounds;\n }\n\n }\n\n _exports.RehydrateBuilder = RehydrateBuilder;\n\n function isTextNode(node) {\n return node.nodeType === 3;\n }\n\n function isComment(node) {\n return node.nodeType === 8;\n }\n\n function getOpenBlockDepth(node) {\n let boundsDepth = node.nodeValue.match(/^%\\+b:(\\d+)%$/);\n\n if (boundsDepth && boundsDepth[1]) {\n return Number(boundsDepth[1]);\n } else {\n return null;\n }\n }\n\n function getCloseBlockDepth(node) {\n let boundsDepth = node.nodeValue.match(/^%\\-b:(\\d+)%$/);\n\n if (boundsDepth && boundsDepth[1]) {\n return Number(boundsDepth[1]);\n } else {\n return null;\n }\n }\n\n function isElement(node) {\n return node.nodeType === 1;\n }\n\n function isMarker(node) {\n return node.nodeType === 8 && node.nodeValue === '%glmr%';\n }\n\n function isSeparator(node) {\n return node.nodeType === 8 && node.nodeValue === '%|%';\n }\n\n function isEmpty$1(node) {\n return node.nodeType === 8 && node.nodeValue === '% %';\n }\n\n function isSameNodeType(candidate, tag) {\n if (candidate.namespaceURI === SVG_NAMESPACE) {\n return candidate.tagName === tag;\n }\n\n return candidate.tagName === tag.toUpperCase();\n }\n\n function findByName(array, name) {\n for (let i = 0; i < array.length; i++) {\n let attr = array[i];\n if (attr.name === name) return attr;\n }\n\n return undefined;\n }\n\n function rehydrationBuilder(env, cursor) {\n return RehydrateBuilder.forInitialRender(env, cursor);\n }\n});","enifed(\"@glimmer/syntax\", [\"exports\", \"simple-html-tokenizer\", \"@glimmer/util\", \"handlebars\"], function (_exports, _simpleHtmlTokenizer, _util, _handlebars) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.preprocess = preprocess;\n _exports.cannotRemoveNode = cannotRemoveNode;\n _exports.cannotReplaceNode = cannotReplaceNode;\n _exports.cannotReplaceOrRemoveInKeyHandlerYet = cannotReplaceOrRemoveInKeyHandlerYet;\n _exports.traverse = traverse;\n _exports.print = build;\n _exports.isLiteral = isLiteral;\n _exports.printLiteral = printLiteral;\n _exports.SyntaxError = _exports.Walker = _exports.TraversalError = _exports.builders = _exports.AST = void 0;\n\n function buildMustache(path, params, hash, raw, loc) {\n if (typeof path === 'string') {\n path = buildPath(path);\n }\n\n return {\n type: 'MustacheStatement',\n path,\n params: params || [],\n hash: hash || buildHash([]),\n escaped: !raw,\n loc: buildLoc(loc || null)\n };\n }\n\n function buildBlock(path, params, hash, program, inverse, loc) {\n return {\n type: 'BlockStatement',\n path: buildPath(path),\n params: params || [],\n hash: hash || buildHash([]),\n program: program || null,\n inverse: inverse || null,\n loc: buildLoc(loc || null)\n };\n }\n\n function buildElementModifier(path, params, hash, loc) {\n return {\n type: 'ElementModifierStatement',\n path: buildPath(path),\n params: params || [],\n hash: hash || buildHash([]),\n loc: buildLoc(loc || null)\n };\n }\n\n function buildPartial(name, params, hash, indent, loc) {\n return {\n type: 'PartialStatement',\n name: name,\n params: params || [],\n hash: hash || buildHash([]),\n indent: indent || '',\n strip: {\n open: false,\n close: false\n },\n loc: buildLoc(loc || null)\n };\n }\n\n function buildComment(value, loc) {\n return {\n type: 'CommentStatement',\n value: value,\n loc: buildLoc(loc || null)\n };\n }\n\n function buildMustacheComment(value, loc) {\n return {\n type: 'MustacheCommentStatement',\n value: value,\n loc: buildLoc(loc || null)\n };\n }\n\n function buildConcat(parts, loc) {\n return {\n type: 'ConcatStatement',\n parts: parts || [],\n loc: buildLoc(loc || null)\n };\n }\n\n function buildElement(tag, attributes, modifiers, children, comments, blockParams, loc) {\n // this is used for backwards compat prior to `blockParams` being added to the AST\n if (Array.isArray(comments)) {\n if (isBlockParms(comments)) {\n blockParams = comments;\n comments = [];\n } else if (isLoc(blockParams)) {\n loc = blockParams;\n blockParams = [];\n }\n } else if (isLoc(comments)) {\n // this is used for backwards compat prior to `comments` being added to the AST\n loc = comments;\n comments = [];\n } else if (isLoc(blockParams)) {\n loc = blockParams;\n blockParams = [];\n } // this is used for backwards compat, prior to `selfClosing` being part of the ElementNode AST\n\n\n let selfClosing = false;\n\n if (typeof tag === 'object') {\n selfClosing = tag.selfClosing;\n tag = tag.name;\n }\n\n return {\n type: 'ElementNode',\n tag: tag || '',\n selfClosing: selfClosing,\n attributes: attributes || [],\n blockParams: blockParams || [],\n modifiers: modifiers || [],\n comments: comments || [],\n children: children || [],\n loc: buildLoc(loc || null)\n };\n }\n\n function buildAttr(name, value, loc) {\n return {\n type: 'AttrNode',\n name: name,\n value: value,\n loc: buildLoc(loc || null)\n };\n }\n\n function buildText(chars, loc) {\n return {\n type: 'TextNode',\n chars: chars || '',\n loc: buildLoc(loc || null)\n };\n } // Expressions\n\n\n function buildSexpr(path, params, hash, loc) {\n return {\n type: 'SubExpression',\n path: buildPath(path),\n params: params || [],\n hash: hash || buildHash([]),\n loc: buildLoc(loc || null)\n };\n }\n\n function buildPath(original, loc) {\n if (typeof original !== 'string') return original;\n let parts = original.split('.');\n let thisHead = false;\n\n if (parts[0] === 'this') {\n thisHead = true;\n parts = parts.slice(1);\n }\n\n return {\n type: 'PathExpression',\n original,\n this: thisHead,\n parts,\n data: false,\n loc: buildLoc(loc || null)\n };\n }\n\n function buildLiteral(type, value, loc) {\n return {\n type,\n value,\n original: value,\n loc: buildLoc(loc || null)\n };\n } // Miscellaneous\n\n\n function buildHash(pairs, loc) {\n return {\n type: 'Hash',\n pairs: pairs || [],\n loc: buildLoc(loc || null)\n };\n }\n\n function buildPair(key, value, loc) {\n return {\n type: 'HashPair',\n key: key,\n value,\n loc: buildLoc(loc || null)\n };\n }\n\n function buildProgram(body, blockParams, loc) {\n return {\n type: 'Program',\n body: body || [],\n blockParams: blockParams || [],\n loc: buildLoc(loc || null)\n };\n }\n\n function buildSource(source) {\n return source || null;\n }\n\n function buildPosition(line, column) {\n return {\n line,\n column\n };\n }\n\n const SYNTHETIC = {\n source: '(synthetic)',\n start: {\n line: 1,\n column: 0\n },\n end: {\n line: 1,\n column: 0\n }\n };\n\n function buildLoc(...args) {\n if (args.length === 1) {\n let loc = args[0];\n\n if (loc && typeof loc === 'object') {\n return {\n source: buildSource(loc.source),\n start: buildPosition(loc.start.line, loc.start.column),\n end: buildPosition(loc.end.line, loc.end.column)\n };\n } else {\n return SYNTHETIC;\n }\n } else {\n let [startLine, startColumn, endLine, endColumn, source] = args;\n return {\n source: buildSource(source),\n start: buildPosition(startLine, startColumn),\n end: buildPosition(endLine, endColumn)\n };\n }\n }\n\n function isBlockParms(arr) {\n return arr[0] === 'string';\n }\n\n function isLoc(item) {\n return !Array.isArray(item);\n }\n\n var b = {\n mustache: buildMustache,\n block: buildBlock,\n partial: buildPartial,\n comment: buildComment,\n mustacheComment: buildMustacheComment,\n element: buildElement,\n elementModifier: buildElementModifier,\n attr: buildAttr,\n text: buildText,\n sexpr: buildSexpr,\n path: buildPath,\n concat: buildConcat,\n hash: buildHash,\n pair: buildPair,\n literal: buildLiteral,\n program: buildProgram,\n loc: buildLoc,\n pos: buildPosition,\n string: literal('StringLiteral'),\n boolean: literal('BooleanLiteral'),\n number: literal('NumberLiteral'),\n\n undefined() {\n return buildLiteral('UndefinedLiteral', undefined);\n },\n\n null() {\n return buildLiteral('NullLiteral', null);\n }\n\n };\n _exports.builders = b;\n\n function literal(type) {\n return function (value) {\n return buildLiteral(type, value);\n };\n }\n /**\n * Subclass of `Error` with additional information\n * about location of incorrect markup.\n */\n\n\n const SyntaxError = function () {\n SyntaxError.prototype = Object.create(Error.prototype);\n SyntaxError.prototype.constructor = SyntaxError;\n\n function SyntaxError(message, location) {\n let error = Error.call(this, message);\n this.message = message;\n this.stack = error.stack;\n this.location = location;\n }\n\n return SyntaxError;\n }(); // Regex to validate the identifier for block parameters.\n // Based on the ID validation regex in Handlebars.\n\n\n _exports.SyntaxError = SyntaxError;\n let ID_INVERSE_PATTERN = /[!\"#%-,\\.\\/;->@\\[-\\^`\\{-~]/; // Checks the element's attributes to see if it uses block params.\n // If it does, registers the block params with the program and\n // removes the corresponding attributes from the element.\n\n function parseElementBlockParams(element) {\n let params = parseBlockParams(element);\n if (params) element.blockParams = params;\n }\n\n function parseBlockParams(element) {\n let l = element.attributes.length;\n let attrNames = [];\n\n for (let i = 0; i < l; i++) {\n attrNames.push(element.attributes[i].name);\n }\n\n let asIndex = attrNames.indexOf('as');\n\n if (asIndex !== -1 && l > asIndex && attrNames[asIndex + 1].charAt(0) === '|') {\n // Some basic validation, since we're doing the parsing ourselves\n let paramsString = attrNames.slice(asIndex).join(' ');\n\n if (paramsString.charAt(paramsString.length - 1) !== '|' || paramsString.match(/\\|/g).length !== 2) {\n throw new SyntaxError(\"Invalid block parameters syntax: '\" + paramsString + \"'\", element.loc);\n }\n\n let params = [];\n\n for (let i = asIndex + 1; i < l; i++) {\n let param = attrNames[i].replace(/\\|/g, '');\n\n if (param !== '') {\n if (ID_INVERSE_PATTERN.test(param)) {\n throw new SyntaxError(\"Invalid identifier for block parameters: '\" + param + \"' in '\" + paramsString + \"'\", element.loc);\n }\n\n params.push(param);\n }\n }\n\n if (params.length === 0) {\n throw new SyntaxError(\"Cannot use zero block parameters: '\" + paramsString + \"'\", element.loc);\n }\n\n element.attributes = element.attributes.slice(0, asIndex);\n return params;\n }\n\n return null;\n }\n\n function childrenFor(node) {\n switch (node.type) {\n case 'Program':\n return node.body;\n\n case 'ElementNode':\n return node.children;\n }\n }\n\n function appendChild(parent, node) {\n childrenFor(parent).push(node);\n }\n\n function isLiteral(path) {\n return path.type === 'StringLiteral' || path.type === 'BooleanLiteral' || path.type === 'NumberLiteral' || path.type === 'NullLiteral' || path.type === 'UndefinedLiteral';\n }\n\n function printLiteral(literal) {\n if (literal.type === 'UndefinedLiteral') {\n return 'undefined';\n } else {\n return JSON.stringify(literal.value);\n }\n }\n\n const entityParser = new _simpleHtmlTokenizer.EntityParser(_simpleHtmlTokenizer.HTML5NamedCharRefs);\n\n class Parser {\n constructor(source) {\n this.elementStack = [];\n this.currentAttribute = null;\n this.currentNode = null;\n this.tokenizer = new _simpleHtmlTokenizer.EventedTokenizer(this, entityParser);\n this.source = source.split(/(?:\\r\\n?|\\n)/g);\n }\n\n get currentAttr() {\n return this.currentAttribute;\n }\n\n get currentTag() {\n let node = this.currentNode;\n return node;\n }\n\n get currentStartTag() {\n let node = this.currentNode;\n return node;\n }\n\n get currentEndTag() {\n let node = this.currentNode;\n return node;\n }\n\n get currentComment() {\n let node = this.currentNode;\n return node;\n }\n\n get currentData() {\n let node = this.currentNode;\n return node;\n }\n\n acceptNode(node) {\n return this[node.type](node);\n }\n\n currentElement() {\n return this.elementStack[this.elementStack.length - 1];\n }\n\n sourceForNode(node, endNode) {\n let firstLine = node.loc.start.line - 1;\n let currentLine = firstLine - 1;\n let firstColumn = node.loc.start.column;\n let string = [];\n let line;\n let lastLine;\n let lastColumn;\n\n if (endNode) {\n lastLine = endNode.loc.end.line - 1;\n lastColumn = endNode.loc.end.column;\n } else {\n lastLine = node.loc.end.line - 1;\n lastColumn = node.loc.end.column;\n }\n\n while (currentLine < lastLine) {\n currentLine++;\n line = this.source[currentLine];\n\n if (currentLine === firstLine) {\n if (firstLine === lastLine) {\n string.push(line.slice(firstColumn, lastColumn));\n } else {\n string.push(line.slice(firstColumn));\n }\n } else if (currentLine === lastLine) {\n string.push(line.slice(0, lastColumn));\n } else {\n string.push(line);\n }\n }\n\n return string.join('\\n');\n }\n\n }\n\n class HandlebarsNodeVisitors extends Parser {\n constructor() {\n super(...arguments);\n this.cursorCount = 0;\n }\n\n cursor() {\n return \"%cursor:\" + this.cursorCount++ + \"%\";\n }\n\n Program(program) {\n let body = [];\n this.cursorCount = 0;\n let node = b.program(body, program.blockParams, program.loc);\n let i,\n l = program.body.length;\n this.elementStack.push(node);\n\n if (l === 0) {\n return this.elementStack.pop();\n }\n\n for (i = 0; i < l; i++) {\n this.acceptNode(program.body[i]);\n } // Ensure that that the element stack is balanced properly.\n\n\n let poppedNode = this.elementStack.pop();\n\n if (poppedNode !== node) {\n let elementNode = poppedNode;\n throw new SyntaxError('Unclosed element `' + elementNode.tag + '` (on line ' + elementNode.loc.start.line + ').', elementNode.loc);\n }\n\n return node;\n }\n\n BlockStatement(block) {\n if (this.tokenizer['state'] === 'comment') {\n this.appendToCommentData(this.sourceForNode(block));\n return;\n }\n\n if (this.tokenizer['state'] !== 'comment' && this.tokenizer['state'] !== 'data' && this.tokenizer['state'] !== 'beforeData') {\n throw new SyntaxError('A block may only be used inside an HTML element or another block.', block.loc);\n }\n\n let {\n path,\n params,\n hash\n } = acceptCallNodes(this, block);\n let program = this.Program(block.program);\n let inverse = block.inverse ? this.Program(block.inverse) : null;\n\n if (path.original === 'in-element') {\n hash = addInElementHash(this.cursor(), hash, block.loc);\n }\n\n let node = b.block(path, params, hash, program, inverse, block.loc);\n let parentProgram = this.currentElement();\n appendChild(parentProgram, node);\n }\n\n MustacheStatement(rawMustache) {\n let {\n tokenizer\n } = this;\n\n if (tokenizer.state === 'comment') {\n this.appendToCommentData(this.sourceForNode(rawMustache));\n return;\n }\n\n let mustache;\n let {\n escaped,\n loc\n } = rawMustache;\n\n if (rawMustache.path.type.match(/Literal$/)) {\n mustache = {\n type: 'MustacheStatement',\n path: this.acceptNode(rawMustache.path),\n params: [],\n hash: b.hash(),\n escaped,\n loc\n };\n } else {\n let {\n path,\n params,\n hash\n } = acceptCallNodes(this, rawMustache);\n mustache = b.mustache(path, params, hash, !escaped, loc);\n }\n\n switch (tokenizer.state) {\n // Tag helpers\n case \"tagOpen\"\n /* tagOpen */\n :\n case \"tagName\"\n /* tagName */\n :\n throw new SyntaxError(\"Cannot use mustaches in an elements tagname: `\" + this.sourceForNode(rawMustache, rawMustache.path) + \"` at L\" + loc.start.line + \":C\" + loc.start.column, mustache.loc);\n\n case \"beforeAttributeName\"\n /* beforeAttributeName */\n :\n addElementModifier(this.currentStartTag, mustache);\n break;\n\n case \"attributeName\"\n /* attributeName */\n :\n case \"afterAttributeName\"\n /* afterAttributeName */\n :\n this.beginAttributeValue(false);\n this.finishAttributeValue();\n addElementModifier(this.currentStartTag, mustache);\n tokenizer.transitionTo(\"beforeAttributeName\"\n /* beforeAttributeName */\n );\n break;\n\n case \"afterAttributeValueQuoted\"\n /* afterAttributeValueQuoted */\n :\n addElementModifier(this.currentStartTag, mustache);\n tokenizer.transitionTo(\"beforeAttributeName\"\n /* beforeAttributeName */\n );\n break;\n // Attribute values\n\n case \"beforeAttributeValue\"\n /* beforeAttributeValue */\n :\n this.beginAttributeValue(false);\n appendDynamicAttributeValuePart(this.currentAttribute, mustache);\n tokenizer.transitionTo(\"attributeValueUnquoted\"\n /* attributeValueUnquoted */\n );\n break;\n\n case \"attributeValueDoubleQuoted\"\n /* attributeValueDoubleQuoted */\n :\n case \"attributeValueSingleQuoted\"\n /* attributeValueSingleQuoted */\n :\n case \"attributeValueUnquoted\"\n /* attributeValueUnquoted */\n :\n appendDynamicAttributeValuePart(this.currentAttribute, mustache);\n break;\n // TODO: Only append child when the tokenizer state makes\n // sense to do so, otherwise throw an error.\n\n default:\n appendChild(this.currentElement(), mustache);\n }\n\n return mustache;\n }\n\n ContentStatement(content) {\n updateTokenizerLocation(this.tokenizer, content);\n this.tokenizer.tokenizePart(content.value);\n this.tokenizer.flushData();\n }\n\n CommentStatement(rawComment) {\n let {\n tokenizer\n } = this;\n\n if (tokenizer.state === \"comment\"\n /* comment */\n ) {\n this.appendToCommentData(this.sourceForNode(rawComment));\n return null;\n }\n\n let {\n value,\n loc\n } = rawComment;\n let comment = b.mustacheComment(value, loc);\n\n switch (tokenizer.state) {\n case \"beforeAttributeName\"\n /* beforeAttributeName */\n :\n this.currentStartTag.comments.push(comment);\n break;\n\n case \"beforeData\"\n /* beforeData */\n :\n case \"data\"\n /* data */\n :\n appendChild(this.currentElement(), comment);\n break;\n\n default:\n throw new SyntaxError(\"Using a Handlebars comment when in the `\" + tokenizer['state'] + \"` state is not supported: \\\"\" + comment.value + \"\\\" on line \" + loc.start.line + \":\" + loc.start.column, rawComment.loc);\n }\n\n return comment;\n }\n\n PartialStatement(partial) {\n let {\n loc\n } = partial;\n throw new SyntaxError(\"Handlebars partials are not supported: \\\"\" + this.sourceForNode(partial, partial.name) + \"\\\" at L\" + loc.start.line + \":C\" + loc.start.column, partial.loc);\n }\n\n PartialBlockStatement(partialBlock) {\n let {\n loc\n } = partialBlock;\n throw new SyntaxError(\"Handlebars partial blocks are not supported: \\\"\" + this.sourceForNode(partialBlock, partialBlock.name) + \"\\\" at L\" + loc.start.line + \":C\" + loc.start.column, partialBlock.loc);\n }\n\n Decorator(decorator) {\n let {\n loc\n } = decorator;\n throw new SyntaxError(\"Handlebars decorators are not supported: \\\"\" + this.sourceForNode(decorator, decorator.path) + \"\\\" at L\" + loc.start.line + \":C\" + loc.start.column, decorator.loc);\n }\n\n DecoratorBlock(decoratorBlock) {\n let {\n loc\n } = decoratorBlock;\n throw new SyntaxError(\"Handlebars decorator blocks are not supported: \\\"\" + this.sourceForNode(decoratorBlock, decoratorBlock.path) + \"\\\" at L\" + loc.start.line + \":C\" + loc.start.column, decoratorBlock.loc);\n }\n\n SubExpression(sexpr) {\n let {\n path,\n params,\n hash\n } = acceptCallNodes(this, sexpr);\n return b.sexpr(path, params, hash, sexpr.loc);\n }\n\n PathExpression(path) {\n let {\n original,\n loc\n } = path;\n let parts;\n\n if (original.indexOf('/') !== -1) {\n if (original.slice(0, 2) === './') {\n throw new SyntaxError(\"Using \\\"./\\\" is not supported in Glimmer and unnecessary: \\\"\" + path.original + \"\\\" on line \" + loc.start.line + \".\", path.loc);\n }\n\n if (original.slice(0, 3) === '../') {\n throw new SyntaxError(\"Changing context using \\\"../\\\" is not supported in Glimmer: \\\"\" + path.original + \"\\\" on line \" + loc.start.line + \".\", path.loc);\n }\n\n if (original.indexOf('.') !== -1) {\n throw new SyntaxError(\"Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths: \\\"\" + path.original + \"\\\" on line \" + loc.start.line + \".\", path.loc);\n }\n\n parts = [path.parts.join('/')];\n } else if (original === '.') {\n let locationInfo = \"L\" + loc.start.line + \":C\" + loc.start.column;\n throw new SyntaxError(\"'.' is not a supported path in Glimmer; check for a path with a trailing '.' at \" + locationInfo + \".\", path.loc);\n } else {\n parts = path.parts;\n }\n\n let thisHead = false; // This is to fix a bug in the Handlebars AST where the path expressions in\n // `{{this.foo}}` (and similarly `{{foo-bar this.foo named=this.foo}}` etc)\n // are simply turned into `{{foo}}`. The fix is to push it back onto the\n // parts array and let the runtime see the difference. However, we cannot\n // simply use the string `this` as it means literally the property called\n // \"this\" in the current context (it can be expressed in the syntax as\n // `{{[this]}}`, where the square bracket are generally for this kind of\n // escaping – such as `{{foo.[\"bar.baz\"]}}` would mean lookup a property\n // named literally \"bar.baz\" on `this.foo`). By convention, we use `null`\n // for this purpose.\n\n if (original.match(/^this(\\..+)?$/)) {\n thisHead = true;\n }\n\n return {\n type: 'PathExpression',\n original: path.original,\n this: thisHead,\n parts,\n data: path.data,\n loc: path.loc\n };\n }\n\n Hash(hash) {\n let pairs = [];\n\n for (let i = 0; i < hash.pairs.length; i++) {\n let pair = hash.pairs[i];\n pairs.push(b.pair(pair.key, this.acceptNode(pair.value), pair.loc));\n }\n\n return b.hash(pairs, hash.loc);\n }\n\n StringLiteral(string) {\n return b.literal('StringLiteral', string.value, string.loc);\n }\n\n BooleanLiteral(boolean) {\n return b.literal('BooleanLiteral', boolean.value, boolean.loc);\n }\n\n NumberLiteral(number) {\n return b.literal('NumberLiteral', number.value, number.loc);\n }\n\n UndefinedLiteral(undef) {\n return b.literal('UndefinedLiteral', undefined, undef.loc);\n }\n\n NullLiteral(nul) {\n return b.literal('NullLiteral', null, nul.loc);\n }\n\n }\n\n function calculateRightStrippedOffsets(original, value) {\n if (value === '') {\n // if it is empty, just return the count of newlines\n // in original\n return {\n lines: original.split('\\n').length - 1,\n columns: 0\n };\n } // otherwise, return the number of newlines prior to\n // `value`\n\n\n let difference = original.split(value)[0];\n let lines = difference.split(/\\n/);\n let lineCount = lines.length - 1;\n return {\n lines: lineCount,\n columns: lines[lineCount].length\n };\n }\n\n function updateTokenizerLocation(tokenizer, content) {\n let line = content.loc.start.line;\n let column = content.loc.start.column;\n let offsets = calculateRightStrippedOffsets(content.original, content.value);\n line = line + offsets.lines;\n\n if (offsets.lines) {\n column = offsets.columns;\n } else {\n column = column + offsets.columns;\n }\n\n tokenizer.line = line;\n tokenizer.column = column;\n }\n\n function acceptCallNodes(compiler, node) {\n let path = compiler.PathExpression(node.path);\n let params = node.params ? node.params.map(e => compiler.acceptNode(e)) : [];\n let hash = node.hash ? compiler.Hash(node.hash) : b.hash();\n return {\n path,\n params,\n hash\n };\n }\n\n function addElementModifier(element, mustache) {\n let {\n path,\n params,\n hash,\n loc\n } = mustache;\n\n if (isLiteral(path)) {\n let modifier = \"{{\" + printLiteral(path) + \"}}\";\n let tag = \"<\" + element.name + \" ... \" + modifier + \" ...\";\n throw new SyntaxError(\"In \" + tag + \", \" + modifier + \" is not a valid modifier: \\\"\" + path.original + \"\\\" on line \" + (loc && loc.start.line) + \".\", mustache.loc);\n }\n\n let modifier = b.elementModifier(path, params, hash, loc);\n element.modifiers.push(modifier);\n }\n\n function addInElementHash(cursor, hash, loc) {\n let hasNextSibling = false;\n hash.pairs.forEach(pair => {\n if (pair.key === 'guid') {\n throw new SyntaxError('Cannot pass `guid` from user space', loc);\n }\n\n if (pair.key === 'nextSibling') {\n hasNextSibling = true;\n }\n });\n let guid = b.literal('StringLiteral', cursor);\n let guidPair = b.pair('guid', guid);\n hash.pairs.unshift(guidPair);\n\n if (!hasNextSibling) {\n let nullLiteral = b.literal('NullLiteral', null);\n let nextSibling = b.pair('nextSibling', nullLiteral);\n hash.pairs.push(nextSibling);\n }\n\n return hash;\n }\n\n function appendDynamicAttributeValuePart(attribute, part) {\n attribute.isDynamic = true;\n attribute.parts.push(part);\n }\n\n function tuple(...args) {\n return args;\n } // ensure stays in sync with typing\n // ParentNode and ChildKey types are derived from VisitorKeysMap\n\n\n const visitorKeys = {\n Program: tuple('body'),\n MustacheStatement: tuple('path', 'params', 'hash'),\n BlockStatement: tuple('path', 'params', 'hash', 'program', 'inverse'),\n ElementModifierStatement: tuple('path', 'params', 'hash'),\n PartialStatement: tuple('name', 'params', 'hash'),\n CommentStatement: tuple(),\n MustacheCommentStatement: tuple(),\n ElementNode: tuple('attributes', 'modifiers', 'children', 'comments'),\n AttrNode: tuple('value'),\n TextNode: tuple(),\n ConcatStatement: tuple('parts'),\n SubExpression: tuple('path', 'params', 'hash'),\n PathExpression: tuple(),\n StringLiteral: tuple(),\n BooleanLiteral: tuple(),\n NumberLiteral: tuple(),\n NullLiteral: tuple(),\n UndefinedLiteral: tuple(),\n Hash: tuple('pairs'),\n HashPair: tuple('value')\n };\n\n const TraversalError = function () {\n TraversalError.prototype = Object.create(Error.prototype);\n TraversalError.prototype.constructor = TraversalError;\n\n function TraversalError(message, node, parent, key) {\n let error = Error.call(this, message);\n this.key = key;\n this.message = message;\n this.node = node;\n this.parent = parent;\n this.stack = error.stack;\n }\n\n return TraversalError;\n }();\n\n _exports.TraversalError = TraversalError;\n\n function cannotRemoveNode(node, parent, key) {\n return new TraversalError('Cannot remove a node unless it is part of an array', node, parent, key);\n }\n\n function cannotReplaceNode(node, parent, key) {\n return new TraversalError('Cannot replace a node with multiple nodes unless it is part of an array', node, parent, key);\n }\n\n function cannotReplaceOrRemoveInKeyHandlerYet(node, key) {\n return new TraversalError('Replacing and removing in key handlers is not yet supported.', node, null, key);\n }\n\n function getEnterFunction(handler) {\n return typeof handler === 'function' ? handler : handler.enter;\n }\n\n function getExitFunction(handler) {\n return typeof handler !== 'function' ? handler.exit : undefined;\n }\n\n function getKeyHandler(handler, key) {\n let keyVisitor = typeof handler !== 'function' ? handler.keys : undefined;\n if (keyVisitor === undefined) return;\n let keyHandler = keyVisitor[key];\n\n if (keyHandler !== undefined) {\n // widen specific key to all keys\n return keyHandler;\n }\n\n return keyVisitor.All;\n }\n\n function getNodeHandler(visitor, nodeType) {\n let handler = visitor[nodeType];\n\n if (handler !== undefined) {\n // widen specific Node to all nodes\n return handler;\n }\n\n return visitor.All;\n }\n\n function visitNode(visitor, node) {\n let handler = getNodeHandler(visitor, node.type);\n let enter;\n let exit;\n\n if (handler !== undefined) {\n enter = getEnterFunction(handler);\n exit = getExitFunction(handler);\n }\n\n let result;\n\n if (enter !== undefined) {\n result = enter(node);\n }\n\n if (result !== undefined && result !== null) {\n if (JSON.stringify(node) === JSON.stringify(result)) {\n result = undefined;\n } else if (Array.isArray(result)) {\n visitArray(visitor, result);\n return result;\n } else {\n return visitNode(visitor, result) || result;\n }\n }\n\n if (result === undefined) {\n let keys = visitorKeys[node.type];\n\n for (let i = 0; i < keys.length; i++) {\n // we know if it has child keys we can widen to a ParentNode\n visitKey(visitor, handler, node, keys[i]);\n }\n\n if (exit !== undefined) {\n result = exit(node);\n }\n }\n\n return result;\n }\n\n function visitKey(visitor, handler, node, key) {\n let value = node[key];\n\n if (!value) {\n return;\n }\n\n let keyEnter;\n let keyExit;\n\n if (handler !== undefined) {\n let keyHandler = getKeyHandler(handler, key);\n\n if (keyHandler !== undefined) {\n keyEnter = getEnterFunction(keyHandler);\n keyExit = getExitFunction(keyHandler);\n }\n }\n\n if (keyEnter !== undefined) {\n if (keyEnter(node, key) !== undefined) {\n throw cannotReplaceOrRemoveInKeyHandlerYet(node, key);\n }\n }\n\n if (Array.isArray(value)) {\n visitArray(visitor, value);\n } else {\n let result = visitNode(visitor, value);\n\n if (result !== undefined) {\n assignKey(node, key, result);\n }\n }\n\n if (keyExit !== undefined) {\n if (keyExit(node, key) !== undefined) {\n throw cannotReplaceOrRemoveInKeyHandlerYet(node, key);\n }\n }\n }\n\n function visitArray(visitor, array) {\n for (let i = 0; i < array.length; i++) {\n let result = visitNode(visitor, array[i]);\n\n if (result !== undefined) {\n i += spliceArray(array, i, result) - 1;\n }\n }\n }\n\n function assignKey(node, key, result) {\n if (result === null) {\n throw cannotRemoveNode(node[key], node, key);\n } else if (Array.isArray(result)) {\n if (result.length === 1) {\n node[key] = result[0];\n } else {\n if (result.length === 0) {\n throw cannotRemoveNode(node[key], node, key);\n } else {\n throw cannotReplaceNode(node[key], node, key);\n }\n }\n } else {\n node[key] = result;\n }\n }\n\n function spliceArray(array, index, result) {\n if (result === null) {\n array.splice(index, 1);\n return 0;\n } else if (Array.isArray(result)) {\n array.splice(index, 1, ...result);\n return result.length;\n } else {\n array.splice(index, 1, result);\n return 1;\n }\n }\n\n function traverse(node, visitor) {\n visitNode(visitor, node);\n }\n\n const ATTR_VALUE_REGEX_TEST = /[\\xA0\"&]/;\n const ATTR_VALUE_REGEX_REPLACE = new RegExp(ATTR_VALUE_REGEX_TEST.source, 'g');\n const TEXT_REGEX_TEST = /[\\xA0&<>]/;\n const TEXT_REGEX_REPLACE = new RegExp(TEXT_REGEX_TEST.source, 'g');\n\n function attrValueReplacer(char) {\n switch (char.charCodeAt(0)) {\n case 160\n /* NBSP */\n :\n return ' ';\n\n case 34\n /* QUOT */\n :\n return '"';\n\n case 38\n /* AMP */\n :\n return '&';\n\n default:\n return char;\n }\n }\n\n function textReplacer(char) {\n switch (char.charCodeAt(0)) {\n case 160\n /* NBSP */\n :\n return ' ';\n\n case 38\n /* AMP */\n :\n return '&';\n\n case 60\n /* LT */\n :\n return '<';\n\n case 62\n /* GT */\n :\n return '>';\n\n default:\n return char;\n }\n }\n\n function escapeAttrValue(attrValue) {\n if (ATTR_VALUE_REGEX_TEST.test(attrValue)) {\n return attrValue.replace(ATTR_VALUE_REGEX_REPLACE, attrValueReplacer);\n }\n\n return attrValue;\n }\n\n function escapeText(text) {\n if (TEXT_REGEX_TEST.test(text)) {\n return text.replace(TEXT_REGEX_REPLACE, textReplacer);\n }\n\n return text;\n }\n\n function unreachable() {\n throw new Error('unreachable');\n }\n\n function build(ast) {\n if (!ast) {\n return '';\n }\n\n const output = [];\n\n switch (ast.type) {\n case 'Program':\n {\n const chainBlock = ast['chained'] && ast.body[0];\n\n if (chainBlock) {\n chainBlock['chained'] = true;\n }\n\n const body = buildEach(ast.body).join('');\n output.push(body);\n }\n break;\n\n case 'ElementNode':\n output.push('<', ast.tag);\n\n if (ast.attributes.length) {\n output.push(' ', buildEach(ast.attributes).join(' '));\n }\n\n if (ast.modifiers.length) {\n output.push(' ', buildEach(ast.modifiers).join(' '));\n }\n\n if (ast.comments.length) {\n output.push(' ', buildEach(ast.comments).join(' '));\n }\n\n if (ast.blockParams.length) {\n output.push(' ', 'as', ' ', \"|\" + ast.blockParams.join(' ') + \"|\");\n }\n\n if (voidMap[ast.tag]) {\n if (ast.selfClosing) {\n output.push(' /');\n }\n\n output.push('>');\n } else {\n output.push('>');\n output.push.apply(output, buildEach(ast.children));\n output.push('', ast.tag, '>');\n }\n\n break;\n\n case 'AttrNode':\n if (ast.value.type === 'TextNode') {\n if (ast.value.chars !== '') {\n output.push(ast.name, '=');\n output.push('\"', escapeAttrValue(ast.value.chars), '\"');\n } else {\n output.push(ast.name);\n }\n } else {\n output.push(ast.name, '='); // ast.value is mustache or concat\n\n output.push(build(ast.value));\n }\n\n break;\n\n case 'ConcatStatement':\n output.push('\"');\n ast.parts.forEach(node => {\n if (node.type === 'TextNode') {\n output.push(escapeAttrValue(node.chars));\n } else {\n output.push(build(node));\n }\n });\n output.push('\"');\n break;\n\n case 'TextNode':\n output.push(escapeText(ast.chars));\n break;\n\n case 'MustacheStatement':\n {\n output.push(compactJoin(['{{', pathParams(ast), '}}']));\n }\n break;\n\n case 'MustacheCommentStatement':\n {\n output.push(compactJoin(['{{!--', ast.value, '--}}']));\n }\n break;\n\n case 'ElementModifierStatement':\n {\n output.push(compactJoin(['{{', pathParams(ast), '}}']));\n }\n break;\n\n case 'PathExpression':\n output.push(ast.original);\n break;\n\n case 'SubExpression':\n {\n output.push('(', pathParams(ast), ')');\n }\n break;\n\n case 'BooleanLiteral':\n output.push(ast.value ? 'true' : 'false');\n break;\n\n case 'BlockStatement':\n {\n const lines = [];\n\n if (ast['chained']) {\n lines.push(['{{else ', pathParams(ast), '}}'].join(''));\n } else {\n lines.push(openBlock(ast));\n }\n\n lines.push(build(ast.program));\n\n if (ast.inverse) {\n if (!ast.inverse['chained']) {\n lines.push('{{else}}');\n }\n\n lines.push(build(ast.inverse));\n }\n\n if (!ast['chained']) {\n lines.push(closeBlock(ast));\n }\n\n output.push(lines.join(''));\n }\n break;\n\n case 'PartialStatement':\n {\n output.push(compactJoin(['{{>', pathParams(ast), '}}']));\n }\n break;\n\n case 'CommentStatement':\n {\n output.push(compactJoin(['']));\n }\n break;\n\n case 'StringLiteral':\n {\n output.push(\"\\\"\" + ast.value + \"\\\"\");\n }\n break;\n\n case 'NumberLiteral':\n {\n output.push(String(ast.value));\n }\n break;\n\n case 'UndefinedLiteral':\n {\n output.push('undefined');\n }\n break;\n\n case 'NullLiteral':\n {\n output.push('null');\n }\n break;\n\n case 'Hash':\n {\n output.push(ast.pairs.map(pair => {\n return build(pair);\n }).join(' '));\n }\n break;\n\n case 'HashPair':\n {\n output.push(ast.key + \"=\" + build(ast.value));\n }\n break;\n }\n\n return output.join('');\n }\n\n function compact(array) {\n const newArray = [];\n array.forEach(a => {\n if (typeof a !== 'undefined' && a !== null && a !== '') {\n newArray.push(a);\n }\n });\n return newArray;\n }\n\n function buildEach(asts) {\n return asts.map(build);\n }\n\n function pathParams(ast) {\n let path;\n\n switch (ast.type) {\n case 'MustacheStatement':\n case 'SubExpression':\n case 'ElementModifierStatement':\n case 'BlockStatement':\n if (isLiteral(ast.path)) {\n return String(ast.path.value);\n }\n\n path = build(ast.path);\n break;\n\n case 'PartialStatement':\n path = build(ast.name);\n break;\n\n default:\n return unreachable();\n }\n\n return compactJoin([path, buildEach(ast.params).join(' '), build(ast.hash)], ' ');\n }\n\n function compactJoin(array, delimiter) {\n return compact(array).join(delimiter || '');\n }\n\n function blockParams(block) {\n const params = block.program.blockParams;\n\n if (params.length) {\n return \" as |\" + params.join(' ') + \"|\";\n }\n\n return null;\n }\n\n function openBlock(block) {\n return ['{{#', pathParams(block), blockParams(block), '}}'].join('');\n }\n\n function closeBlock(block) {\n return ['{{/', build(block.path), '}}'].join('');\n }\n\n class Walker {\n constructor(order) {\n this.order = order;\n this.stack = [];\n }\n\n visit(node, callback) {\n if (!node) {\n return;\n }\n\n this.stack.push(node);\n\n if (this.order === 'post') {\n this.children(node, callback);\n callback(node, this);\n } else {\n callback(node, this);\n this.children(node, callback);\n }\n\n this.stack.pop();\n }\n\n children(node, callback) {\n let visitor = visitors[node.type];\n\n if (visitor) {\n visitor(this, node, callback);\n }\n }\n\n }\n\n _exports.Walker = Walker;\n let visitors = {\n Program(walker, node, callback) {\n for (let i = 0; i < node.body.length; i++) {\n walker.visit(node.body[i], callback);\n }\n },\n\n ElementNode(walker, node, callback) {\n for (let i = 0; i < node.children.length; i++) {\n walker.visit(node.children[i], callback);\n }\n },\n\n BlockStatement(walker, node, callback) {\n walker.visit(node.program, callback);\n walker.visit(node.inverse || null, callback);\n }\n\n };\n const voidMap = Object.create(null);\n let voidTagNames = 'area base br col command embed hr img input keygen link meta param source track wbr';\n voidTagNames.split(' ').forEach(tagName => {\n voidMap[tagName] = true;\n });\n\n class TokenizerEventHandlers extends HandlebarsNodeVisitors {\n constructor() {\n super(...arguments);\n this.tagOpenLine = 0;\n this.tagOpenColumn = 0;\n }\n\n reset() {\n this.currentNode = null;\n } // Comment\n\n\n beginComment() {\n this.currentNode = b.comment('');\n this.currentNode.loc = {\n source: null,\n start: b.pos(this.tagOpenLine, this.tagOpenColumn),\n end: null\n };\n }\n\n appendToCommentData(char) {\n this.currentComment.value += char;\n }\n\n finishComment() {\n this.currentComment.loc.end = b.pos(this.tokenizer.line, this.tokenizer.column);\n appendChild(this.currentElement(), this.currentComment);\n } // Data\n\n\n beginData() {\n this.currentNode = b.text();\n this.currentNode.loc = {\n source: null,\n start: b.pos(this.tokenizer.line, this.tokenizer.column),\n end: null\n };\n }\n\n appendToData(char) {\n this.currentData.chars += char;\n }\n\n finishData() {\n this.currentData.loc.end = b.pos(this.tokenizer.line, this.tokenizer.column);\n appendChild(this.currentElement(), this.currentData);\n } // Tags - basic\n\n\n tagOpen() {\n this.tagOpenLine = this.tokenizer.line;\n this.tagOpenColumn = this.tokenizer.column;\n }\n\n beginStartTag() {\n this.currentNode = {\n type: 'StartTag',\n name: '',\n attributes: [],\n modifiers: [],\n comments: [],\n selfClosing: false,\n loc: SYNTHETIC\n };\n }\n\n beginEndTag() {\n this.currentNode = {\n type: 'EndTag',\n name: '',\n attributes: [],\n modifiers: [],\n comments: [],\n selfClosing: false,\n loc: SYNTHETIC\n };\n }\n\n finishTag() {\n let {\n line,\n column\n } = this.tokenizer;\n let tag = this.currentTag;\n tag.loc = b.loc(this.tagOpenLine, this.tagOpenColumn, line, column);\n\n if (tag.type === 'StartTag') {\n this.finishStartTag();\n\n if (voidMap[tag.name] || tag.selfClosing) {\n this.finishEndTag(true);\n }\n } else if (tag.type === 'EndTag') {\n this.finishEndTag(false);\n }\n }\n\n finishStartTag() {\n let {\n name,\n attributes,\n modifiers,\n comments,\n selfClosing\n } = this.currentStartTag;\n let loc = b.loc(this.tagOpenLine, this.tagOpenColumn);\n let element = b.element({\n name,\n selfClosing\n }, attributes, modifiers, [], comments, [], loc);\n this.elementStack.push(element);\n }\n\n finishEndTag(isVoid) {\n let tag = this.currentTag;\n let element = this.elementStack.pop();\n let parent = this.currentElement();\n validateEndTag(tag, element, isVoid);\n element.loc.end.line = this.tokenizer.line;\n element.loc.end.column = this.tokenizer.column;\n parseElementBlockParams(element);\n appendChild(parent, element);\n }\n\n markTagAsSelfClosing() {\n this.currentTag.selfClosing = true;\n } // Tags - name\n\n\n appendToTagName(char) {\n this.currentTag.name += char;\n } // Tags - attributes\n\n\n beginAttribute() {\n let tag = this.currentTag;\n\n if (tag.type === 'EndTag') {\n throw new SyntaxError(\"Invalid end tag: closing tag must not have attributes, \" + (\"in `\" + tag.name + \"` (on line \" + this.tokenizer.line + \").\"), tag.loc);\n }\n\n this.currentAttribute = {\n name: '',\n parts: [],\n isQuoted: false,\n isDynamic: false,\n start: b.pos(this.tokenizer.line, this.tokenizer.column),\n valueStartLine: 0,\n valueStartColumn: 0\n };\n }\n\n appendToAttributeName(char) {\n this.currentAttr.name += char;\n }\n\n beginAttributeValue(isQuoted) {\n this.currentAttr.isQuoted = isQuoted;\n this.currentAttr.valueStartLine = this.tokenizer.line;\n this.currentAttr.valueStartColumn = this.tokenizer.column;\n }\n\n appendToAttributeValue(char) {\n let parts = this.currentAttr.parts;\n let lastPart = parts[parts.length - 1];\n\n if (lastPart && lastPart.type === 'TextNode') {\n lastPart.chars += char; // update end location for each added char\n\n lastPart.loc.end.line = this.tokenizer.line;\n lastPart.loc.end.column = this.tokenizer.column;\n } else {\n // initially assume the text node is a single char\n let loc = b.loc(this.tokenizer.line, this.tokenizer.column, this.tokenizer.line, this.tokenizer.column); // correct for `\\n` as first char\n\n if (char === '\\n') {\n loc.start.line -= 1;\n loc.start.column = lastPart ? lastPart.loc.end.column : this.currentAttr.valueStartColumn;\n }\n\n let text = b.text(char, loc);\n parts.push(text);\n }\n }\n\n finishAttributeValue() {\n let {\n name,\n parts,\n isQuoted,\n isDynamic,\n valueStartLine,\n valueStartColumn\n } = this.currentAttr;\n let value = assembleAttributeValue(parts, isQuoted, isDynamic, this.tokenizer.line);\n value.loc = b.loc(valueStartLine, valueStartColumn, this.tokenizer.line, this.tokenizer.column);\n let loc = b.loc(this.currentAttr.start.line, this.currentAttr.start.column, this.tokenizer.line, this.tokenizer.column);\n let attribute = b.attr(name, value, loc);\n this.currentStartTag.attributes.push(attribute);\n }\n\n reportSyntaxError(message) {\n throw new SyntaxError(\"Syntax error at line \" + this.tokenizer.line + \" col \" + this.tokenizer.column + \": \" + message, b.loc(this.tokenizer.line, this.tokenizer.column));\n }\n\n }\n\n function assembleAttributeValue(parts, isQuoted, isDynamic, line) {\n if (isDynamic) {\n if (isQuoted) {\n return assembleConcatenatedValue(parts);\n } else {\n if (parts.length === 1 || parts.length === 2 && parts[1].type === 'TextNode' && parts[1].chars === '/') {\n return parts[0];\n } else {\n throw new SyntaxError(\"An unquoted attribute value must be a string or a mustache, \" + \"preceeded by whitespace or a '=' character, and \" + (\"followed by whitespace, a '>' character, or '/>' (on line \" + line + \")\"), b.loc(line, 0));\n }\n }\n } else {\n return parts.length > 0 ? parts[0] : b.text('');\n }\n }\n\n function assembleConcatenatedValue(parts) {\n for (let i = 0; i < parts.length; i++) {\n let part = parts[i];\n\n if (part.type !== 'MustacheStatement' && part.type !== 'TextNode') {\n throw new SyntaxError('Unsupported node in quoted attribute value: ' + part['type'], part.loc);\n }\n }\n\n return b.concat(parts);\n }\n\n function validateEndTag(tag, element, selfClosing) {\n let error;\n\n if (voidMap[tag.name] && !selfClosing) {\n // EngTag is also called by StartTag for void and self-closing tags (i.e.\n //
or
, so we need to check for that here. Otherwise, we would\n // throw an error for those cases.\n error = 'Invalid end tag ' + formatEndTagInfo(tag) + ' (void elements cannot have end tags).';\n } else if (element.tag === undefined) {\n error = 'Closing tag ' + formatEndTagInfo(tag) + ' without an open tag.';\n } else if (element.tag !== tag.name) {\n error = 'Closing tag ' + formatEndTagInfo(tag) + ' did not match last open tag `' + element.tag + '` (on line ' + element.loc.start.line + ').';\n }\n\n if (error) {\n throw new SyntaxError(error, element.loc);\n }\n }\n\n function formatEndTagInfo(tag) {\n return '`' + tag.name + '` (on line ' + tag.loc.end.line + ')';\n }\n\n const syntax = {\n parse: preprocess,\n builders: b,\n print: build,\n traverse,\n Walker\n };\n\n function preprocess(html, options) {\n const parseOptions = options ? options.parseOptions : {};\n let ast = typeof html === 'object' ? html : (0, _handlebars.parse)(html, parseOptions);\n let program = new TokenizerEventHandlers(html).acceptNode(ast);\n\n if (options && options.plugins && options.plugins.ast) {\n for (let i = 0, l = options.plugins.ast.length; i < l; i++) {\n let transform = options.plugins.ast[i];\n let env = (0, _util.assign)({}, options, {\n syntax\n }, {\n plugins: undefined\n });\n let pluginResult = transform(env);\n traverse(program, pluginResult.visitor);\n }\n }\n\n return program;\n }\n\n var nodes =\n /*#__PURE__*/\n Object.freeze({}); // used by ember-compiler\n\n _exports.AST = nodes;\n});","enifed(\"@glimmer/util\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.assert = debugAssert;\n _exports.assign = assign;\n _exports.fillNulls = fillNulls;\n _exports.ensureGuid = ensureGuid;\n _exports.initializeGuid = initializeGuid;\n _exports.dict = dict;\n _exports.unwrap = unwrap;\n _exports.expect = expect;\n _exports.unreachable = unreachable;\n _exports.EMPTY_ARRAY = _exports.ListSlice = _exports.ListNode = _exports.LinkedList = _exports.EMPTY_SLICE = _exports.DictSet = _exports.Stack = void 0;\n\n function unwrap(val) {\n if (val === null || val === undefined) throw new Error(\"Expected value to be present\");\n return val;\n }\n\n function expect(val, message) {\n if (val === null || val === undefined) throw new Error(message);\n return val;\n }\n\n function unreachable(message = 'unreachable') {\n return new Error(message);\n } // import Logger from './logger';\n // let alreadyWarned = false;\n\n\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 const {\n keys: objKeys\n } = Object;\n\n function assign(obj) {\n for (let i = 1; i < arguments.length; i++) {\n let assignment = arguments[i];\n if (assignment === null || typeof assignment !== 'object') continue;\n let keys = objKeys(assignment);\n\n for (let j = 0; j < keys.length; j++) {\n let key = keys[j];\n obj[key] = assignment[key];\n }\n }\n\n return obj;\n }\n\n function fillNulls(count) {\n let arr = new Array(count);\n\n for (let i = 0; i < count; i++) {\n arr[i] = null;\n }\n\n return arr;\n }\n\n let GUID = 0;\n\n function initializeGuid(object) {\n return object._guid = ++GUID;\n }\n\n function ensureGuid(object) {\n return object._guid || initializeGuid(object);\n }\n\n function dict() {\n return Object.create(null);\n }\n\n class DictSet {\n constructor() {\n this.dict = dict();\n }\n\n add(obj) {\n if (typeof obj === 'string') this.dict[obj] = obj;else this.dict[ensureGuid(obj)] = obj;\n return this;\n }\n\n delete(obj) {\n if (typeof obj === 'string') delete this.dict[obj];else if (obj._guid) delete this.dict[obj._guid];\n }\n\n }\n\n _exports.DictSet = DictSet;\n\n class Stack {\n constructor() {\n this.stack = [];\n this.current = null;\n }\n\n get size() {\n return this.stack.length;\n }\n\n push(item) {\n this.current = item;\n this.stack.push(item);\n }\n\n pop() {\n let item = this.stack.pop();\n let len = this.stack.length;\n this.current = len === 0 ? null : this.stack[len - 1];\n return item === undefined ? null : item;\n }\n\n isEmpty() {\n return this.stack.length === 0;\n }\n\n }\n\n _exports.Stack = Stack;\n\n class ListNode {\n constructor(value) {\n this.next = null;\n this.prev = null;\n this.value = value;\n }\n\n }\n\n _exports.ListNode = ListNode;\n\n class LinkedList {\n constructor() {\n this.clear();\n }\n\n head() {\n return this._head;\n }\n\n tail() {\n return this._tail;\n }\n\n clear() {\n this._head = this._tail = null;\n }\n\n toArray() {\n let out = [];\n this.forEachNode(n => out.push(n));\n return out;\n }\n\n nextNode(node) {\n return node.next;\n }\n\n forEachNode(callback) {\n let node = this._head;\n\n while (node !== null) {\n callback(node);\n node = node.next;\n }\n }\n\n insertBefore(node, reference = null) {\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 append(node) {\n let tail = this._tail;\n\n if (tail) {\n tail.next = node;\n node.prev = tail;\n node.next = null;\n } else {\n this._head = node;\n }\n\n return this._tail = node;\n }\n\n 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 }\n\n _exports.LinkedList = LinkedList;\n\n class ListSlice {\n constructor(head, tail) {\n this._head = head;\n this._tail = tail;\n }\n\n forEachNode(callback) {\n let node = this._head;\n\n while (node !== null) {\n callback(node);\n node = this.nextNode(node);\n }\n }\n\n head() {\n return this._head;\n }\n\n tail() {\n return this._tail;\n }\n\n toArray() {\n let out = [];\n this.forEachNode(n => out.push(n));\n return out;\n }\n\n nextNode(node) {\n if (node === this._tail) return null;\n return node.next;\n }\n\n }\n\n _exports.ListSlice = ListSlice;\n const EMPTY_SLICE = new ListSlice(null, null);\n _exports.EMPTY_SLICE = EMPTY_SLICE;\n const EMPTY_ARRAY = Object.freeze([]);\n _exports.EMPTY_ARRAY = EMPTY_ARRAY;\n});","enifed(\"@glimmer/vm\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.Register = void 0;\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 _exports.Register = Register;\n\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\"; // $1 or $ra (return address): pointer into `program` for the return\n\n Register[Register[\"ra\"] = 1] = \"ra\"; // $2 or $fp (frame pointer): pointer into the `evalStack` for the base of the stack\n\n Register[Register[\"fp\"] = 2] = \"fp\"; // $3 or $sp (stack pointer): pointer into the `evalStack` for the top of the stack\n\n Register[Register[\"sp\"] = 3] = \"sp\"; // $4-$5 or $s0-$s1 (saved): callee saved general-purpose registers\n\n Register[Register[\"s0\"] = 4] = \"s0\";\n Register[Register[\"s1\"] = 5] = \"s1\"; // $6-$7 or $t0-$t1 (temporaries): caller saved general-purpose registers\n\n Register[Register[\"t0\"] = 6] = \"t0\";\n Register[Register[\"t1\"] = 7] = \"t1\"; // $8 or $v0 (return value)\n\n Register[Register[\"v0\"] = 8] = \"v0\";\n })(Register || (_exports.Register = Register = {}));\n});","enifed(\"@glimmer/wire-format\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.is = is;\n _exports.isAttribute = isAttribute;\n _exports.isArgument = isArgument;\n _exports.Ops = _exports.isMaybeLocal = _exports.isGet = _exports.isFlushElement = void 0;\n var Opcodes;\n _exports.Ops = Opcodes;\n\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[\"DynamicComponent\"] = 6] = \"DynamicComponent\";\n Opcodes[Opcodes[\"OpenElement\"] = 7] = \"OpenElement\";\n Opcodes[Opcodes[\"OpenSplattedElement\"] = 8] = \"OpenSplattedElement\";\n Opcodes[Opcodes[\"FlushElement\"] = 9] = \"FlushElement\";\n Opcodes[Opcodes[\"CloseElement\"] = 10] = \"CloseElement\";\n Opcodes[Opcodes[\"StaticAttr\"] = 11] = \"StaticAttr\";\n Opcodes[Opcodes[\"DynamicAttr\"] = 12] = \"DynamicAttr\";\n Opcodes[Opcodes[\"ComponentAttr\"] = 13] = \"ComponentAttr\";\n Opcodes[Opcodes[\"AttrSplat\"] = 14] = \"AttrSplat\";\n Opcodes[Opcodes[\"Yield\"] = 15] = \"Yield\";\n Opcodes[Opcodes[\"Partial\"] = 16] = \"Partial\";\n Opcodes[Opcodes[\"DynamicArg\"] = 17] = \"DynamicArg\";\n Opcodes[Opcodes[\"StaticArg\"] = 18] = \"StaticArg\";\n Opcodes[Opcodes[\"TrustingAttr\"] = 19] = \"TrustingAttr\";\n Opcodes[Opcodes[\"TrustingComponentAttr\"] = 20] = \"TrustingComponentAttr\";\n Opcodes[Opcodes[\"Debugger\"] = 21] = \"Debugger\";\n Opcodes[Opcodes[\"ClientSideStatement\"] = 22] = \"ClientSideStatement\"; // Expressions\n\n Opcodes[Opcodes[\"Unknown\"] = 23] = \"Unknown\";\n Opcodes[Opcodes[\"Get\"] = 24] = \"Get\";\n Opcodes[Opcodes[\"MaybeLocal\"] = 25] = \"MaybeLocal\";\n Opcodes[Opcodes[\"HasBlock\"] = 26] = \"HasBlock\";\n Opcodes[Opcodes[\"HasBlockParams\"] = 27] = \"HasBlockParams\";\n Opcodes[Opcodes[\"Undefined\"] = 28] = \"Undefined\";\n Opcodes[Opcodes[\"Helper\"] = 29] = \"Helper\";\n Opcodes[Opcodes[\"Concat\"] = 30] = \"Concat\";\n Opcodes[Opcodes[\"ClientSideExpression\"] = 31] = \"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 } // Statements\n\n\n const isFlushElement = is(Opcodes.FlushElement);\n _exports.isFlushElement = isFlushElement;\n\n function isAttribute(val) {\n return val[0] === Opcodes.StaticAttr || val[0] === Opcodes.DynamicAttr || val[0] === Opcodes.ComponentAttr || val[0] === Opcodes.TrustingAttr || val[0] === Opcodes.TrustingComponentAttr || val[0] === Opcodes.AttrSplat;\n }\n\n function isArgument(val) {\n return val[0] === Opcodes.StaticArg || val[0] === Opcodes.DynamicArg;\n } // Expressions\n\n\n const isGet = is(Opcodes.Get);\n _exports.isGet = isGet;\n const isMaybeLocal = is(Opcodes.MaybeLocal);\n _exports.isMaybeLocal = isMaybeLocal;\n});","enifed(\"backburner\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.buildPlatform = buildPlatform;\n _exports.default = void 0;\n const SET_TIMEOUT = setTimeout;\n\n const NOOP = () => {};\n\n function buildNext(flush) {\n // Using \"promises first\" here to:\n //\n // 1) Ensure more consistent experience on browsers that\n // have differently queued microtasks (separate queues for\n // MutationObserver vs Promises).\n // 2) Ensure better debugging experiences (it shows up in Chrome\n // call stack as \"Promise.then (async)\") which is more consistent\n // with user expectations\n //\n // When Promise is unavailable use MutationObserver (mostly so that we\n // still get microtasks on IE11), and when neither MutationObserver and\n // Promise are present use a plain old setTimeout.\n if (typeof Promise === 'function') {\n const autorunPromise = Promise.resolve();\n return () => autorunPromise.then(flush);\n } else if (typeof MutationObserver === 'function') {\n let iterations = 0;\n let observer = new MutationObserver(flush);\n let node = document.createTextNode('');\n observer.observe(node, {\n characterData: true\n });\n return () => {\n iterations = ++iterations % 2;\n node.data = '' + iterations;\n return iterations;\n };\n } else {\n return () => SET_TIMEOUT(flush, 0);\n }\n }\n\n function buildPlatform(flush) {\n let clearNext = NOOP;\n return {\n setTimeout(fn, ms) {\n return setTimeout(fn, ms);\n },\n\n clearTimeout(timerId) {\n return clearTimeout(timerId);\n },\n\n now() {\n return Date.now();\n },\n\n next: buildNext(flush),\n clearNext\n };\n }\n\n const NUMBER = /\\d+/;\n const TIMERS_OFFSET = 6;\n\n function isCoercableNumber(suspect) {\n let type = typeof suspect;\n return type === 'number' && suspect === suspect || type === 'string' && NUMBER.test(suspect);\n }\n\n function getOnError(options) {\n return options.onError || options.onErrorTarget && options.onErrorTarget[options.onErrorMethod];\n }\n\n function findItem(target, method, collection) {\n let index = -1;\n\n for (let 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\n return index;\n }\n\n function findTimerItem(target, method, collection) {\n let index = -1;\n\n for (let i = 2, l = collection.length; i < l; i += 6) {\n if (collection[i] === target && collection[i + 1] === method) {\n index = i - 2;\n break;\n }\n }\n\n return index;\n }\n\n function getQueueItems(items, queueItemLength, queueItemPositionOffset = 0) {\n let queueItems = [];\n\n for (let i = 0; i < items.length; i += queueItemLength) {\n let maybeError = items[i + 3\n /* stack */\n + queueItemPositionOffset];\n let queueItem = {\n target: items[i + 0\n /* target */\n + queueItemPositionOffset],\n method: items[i + 1\n /* method */\n + queueItemPositionOffset],\n args: items[i + 2\n /* args */\n + queueItemPositionOffset],\n stack: maybeError !== undefined && 'stack' in maybeError ? maybeError.stack : ''\n };\n queueItems.push(queueItem);\n }\n\n return queueItems;\n }\n\n function binarySearch(time, timers) {\n let start = 0;\n let end = timers.length - TIMERS_OFFSET;\n let middle;\n let l;\n\n while (start < end) {\n // since timers is an array of pairs 'l' will always\n // be an integer\n l = (end - start) / TIMERS_OFFSET; // compensate for the index in case even number\n // of pairs inside timers\n\n middle = start + l - l % TIMERS_OFFSET;\n\n if (time >= timers[middle]) {\n start = middle + TIMERS_OFFSET;\n } else {\n end = middle;\n }\n }\n\n return time >= timers[start] ? start + TIMERS_OFFSET : start;\n }\n\n const QUEUE_ITEM_LENGTH = 4;\n\n class Queue {\n constructor(name, options = {}, globalOptions = {}) {\n this._queueBeingFlushed = [];\n this.targetQueues = new Map();\n this.index = 0;\n this._queue = [];\n this.name = name;\n this.options = options;\n this.globalOptions = globalOptions;\n }\n\n stackFor(index) {\n if (index < this._queue.length) {\n let entry = this._queue[index * 3 + QUEUE_ITEM_LENGTH];\n\n if (entry) {\n return entry.stack;\n } else {\n return null;\n }\n }\n }\n\n flush(sync) {\n let {\n before,\n after\n } = this.options;\n let target;\n let method;\n let args;\n let errorRecordedForStack;\n this.targetQueues.clear();\n\n if (this._queueBeingFlushed.length === 0) {\n this._queueBeingFlushed = this._queue;\n this._queue = [];\n }\n\n if (before !== undefined) {\n before();\n }\n\n let invoke;\n let queueItems = this._queueBeingFlushed;\n\n if (queueItems.length > 0) {\n let onError = getOnError(this.globalOptions);\n invoke = onError ? this.invokeWithOnError : this.invoke;\n\n for (let i = this.index; i < queueItems.length; i += QUEUE_ITEM_LENGTH) {\n this.index += QUEUE_ITEM_LENGTH;\n method = queueItems[i + 1]; // method could have been nullified / canceled during flush\n\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\n invoke(target, method, args, onError, errorRecordedForStack);\n }\n\n if (this.index !== this._queueBeingFlushed.length && this.globalOptions.mustYield && this.globalOptions.mustYield()) {\n return 1\n /* Pause */\n ;\n }\n }\n }\n\n if (after !== undefined) {\n after();\n }\n\n this._queueBeingFlushed.length = 0;\n this.index = 0;\n\n if (sync !== false && this._queue.length > 0) {\n // check if new items have been added\n this.flush(true);\n }\n }\n\n hasWork() {\n return this._queueBeingFlushed.length > 0 || this._queue.length > 0;\n }\n\n cancel({\n target,\n method\n }) {\n let queue = this._queue;\n let targetQueueMap = this.targetQueues.get(target);\n\n if (targetQueueMap !== undefined) {\n targetQueueMap.delete(method);\n }\n\n let index = findItem(target, method, queue);\n\n if (index > -1) {\n queue.splice(index, QUEUE_ITEM_LENGTH);\n return true;\n } // if not found in current queue\n // could be in the queue that is being flushed\n\n\n queue = this._queueBeingFlushed;\n index = findItem(target, method, queue);\n\n if (index > -1) {\n queue[index + 1] = null;\n return true;\n }\n\n return false;\n }\n\n push(target, method, args, stack) {\n this._queue.push(target, method, args, stack);\n\n return {\n queue: this,\n target,\n method\n };\n }\n\n pushUnique(target, method, args, stack) {\n let localQueueMap = this.targetQueues.get(target);\n\n if (localQueueMap === undefined) {\n localQueueMap = new Map();\n this.targetQueues.set(target, localQueueMap);\n }\n\n let index = localQueueMap.get(method);\n\n if (index === undefined) {\n let queueIndex = this._queue.push(target, method, args, stack) - QUEUE_ITEM_LENGTH;\n localQueueMap.set(method, queueIndex);\n } else {\n let queue = this._queue;\n queue[index + 2] = args; // replace args\n\n queue[index + 3] = stack; // replace stack\n }\n\n return {\n queue: this,\n target,\n method\n };\n }\n\n _getDebugInfo(debugEnabled) {\n if (debugEnabled) {\n let debugInfo = getQueueItems(this._queue, QUEUE_ITEM_LENGTH);\n return debugInfo;\n }\n\n return undefined;\n }\n\n invoke(target, method, args\n /*, onError, errorRecordedForStack */\n ) {\n if (args === undefined) {\n method.call(target);\n } else {\n method.apply(target, args);\n }\n }\n\n invokeWithOnError(target, method, args, onError, errorRecordedForStack) {\n try {\n if (args === undefined) {\n method.call(target);\n } else {\n method.apply(target, args);\n }\n } catch (error) {\n onError(error, errorRecordedForStack);\n }\n }\n\n }\n\n class DeferredActionQueues {\n constructor(queueNames = [], options) {\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 schedule(queueName, target, method, args, onceFlag, stack) {\n let queues = this.queues;\n let queue = queues[queueName];\n\n if (queue === undefined) {\n throw new Error(\"You attempted to schedule an action in a queue (\" + queueName + \") that doesn't exist\");\n }\n\n if (method === undefined || method === null) {\n throw new Error(\"You attempted to schedule an action in a queue (\" + queueName + \") for a method that doesn't exist\");\n }\n\n this.queueNameIndex = 0;\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.flush() calls Queue.flush()\n *\n * @method flush\n * @param {Boolean} fromAutorun\n */\n\n\n flush(fromAutorun = false) {\n let queue;\n let queueName;\n let numberOfQueues = this.queueNames.length;\n\n while (this.queueNameIndex < numberOfQueues) {\n queueName = this.queueNames[this.queueNameIndex];\n queue = this.queues[queueName];\n\n if (queue.hasWork() === false) {\n this.queueNameIndex++;\n\n if (fromAutorun && this.queueNameIndex < numberOfQueues) {\n return 1\n /* Pause */\n ;\n }\n } else {\n if (queue.flush(false\n /* async */\n ) === 1\n /* Pause */\n ) {\n return 1\n /* Pause */\n ;\n }\n }\n }\n }\n /**\n * Returns debug information for the current queues.\n *\n * @method _getDebugInfo\n * @param {Boolean} debugEnabled\n * @returns {IDebugInfo | undefined}\n */\n\n\n _getDebugInfo(debugEnabled) {\n if (debugEnabled) {\n let debugInfo = {};\n let queue;\n let queueName;\n let numberOfQueues = this.queueNames.length;\n let i = 0;\n\n while (i < numberOfQueues) {\n queueName = this.queueNames[i];\n queue = this.queues[queueName];\n debugInfo[queueName] = queue._getDebugInfo(debugEnabled);\n i++;\n }\n\n return debugInfo;\n }\n\n return;\n }\n\n }\n\n function iteratorDrain(fn) {\n let iterator = fn();\n let result = iterator.next();\n\n while (result.done === false) {\n result.value();\n result = iterator.next();\n }\n }\n\n const noop = function () {};\n\n const DISABLE_SCHEDULE = Object.freeze([]);\n\n function parseArgs() {\n let length = arguments.length;\n let args;\n let method;\n let target;\n\n if (length === 0) {} else if (length === 1) {\n target = null;\n method = arguments[0];\n } else {\n let argsIndex = 2;\n let methodOrTarget = arguments[0];\n let methodOrArgs = arguments[1];\n let type = typeof methodOrArgs;\n\n if (type === 'function') {\n target = methodOrTarget;\n method = methodOrArgs;\n } else if (methodOrTarget !== null && type === 'string' && methodOrArgs in methodOrTarget) {\n target = methodOrTarget;\n method = target[methodOrArgs];\n } else if (typeof methodOrTarget === 'function') {\n argsIndex = 1;\n target = null;\n method = methodOrTarget;\n }\n\n if (length > argsIndex) {\n let len = length - argsIndex;\n args = new Array(len);\n\n for (let i = 0; i < len; i++) {\n args[i] = arguments[i + argsIndex];\n }\n }\n }\n\n return [target, method, args];\n }\n\n function parseTimerArgs() {\n let [target, method, args] = parseArgs(...arguments);\n let wait = 0;\n let length = args !== undefined ? args.length : 0;\n\n if (length > 0) {\n let last = args[length - 1];\n\n if (isCoercableNumber(last)) {\n wait = parseInt(args.pop(), 10);\n }\n }\n\n return [target, method, args, wait];\n }\n\n function parseDebounceArgs() {\n let target;\n let method;\n let isImmediate;\n let args;\n let wait;\n\n if (arguments.length === 2) {\n method = arguments[0];\n wait = arguments[1];\n target = null;\n } else {\n [target, method, args] = parseArgs(...arguments);\n\n if (args === undefined) {\n wait = 0;\n } else {\n wait = args.pop();\n\n if (!isCoercableNumber(wait)) {\n isImmediate = wait === true;\n wait = args.pop();\n }\n }\n }\n\n wait = parseInt(wait, 10);\n return [target, method, args, wait, isImmediate];\n }\n\n let UUID = 0;\n let beginCount = 0;\n let endCount = 0;\n let beginEventCount = 0;\n let endEventCount = 0;\n let runCount = 0;\n let joinCount = 0;\n let deferCount = 0;\n let scheduleCount = 0;\n let scheduleIterableCount = 0;\n let deferOnceCount = 0;\n let scheduleOnceCount = 0;\n let setTimeoutCount = 0;\n let laterCount = 0;\n let throttleCount = 0;\n let debounceCount = 0;\n let cancelTimersCount = 0;\n let cancelCount = 0;\n let autorunsCreatedCount = 0;\n let autorunsCompletedCount = 0;\n let deferredActionQueuesCreatedCount = 0;\n let nestedDeferredActionQueuesCreated = 0;\n\n class Backburner {\n constructor(queueNames, options) {\n this.DEBUG = false;\n this.currentInstance = null;\n this.instanceStack = [];\n this._eventCallbacks = {\n end: [],\n begin: []\n };\n this._timerTimeoutId = null;\n this._timers = [];\n this._autorun = false;\n this._autorunStack = null;\n this.queueNames = queueNames;\n this.options = options || {};\n\n if (typeof this.options.defaultQueue === 'string') {\n this._defaultQueue = this.options.defaultQueue;\n } else {\n this._defaultQueue = this.queueNames[0];\n }\n\n this._onBegin = this.options.onBegin || noop;\n this._onEnd = this.options.onEnd || noop;\n this._boundRunExpiredTimers = this._runExpiredTimers.bind(this);\n\n this._boundAutorunEnd = () => {\n autorunsCompletedCount++; // if the autorun was already flushed, do nothing\n\n if (this._autorun === false) {\n return;\n }\n\n this._autorun = false;\n this._autorunStack = null;\n\n this._end(true\n /* fromAutorun */\n );\n };\n\n let builder = this.options._buildPlatform || buildPlatform;\n this._platform = builder(this._boundAutorunEnd);\n }\n\n get counters() {\n return {\n begin: beginCount,\n end: endCount,\n events: {\n begin: beginEventCount,\n end: endEventCount\n },\n autoruns: {\n created: autorunsCreatedCount,\n completed: autorunsCompletedCount\n },\n run: runCount,\n join: joinCount,\n defer: deferCount,\n schedule: scheduleCount,\n scheduleIterable: scheduleIterableCount,\n deferOnce: deferOnceCount,\n scheduleOnce: scheduleOnceCount,\n setTimeout: setTimeoutCount,\n later: laterCount,\n throttle: throttleCount,\n debounce: debounceCount,\n cancelTimers: cancelTimersCount,\n cancel: cancelCount,\n loops: {\n total: deferredActionQueuesCreatedCount,\n nested: nestedDeferredActionQueuesCreated\n }\n };\n }\n\n get defaultQueue() {\n return this._defaultQueue;\n }\n /*\n @method begin\n @return instantiated class DeferredActionQueues\n */\n\n\n begin() {\n beginCount++;\n let options = this.options;\n let previousInstance = this.currentInstance;\n let current;\n\n if (this._autorun !== false) {\n current = previousInstance;\n\n this._cancelAutorun();\n } else {\n if (previousInstance !== null) {\n nestedDeferredActionQueuesCreated++;\n this.instanceStack.push(previousInstance);\n }\n\n deferredActionQueuesCreatedCount++;\n current = this.currentInstance = new DeferredActionQueues(this.queueNames, options);\n beginEventCount++;\n\n this._trigger('begin', current, previousInstance);\n }\n\n this._onBegin(current, previousInstance);\n\n return current;\n }\n\n end() {\n endCount++;\n\n this._end(false);\n }\n\n on(eventName, callback) {\n if (typeof callback !== 'function') {\n throw new TypeError(\"Callback must be a function\");\n }\n\n let callbacks = this._eventCallbacks[eventName];\n\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 off(eventName, callback) {\n let callbacks = this._eventCallbacks[eventName];\n\n if (!eventName || callbacks === undefined) {\n throw new TypeError(\"Cannot off() event \" + eventName + \" because it does not exist\");\n }\n\n let callbackFound = false;\n\n if (callback) {\n for (let 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\n if (!callbackFound) {\n throw new TypeError(\"Cannot off() callback that does not exist\");\n }\n }\n\n run() {\n runCount++;\n let [target, method, args] = parseArgs(...arguments);\n return this._run(target, method, args);\n }\n\n join() {\n joinCount++;\n let [target, method, args] = parseArgs(...arguments);\n return this._join(target, method, args);\n }\n /**\n * @deprecated please use schedule instead.\n */\n\n\n defer(queueName, target, method, ...args) {\n deferCount++;\n return this.schedule(queueName, target, method, ...args);\n }\n\n schedule(queueName, ..._args) {\n scheduleCount++;\n let [target, method, args] = parseArgs(..._args);\n let stack = this.DEBUG ? new Error() : undefined;\n return this._ensureInstance().schedule(queueName, target, method, args, false, stack);\n }\n /*\n Defer the passed iterable of functions to run inside the specified queue.\n @method scheduleIterable\n @param {String} queueName\n @param {Iterable} an iterable of functions to execute\n @return method result\n */\n\n\n scheduleIterable(queueName, iterable) {\n scheduleIterableCount++;\n let stack = this.DEBUG ? new Error() : undefined;\n return this._ensureInstance().schedule(queueName, null, iteratorDrain, [iterable], false, stack);\n }\n /**\n * @deprecated please use scheduleOnce instead.\n */\n\n\n deferOnce(queueName, target, method, ...args) {\n deferOnceCount++;\n return this.scheduleOnce(queueName, target, method, ...args);\n }\n\n scheduleOnce(queueName, ..._args) {\n scheduleOnceCount++;\n let [target, method, args] = parseArgs(..._args);\n let stack = this.DEBUG ? new Error() : undefined;\n return this._ensureInstance().schedule(queueName, target, method, args, true, stack);\n }\n\n setTimeout() {\n setTimeoutCount++;\n return this.later(...arguments);\n }\n\n later() {\n laterCount++;\n let [target, method, args, wait] = parseTimerArgs(...arguments);\n return this._later(target, method, args, wait);\n }\n\n throttle() {\n throttleCount++;\n let [target, method, args, wait, isImmediate = true] = parseDebounceArgs(...arguments);\n let index = findTimerItem(target, method, this._timers);\n let timerId;\n\n if (index === -1) {\n timerId = this._later(target, method, isImmediate ? DISABLE_SCHEDULE : args, wait);\n\n if (isImmediate) {\n this._join(target, method, args);\n }\n } else {\n timerId = this._timers[index + 1];\n let argIndex = index + 4;\n\n if (this._timers[argIndex] !== DISABLE_SCHEDULE) {\n this._timers[argIndex] = args;\n }\n }\n\n return timerId;\n }\n\n debounce() {\n debounceCount++;\n let [target, method, args, wait, isImmediate = false] = parseDebounceArgs(...arguments);\n let _timers = this._timers;\n let index = findTimerItem(target, method, _timers);\n let timerId;\n\n if (index === -1) {\n timerId = this._later(target, method, isImmediate ? DISABLE_SCHEDULE : args, wait);\n\n if (isImmediate) {\n this._join(target, method, args);\n }\n } else {\n let executeAt = this._platform.now() + wait;\n let argIndex = index + 4;\n\n if (_timers[argIndex] === DISABLE_SCHEDULE) {\n args = DISABLE_SCHEDULE;\n }\n\n timerId = _timers[index + 1];\n let i = binarySearch(executeAt, _timers);\n\n if (index + TIMERS_OFFSET === i) {\n _timers[index] = executeAt;\n _timers[argIndex] = args;\n } else {\n let stack = this._timers[index + 5];\n\n this._timers.splice(i, 0, executeAt, timerId, target, method, args, stack);\n\n this._timers.splice(index, TIMERS_OFFSET);\n }\n\n if (index === 0) {\n this._reinstallTimerTimeout();\n }\n }\n\n return timerId;\n }\n\n cancelTimers() {\n cancelTimersCount++;\n\n this._clearTimerTimeout();\n\n this._timers = [];\n\n this._cancelAutorun();\n }\n\n hasTimers() {\n return this._timers.length > 0 || this._autorun;\n }\n\n cancel(timer) {\n cancelCount++;\n\n if (timer === null || timer === undefined) {\n return false;\n }\n\n let timerType = typeof timer;\n\n if (timerType === 'number') {\n // we're cancelling a setTimeout or throttle or debounce\n return this._cancelLaterTimer(timer);\n } else if (timerType === 'object' && timer.queue && timer.method) {\n // we're cancelling a deferOnce\n return timer.queue.cancel(timer);\n }\n\n return false;\n }\n\n ensureInstance() {\n this._ensureInstance();\n }\n /**\n * Returns debug information related to the current instance of Backburner\n *\n * @method getDebugInfo\n * @returns {Object | undefined} Will return and Object containing debug information if\n * the DEBUG flag is set to true on the current instance of Backburner, else undefined.\n */\n\n\n getDebugInfo() {\n if (this.DEBUG) {\n return {\n autorun: this._autorunStack,\n counters: this.counters,\n timers: getQueueItems(this._timers, TIMERS_OFFSET, 2),\n instanceStack: [this.currentInstance, ...this.instanceStack].map(deferredActionQueue => deferredActionQueue && deferredActionQueue._getDebugInfo(this.DEBUG))\n };\n }\n\n return undefined;\n }\n\n _end(fromAutorun) {\n let currentInstance = this.currentInstance;\n let nextInstance = null;\n\n if (currentInstance === null) {\n throw new Error(\"end called without begin\");\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\n\n let finallyAlreadyCalled = false;\n let result;\n\n try {\n result = currentInstance.flush(fromAutorun);\n } finally {\n if (!finallyAlreadyCalled) {\n finallyAlreadyCalled = true;\n\n if (result === 1\n /* Pause */\n ) {\n const plannedNextQueue = this.queueNames[currentInstance.queueNameIndex];\n\n this._scheduleAutorun(plannedNextQueue);\n } else {\n this.currentInstance = null;\n\n if (this.instanceStack.length > 0) {\n nextInstance = this.instanceStack.pop();\n this.currentInstance = nextInstance;\n }\n\n this._trigger('end', currentInstance, nextInstance);\n\n this._onEnd(currentInstance, nextInstance);\n }\n }\n }\n }\n\n _join(target, method, args) {\n if (this.currentInstance === null) {\n return this._run(target, method, args);\n }\n\n if (target === undefined && args === undefined) {\n return method();\n } else {\n return method.apply(target, args);\n }\n }\n\n _run(target, method, args) {\n let onError = getOnError(this.options);\n this.begin();\n\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 _cancelAutorun() {\n if (this._autorun) {\n this._platform.clearNext();\n\n this._autorun = false;\n this._autorunStack = null;\n }\n }\n\n _later(target, method, args, wait) {\n let stack = this.DEBUG ? new Error() : undefined;\n let executeAt = this._platform.now() + wait;\n let id = UUID++;\n\n if (this._timers.length === 0) {\n this._timers.push(executeAt, id, target, method, args, stack);\n\n this._installTimerTimeout();\n } else {\n // find position to insert\n let i = binarySearch(executeAt, this._timers);\n\n this._timers.splice(i, 0, executeAt, id, target, method, args, stack); // always reinstall since it could be out of sync\n\n\n this._reinstallTimerTimeout();\n }\n\n return id;\n }\n\n _cancelLaterTimer(timer) {\n for (let i = 1; i < this._timers.length; i += TIMERS_OFFSET) {\n if (this._timers[i] === timer) {\n this._timers.splice(i - 1, TIMERS_OFFSET);\n\n if (i === 1) {\n this._reinstallTimerTimeout();\n }\n\n return true;\n }\n }\n\n return false;\n }\n /**\n Trigger an event. Supports up to two arguments. Designed around\n triggering transition events from one run loop instance to the\n next, which requires an argument for the instance and then\n an argument for the next instance.\n @private\n @method _trigger\n @param {String} eventName\n @param {any} arg1\n @param {any} arg2\n */\n\n\n _trigger(eventName, arg1, arg2) {\n let callbacks = this._eventCallbacks[eventName];\n\n if (callbacks !== undefined) {\n for (let i = 0; i < callbacks.length; i++) {\n callbacks[i](arg1, arg2);\n }\n }\n }\n\n _runExpiredTimers() {\n this._timerTimeoutId = null;\n\n if (this._timers.length > 0) {\n this.begin();\n\n this._scheduleExpiredTimers();\n\n this.end();\n }\n }\n\n _scheduleExpiredTimers() {\n let timers = this._timers;\n let i = 0;\n let l = timers.length;\n let defaultQueue = this._defaultQueue;\n\n let n = this._platform.now();\n\n for (; i < l; i += TIMERS_OFFSET) {\n let executeAt = timers[i];\n\n if (executeAt > n) {\n break;\n }\n\n let args = timers[i + 4];\n\n if (args !== DISABLE_SCHEDULE) {\n let target = timers[i + 2];\n let method = timers[i + 3];\n let stack = timers[i + 5];\n this.currentInstance.schedule(defaultQueue, target, method, args, false, stack);\n }\n }\n\n timers.splice(0, i);\n\n this._installTimerTimeout();\n }\n\n _reinstallTimerTimeout() {\n this._clearTimerTimeout();\n\n this._installTimerTimeout();\n }\n\n _clearTimerTimeout() {\n if (this._timerTimeoutId === null) {\n return;\n }\n\n this._platform.clearTimeout(this._timerTimeoutId);\n\n this._timerTimeoutId = null;\n }\n\n _installTimerTimeout() {\n if (this._timers.length === 0) {\n return;\n }\n\n let minExpiresAt = this._timers[0];\n\n let n = this._platform.now();\n\n let wait = Math.max(0, minExpiresAt - n);\n this._timerTimeoutId = this._platform.setTimeout(this._boundRunExpiredTimers, wait);\n }\n\n _ensureInstance() {\n let currentInstance = this.currentInstance;\n\n if (currentInstance === null) {\n this._autorunStack = this.DEBUG ? new Error() : undefined;\n currentInstance = this.begin();\n\n this._scheduleAutorun(this.queueNames[0]);\n }\n\n return currentInstance;\n }\n\n _scheduleAutorun(plannedNextQueue) {\n autorunsCreatedCount++;\n const next = this._platform.next;\n const flush = this.options.flush;\n\n if (flush) {\n flush(plannedNextQueue, next);\n } else {\n next();\n }\n\n this._autorun = true;\n }\n\n }\n\n Backburner.Queue = Queue;\n Backburner.buildPlatform = buildPlatform;\n Backburner.buildNext = buildNext;\n var _default = Backburner;\n _exports.default = _default;\n});","enifed(\"dag-map\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\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\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\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\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\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\n\n DAG.prototype.each = function (callback) {\n this._vertices.walk(callback);\n };\n /**\n * @deprecated please use each.\n */\n\n\n DAG.prototype.topsort = function (callback) {\n this.each(callback);\n };\n\n return DAG;\n }();\n\n var _default = DAG;\n /** @private */\n\n _exports.default = _default;\n\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\n Vertices.prototype.add = function (key) {\n if (!key) throw new Error(\"missing key\");\n var l = this.length | 0;\n var vertex;\n\n for (var i = 0; i < l; i++) {\n vertex = this[i];\n if (vertex.key === key) return vertex;\n }\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\n Vertices.prototype.addEdge = function (v, w) {\n this.check(v, w.key);\n var l = w.length | 0;\n\n for (var i = 0; i < l; i++) {\n if (w[i] === v.idx) return;\n }\n\n w.length = l + 1;\n w[l] = v.idx;\n v.out = true;\n };\n\n Vertices.prototype.walk = function (cb) {\n this.reset();\n\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\n this.each(this.result, cb);\n };\n\n Vertices.prototype.check = function (v, w) {\n if (v.key === w) {\n throw new Error(\"cycle detected: \" + w + \" <- \" + w);\n } // quick check\n\n\n if (v.length === 0) return; // shallow check\n\n for (var i = 0; i < v.length; i++) {\n var key = this[v[i]].key;\n\n if (key === w) {\n throw new Error(\"cycle detected: \" + w + \" <- \" + v.key + \" <- \" + w);\n }\n } // deep check\n\n\n this.reset();\n this.visit(v, w);\n\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\n Vertices.prototype.reset = function () {\n this.stack.length = 0;\n this.path.length = 0;\n this.result.length = 0;\n\n for (var i = 0, l = this.length; i < l; i++) {\n this[i].flag = false;\n }\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\n stack.push(start.idx);\n\n while (stack.length) {\n var index = stack.pop() | 0;\n\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; // push exit\n\n stack.push(~index);\n this.pushIncoming(vertex);\n } else {\n // exit\n path.pop();\n result.push(~index);\n }\n }\n };\n\n Vertices.prototype.pushIncoming = function (incomming) {\n var stack = this.stack;\n\n for (var i = incomming.length - 1; i >= 0; i--) {\n var index = incomming[i];\n\n if (!this[index].flag) {\n stack.push(index);\n }\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\n return Vertices;\n }();\n /** @private */\n\n\n var IntStack = function () {\n function IntStack() {\n this.length = 0;\n }\n\n IntStack.prototype.push = function (n) {\n this[this.length++] = n | 0;\n };\n\n IntStack.prototype.pop = function () {\n return this[--this.length] | 0;\n };\n\n return IntStack;\n }();\n});","enifed(\"ember-babel\", [\"exports\", \"@glimmer/env\"], function (_exports, _env) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.wrapNativeSuper = wrapNativeSuper;\n _exports.classCallCheck = classCallCheck;\n _exports.inheritsLoose = inheritsLoose;\n _exports.taggedTemplateLiteralLoose = taggedTemplateLiteralLoose;\n _exports.createClass = createClass;\n _exports.assertThisInitialized = assertThisInitialized;\n _exports.possibleConstructorReturn = possibleConstructorReturn;\n _exports.objectDestructuringEmpty = objectDestructuringEmpty;\n const setPrototypeOf = Object.setPrototypeOf;\n var nativeWrapperCache = new Map(); // Super minimal version of Babel's wrapNativeSuper. We only use this for\n // extending Function, for ComputedDecoratorImpl and AliasDecoratorImpl. We know\n // we will never directly create an instance of these classes so no need to\n // include `construct` code or other helpers.\n\n function wrapNativeSuper(Class) {\n if (nativeWrapperCache.has(Class)) {\n return nativeWrapperCache.get(Class);\n }\n\n function Wrapper() {}\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n nativeWrapperCache.set(Class, Wrapper);\n return setPrototypeOf(Wrapper, Class);\n }\n\n function classCallCheck(instance, Constructor) {\n if (_env.DEBUG) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError('Cannot call a class as a function');\n }\n }\n }\n /*\n Overrides default `inheritsLoose` to _also_ call `Object.setPrototypeOf`.\n This is needed so that we can use `loose` option with the\n `@babel/plugin-transform-classes` (because we want simple assignment to the\n prototype whereever possible) but also keep our constructor based prototypal\n inheritance working properly\n */\n\n\n function inheritsLoose(subClass, superClass) {\n if (_env.DEBUG) {\n if (typeof superClass !== 'function' && superClass !== null) {\n throw new TypeError('Super expression must either be null or a function');\n }\n }\n\n subClass.prototype = Object.create(superClass === null ? null : superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n\n if (superClass !== null) {\n setPrototypeOf(subClass, superClass);\n }\n }\n\n function taggedTemplateLiteralLoose(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n\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 Differs from default implementation by avoiding boolean coercion of\n `protoProps` and `staticProps`.\n */\n\n\n function createClass(Constructor, protoProps, staticProps) {\n if (protoProps !== null && protoProps !== undefined) {\n _defineProperties(Constructor.prototype, protoProps);\n }\n\n if (staticProps !== null && staticProps !== undefined) {\n _defineProperties(Constructor, staticProps);\n }\n\n return Constructor;\n }\n\n function assertThisInitialized(self) {\n if (_env.DEBUG && self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n }\n /*\n Adds `DEBUG` guard to error being thrown, and avoids boolean coercion of `call`.\n */\n\n\n function possibleConstructorReturn(self, call) {\n if (typeof call === 'object' && call !== null || typeof call === 'function') {\n return call;\n }\n\n return assertThisInitialized(self);\n }\n\n function objectDestructuringEmpty(obj) {\n if (_env.DEBUG && (obj === null || obj === undefined)) {\n throw new TypeError('Cannot destructure undefined');\n }\n }\n});","enifed(\"ember-template-compiler/index\", [\"exports\", \"@ember/-internals/environment\", \"@ember/canary-features\", \"ember/version\", \"ember-template-compiler/lib/compat\", \"ember-template-compiler/lib/system/precompile\", \"ember-template-compiler/lib/system/compile\", \"ember-template-compiler/lib/system/compile-options\", \"ember-template-compiler/lib/plugins/index\", \"ember-template-compiler/lib/system/bootstrap\", \"ember-template-compiler/lib/system/initializer\"], function (_exports, _environment, _canaryFeatures, _version, _compat, _precompile, _compile, _compileOptions, _index, _bootstrap, _initializer) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.unregisterPlugin = _exports.registerPlugin = _exports.defaultPlugins = _exports.compileOptions = _exports.compile = _exports.precompile = _exports._Ember = void 0;\n _exports.precompile = _precompile.default;\n _exports.compile = _compile.default;\n _exports.compileOptions = _compileOptions.default;\n _exports.registerPlugin = _compileOptions.registerPlugin;\n _exports.unregisterPlugin = _compileOptions.unregisterPlugin;\n _exports.defaultPlugins = _index.default;\n\n const _Ember = typeof _environment.context.imports.Ember === 'object' && _environment.context.imports.Ember || {}; // private API used by ember-cli-htmlbars to setup ENV and FEATURES\n\n\n _exports._Ember = _Ember;\n\n if (!_Ember.ENV) {\n _Ember.ENV = _environment.ENV;\n }\n\n if (!_Ember.FEATURES) {\n _Ember.FEATURES = _canaryFeatures.FEATURES;\n }\n\n if (!_Ember.VERSION) {\n _Ember.VERSION = _version.default;\n } // used for adding Ember.Handlebars.compile for backwards compat\n\n\n (0, _compat.default)(_Ember);\n});","enifed(\"ember-template-compiler/lib/compat\", [\"exports\", \"ember-template-compiler/lib/system/compile\", \"ember-template-compiler/lib/system/compile-options\", \"ember-template-compiler/lib/system/precompile\"], function (_exports, _compile, _compileOptions, _precompile) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = setupGlobal;\n\n function setupGlobal(Ember) {\n let EmberHandlebars = Ember.Handlebars;\n\n if (!EmberHandlebars) {\n Ember.Handlebars = EmberHandlebars = {};\n }\n\n let EmberHTMLBars = Ember.HTMLBars;\n\n if (!EmberHTMLBars) {\n Ember.HTMLBars = EmberHTMLBars = {};\n }\n\n EmberHTMLBars.precompile = EmberHandlebars.precompile = _precompile.default;\n EmberHTMLBars.compile = EmberHandlebars.compile = _compile.default;\n EmberHTMLBars.registerPlugin = _compileOptions.registerPlugin;\n }\n});","enifed(\"ember-template-compiler/lib/plugins/assert-if-helper-without-arguments\", [\"exports\", \"@ember/debug\", \"ember-template-compiler/lib/system/calculate-location-display\"], function (_exports, _debug, _calculateLocationDisplay) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = assertIfHelperWithoutArguments;\n\n function assertIfHelperWithoutArguments(env) {\n let {\n moduleName\n } = env.meta;\n return {\n name: 'assert-if-helper-without-arguments',\n visitor: {\n BlockStatement(node) {\n if (isInvalidBlockIf(node)) {\n (0, _debug.assert)(blockAssertMessage(node.path.original) + \" \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc));\n }\n },\n\n MustacheStatement(node) {\n if (isInvalidInlineIf(node)) {\n (0, _debug.assert)(inlineAssertMessage(node.path.original) + \" \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc));\n }\n },\n\n SubExpression(node) {\n if (isInvalidInlineIf(node)) {\n (0, _debug.assert)(inlineAssertMessage(node.path.original) + \" \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc));\n }\n }\n\n }\n };\n }\n\n function blockAssertMessage(original) {\n return \"#\" + original + \" requires a single argument.\";\n }\n\n function inlineAssertMessage(original) {\n return \"The inline form of the '\" + original + \"' helper expects two or three arguments.\";\n }\n\n function isInvalidInlineIf(node) {\n return node.path.original === 'if' && (!node.params || node.params.length < 2 || node.params.length > 3);\n }\n\n function isInvalidBlockIf(node) {\n return node.path.original === 'if' && (!node.params || node.params.length !== 1);\n }\n});","enifed(\"ember-template-compiler/lib/plugins/assert-input-helper-without-block\", [\"exports\", \"@ember/debug\", \"ember-template-compiler/lib/system/calculate-location-display\"], function (_exports, _debug, _calculateLocationDisplay) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = errorOnInputWithContent;\n\n function errorOnInputWithContent(env) {\n let {\n moduleName\n } = env.meta;\n return {\n name: 'assert-input-helper-without-block',\n visitor: {\n BlockStatement(node) {\n if (node.path.original !== 'input') {\n return;\n }\n\n (0, _debug.assert)(assertMessage(moduleName, node));\n }\n\n }\n };\n }\n\n function assertMessage(moduleName, node) {\n let sourceInformation = (0, _calculateLocationDisplay.default)(moduleName, node.loc);\n return \"The {{input}} helper cannot be used in block form. \" + sourceInformation;\n }\n});","enifed(\"ember-template-compiler/lib/plugins/assert-local-variable-shadowing-helper-invocation\", [\"exports\", \"@ember/debug\", \"ember-template-compiler/lib/system/calculate-location-display\"], function (_exports, _debug, _calculateLocationDisplay) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = assertLocalVariableShadowingHelperInvocation;\n\n function assertLocalVariableShadowingHelperInvocation(env) {\n let {\n moduleName\n } = env.meta;\n let locals = [];\n return {\n name: 'assert-local-variable-shadowing-helper-invocation',\n visitor: {\n Program: {\n enter(node) {\n locals.push(node.blockParams);\n },\n\n exit() {\n locals.pop();\n }\n\n },\n ElementNode: {\n keys: {\n children: {\n enter(node) {\n locals.push(node.blockParams);\n },\n\n exit() {\n locals.pop();\n }\n\n }\n }\n },\n\n MustacheStatement(node) {\n if (isPath(node.path) && hasArguments(node)) {\n let name = node.path.parts[0];\n let type = 'helper';\n (0, _debug.assert)(messageFor(name, type) + \" \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc), !isLocalVariable(node.path, locals));\n }\n },\n\n SubExpression(node) {\n let name = node.path.parts[0];\n let type = 'helper';\n (0, _debug.assert)(messageFor(name, type) + \" \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc), !isLocalVariable(node.path, locals));\n },\n\n ElementModifierStatement(node) {\n let name = node.path.parts[0];\n let type = 'modifier';\n (0, _debug.assert)(messageFor(name, type) + \" \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc), !isLocalVariable(node.path, locals));\n }\n\n }\n };\n }\n\n function isLocalVariable(node, locals) {\n return !node.this && node.parts.length === 1 && hasLocalVariable(node.parts[0], locals);\n }\n\n function hasLocalVariable(name, locals) {\n return locals.some(names => names.indexOf(name) !== -1);\n }\n\n function messageFor(name, type) {\n return \"Cannot invoke the `\" + name + \"` \" + type + \" because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict.\";\n }\n\n function isPath(node) {\n return node.type === 'PathExpression';\n }\n\n function hasArguments(node) {\n return node.params.length > 0 || node.hash.pairs.length > 0;\n }\n});","enifed(\"ember-template-compiler/lib/plugins/assert-reserved-named-arguments\", [\"exports\", \"@ember/debug\", \"ember-template-compiler/lib/system/calculate-location-display\"], function (_exports, _debug, _calculateLocationDisplay) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = assertReservedNamedArguments;\n\n function assertReservedNamedArguments(env) {\n let {\n moduleName\n } = env.meta;\n return {\n name: 'assert-reserved-named-arguments',\n visitor: {\n // In general, we don't assert on the invocation side to avoid creating migration\n // hazards (e.g. using angle bracket to invoke a classic component that uses\n // `this.someReservedName`. However, we want to avoid leaking special internal\n // things, such as `__ARGS__`, so those would need to be asserted on both sides.\n AttrNode({\n name,\n loc\n }) {\n if (name === '@__ARGS__') {\n (0, _debug.assert)(assertMessage(name) + \" \" + (0, _calculateLocationDisplay.default)(moduleName, loc));\n }\n },\n\n HashPair({\n key,\n loc\n }) {\n if (key === '__ARGS__') {\n (0, _debug.assert)(assertMessage(key) + \" \" + (0, _calculateLocationDisplay.default)(moduleName, loc));\n }\n },\n\n PathExpression({\n original,\n loc\n }) {\n if (isReserved(original)) {\n (0, _debug.assert)(assertMessage(original) + \" \" + (0, _calculateLocationDisplay.default)(moduleName, loc));\n }\n }\n\n }\n };\n }\n\n const RESERVED = ['@arguments', '@args', '@block', '@else'];\n\n function isReserved(name) {\n return RESERVED.indexOf(name) !== -1 || Boolean(name.match(/^@[^a-z]/));\n }\n\n function assertMessage(name) {\n return \"'\" + name + \"' is reserved.\";\n }\n});","enifed(\"ember-template-compiler/lib/plugins/assert-splattribute-expression\", [\"exports\", \"@ember/debug\", \"ember-template-compiler/lib/system/calculate-location-display\"], function (_exports, _debug, _calculateLocationDisplay) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = assertSplattributeExpressions;\n\n function assertSplattributeExpressions(env) {\n let {\n moduleName\n } = env.meta;\n return {\n name: 'assert-splattribute-expressions',\n visitor: {\n PathExpression({\n original,\n loc\n }) {\n if (original === '...attributes') {\n (0, _debug.assert)(errorMessage() + \" \" + (0, _calculateLocationDisplay.default)(moduleName, loc));\n }\n }\n\n }\n };\n }\n\n function errorMessage() {\n return '`...attributes` can only be used in the element position e.g. `
`. It cannot be used as a path.';\n }\n});","enifed(\"ember-template-compiler/lib/plugins/deprecate-send-action\", [\"exports\", \"@ember/canary-features\", \"@ember/debug\", \"@ember/deprecated-features\", \"ember-template-compiler/lib/system/calculate-location-display\"], function (_exports, _canaryFeatures, _debug, _deprecatedFeatures, _calculateLocationDisplay) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = deprecateSendAction;\n const EVENTS = ['insert-newline', 'enter', 'escape-press', 'focus-in', 'focus-out', 'key-press', 'key-up', 'key-down'];\n\n function deprecateSendAction(env) {\n if (_deprecatedFeatures.SEND_ACTION) {\n let {\n moduleName\n } = env.meta;\n\n let deprecationMessage = (node, eventName, actionName) => {\n let sourceInformation = (0, _calculateLocationDisplay.default)(moduleName, node.loc);\n\n if (_canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS && node.type === 'ElementNode') {\n return \"Passing actions to components as strings (like `
`) is deprecated. Please use closure actions instead (`
`). \" + sourceInformation;\n } else {\n return \"Passing actions to components as strings (like `{{input \" + eventName + \"=\\\"\" + actionName + \"\\\"}}`) is deprecated. Please use closure actions instead (`{{input \" + eventName + \"=(action \\\"\" + actionName + \"\\\")}}`). \" + sourceInformation;\n }\n };\n\n return {\n name: 'deprecate-send-action',\n visitor: {\n ElementNode(node) {\n if (!_canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS || node.tag !== 'Input') {\n return;\n }\n\n node.attributes.forEach(({\n name,\n value\n }) => {\n if (name.charAt(0) === '@') {\n let eventName = name.substring(1);\n\n if (EVENTS.indexOf(eventName) > -1) {\n if (value.type === 'TextNode') {\n (0, _debug.deprecate)(deprecationMessage(node, eventName, value.chars), false, {\n id: 'ember-component.send-action',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_ember-component-send-action'\n });\n } else if (value.type === 'MustacheStatement' && value.path.type === 'StringLiteral') {\n (0, _debug.deprecate)(deprecationMessage(node, eventName, value.path.original), false, {\n id: 'ember-component.send-action',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_ember-component-send-action'\n });\n }\n }\n }\n });\n },\n\n MustacheStatement(node) {\n if (node.path.original !== 'input') {\n return;\n }\n\n node.hash.pairs.forEach(pair => {\n if (EVENTS.indexOf(pair.key) > -1 && pair.value.type === 'StringLiteral') {\n (0, _debug.deprecate)(deprecationMessage(node, pair.key, pair.value.original), false, {\n id: 'ember-component.send-action',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_ember-component-send-action'\n });\n }\n });\n }\n\n }\n };\n }\n\n return;\n }\n});","enifed(\"ember-template-compiler/lib/plugins/index\", [\"exports\", \"ember-template-compiler/lib/plugins/assert-if-helper-without-arguments\", \"ember-template-compiler/lib/plugins/assert-input-helper-without-block\", \"ember-template-compiler/lib/plugins/assert-local-variable-shadowing-helper-invocation\", \"ember-template-compiler/lib/plugins/assert-reserved-named-arguments\", \"ember-template-compiler/lib/plugins/assert-splattribute-expression\", \"ember-template-compiler/lib/plugins/deprecate-send-action\", \"ember-template-compiler/lib/plugins/transform-action-syntax\", \"ember-template-compiler/lib/plugins/transform-attrs-into-args\", \"ember-template-compiler/lib/plugins/transform-component-invocation\", \"ember-template-compiler/lib/plugins/transform-each-in-into-each\", \"ember-template-compiler/lib/plugins/transform-has-block-syntax\", \"ember-template-compiler/lib/plugins/transform-in-element\", \"ember-template-compiler/lib/plugins/transform-input-type-syntax\", \"ember-template-compiler/lib/plugins/transform-link-to\", \"ember-template-compiler/lib/plugins/transform-old-class-binding-syntax\", \"ember-template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings\", \"@ember/canary-features\", \"@ember/deprecated-features\"], function (_exports, _assertIfHelperWithoutArguments, _assertInputHelperWithoutBlock, _assertLocalVariableShadowingHelperInvocation, _assertReservedNamedArguments, _assertSplattributeExpression, _deprecateSendAction, _transformActionSyntax, _transformAttrsIntoArgs, _transformComponentInvocation, _transformEachInIntoEach, _transformHasBlockSyntax, _transformInElement, _transformInputTypeSyntax, _transformLinkTo, _transformOldClassBindingSyntax, _transformQuotedBindingsIntoJustBindings, _canaryFeatures, _deprecatedFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n const transforms = [_transformComponentInvocation.default, _transformOldClassBindingSyntax.default, _transformQuotedBindingsIntoJustBindings.default, _assertReservedNamedArguments.default, _transformActionSyntax.default, _transformAttrsIntoArgs.default, _transformEachInIntoEach.default, _transformHasBlockSyntax.default, _assertLocalVariableShadowingHelperInvocation.default, _transformLinkTo.default, _assertInputHelperWithoutBlock.default, _transformInElement.default, _assertIfHelperWithoutArguments.default, _assertSplattributeExpression.default];\n\n if (!_canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {\n transforms.push(_transformInputTypeSyntax.default);\n }\n\n if (_deprecatedFeatures.SEND_ACTION) {\n transforms.push(_deprecateSendAction.default);\n }\n\n var _default = Object.freeze(transforms);\n\n _exports.default = _default;\n});","enifed(\"ember-template-compiler/lib/plugins/transform-action-syntax\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = transformActionSyntax;\n\n /**\n @module ember\n */\n\n /**\n A Glimmer2 AST transformation that replaces all instances of\n \n ```handlebars\n
\n \n \n ```\n \n with\n \n ```handlebars\n \n \n \n ```\n \n @private\n @class TransformActionSyntax\n */\n function transformActionSyntax({\n syntax\n }) {\n let {\n builders: b\n } = syntax;\n return {\n name: 'transform-action-syntax',\n visitor: {\n ElementModifierStatement(node) {\n if (isAction(node)) {\n insertThisAsFirstParam(node, b);\n }\n },\n\n MustacheStatement(node) {\n if (isAction(node)) {\n insertThisAsFirstParam(node, b);\n }\n },\n\n SubExpression(node) {\n if (isAction(node)) {\n insertThisAsFirstParam(node, b);\n }\n }\n\n }\n };\n }\n\n function isAction(node) {\n return node.path.original === 'action';\n }\n\n function insertThisAsFirstParam(node, builders) {\n node.params.unshift(builders.path('this'));\n }\n});","enifed(\"ember-template-compiler/lib/plugins/transform-attrs-into-args\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = transformAttrsIntoArgs;\n\n /**\n @module ember\n */\n\n /**\n A Glimmer2 AST transformation that replaces all instances of\n \n ```handlebars\n {{attrs.foo.bar}}\n ```\n \n to\n \n ```handlebars\n {{@foo.bar}}\n ```\n \n as well as `{{#if attrs.foo}}`, `{{deeply (nested attrs.foobar.baz)}}`,\n `{{this.attrs.foo}}` etc\n \n @private\n @class TransformAttrsToProps\n */\n function transformAttrsIntoArgs(env) {\n let {\n builders: b\n } = env.syntax;\n let stack = [[]];\n return {\n name: 'transform-attrs-into-args',\n visitor: {\n Program: {\n enter(node) {\n let parent = stack[stack.length - 1];\n stack.push(parent.concat(node.blockParams));\n },\n\n exit() {\n stack.pop();\n }\n\n },\n\n PathExpression(node) {\n if (isAttrs(node, stack[stack.length - 1])) {\n let path = b.path(node.original.substr(6));\n path.original = \"@\" + path.original;\n path.data = true;\n return path;\n }\n }\n\n }\n };\n }\n\n function isAttrs(node, symbols) {\n let name = node.parts[0];\n\n if (symbols.indexOf(name) !== -1) {\n return false;\n }\n\n if (name === 'attrs') {\n if (node.this === true) {\n node.parts.shift();\n node.original = node.original.slice(5);\n }\n\n return true;\n }\n\n return false;\n }\n});","enifed(\"ember-template-compiler/lib/plugins/transform-component-invocation\", [\"exports\", \"ember-template-compiler/lib/system/calculate-location-display\"], function (_exports, _calculateLocationDisplay) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = transformComponentInvocation;\n\n /**\n Transforms unambigious invocations of closure components to be wrapped with\n the component helper. Once these syntaxes are fully supported by Glimmer VM\n natively, this transform can be removed.\n \n ```handlebars\n {{!-- this.foo is not a legal helper/component name --}}\n {{this.foo \"with\" some=\"args\"}}\n ```\n \n with\n \n ```handlebars\n {{component this.foo \"with\" some=\"args\"}}\n ```\n \n and\n \n ```handlebars\n {{!-- this.foo is not a legal helper/component name --}}\n {{#this.foo}}...{{/this.foo}}\n ```\n \n with\n \n ```handlebars\n {{#component this.foo}}...{{/component}}\n ```\n \n and\n \n ```handlebars\n {{!-- foo.bar is not a legal helper/component name --}}\n {{foo.bar \"with\" some=\"args\"}}\n ```\n \n with\n \n ```handlebars\n {{component foo.bar \"with\" some=\"args\"}}\n ```\n \n and\n \n ```handlebars\n {{!-- foo.bar is not a legal helper/component name --}}\n {{#foo.bar}}...{{/foo.bar}}\n ```\n \n with\n \n ```handlebars\n {{#component foo.bar}}...{{/component}}\n ```\n \n and\n \n ```handlebars\n {{!-- @foo is not a legal helper/component name --}}\n {{@foo \"with\" some=\"args\"}}\n ```\n \n with\n \n ```handlebars\n {{component @foo \"with\" some=\"args\"}}\n ```\n \n and\n \n ```handlebars\n {{!-- @foo is not a legal helper/component name --}}\n {{#@foo}}...{{/@foo}}\n ```\n \n with\n \n ```handlebars\n {{#component @foo}}...{{/component}}\n ```\n \n and\n \n ```handlebars\n {{#let ... as |foo|}}\n {{!-- foo is a local variable --}}\n {{foo \"with\" some=\"args\"}}\n {{/let}}\n ```\n \n with\n \n ```handlebars\n {{#let ... as |foo|}}\n {{component foo \"with\" some=\"args\"}}\n {{/let}}\n ```\n \n and\n \n ```handlebars\n {{#let ... as |foo|}}\n {{!-- foo is a local variable --}}\n {{#foo}}...{{/foo}}\n {{/let}}\n ```\n \n with\n \n ```handlebars\n {{#let ... as |foo|}}\n {{#component foo}}...{{/component}}\n {{/let}}\n ```\n \n @private\n @class TransFormComponentInvocation\n */\n function transformComponentInvocation(env) {\n let {\n moduleName\n } = env.meta;\n let {\n builders: b\n } = env.syntax;\n let locals = [];\n let isAttrs = false;\n return {\n name: 'transform-component-invocation',\n visitor: {\n Program: {\n enter(node) {\n locals.push(node.blockParams);\n },\n\n exit() {\n locals.pop();\n }\n\n },\n ElementNode: {\n keys: {\n attributes: {\n enter() {\n isAttrs = true;\n },\n\n exit() {\n isAttrs = false;\n }\n\n },\n children: {\n enter(node) {\n locals.push(node.blockParams);\n },\n\n exit() {\n locals.pop();\n }\n\n }\n }\n },\n\n BlockStatement(node) {\n if (isBlockInvocation(node, locals)) {\n wrapInComponent(moduleName, node, b);\n }\n },\n\n MustacheStatement(node) {\n if (!isAttrs && isInlineInvocation(node, locals)) {\n wrapInComponent(moduleName, node, b);\n }\n }\n\n }\n };\n }\n\n function isInlineInvocation(node, locals) {\n let {\n path\n } = node;\n return isPath(path) && isIllegalName(path, locals) && hasArguments(node);\n }\n\n function isPath(node) {\n return node.type === 'PathExpression';\n }\n\n function isIllegalName(node, locals) {\n return isThisPath(node) || isDotPath(node) || isNamedArg(node) || isLocalVariable(node, locals);\n }\n\n function isThisPath(node) {\n return node.this === true;\n }\n\n function isDotPath(node) {\n return node.parts.length > 1;\n }\n\n function isNamedArg(node) {\n return node.data === true;\n }\n\n function isLocalVariable(node, locals) {\n return !node.this && hasLocalVariable(node.parts[0], locals);\n }\n\n function hasLocalVariable(name, locals) {\n return locals.some(names => names.indexOf(name) !== -1);\n }\n\n function hasArguments(node) {\n return node.params.length > 0 || node.hash.pairs.length > 0;\n }\n\n function isBlockInvocation(node, locals) {\n return isIllegalName(node.path, locals);\n }\n\n function wrapInAssertion(moduleName, node, b) {\n let error = b.string(\"expected `\" + node.original + \"` to be a contextual component but found a string. Did you mean `(component \" + node.original + \")`? \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc));\n return b.sexpr(b.path('-assert-implicit-component-helper-argument'), [node, error], b.hash(), node.loc);\n }\n\n function wrapInComponent(moduleName, node, b) {\n let component = wrapInAssertion(moduleName, node.path, b);\n node.path = b.path('component');\n node.params.unshift(component);\n }\n});","enifed(\"ember-template-compiler/lib/plugins/transform-each-in-into-each\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = transformEachInIntoEach;\n\n /**\n @module ember\n */\n\n /**\n A Glimmer2 AST transformation that replaces all instances of\n \n ```handlebars\n {{#each-in iterableThing as |key value|}}\n ```\n \n with\n \n ```handlebars\n {{#each (-each-in iterableThing) as |value key|}}\n ```\n \n @private\n @class TransformHasBlockSyntax\n */\n function transformEachInIntoEach(env) {\n let {\n builders: b\n } = env.syntax;\n return {\n name: 'transform-each-in-into-each',\n visitor: {\n BlockStatement(node) {\n if (node.path.original === 'each-in') {\n node.params[0] = b.sexpr(b.path('-each-in'), [node.params[0]]);\n let blockParams = node.program.blockParams;\n\n if (!blockParams || blockParams.length === 0) {// who uses {{#each-in}} without block params?!\n } else if (blockParams.length === 1) {\n // insert a dummy variable for the first slot\n // pick a name that won't parse so it won't shadow any real variables\n blockParams = ['( unused value )', blockParams[0]];\n } else {\n let key = blockParams.shift();\n let value = blockParams.shift();\n blockParams = [value, key, ...blockParams];\n }\n\n node.program.blockParams = blockParams;\n return b.block(b.path('each'), node.params, node.hash, node.program, node.inverse, node.loc);\n }\n }\n\n }\n };\n }\n});","enifed(\"ember-template-compiler/lib/plugins/transform-has-block-syntax\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = transformHasBlockSyntax;\n\n /**\n @module ember\n */\n\n /**\n A Glimmer2 AST transformation that replaces all instances of\n \n ```handlebars\n {{hasBlock}}\n ```\n \n with\n \n ```handlebars\n {{has-block}}\n ```\n \n @private\n @class TransformHasBlockSyntax\n */\n const TRANSFORMATIONS = {\n hasBlock: 'has-block',\n hasBlockParams: 'has-block-params'\n };\n\n function transformHasBlockSyntax(env) {\n let {\n builders: b\n } = env.syntax;\n return {\n name: 'transform-has-block-syntax',\n visitor: {\n PathExpression(node) {\n if (TRANSFORMATIONS[node.original]) {\n return b.sexpr(b.path(TRANSFORMATIONS[node.original]));\n }\n },\n\n MustacheStatement(node) {\n if (typeof node.path.original === 'string' && TRANSFORMATIONS[node.path.original]) {\n return b.mustache(b.path(TRANSFORMATIONS[node.path.original]), node.params, node.hash, undefined, node.loc);\n }\n },\n\n SubExpression(node) {\n if (TRANSFORMATIONS[node.path.original]) {\n return b.sexpr(b.path(TRANSFORMATIONS[node.path.original]), node.params, node.hash);\n }\n }\n\n }\n };\n }\n});","enifed(\"ember-template-compiler/lib/plugins/transform-in-element\", [\"exports\", \"@ember/debug\", \"ember-template-compiler/lib/system/calculate-location-display\"], function (_exports, _debug, _calculateLocationDisplay) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = transformInElement;\n\n /**\n @module ember\n */\n\n /**\n glimmer-vm has made the `in-element` API public from its perspective (in\n https://github.com/glimmerjs/glimmer-vm/pull/619) so in glimmer-vm the\n correct keyword to use is `in-element`, however Ember is still working through\n its form of `in-element` (see https://github.com/emberjs/rfcs/pull/287).\n \n There are enough usages of the pre-existing private API (`{{-in-element`) in\n the wild that we need to transform `{{-in-element` into `{{in-element` during\n template transpilation, but since RFC#287 is not landed and enabled by default we _also_ need\n to prevent folks from starting to use `{{in-element` \"for realz\".\n \n Tranforms:\n \n ```handlebars\n {{#-in-element someElement}}\n {{modal-display text=text}}\n {{/-in-element}}\n ```\n \n into:\n \n ```handlebars\n {{#in-element someElement}}\n {{modal-display text=text}}\n {{/in-element}}\n ```\n \n And issues a build time assertion for:\n \n ```handlebars\n {{#in-element someElement}}\n {{modal-display text=text}}\n {{/in-element}}\n ```\n \n @private\n @class TransformHasBlockSyntax\n */\n function transformInElement(env) {\n let {\n moduleName\n } = env.meta;\n let {\n builders: b\n } = env.syntax;\n let cursorCount = 0;\n return {\n name: 'transform-in-element',\n visitor: {\n BlockStatement(node) {\n if (node.path.original === 'in-element') {\n (0, _debug.assert)(assertMessage(moduleName, node));\n } else if (node.path.original === '-in-element') {\n node.path.original = 'in-element';\n node.path.parts = ['in-element']; // replicate special hash arguments added here:\n // https://github.com/glimmerjs/glimmer-vm/blob/ba9b37d44b85fa1385eeeea71910ff5798198c8e/packages/%40glimmer/syntax/lib/parser/handlebars-node-visitors.ts#L340-L363\n\n let hasNextSibling = false;\n let hash = node.hash;\n hash.pairs.forEach(pair => {\n if (pair.key === 'nextSibling') {\n hasNextSibling = true;\n }\n });\n let guid = b.literal('StringLiteral', \"%cursor:\" + cursorCount++ + \"%\");\n let guidPair = b.pair('guid', guid);\n hash.pairs.unshift(guidPair);\n\n if (!hasNextSibling) {\n let nullLiteral = b.literal('NullLiteral', null);\n let nextSibling = b.pair('nextSibling', nullLiteral);\n hash.pairs.push(nextSibling);\n }\n }\n }\n\n }\n };\n }\n\n function assertMessage(moduleName, node) {\n let sourceInformation = (0, _calculateLocationDisplay.default)(moduleName, node.loc);\n return \"The {{in-element}} helper cannot be used. \" + sourceInformation;\n }\n});","enifed(\"ember-template-compiler/lib/plugins/transform-input-type-syntax\", [\"exports\", \"@ember/canary-features\", \"@glimmer/util\"], function (_exports, _canaryFeatures, _util) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n A Glimmer2 AST transformation that replaces all instances of\n \n ```handlebars\n {{input type=boundType}}\n ```\n \n with\n \n ```handlebars\n {{input (-input-type boundType) type=boundType}}\n ```\n \n Note that the type parameters is not removed as the -input-type helpers\n is only used to select the component class. The component still needs\n the type parameter to function.\n \n @private\n @class TransformInputTypeSyntax\n */\n let transformInputTypeSyntax;\n\n if (_canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {\n transformInputTypeSyntax = () => {\n throw (0, _util.unreachable)();\n };\n } else {\n transformInputTypeSyntax = function transformInputTypeSyntax(env) {\n let b = env.syntax.builders;\n return {\n name: 'transform-input-type-syntax',\n visitor: {\n MustacheStatement(node) {\n if (isInput(node)) {\n insertTypeHelperParameter(node, b);\n }\n }\n\n }\n };\n };\n\n let isInput = function isInput(node) {\n return node.path.original === 'input';\n };\n\n let insertTypeHelperParameter = function insertTypeHelperParameter(node, builders) {\n let pairs = node.hash.pairs;\n let pair = null;\n\n for (let i = 0; i < pairs.length; i++) {\n if (pairs[i].key === 'type') {\n pair = pairs[i];\n break;\n }\n }\n\n if (pair && pair.value.type !== 'StringLiteral') {\n node.params.unshift(builders.sexpr('-input-type', [pair.value], undefined, pair.loc));\n }\n };\n }\n\n var _default = transformInputTypeSyntax;\n _exports.default = _default;\n});","enifed(\"ember-template-compiler/lib/plugins/transform-link-to\", [\"exports\", \"@ember/canary-features\", \"@ember/debug\", \"ember-template-compiler/lib/system/calculate-location-display\"], function (_exports, _canaryFeatures, _debug, _calculateLocationDisplay) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = transformLinkTo;\n\n function isInlineLinkTo(node) {\n return node.path.original === 'link-to';\n }\n\n function isBlockLinkTo(node) {\n return node.path.original === 'link-to';\n }\n\n function isSubExpression(node) {\n return node.type === 'SubExpression';\n }\n\n function isQueryParams(node) {\n return isSubExpression(node) && node.path.original === 'query-params';\n }\n\n function transformInlineLinkToIntoBlockForm(env, node) {\n let {\n builders: b\n } = env.syntax;\n return b.block('link-to', node.params.slice(1), node.hash, buildProgram(b, node.params[0], node.escaped, node.loc), null, node.loc);\n }\n\n function transformPositionalLinkToIntoNamedArguments(env, node) {\n let {\n builders: b\n } = env.syntax;\n let {\n moduleName\n } = env.meta;\n let {\n params,\n hash: {\n pairs\n }\n } = node;\n let keys = pairs.map(pair => pair.key);\n\n if (params.length === 0) {\n (0, _debug.assert)(\"You must provide one or more parameters to the `{{link-to}}` component. \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('params') !== -1 || keys.indexOf('route') !== -1 || keys.indexOf('model') !== -1 || keys.indexOf('models') !== -1 || keys.indexOf('query') !== -1);\n return node;\n } else {\n (0, _debug.assert)(\"You cannot pass positional parameters and the `params` argument to the `{{link-to}}` component at the same time. \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('params') === -1);\n (0, _debug.assert)(\"You cannot pass positional parameters and the `route` argument to the `{{link-to}}` component at the same time. \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('route') === -1);\n (0, _debug.assert)(\"You cannot pass positional parameters and the `model` argument to the `{{link-to}}` component at the same time. \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('model') === -1);\n (0, _debug.assert)(\"You cannot pass positional parameters and the `models` argument to the `{{link-to}}` component at the same time. \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('models') === -1);\n (0, _debug.assert)(\"You cannot pass positional parameters and the `query` argument to the `{{link-to}}` component at the same time. \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc), keys.indexOf('query') === -1);\n }\n\n (0, _debug.assert)(\"You must provide one or more parameters to the `{{link-to}}` component. \" + (0, _calculateLocationDisplay.default)(moduleName, node.loc), params.length > 0); // 1. The last argument is possibly the `query` object.\n\n let query = params[params.length - 1];\n\n if (query && isQueryParams(query)) {\n params.pop();\n (0, _debug.assert)(\"The `(query-params ...)` helper does not take positional arguments. \" + (0, _calculateLocationDisplay.default)(moduleName, query.loc), query.params.length === 0);\n pairs.push(b.pair('query', b.sexpr(b.path('hash', query.path.loc), [], query.hash, query.loc), query.loc));\n } // 2. If there is a `route`, it is now at index 0.\n\n\n let route = params.shift();\n\n if (route) {\n pairs.push(b.pair('route', route, route.loc));\n } // 3. Any remaining indices (if any) are `models`.\n\n\n if (params.length === 1) {\n pairs.push(b.pair('model', params[0], params[0].loc));\n } else if (params.length > 1) {\n pairs.push(b.pair('models', b.sexpr(b.path('array', node.loc), params, undefined, node.loc), node.loc));\n }\n\n return b.block(node.path, null, b.hash(pairs, node.hash.loc), node.program, node.inverse, node.loc);\n }\n\n function buildProgram(b, content, escaped, loc) {\n return b.program([buildStatement(b, content, escaped, loc)], undefined, loc);\n }\n\n function buildStatement(b, content, escaped, loc) {\n switch (content.type) {\n case 'PathExpression':\n return b.mustache(content, undefined, undefined, !escaped, loc);\n\n case 'SubExpression':\n return b.mustache(content.path, content.params, content.hash, !escaped, loc);\n // The default case handles literals.\n\n default:\n return b.text(\"\" + content.value, loc);\n }\n }\n\n function transformLinkTo(env) {\n return {\n name: 'transform-link-to',\n visitor: {\n MustacheStatement(node) {\n if (isInlineLinkTo(node)) {\n let block = transformInlineLinkToIntoBlockForm(env, node);\n\n if (_canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {\n block = transformPositionalLinkToIntoNamedArguments(env, block);\n }\n\n return block;\n }\n },\n\n BlockStatement(node) {\n if (_canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS && isBlockLinkTo(node)) {\n return transformPositionalLinkToIntoNamedArguments(env, node);\n }\n }\n\n }\n };\n }\n});","enifed(\"ember-template-compiler/lib/plugins/transform-old-class-binding-syntax\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = transformOldClassBindingSyntax;\n\n function transformOldClassBindingSyntax(env) {\n let b = env.syntax.builders;\n return {\n name: 'transform-old-class-binding-syntax',\n visitor: {\n MustacheStatement(node) {\n process(b, node);\n },\n\n BlockStatement(node) {\n process(b, node);\n }\n\n }\n };\n }\n\n function process(b, node) {\n let allOfTheMicrosyntaxes = [];\n let allOfTheMicrosyntaxIndexes = [];\n let classPair;\n each(node.hash.pairs, (pair, index) => {\n let {\n key\n } = pair;\n\n if (key === 'classBinding' || key === 'classNameBindings') {\n allOfTheMicrosyntaxIndexes.push(index);\n allOfTheMicrosyntaxes.push(pair);\n } else if (key === 'class') {\n classPair = pair;\n }\n });\n\n if (allOfTheMicrosyntaxes.length === 0) {\n return;\n }\n\n let classValue = [];\n\n if (classPair) {\n classValue.push(classPair.value);\n classValue.push(b.string(' '));\n } else {\n classPair = b.pair('class', null);\n node.hash.pairs.push(classPair);\n }\n\n each(allOfTheMicrosyntaxIndexes, index => {\n node.hash.pairs.splice(index, 1);\n });\n each(allOfTheMicrosyntaxes, ({\n value\n }) => {\n let sexprs = []; // TODO: add helpful deprecation when both `classNames` and `classNameBindings` can\n // be removed.\n\n if (value.type === 'StringLiteral') {\n let microsyntax = parseMicrosyntax(value.original);\n buildSexprs(microsyntax, sexprs, b);\n classValue.push(...sexprs);\n }\n });\n let hash = b.hash();\n classPair.value = b.sexpr(b.path('concat'), classValue, hash);\n }\n\n function buildSexprs(microsyntax, sexprs, b) {\n for (let i = 0; i < microsyntax.length; i++) {\n let [propName, activeClass, inactiveClass] = microsyntax[i];\n let sexpr; // :my-class-name microsyntax for static values\n\n if (propName === '') {\n sexpr = b.string(activeClass);\n } else {\n let params = [b.path(propName)];\n\n if (activeClass || activeClass === '') {\n params.push(b.string(activeClass));\n } else {\n let sexprParams = [b.string(propName), b.path(propName)];\n let hash = b.hash();\n\n if (activeClass !== undefined) {\n hash.pairs.push(b.pair('activeClass', b.string(activeClass)));\n }\n\n if (inactiveClass !== undefined) {\n hash.pairs.push(b.pair('inactiveClass', b.string(inactiveClass)));\n }\n\n params.push(b.sexpr(b.path('-normalize-class'), sexprParams, hash));\n }\n\n if (inactiveClass || inactiveClass === '') {\n params.push(b.string(inactiveClass));\n }\n\n sexpr = b.sexpr(b.path('if'), params);\n }\n\n sexprs.push(sexpr);\n sexprs.push(b.string(' '));\n }\n }\n\n function each(list, callback) {\n for (let i = 0; i < list.length; i++) {\n callback(list[i], i);\n }\n }\n\n function parseMicrosyntax(string) {\n let segments = string.split(' ');\n let ret = [];\n\n for (let i = 0; i < segments.length; i++) {\n ret[i] = segments[i].split(':');\n }\n\n return ret;\n }\n});","enifed(\"ember-template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = transformQuotedBindingsIntoJustBindings;\n\n function transformQuotedBindingsIntoJustBindings()\n /* env */\n {\n return {\n name: 'transform-quoted-bindings-into-just-bindings',\n visitor: {\n ElementNode(node) {\n let styleAttr = getStyleAttr(node);\n\n if (!validStyleAttr(styleAttr)) {\n return;\n }\n\n styleAttr.value = styleAttr.value.parts[0];\n }\n\n }\n };\n }\n\n function validStyleAttr(attr) {\n if (!attr) {\n return false;\n }\n\n let value = attr.value;\n\n if (!value || value.type !== 'ConcatStatement' || value.parts.length !== 1) {\n return false;\n }\n\n let onlyPart = value.parts[0];\n return onlyPart.type === 'MustacheStatement';\n }\n\n function getStyleAttr(node) {\n let attributes = node.attributes;\n\n for (let i = 0; i < attributes.length; i++) {\n if (attributes[i].name === 'style') {\n return attributes[i];\n }\n }\n\n return undefined;\n }\n});","enifed(\"ember-template-compiler/lib/system/bootstrap\", [\"exports\", \"ember-template-compiler/lib/system/compile\"], function (_exports, _compile) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n Find templates stored in the head tag as script tags and make them available\n to `Ember.CoreView` in the global `Ember.TEMPLATES` object.\n \n Script tags with `text/x-handlebars` will be compiled\n with Ember's template compiler and are suitable for use as a view's template.\n \n @private\n @method bootstrap\n @for Ember.HTMLBars\n @static\n @param ctx\n */\n function bootstrap({\n context,\n hasTemplate,\n setTemplate\n }) {\n if (!context) {\n context = document;\n }\n\n let selector = 'script[type=\"text/x-handlebars\"]';\n let elements = context.querySelectorAll(selector);\n\n for (let i = 0; i < elements.length; i++) {\n let script = elements[i]; // Get the name of the script\n // First look for data-template-name attribute, then fall back to its\n // id if no name is found.\n\n let templateName = script.getAttribute('data-template-name') || script.getAttribute('id') || 'application';\n let template;\n template = (0, _compile.default)(script.innerHTML, {\n moduleName: templateName\n }); // Check if template of same name already exists.\n\n if (hasTemplate(templateName)) {\n throw new Error(\"Template named \\\"\" + templateName + \"\\\" already exists.\");\n } // For templates which have a name, we save them and then remove them from the DOM.\n\n\n setTemplate(templateName, template); // Remove script tag from DOM.\n\n script.parentNode.removeChild(script);\n }\n }\n\n var _default = bootstrap;\n _exports.default = _default;\n});","enifed(\"ember-template-compiler/lib/system/calculate-location-display\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = calculateLocationDisplay;\n\n function calculateLocationDisplay(moduleName, loc) {\n let moduleInfo = '';\n\n if (moduleName) {\n moduleInfo += \"'\" + moduleName + \"' \";\n }\n\n if (loc) {\n let {\n column,\n line\n } = loc.start || {\n line: undefined,\n column: undefined\n };\n\n if (line !== undefined && column !== undefined) {\n if (moduleName) {\n // only prepend @ if the moduleName was present\n moduleInfo += '@ ';\n }\n\n moduleInfo += \"L\" + line + \":C\" + column;\n }\n }\n\n if (moduleInfo) {\n moduleInfo = \"(\" + moduleInfo + \") \";\n }\n\n return moduleInfo;\n }\n});","enifed(\"ember-template-compiler/lib/system/compile-options\", [\"exports\", \"@ember/polyfills\", \"ember-template-compiler/lib/plugins/index\", \"ember-template-compiler/lib/system/dasherize-component-name\"], function (_exports, _polyfills, _index, _dasherizeComponentName) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = compileOptions;\n _exports.registerPlugin = registerPlugin;\n _exports.unregisterPlugin = unregisterPlugin;\n let USER_PLUGINS = [];\n\n function compileOptions(_options) {\n let options = (0, _polyfills.assign)({\n meta: {}\n }, _options, {\n customizeComponentName(tagname) {\n return _dasherizeComponentName.default.get(tagname);\n }\n\n }); // move `moduleName` into `meta` property\n\n if (options.moduleName) {\n let meta = options.meta;\n meta.moduleName = options.moduleName;\n }\n\n if (!options.plugins) {\n options.plugins = {\n ast: [...USER_PLUGINS, ..._index.default]\n };\n } else {\n let potententialPugins = [...USER_PLUGINS, ..._index.default];\n let providedPlugins = options.plugins.ast.map(plugin => wrapLegacyPluginIfNeeded(plugin));\n let pluginsToAdd = potententialPugins.filter(plugin => {\n return options.plugins.ast.indexOf(plugin) === -1;\n });\n options.plugins.ast = providedPlugins.concat(pluginsToAdd);\n }\n\n return options;\n }\n\n function wrapLegacyPluginIfNeeded(_plugin) {\n let plugin = _plugin;\n\n if (_plugin.prototype && _plugin.prototype.transform) {\n const pluginFunc = env => {\n let pluginInstantiated = false;\n return {\n name: _plugin.constructor && _plugin.constructor.name,\n visitor: {\n Program(node) {\n if (!pluginInstantiated) {\n pluginInstantiated = true;\n let plugin = new _plugin(env);\n plugin.syntax = env.syntax;\n return plugin.transform(node);\n }\n }\n\n }\n };\n };\n\n pluginFunc.__raw = _plugin;\n plugin = pluginFunc;\n }\n\n return plugin;\n }\n\n function registerPlugin(type, _plugin) {\n if (type !== 'ast') {\n throw new Error(\"Attempting to register \" + _plugin + \" as \\\"\" + type + \"\\\" which is not a valid Glimmer plugin type.\");\n }\n\n for (let i = 0; i < USER_PLUGINS.length; i++) {\n let PLUGIN = USER_PLUGINS[i];\n\n if (PLUGIN === _plugin || PLUGIN.__raw === _plugin) {\n return;\n }\n }\n\n let plugin = wrapLegacyPluginIfNeeded(_plugin);\n USER_PLUGINS = [plugin, ...USER_PLUGINS];\n }\n\n function unregisterPlugin(type, PluginClass) {\n if (type !== 'ast') {\n throw new Error(\"Attempting to unregister \" + PluginClass + \" as \\\"\" + type + \"\\\" which is not a valid Glimmer plugin type.\");\n }\n\n USER_PLUGINS = USER_PLUGINS.filter(plugin => plugin !== PluginClass && plugin.__raw !== PluginClass);\n }\n});","enifed(\"ember-template-compiler/lib/system/compile\", [\"exports\", \"require\", \"ember-template-compiler/lib/system/precompile\"], function (_exports, _require, _precompile) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = compile;\n\n /**\n @module ember\n */\n let template;\n /**\n Uses HTMLBars `compile` function to process a string into a compiled template.\n \n This is not present in production builds.\n \n @private\n @method compile\n @param {String} templateString This is the string to be compiled by HTMLBars.\n @param {Object} options This is an options hash to augment the compiler options.\n */\n\n function compile(templateString, options) {\n if (!template && (0, _require.has)('@ember/-internals/glimmer')) {\n // tslint:disable-next-line:no-require-imports\n template = (0, _require.default)(\"@ember/-internals/glimmer\").template;\n }\n\n if (!template) {\n throw new Error('Cannot call `compile` with only the template compiler loaded. Please load `ember.debug.js` or `ember.prod.js` prior to calling `compile`.');\n }\n\n let precompiledTemplateString = (0, _precompile.default)(templateString, options);\n let templateJS = new Function(\"return \" + precompiledTemplateString)();\n return template(templateJS);\n }\n});","enifed(\"ember-template-compiler/lib/system/dasherize-component-name\", [\"exports\", \"@ember/-internals/utils\", \"@ember/canary-features\"], function (_exports, _utils, _canaryFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /*\n This diverges from `Ember.String.dasherize` so that` ` can resolve to `x-foo`.\n `Ember.String.dasherize` would resolve it to `xfoo`..\n */\n const SIMPLE_DASHERIZE_REGEXP = /[A-Z]|::/g;\n const ALPHA = /[A-Za-z0-9]/;\n\n var _default = new _utils.Cache(1000, key => key.replace(SIMPLE_DASHERIZE_REGEXP, (char, index) => {\n if (char === '::') {\n if (_canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_NESTED_LOOKUP) {\n return '/';\n } else {\n return char;\n }\n }\n\n if (index === 0 || !ALPHA.test(key[index - 1])) {\n return char.toLowerCase();\n }\n\n return \"-\" + char.toLowerCase();\n }));\n\n _exports.default = _default;\n});","enifed(\"ember-template-compiler/lib/system/initializer\", [\"require\", \"ember-template-compiler/lib/system/bootstrap\"], function (_require, _bootstrap) {\n \"use strict\";\n\n // Globals mode template compiler\n if ((0, _require.has)('@ember/application') && (0, _require.has)('@ember/-internals/browser-environment') && (0, _require.has)('@ember/-internals/glimmer')) {\n // tslint:disable:no-require-imports\n let emberEnv = (0, _require.default)(\"@ember/-internals/browser-environment\");\n let emberGlimmer = (0, _require.default)(\"@ember/-internals/glimmer\");\n let emberApp = (0, _require.default)(\"@ember/application\");\n let Application = emberApp.default;\n let {\n hasTemplate,\n setTemplate\n } = emberGlimmer;\n let {\n hasDOM\n } = emberEnv;\n Application.initializer({\n name: 'domTemplates',\n\n initialize() {\n let context;\n\n if (hasDOM) {\n context = document;\n }\n\n (0, _bootstrap.default)({\n context,\n hasTemplate,\n setTemplate\n });\n }\n\n });\n }\n});","enifed(\"ember-template-compiler/lib/system/precompile\", [\"exports\", \"@glimmer/compiler\", \"ember-template-compiler/lib/system/compile-options\"], function (_exports, _compiler, _compileOptions) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = precompile;\n\n /**\n @module ember\n */\n\n /**\n Uses HTMLBars `compile` function to process a string into a compiled template string.\n The returned string must be passed through `Ember.HTMLBars.template`.\n \n This is not present in production builds.\n \n @private\n @method precompile\n @param {String} templateString This is the string to be compiled by HTMLBars.\n */\n function precompile(templateString, options) {\n return (0, _compiler.precompile)(templateString, (0, _compileOptions.default)(options));\n }\n});","enifed(\"ember-template-compiler/tests/plugins/assert-if-helper-without-arguments-test\", [\"ember-template-compiler/index\", \"internal-test-helpers\"], function (_index, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: assert-if-helper-without-argument', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test block if helper expects one argument\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if}}aVal{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"#if requires a single argument. ('baz/foo-bar' @ L1:C0) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if val1 val2}}aVal{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"#if requires a single argument. ('baz/foo-bar' @ L1:C0) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if}}aVal{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"#if requires a single argument. ('baz/foo-bar' @ L1:C0) \");\n }\n\n [\"@test inline if helper expects between one and three arguments\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"The inline form of the 'if' helper expects two or three arguments. ('baz/foo-bar' @ L1:C0) \");\n (0, _index.compile)(\"{{if foo bar baz}}\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n ['@test subexpression if helper expects between one and three arguments']() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{input foo=(if)}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"The inline form of the 'if' helper expects two or three arguments. ('baz/foo-bar' @ L1:C12) \");\n (0, _index.compile)(\"{{some-thing foo=(if foo bar baz)}}\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n });\n});","enifed(\"ember-template-compiler/tests/plugins/assert-input-helper-without-block-test\", [\"ember-template-compiler/index\", \"internal-test-helpers\"], function (_index, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: assert-input-helper-without-block', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Using {{#input}}{{/input}} is not valid']() {\n let expectedMessage = \"The {{input}} helper cannot be used in block form. ('baz/foo-bar' @ L1:C0) \";\n expectAssertion(() => {\n (0, _index.compile)('{{#input value=\"123\"}}Completely invalid{{/input}}', {\n moduleName: 'baz/foo-bar'\n });\n }, expectedMessage);\n }\n\n });\n});","enifed(\"ember-template-compiler/tests/plugins/assert-local-variable-shadowing-helper-invocation-test\", [\"ember-template-compiler/index\", \"internal-test-helpers\"], function (_index, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: assert-local-variable-shadowing-helper-invocation', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test block statements shadowing sub-expression invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n {{concat (foo)}}\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C21) \");\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n {{concat (foo bar baz)}}\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C21) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}{{/let}}\\n {{concat (foo)}}\\n {{concat (foo bar baz)}}\", {\n moduleName: 'baz/foo-bar'\n }); // Not invocations\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n {{concat foo}}\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n {{#let (concat foo) as |concat|}}\\n {{input value=concat}}\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test element nodes shadowing sub-expression invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n \\n {{concat (foo)}}\\n \", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C21) \");\n expectAssertion(() => {\n (0, _index.compile)(\"\\n \\n {{concat (foo bar baz)}}\\n \", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C21) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n \\n {{concat (foo)}}\\n {{concat (foo bar baz)}}\", {\n moduleName: 'baz/foo-bar'\n }); // Not invocations\n\n (0, _index.compile)(\"\\n \\n {{concat foo}}\\n \", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n \\n {{input value=concat}}\\n \", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test deeply nested sub-expression invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n {{concat (foo)}}\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L5:C25) \");\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n {{concat (foo bar baz)}}\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L5:C25) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n {{/each}}\\n {{concat (baz)}}\\n {{concat (baz bat)}}\\n \\n {{concat (bar)}}\\n {{concat (bar baz bat)}}\\n {{/let}}\\n {{concat (foo)}}\\n {{concat (foo bar baz bat)}}\", {\n moduleName: 'baz/foo-bar'\n }); // Not invocations\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n {{concat foo}}\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n {{#let (foo foo) as |foo|}}\\n \\n {{#each (baz baz) as |baz|}}\\n {{concat foo bar baz}}\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test block statements shadowing attribute sub-expression invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n
\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C32) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}{{/let}}\\n
\\n
\", {\n moduleName: 'baz/foo-bar'\n }); // Not invocations\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n
\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n {{#let (foo foo) as |foo|}}\\n
\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test element nodes shadowing attribute sub-expression invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n \\n
\\n \", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C32) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n \\n
\\n
\", {\n moduleName: 'baz/foo-bar'\n }); // Not invocations\n\n (0, _index.compile)(\"\\n \\n
\\n \", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n \\n
\\n \", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test deeply nested attribute sub-expression invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n
\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L5:C36) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n {{/each}}\\n
\\n
\\n \\n
\\n
\\n {{/let}}\\n
\\n
\", {\n moduleName: 'baz/foo-bar'\n }); // Not invocations\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n
\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n {{#let (foo foo) as |foo|}}\\n \\n {{#each (baz baz) as |baz|}}\\n
\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test block statements shadowing attribute mustache invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n
\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C23) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}{{/let}}\\n
\\n
\", {\n moduleName: 'baz/foo-bar'\n }); // Not invocations\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n
\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n {{#let (concat foo) as |concat|}}\\n
\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test element nodes shadowing attribute mustache invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n \\n
\\n \", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C23) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n \\n
\\n
\", {\n moduleName: 'baz/foo-bar'\n }); // Not invocations\n\n (0, _index.compile)(\"\\n \\n
\\n \", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n \\n
\\n \", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test deeply nested attribute mustache invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n
\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` helper because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L5:C27) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n {{/each}}\\n
\\n
\\n \\n
\\n
\\n {{/let}}\\n
\\n
\", {\n moduleName: 'baz/foo-bar'\n }); // Not invocations\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n
\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n {{#let (foo foo) as |foo|}}\\n \\n {{#each (baz baz) as |baz|}}\\n
\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test block statements shadowing mustache invocations\"](assert) {\n // These are fine, because they should already be considered contextual\n // component invocations, not helper invocations\n assert.expect(0);\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n {{foo}}\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n {{foo bar baz}}\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test element nodes shadowing mustache invocations\"](assert) {\n // These are fine, because they should already be considered contextual\n // component invocations, not helper invocations\n assert.expect(0);\n (0, _index.compile)(\"\\n \\n {{foo}}\\n \", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n \\n {{foo bar baz}}\\n \", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test deeply nested mustache invocations\"](assert) {\n // These are fine, because they should already be considered contextual\n // component invocations, not helper invocations\n assert.expect(0);\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n {{foo}}\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n {{foo bar baz}}\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test block statements shadowing modifier invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n
\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` modifier because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C17) \");\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n
\\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` modifier because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C17) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}{{/let}}\\n
\\n
\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test element nodes shadowing modifier invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n \\n
\\n \", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` modifier because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C17) \");\n expectAssertion(() => {\n (0, _index.compile)(\"\\n \\n
\\n \", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` modifier because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L3:C17) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n \\n
\\n
\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n [\"@test deeply nested modifier invocations\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n
\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` modifier because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L5:C21) \");\n expectAssertion(() => {\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n
\\n {{/each}}\\n \\n {{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"Cannot invoke the `foo` modifier because it was shadowed by a local variable (i.e. a block param) with the same name. Please rename the local variable to resolve the conflict. ('baz/foo-bar' @ L5:C21) \"); // Not shadowed\n\n (0, _index.compile)(\"\\n {{#let foo as |foo|}}\\n \\n {{#each items as |baz|}}\\n {{/each}}\\n
\\n
\\n \\n
\\n
\\n {{/let}}\\n
\\n
\", {\n moduleName: 'baz/foo-bar'\n });\n }\n\n });\n});","enifed(\"ember-template-compiler/tests/plugins/assert-reserved-named-arguments-test\", [\"ember-template-compiler/index\", \"internal-test-helpers\"], function (_index, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: assert-reserved-named-arguments', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test '@arguments' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@arguments}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@arguments' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @arguments}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@arguments' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @arguments \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@arguments' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@args' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@args}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@args' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @args}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@args' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @args \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@args' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@block' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@block}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@block' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @block}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@block' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @block \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@block' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@else' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@else}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@else' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @else}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@else' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @else \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@else' is reserved. ('baz/foo-bar' @ L1:C17) \");\n } // anything else that doesn't start with a lower case letter\n\n\n [\"@test '@Arguments' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@Arguments}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@Arguments' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @Arguments}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@Arguments' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @Arguments \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@Arguments' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@Args' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@Args}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@Args' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @Args}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@Args' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @Args \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@Args' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@FOO' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@FOO}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@FOO' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @FOO}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@FOO' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @FOO \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@FOO' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@Foo' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@Foo}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@Foo' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @Foo}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@Foo' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @Foo \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@Foo' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@.' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@.}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@.' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @.}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@.' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @. \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@.' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@_' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@_}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@_' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @_}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@_' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @_ \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@_' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@-' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@-}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@-' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @-}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@-' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @- \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@-' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@$' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\"{{@$}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@$' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @$}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@$' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @$ \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@$' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@__ARGS__' is reserved\"]() {\n expectAssertion(() => {\n (0, _index.compile)(\" \", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@__ARGS__' is reserved. ('baz/foo-bar' @ L1:C5) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{foo __ARGS__=\\\"bar\\\"}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'__ARGS__' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#let (component \\\"foo\\\" __ARGS__=\\\"bar\\\") as |c|}}{{c}}{{/let}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'__ARGS__' is reserved. ('baz/foo-bar' @ L1:C24) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{@__ARGS__}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@__ARGS__' is reserved. ('baz/foo-bar' @ L1:C2) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{#if @__ARGS__}}Yup{{/if}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@__ARGS__' is reserved. ('baz/foo-bar' @ L1:C6) \");\n expectAssertion(() => {\n (0, _index.compile)(\"{{input type=(if @__ARGS__ \\\"bar\\\" \\\"baz\\\")}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, \"'@__ARGS__' is reserved. ('baz/foo-bar' @ L1:C17) \");\n }\n\n [\"@test '@' is de facto reserved (parse error)\"](assert) {\n assert.throws(() => {\n (0, _index.compile)('{{@}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{#if @}}Yup{{/if}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{input type=(if @ \"bar\" \"baz\")}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n }\n\n [\"@test '@0' is de facto reserved (parse error)\"](assert) {\n assert.throws(() => {\n (0, _index.compile)('{{@0}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{#if @0}}Yup{{/if}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{input type=(if @0 \"bar\" \"baz\")}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n }\n\n [\"@test '@1' is de facto reserved (parse error)\"](assert) {\n assert.throws(() => {\n (0, _index.compile)('{{@1}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{#if @1}}Yup{{/if}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{input type=(if @1 \"bar\" \"baz\")}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n }\n\n [\"@test '@2' is de facto reserved (parse error)\"](assert) {\n assert.throws(() => {\n (0, _index.compile)('{{@2}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{#if @2}}Yup{{/if}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{input type=(if @2 \"bar\" \"baz\")}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n }\n\n [\"@test '@@' is de facto reserved (parse error)\"](assert) {\n assert.throws(() => {\n (0, _index.compile)('{{@@}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{#if @@}}Yup{{/if}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{input type=(if @@ \"bar\" \"baz\")}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n }\n\n [\"@test '@=' is de facto reserved (parse error)\"](assert) {\n assert.throws(() => {\n (0, _index.compile)('{{@=}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{#if @=}}Yup{{/if}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{input type=(if @= \"bar\" \"baz\")}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n }\n\n [\"@test '@!' is de facto reserved (parse error)\"](assert) {\n assert.throws(() => {\n (0, _index.compile)('{{@!}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{#if @!}}Yup{{/if}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n assert.throws(() => {\n (0, _index.compile)('{{input type=(if @! \"bar\" \"baz\")}}', {\n moduleName: 'baz/foo-bar'\n });\n }, /Expecting 'ID'/);\n }\n\n });\n});","enifed(\"ember-template-compiler/tests/plugins/assert-splattribute-expression-test\", [\"internal-test-helpers\", \"ember-template-compiler/index\"], function (_internalTestHelpers, _index) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: assert-splattribute-expression', class extends _internalTestHelpers.AbstractTestCase {\n expectedMessage(locInfo) {\n return \"`...attributes` can only be used in the element position e.g. `
`. It cannot be used as a path. (\" + locInfo + \") \";\n }\n\n '@test ...attributes is in element space'(assert) {\n assert.expect(0);\n (0, _index.compile)('Foo
');\n }\n\n '@test {{...attributes}} is not valid'() {\n expectAssertion(() => {\n (0, _index.compile)('{{...attributes}}
', {\n moduleName: 'foo-bar'\n });\n }, this.expectedMessage(\"'foo-bar' @ L1:C7\"));\n }\n\n '@test {{...attributes}} is not valid path expression'() {\n expectAssertion(() => {\n (0, _index.compile)('{{...attributes}}
', {\n moduleName: 'foo-bar'\n });\n }, this.expectedMessage(\"'foo-bar' @ L1:C7\"));\n }\n\n '@test {{...attributes}} is not valid modifier'() {\n expectAssertion(() => {\n (0, _index.compile)('Wat
', {\n moduleName: 'foo-bar'\n });\n }, this.expectedMessage(\"'foo-bar' @ L1:C7\"));\n }\n\n '@test {{...attributes}} is not valid attribute'() {\n expectAssertion(() => {\n (0, _index.compile)('Wat
', {\n moduleName: 'foo-bar'\n });\n }, this.expectedMessage(\"'foo-bar' @ L1:C13\"));\n }\n\n });\n});","enifed(\"ember-template-compiler/tests/plugins/deprecate-send-action-test\", [\"ember-template-compiler/index\", \"internal-test-helpers\"], function (_index, _internalTestHelpers) {\n \"use strict\";\n\n const EVENTS = ['insert-newline', 'enter', 'escape-press', 'focus-in', 'focus-out', 'key-press', 'key-up', 'key-down'];\n\n class DeprecateSendActionTest extends _internalTestHelpers.AbstractTestCase {}\n\n EVENTS.forEach(function (e) {\n DeprecateSendActionTest.prototype[\"@test Using `{{input \" + e + \"=\\\"actionName\\\"}}` provides a deprecation\"] = function () {\n let expectedMessage = \"Passing actions to components as strings (like `{{input \" + e + \"=\\\"foo-bar\\\"}}`) is deprecated. Please use closure actions instead (`{{input \" + e + \"=(action \\\"foo-bar\\\")}}`). ('baz/foo-bar' @ L1:C0) \";\n expectDeprecation(() => {\n (0, _index.compile)(\"{{input \" + e + \"=\\\"foo-bar\\\"}}\", {\n moduleName: 'baz/foo-bar'\n });\n }, expectedMessage);\n };\n });\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: deprecate-send-action', DeprecateSendActionTest);\n});","enifed(\"ember-template-compiler/tests/plugins/transform-component-invocation-test\", [\"ember-template-compiler/index\", \"internal-test-helpers\"], function (_index, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: transforms component invocation', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Does not throw a compiler error for component invocations'](assert) {\n assert.expect(0);\n ['{{this.modal open}}', '{{this.modal isOpen=true}}', '{{#this.modal}}Woot{{/this.modal}}', '{{@modal open}}', // RFC#311\n '{{@modal isOpen=true}}', // RFC#311\n '{{#@modal}}Woot{{/@modal}}', // RFC#311\n '{{c.modal open}}', '{{c.modal isOpen=true}}', '{{#c.modal}}Woot{{/c.modal}}', '{{#my-component as |c|}}{{c name=\"Chad\"}}{{/my-component}}', // RFC#311\n '{{#my-component as |c|}}{{c \"Chad\"}}{{/my-component}}', // RFC#311\n '{{#my-component as |c|}}{{#c}}{{/c}}{{/my-component}}', // RFC#311\n ' ', // GH#15740\n ' '].forEach((layout, i) => {\n (0, _index.compile)(layout, {\n moduleName: \"example-\" + i\n });\n });\n }\n\n });\n});","enifed(\"ember-template-compiler/tests/plugins/transform-input-type-syntax-test\", [\"ember-template-compiler/index\", \"internal-test-helpers\"], function (_index, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: input type syntax', class extends _internalTestHelpers.AbstractTestCase {\n ['@test Can compile an {{input}} helper that has a sub-expression value as its type'](assert) {\n assert.expect(0);\n (0, _index.compile)(\"{{input type=(if true 'password' 'text')}}\");\n }\n\n ['@test Can compile an {{input}} helper with a string literal type'](assert) {\n assert.expect(0);\n (0, _index.compile)(\"{{input type='text'}}\");\n }\n\n ['@test Can compile an {{input}} helper with a type stored in a var'](assert) {\n assert.expect(0);\n (0, _index.compile)(\"{{input type=_type}}\");\n }\n\n });\n});","enifed(\"ember-template-compiler/tests/plugins/transform-link-to-test\", [\"ember-template-compiler/tests/utils/transform-test-case\", \"ember-template-compiler/index\", \"@ember/canary-features\", \"internal-test-helpers\"], function (_transformTestCase, _index, _canaryFeatures, _internalTestHelpers) {\n \"use strict\";\n\n if (_canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: transforming inline {{link-to}} into the block form', class extends _transformTestCase.default {\n ['@test it transforms an inline {{link-to}} into its block form']() {\n this.assertTransformed(\"{{link-to 'foo' 'index'}}\", \"{{#link-to route='index'}}foo{{/link-to}}\");\n }\n\n ['@test bound link title']() {\n this.assertTransformed(\"{{link-to foo 'index'}}\", \"{{#link-to route='index'}}{{foo}}{{/link-to}}\");\n this.assertTransformed(\"{{link-to this.foo 'index'}}\", \"{{#link-to route='index'}}{{this.foo}}{{/link-to}}\");\n this.assertTransformed(\"{{link-to foo.bar.baz 'index'}}\", \"{{#link-to route='index'}}{{foo.bar.baz}}{{/link-to}}\");\n this.assertTransformed(\"{{link-to @foo 'index'}}\", \"{{#link-to route='index'}}{{@foo}}{{/link-to}}\");\n }\n\n ['@test sexp link title']() {\n this.assertTransformed(\"{{link-to (foo) 'index'}}\", \"{{#link-to route='index'}}{{foo}}{{/link-to}}\");\n this.assertTransformed(\"{{link-to (foo bar) 'index'}}\", \"{{#link-to route='index'}}{{foo bar}}{{/link-to}}\");\n this.assertTransformed(\"{{link-to (foo bar baz=bat) 'index'}}\", \"{{#link-to route='index'}}{{foo bar baz=bat}}{{/link-to}}\");\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: transforming inline {{{link-to}}} into the block form', class extends _transformTestCase.default {\n ['@test it transforms an inline {{{link-to}}} into its block form']() {\n this.assertTransformed(\"{{{link-to 'foo' 'index'}}}\", \"{{#link-to route='index'}}foo{{/link-to}}\");\n }\n\n ['@test bound link title']() {\n this.assertTransformed(\"{{{link-to foo 'index'}}}\", \"{{#link-to route='index'}}{{{foo}}}{{/link-to}}\");\n this.assertTransformed(\"{{{link-to this.foo 'index'}}}\", \"{{#link-to route='index'}}{{{this.foo}}}{{/link-to}}\");\n this.assertTransformed(\"{{{link-to foo.bar.baz 'index'}}}\", \"{{#link-to route='index'}}{{{foo.bar.baz}}}{{/link-to}}\");\n this.assertTransformed(\"{{{link-to @foo 'index'}}}\", \"{{#link-to route='index'}}{{{@foo}}}{{/link-to}}\");\n }\n\n ['@test sexp link title']() {\n this.assertTransformed(\"{{{link-to (foo) 'index'}}}\", \"{{#link-to route='index'}}{{{foo}}}{{/link-to}}\");\n this.assertTransformed(\"{{{link-to (foo bar) 'index'}}}\", \"{{#link-to route='index'}}{{{foo bar}}}{{/link-to}}\");\n this.assertTransformed(\"{{{link-to (foo bar baz=bat) 'index'}}}\", \"{{#link-to route='index'}}{{{foo bar baz=bat}}}{{/link-to}}\");\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: transforming positional arguments into named arguments', class extends _transformTestCase.default {\n ['@test no arguments']() {\n expectAssertion(() => (0, _index.compile)('{{#link-to}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n }), /You must provide one or more parameters to the `{{link-to}}` component. \\('-top-level' @ L1:C0\\)/);\n expectAssertion(() => (0, _index.compile)('{{#link-to class=\"wow\"}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n }), /You must provide one or more parameters to the `{{link-to}}` component. \\('-top-level' @ L1:C0\\)/); // these are ok\n\n (0, _index.compile)('{{#link-to params=foo}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n });\n (0, _index.compile)('{{#link-to route=foo}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n });\n (0, _index.compile)('{{#link-to model=foo}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n });\n (0, _index.compile)('{{#link-to models=foo}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n });\n (0, _index.compile)('{{#link-to query=foo}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n });\n }\n\n ['@test mixing positional and named arguments']() {\n expectAssertion(() => (0, _index.compile)('{{#link-to foo params=bar}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n }), /cannot pass positional parameters and the `params` argument to the `{{link-to}}` component at the same time. \\('-top-level' @ L1:C0\\)/);\n expectAssertion(() => (0, _index.compile)('{{#link-to foo route=bar}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n }), /cannot pass positional parameters and the `route` argument to the `{{link-to}}` component at the same time. \\('-top-level' @ L1:C0\\)/);\n expectAssertion(() => (0, _index.compile)('{{#link-to foo model=bar}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n }), /cannot pass positional parameters and the `model` argument to the `{{link-to}}` component at the same time. \\('-top-level' @ L1:C0\\)/);\n expectAssertion(() => (0, _index.compile)('{{#link-to foo models=bar}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n }), /cannot pass positional parameters and the `models` argument to the `{{link-to}}` component at the same time. \\('-top-level' @ L1:C0\\)/);\n expectAssertion(() => (0, _index.compile)('{{#link-to foo query=bar}}zomg{{/link-to}}', {\n moduleName: '-top-level'\n }), /cannot pass positional parameters and the `query` argument to the `{{link-to}}` component at the same time. \\('-top-level' @ L1:C0\\)/);\n }\n\n ['@test route only']() {\n this.assertTransformed(\"{{#link-to 'foo'}}Foo{{/link-to}}\", \"{{#link-to route='foo'}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to foo}}Foo{{/link-to}}\", \"{{#link-to route=foo}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to this.foo}}Foo{{/link-to}}\", \"{{#link-to route=this.foo}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to foo.bar.baz}}Foo{{/link-to}}\", \"{{#link-to route=foo.bar.baz}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to @foo}}Foo{{/link-to}}\", \"{{#link-to route=@foo}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to @foo}}Foo{{/link-to}}\", \"{{#link-to route=@foo}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to (foo)}}Foo{{/link-to}}\", \"{{#link-to route=(foo)}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to (foo bar)}}Foo{{/link-to}}\", \"{{#link-to route=(foo bar)}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to (foo bar baz=bat)}}Foo{{/link-to}}\", \"{{#link-to route=(foo bar baz=bat)}}Foo{{/link-to}}\");\n }\n\n ['@test single model']() {\n this.assertTransformed(\"{{#link-to 'foo' 'bar'}}Foo{{/link-to}}\", \"{{#link-to route='foo' model='bar'}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' bar}}Foo{{/link-to}}\", \"{{#link-to route='foo' model=bar}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' this.bar}}Foo{{/link-to}}\", \"{{#link-to route='foo' model=this.bar}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' bar.baz.bat}}Foo{{/link-to}}\", \"{{#link-to route='foo' model=bar.baz.bat}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' @bar}}Foo{{/link-to}}\", \"{{#link-to route='foo' model=@bar}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' (bar)}}Foo{{/link-to}}\", \"{{#link-to route='foo' model=(bar)}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' (bar baz)}}Foo{{/link-to}}\", \"{{#link-to route='foo' model=(bar baz)}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' (bar baz bat=wat)}}Foo{{/link-to}}\", \"{{#link-to route='foo' model=(bar baz bat=wat)}}Foo{{/link-to}}\");\n }\n\n ['@test multi models']() {\n this.assertTransformed(\"{{#link-to 'foo' 'bar' 'baz' 'bat'}}Foo{{/link-to}}\", \"{{#link-to route='foo' models=(array 'bar' 'baz' 'bat')}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' bar baz bat}}Foo{{/link-to}}\", \"{{#link-to route='foo' models=(array bar baz bat)}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' this.bar this.baz this.bat}}Foo{{/link-to}}\", \"{{#link-to route='foo' models=(array this.bar this.baz this.bat)}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' bar.baz.bat baz.bat.bar bat.bar.baz}}Foo{{/link-to}}\", \"{{#link-to route='foo' models=(array bar.baz.bat baz.bat.bar bat.bar.baz)}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' @bar @baz @bat}}Foo{{/link-to}}\", \"{{#link-to route='foo' models=(array @bar @baz @bat)}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' (bar) (baz) (bat)}}Foo{{/link-to}}\", \"{{#link-to route='foo' models=(array (bar) (baz) (bat))}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' (bar baz) (baz bat) (bat bar)}}Foo{{/link-to}}\", \"{{#link-to route='foo' models=(array (bar baz) (baz bat) (bat bar))}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' (bar baz bat=wat) (baz bat wat=bar) (bat wat bar=baz)}}Foo{{/link-to}}\", \"{{#link-to route='foo' models=(array (bar baz bat=wat) (baz bat wat=bar) (bat wat bar=baz))}}Foo{{/link-to}}\");\n }\n\n ['@test query params']() {\n this.assertTransformed(\"{{#link-to (query-params)}}Foo{{/link-to}}\", \"{{#link-to query=(hash)}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to (query-params foo='bar' baz=bat)}}Foo{{/link-to}}\", \"{{#link-to query=(hash foo='bar' baz=bat)}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' (query-params foo='bar' baz=bat)}}Foo{{/link-to}}\", \"{{#link-to query=(hash foo='bar' baz=bat) route='foo'}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' 'bar' (query-params foo='bar' baz=bat)}}Foo{{/link-to}}\", \"{{#link-to query=(hash foo='bar' baz=bat) route='foo' model='bar'}}Foo{{/link-to}}\");\n this.assertTransformed(\"{{#link-to 'foo' 'bar' 'baz' 'bat' 'wat' (query-params foo='bar' baz=bat)}}Foo{{/link-to}}\", \"{{#link-to query=(hash foo='bar' baz=bat) route='foo' models=(array 'bar' 'baz' 'bat' 'wat')}}Foo{{/link-to}}\");\n }\n\n });\n } else {\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: transforming inline {{link-to}} into the block form', class extends _transformTestCase.default {\n ['@test it transforms an inline {{link-to}} into its block form']() {\n this.assertTransformed(\"{{link-to 'foo' 'index'}}\", \"{{#link-to 'index'}}foo{{/link-to}}\");\n }\n\n ['@test bound link title']() {\n this.assertTransformed(\"{{link-to foo 'index'}}\", \"{{#link-to 'index'}}{{foo}}{{/link-to}}\");\n this.assertTransformed(\"{{link-to this.foo 'index'}}\", \"{{#link-to 'index'}}{{this.foo}}{{/link-to}}\");\n this.assertTransformed(\"{{link-to foo.bar.baz 'index'}}\", \"{{#link-to 'index'}}{{foo.bar.baz}}{{/link-to}}\");\n this.assertTransformed(\"{{link-to @foo 'index'}}\", \"{{#link-to 'index'}}{{@foo}}{{/link-to}}\");\n }\n\n ['@test sexp link title']() {\n this.assertTransformed(\"{{link-to (foo) 'index'}}\", \"{{#link-to 'index'}}{{foo}}{{/link-to}}\");\n this.assertTransformed(\"{{link-to (foo bar) 'index'}}\", \"{{#link-to 'index'}}{{foo bar}}{{/link-to}}\");\n this.assertTransformed(\"{{link-to (foo bar baz=bat) 'index'}}\", \"{{#link-to 'index'}}{{foo bar baz=bat}}{{/link-to}}\");\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: transforming inline {{{link-to}}} into the block form', class extends _transformTestCase.default {\n ['@test it transforms an inline {{{link-to}}} into its block form']() {\n this.assertTransformed(\"{{{link-to 'foo' 'index'}}}\", \"{{#link-to 'index'}}foo{{/link-to}}\");\n }\n\n ['@test bound link title']() {\n this.assertTransformed(\"{{{link-to foo 'index'}}}\", \"{{#link-to 'index'}}{{{foo}}}{{/link-to}}\");\n this.assertTransformed(\"{{{link-to this.foo 'index'}}}\", \"{{#link-to 'index'}}{{{this.foo}}}{{/link-to}}\");\n this.assertTransformed(\"{{{link-to foo.bar.baz 'index'}}}\", \"{{#link-to 'index'}}{{{foo.bar.baz}}}{{/link-to}}\");\n this.assertTransformed(\"{{{link-to @foo 'index'}}}\", \"{{#link-to 'index'}}{{{@foo}}}{{/link-to}}\");\n }\n\n ['@test sexp link title']() {\n this.assertTransformed(\"{{{link-to (foo) 'index'}}}\", \"{{#link-to 'index'}}{{{foo}}}{{/link-to}}\");\n this.assertTransformed(\"{{{link-to (foo bar) 'index'}}}\", \"{{#link-to 'index'}}{{{foo bar}}}{{/link-to}}\");\n this.assertTransformed(\"{{{link-to (foo bar baz=bat) 'index'}}}\", \"{{#link-to 'index'}}{{{foo bar baz=bat}}}{{/link-to}}\");\n }\n\n });\n }\n});","enifed(\"ember-template-compiler/tests/system/bootstrap-test\", [\"@ember/runloop\", \"@ember/-internals/glimmer\", \"ember-template-compiler/lib/system/bootstrap\", \"internal-test-helpers\"], function (_runloop, _glimmer, _bootstrap, _internalTestHelpers) {\n \"use strict\";\n\n let component, fixture;\n\n function checkTemplate(templateName, assert) {\n (0, _runloop.run)(() => (0, _bootstrap.default)({\n context: fixture,\n hasTemplate: _glimmer.hasTemplate,\n setTemplate: _glimmer.setTemplate\n }));\n let template = (0, _glimmer.getTemplate)(templateName);\n let qunitFixture = document.querySelector('#qunit-fixture');\n assert.ok(template, 'template is available on Ember.TEMPLATES');\n assert.notOk(qunitFixture.querySelector('script'), 'script removed');\n let owner = (0, _internalTestHelpers.buildOwner)();\n owner.register('template:-top-level', template);\n owner.register('component:-top-level', _glimmer.Component.extend({\n layoutName: '-top-level',\n firstName: 'Tobias',\n drug: 'teamocil'\n }));\n component = owner.lookup('component:-top-level');\n (0, _internalTestHelpers.runAppend)(component);\n assert.equal(qunitFixture.textContent.trim(), 'Tobias takes teamocil', 'template works');\n (0, _internalTestHelpers.runDestroy)(owner);\n }\n\n (0, _internalTestHelpers.moduleFor)('ember-templates: bootstrap', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n fixture = document.getElementById('qunit-fixture');\n }\n\n teardown() {\n (0, _glimmer.setTemplates)({});\n fixture = component = null;\n }\n\n ['@test template with data-template-name should add a new template to Ember.TEMPLATES'](assert) {\n fixture.innerHTML = '';\n checkTemplate('funkyTemplate', assert);\n }\n\n ['@test template with id instead of data-template-name should add a new template to Ember.TEMPLATES'](assert) {\n fixture.innerHTML = '';\n checkTemplate('funkyTemplate', assert);\n }\n\n ['@test template without data-template-name or id should default to application'](assert) {\n fixture.innerHTML = '';\n checkTemplate('application', assert);\n } // Add this test case, only for typeof Handlebars === 'object';\n\n\n [(typeof Handlebars === 'object' ? '@test' : '@skip') + \" template with type text/x-raw-handlebars should be parsed\"](assert) {\n fixture.innerHTML = '';\n (0, _runloop.run)(() => (0, _bootstrap.default)({\n context: fixture,\n hasTemplate: _glimmer.hasTemplate,\n setTemplate: _glimmer.setTemplate\n }));\n let template = (0, _glimmer.getTemplate)('funkyTemplate');\n assert.ok(template, 'template with name funkyTemplate available'); // This won't even work with Ember templates\n\n assert.equal(template({\n name: 'Tobias'\n }).trim(), 'Tobias');\n }\n\n ['@test duplicated default application templates should throw exception'](assert) {\n fixture.innerHTML = '';\n assert.throws(() => (0, _bootstrap.default)({\n context: fixture,\n hasTemplate: _glimmer.hasTemplate,\n setTemplate: _glimmer.setTemplate\n }), /Template named \"[^\"]+\" already exists\\./, 'duplicate templates should not be allowed');\n }\n\n ['@test default default application template and id application template present should throw exception'](assert) {\n fixture.innerHTML = '';\n assert.throws(() => (0, _bootstrap.default)({\n context: fixture,\n hasTemplate: _glimmer.hasTemplate,\n setTemplate: _glimmer.setTemplate\n }), /Template named \"[^\"]+\" already exists\\./, 'duplicate templates should not be allowed');\n }\n\n ['@test default application template and data-template-name application template present should throw exception'](assert) {\n fixture.innerHTML = '';\n assert.throws(() => (0, _bootstrap.default)({\n context: fixture,\n hasTemplate: _glimmer.hasTemplate,\n setTemplate: _glimmer.setTemplate\n }), /Template named \"[^\"]+\" already exists\\./, 'duplicate templates should not be allowed');\n }\n\n ['@test duplicated template id should throw exception'](assert) {\n fixture.innerHTML = '';\n assert.throws(() => (0, _bootstrap.default)({\n context: fixture,\n hasTemplate: _glimmer.hasTemplate,\n setTemplate: _glimmer.setTemplate\n }), /Template named \"[^\"]+\" already exists\\./, 'duplicate templates should not be allowed');\n }\n\n ['@test duplicated template data-template-name should throw exception'](assert) {\n fixture.innerHTML = '';\n assert.throws(() => (0, _bootstrap.default)({\n context: fixture,\n hasTemplate: _glimmer.hasTemplate,\n setTemplate: _glimmer.setTemplate\n }), /Template named \"[^\"]+\" already exists\\./, 'duplicate templates should not be allowed');\n }\n\n });\n});","enifed(\"ember-template-compiler/tests/system/compile_options_test\", [\"ember-template-compiler/index\", \"internal-test-helpers\"], function (_index, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: default compile options', class extends _internalTestHelpers.AbstractTestCase {\n ['@test default options are a new copy'](assert) {\n assert.notEqual((0, _index.compileOptions)(), (0, _index.compileOptions)());\n }\n\n ['@test has default AST plugins'](assert) {\n assert.expect(_index.defaultPlugins.length);\n let plugins = (0, _index.compileOptions)().plugins.ast;\n\n for (let i = 0; i < _index.defaultPlugins.length; i++) {\n let plugin = _index.defaultPlugins[i];\n assert.ok(plugins.indexOf(plugin) > -1, \"includes \" + plugin);\n }\n }\n\n });\n let customTransformCounter = 0;\n\n class LegacyCustomTransform {\n constructor(options) {\n customTransformCounter++;\n this.options = options;\n this.syntax = null;\n }\n\n transform(ast) {\n let walker = new this.syntax.Walker();\n walker.visit(ast, node => {\n if (node.type !== 'ElementNode') {\n return;\n }\n\n for (var i = 0; i < node.attributes.length; i++) {\n let attribute = node.attributes[i];\n\n if (attribute.name === 'data-test') {\n node.attributes.splice(i, 1);\n }\n }\n });\n return ast;\n }\n\n }\n\n function customTransform() {\n customTransformCounter++;\n return {\n name: 'remove-data-test',\n visitor: {\n ElementNode(node) {\n for (var i = 0; i < node.attributes.length; i++) {\n let attribute = node.attributes[i];\n\n if (attribute.name === 'data-test') {\n node.attributes.splice(i, 1);\n }\n }\n }\n\n }\n };\n }\n\n class CustomPluginsTests extends _internalTestHelpers.RenderingTestCase {\n afterEach() {\n customTransformCounter = 0;\n return super.afterEach();\n }\n\n ['@test custom plugins can be used']() {\n this.render('
');\n this.assertElement(this.firstChild, {\n tagName: 'div',\n attrs: {\n class: 'hahaha',\n 'data-blah': 'derp'\n },\n content: ''\n });\n }\n\n ['@test wrapped plugins are only invoked once per template'](assert) {\n this.render('{{#if falsey}}nope{{/if}}
');\n assert.equal(customTransformCounter, 1, 'transform should only be instantiated once');\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: registerPlugin with a custom plugins in legacy format', class extends CustomPluginsTests {\n beforeEach() {\n (0, _index.registerPlugin)('ast', LegacyCustomTransform);\n }\n\n afterEach() {\n (0, _index.unregisterPlugin)('ast', LegacyCustomTransform);\n return super.afterEach();\n }\n\n ['@test custom registered plugins are deduplicated'](assert) {\n (0, _index.registerPlugin)('ast', LegacyCustomTransform);\n this.registerTemplate('application', '
');\n assert.equal(customTransformCounter, 1, 'transform should only be instantiated once');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: registerPlugin with a custom plugins', class extends CustomPluginsTests {\n beforeEach() {\n (0, _index.registerPlugin)('ast', customTransform);\n }\n\n afterEach() {\n (0, _index.unregisterPlugin)('ast', customTransform);\n return super.afterEach();\n }\n\n ['@test custom registered plugins are deduplicated'](assert) {\n (0, _index.registerPlugin)('ast', customTransform);\n this.registerTemplate('application', '
');\n assert.equal(customTransformCounter, 1, 'transform should only be instantiated once');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: custom plugins in legacy format passed to compile', class extends _internalTestHelpers.RenderingTestCase {\n // override so that we can provide custom AST plugins to compile\n compile(templateString) {\n return (0, _index.compile)(templateString, {\n plugins: {\n ast: [LegacyCustomTransform]\n }\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-template-compiler: custom plugins passed to compile', class extends _internalTestHelpers.RenderingTestCase {\n // override so that we can provide custom AST plugins to compile\n compile(templateString) {\n return (0, _index.compile)(templateString, {\n plugins: {\n ast: [customTransform]\n }\n });\n }\n\n });\n});","enifed(\"ember-template-compiler/tests/system/dasherize-component-name-test\", [\"ember-template-compiler/lib/system/dasherize-component-name\", \"internal-test-helpers\", \"@ember/canary-features\"], function (_dasherizeComponentName, _internalTestHelpers, _canaryFeatures) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('dasherize-component-name', class extends _internalTestHelpers.AbstractTestCase {\n ['@test names are correctly dasherized'](assert) {\n assert.equal(_dasherizeComponentName.default.get('Foo'), 'foo');\n assert.equal(_dasherizeComponentName.default.get('foo-bar'), 'foo-bar');\n assert.equal(_dasherizeComponentName.default.get('FooBar'), 'foo-bar');\n assert.equal(_dasherizeComponentName.default.get('F3Bar'), 'f3-bar');\n assert.equal(_dasherizeComponentName.default.get('Foo3Bar'), 'foo3-bar');\n assert.equal(_dasherizeComponentName.default.get('Foo3barBaz'), 'foo3bar-baz');\n assert.equal(_dasherizeComponentName.default.get('FooB3ar'), 'foo-b3ar');\n assert.equal(_dasherizeComponentName.default.get('XBlah'), 'x-blah');\n assert.equal(_dasherizeComponentName.default.get('X-Blah'), 'x-blah');\n assert.equal(_dasherizeComponentName.default.get('Foo@BarBaz'), 'foo@bar-baz');\n assert.equal(_dasherizeComponentName.default.get('Foo@Bar-Baz'), 'foo@bar-baz');\n\n if (_canaryFeatures.EMBER_GLIMMER_ANGLE_BRACKET_NESTED_LOOKUP) {\n assert.equal(_dasherizeComponentName.default.get('Foo::BarBaz'), 'foo/bar-baz');\n assert.equal(_dasherizeComponentName.default.get('Foo::Bar-Baz'), 'foo/bar-baz');\n assert.equal(_dasherizeComponentName.default.get('Foo::BarBaz::Bang'), 'foo/bar-baz/bang');\n } else {\n assert.equal(_dasherizeComponentName.default.get('Foo::BarBaz'), 'foo::bar-baz');\n assert.equal(_dasherizeComponentName.default.get('Foo::Bar-Baz'), 'foo::bar-baz');\n }\n }\n\n });\n});","enifed(\"ember-template-compiler/tests/utils/transform-test-case\", [\"exports\", \"@glimmer/compiler\", \"internal-test-helpers\", \"ember-template-compiler/index\"], function (_exports, _compiler, _internalTestHelpers, _index) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class _default extends _internalTestHelpers.AbstractTestCase {\n assertTransformed(before, after) {\n this.assert.deepEqual(deloc(ast(before)), deloc(ast(after)));\n }\n\n }\n\n _exports.default = _default;\n\n function ast(template) {\n let program = null;\n\n function extractProgram() {\n return {\n name: 'extract-program',\n visitor: {\n Program: {\n exit(node) {\n program = clone(node);\n }\n\n }\n }\n };\n }\n\n let options = (0, _index.compileOptions)({\n moduleName: '-top-level'\n });\n options.plugins.ast.push(extractProgram);\n (0, _compiler.precompile)(template, options);\n return program;\n }\n\n function clone(node) {\n let out = Object.create(null);\n let keys = Object.keys(node);\n keys.forEach(key => {\n let value = node[key];\n\n if (value !== null && typeof value === 'object') {\n out[key] = clone(value);\n } else {\n out[key] = value;\n }\n });\n return out;\n }\n\n function deloc(node) {\n let out = Object.create(null);\n let keys = Object.keys(node);\n keys.forEach(key => {\n let value = node[key];\n\n if (key === 'loc') {\n return;\n } else if (value !== null && typeof value === 'object') {\n out[key] = deloc(value);\n } else {\n out[key] = value;\n }\n });\n return out;\n }\n});","enifed(\"ember-testing/index\", [\"exports\", \"ember-testing/lib/test\", \"ember-testing/lib/adapters/adapter\", \"ember-testing/lib/setup_for_testing\", \"ember-testing/lib/adapters/qunit\", \"ember-testing/lib/support\", \"ember-testing/lib/ext/application\", \"ember-testing/lib/ext/rsvp\", \"ember-testing/lib/helpers\", \"ember-testing/lib/initializers\"], function (_exports, _test, _adapter, _setup_for_testing, _qunit, _support, _application, _rsvp, _helpers, _initializers) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.QUnitAdapter = _exports.setupForTesting = _exports.Adapter = _exports.Test = void 0;\n _exports.Test = _test.default;\n _exports.Adapter = _adapter.default;\n _exports.setupForTesting = _setup_for_testing.default;\n _exports.QUnitAdapter = _qunit.default;\n});","enifed(\"ember-testing/lib/adapters/adapter\", [\"exports\", \"@ember/-internals/runtime\"], function (_exports, _runtime) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n function K() {\n return this;\n }\n /**\n @module @ember/test\n */\n\n /**\n The primary purpose of this class is to create hooks that can be implemented\n by an adapter for various test frameworks.\n \n @class TestAdapter\n @public\n */\n\n\n var _default = _runtime.Object.extend({\n /**\n This callback will be called whenever an async operation is about to start.\n Override this to call your framework's methods that handle async\n operations.\n @public\n @method asyncStart\n */\n asyncStart: K,\n\n /**\n This callback will be called whenever an async operation has completed.\n @public\n @method asyncEnd\n */\n asyncEnd: K,\n\n /**\n Override this method with your testing framework's false assertion.\n This function is called whenever an exception occurs causing the testing\n promise to fail.\n QUnit example:\n ```javascript\n exception: function(error) {\n ok(false, error);\n };\n ```\n @public\n @method exception\n @param {String} error The exception to be raised.\n */\n exception(error) {\n throw error;\n }\n\n });\n\n _exports.default = _default;\n});","enifed(\"ember-testing/lib/adapters/qunit\", [\"exports\", \"@ember/-internals/utils\", \"ember-testing/lib/adapters/adapter\"], function (_exports, _utils, _adapter) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /* globals QUnit */\n\n /**\n @module ember\n */\n\n /**\n This class implements the methods defined by TestAdapter for the\n QUnit testing framework.\n \n @class QUnitAdapter\n @namespace Ember.Test\n @extends TestAdapter\n @public\n */\n var _default = _adapter.default.extend({\n init() {\n this.doneCallbacks = [];\n },\n\n asyncStart() {\n if (typeof QUnit.stop === 'function') {\n // very old QUnit version\n QUnit.stop();\n } else {\n this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);\n }\n },\n\n asyncEnd() {\n // checking for QUnit.stop here (even though we _need_ QUnit.start) because\n // QUnit.start() still exists in QUnit 2.x (it just throws an error when calling\n // inside a test context)\n if (typeof QUnit.stop === 'function') {\n QUnit.start();\n } else {\n let done = this.doneCallbacks.pop(); // This can be null if asyncStart() was called outside of a test\n\n if (done) {\n done();\n }\n }\n },\n\n exception(error) {\n QUnit.config.current.assert.ok(false, (0, _utils.inspect)(error));\n }\n\n });\n\n _exports.default = _default;\n});","enifed(\"ember-testing/lib/events\", [\"exports\", \"@ember/runloop\", \"@ember/polyfills\", \"ember-testing/lib/helpers/-is-form-control\"], function (_exports, _runloop, _polyfills, _isFormControl) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.focus = focus;\n _exports.fireEvent = fireEvent;\n const DEFAULT_EVENT_OPTIONS = {\n canBubble: true,\n cancelable: true\n };\n const KEYBOARD_EVENT_TYPES = ['keydown', 'keypress', 'keyup'];\n const MOUSE_EVENT_TYPES = ['click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover'];\n\n function focus(el) {\n if (!el) {\n return;\n }\n\n if (el.isContentEditable || (0, _isFormControl.default)(el)) {\n let type = el.getAttribute('type');\n\n if (type !== 'checkbox' && type !== 'radio' && type !== 'hidden') {\n (0, _runloop.run)(null, function () {\n let browserIsNotFocused = document.hasFocus && !document.hasFocus(); // makes `document.activeElement` be `element`. If the browser is focused, it also fires a focus event\n\n el.focus(); // Firefox does not trigger the `focusin` event if the window\n // does not have focus. If the document does not have focus then\n // fire `focusin` event as well.\n\n if (browserIsNotFocused) {\n // if the browser is not focused the previous `el.focus()` didn't fire an event, so we simulate it\n fireEvent(el, 'focus', {\n bubbles: false\n });\n fireEvent(el, 'focusin');\n }\n });\n }\n }\n }\n\n function fireEvent(element, type, options = {}) {\n if (!element) {\n return;\n }\n\n let event;\n\n if (KEYBOARD_EVENT_TYPES.indexOf(type) > -1) {\n event = buildKeyboardEvent(type, options);\n } else if (MOUSE_EVENT_TYPES.indexOf(type) > -1) {\n let rect = element.getBoundingClientRect();\n let x = rect.left + 1;\n let y = rect.top + 1;\n let simulatedCoordinates = {\n screenX: x + 5,\n screenY: y + 95,\n clientX: x,\n clientY: y\n };\n event = buildMouseEvent(type, (0, _polyfills.assign)(simulatedCoordinates, options));\n } else {\n event = buildBasicEvent(type, options);\n }\n\n element.dispatchEvent(event);\n }\n\n function buildBasicEvent(type, options = {}) {\n let event = document.createEvent('Events'); // Event.bubbles is read only\n\n let bubbles = options.bubbles !== undefined ? options.bubbles : true;\n let cancelable = options.cancelable !== undefined ? options.cancelable : true;\n delete options.bubbles;\n delete options.cancelable;\n event.initEvent(type, bubbles, cancelable);\n (0, _polyfills.assign)(event, options);\n return event;\n }\n\n function buildMouseEvent(type, options = {}) {\n let event;\n\n try {\n event = document.createEvent('MouseEvents');\n let eventOpts = (0, _polyfills.assign)({}, DEFAULT_EVENT_OPTIONS, options);\n event.initMouseEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.detail, eventOpts.screenX, eventOpts.screenY, eventOpts.clientX, eventOpts.clientY, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.button, eventOpts.relatedTarget);\n } catch (e) {\n event = buildBasicEvent(type, options);\n }\n\n return event;\n }\n\n function buildKeyboardEvent(type, options = {}) {\n let event;\n\n try {\n event = document.createEvent('KeyEvents');\n let eventOpts = (0, _polyfills.assign)({}, DEFAULT_EVENT_OPTIONS, options);\n event.initKeyEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.keyCode, eventOpts.charCode);\n } catch (e) {\n event = buildBasicEvent(type, options);\n }\n\n return event;\n }\n});","enifed(\"ember-testing/lib/ext/application\", [\"@ember/application\", \"ember-testing/lib/setup_for_testing\", \"ember-testing/lib/test/helpers\", \"ember-testing/lib/test/promise\", \"ember-testing/lib/test/run\", \"ember-testing/lib/test/on_inject_helpers\", \"ember-testing/lib/test/adapter\"], function (_application, _setup_for_testing, _helpers, _promise, _run, _on_inject_helpers, _adapter) {\n \"use strict\";\n\n _application.default.reopen({\n /**\n This property contains the testing helpers for the current application. These\n are created once you call `injectTestHelpers` on your `Application`\n instance. The included helpers are also available on the `window` object by\n default, but can be used from this object on the individual application also.\n @property testHelpers\n @type {Object}\n @default {}\n @public\n */\n testHelpers: {},\n\n /**\n This property will contain the original methods that were registered\n on the `helperContainer` before `injectTestHelpers` is called.\n When `removeTestHelpers` is called, these methods are restored to the\n `helperContainer`.\n @property originalMethods\n @type {Object}\n @default {}\n @private\n @since 1.3.0\n */\n originalMethods: {},\n\n /**\n This property indicates whether or not this application is currently in\n testing mode. This is set when `setupForTesting` is called on the current\n application.\n @property testing\n @type {Boolean}\n @default false\n @since 1.3.0\n @public\n */\n testing: false,\n\n /**\n This hook defers the readiness of the application, so that you can start\n the app when your tests are ready to run. It also sets the router's\n location to 'none', so that the window's location will not be modified\n (preventing both accidental leaking of state between tests and interference\n with your testing framework). `setupForTesting` should only be called after\n setting a custom `router` class (for example `App.Router = Router.extend(`).\n Example:\n ```\n App.setupForTesting();\n ```\n @method setupForTesting\n @public\n */\n setupForTesting() {\n (0, _setup_for_testing.default)();\n this.testing = true;\n this.resolveRegistration('router:main').reopen({\n location: 'none'\n });\n },\n\n /**\n This will be used as the container to inject the test helpers into. By\n default the helpers are injected into `window`.\n @property helperContainer\n @type {Object} The object to be used for test helpers.\n @default window\n @since 1.2.0\n @private\n */\n helperContainer: null,\n\n /**\n This injects the test helpers into the `helperContainer` object. If an object is provided\n it will be used as the helperContainer. If `helperContainer` is not set it will default\n to `window`. If a function of the same name has already been defined it will be cached\n (so that it can be reset if the helper is removed with `unregisterHelper` or\n `removeTestHelpers`).\n Any callbacks registered with `onInjectHelpers` will be called once the\n helpers have been injected.\n Example:\n ```\n App.injectTestHelpers();\n ```\n @method injectTestHelpers\n @public\n */\n injectTestHelpers(helperContainer) {\n if (helperContainer) {\n this.helperContainer = helperContainer;\n } else {\n this.helperContainer = window;\n }\n\n this.reopen({\n willDestroy() {\n this._super(...arguments);\n\n this.removeTestHelpers();\n }\n\n });\n this.testHelpers = {};\n\n for (let name in _helpers.helpers) {\n this.originalMethods[name] = this.helperContainer[name];\n this.testHelpers[name] = this.helperContainer[name] = helper(this, name);\n protoWrap(_promise.default.prototype, name, helper(this, name), _helpers.helpers[name].meta.wait);\n }\n\n (0, _on_inject_helpers.invokeInjectHelpersCallbacks)(this);\n },\n\n /**\n This removes all helpers that have been registered, and resets and functions\n that were overridden by the helpers.\n Example:\n ```javascript\n App.removeTestHelpers();\n ```\n @public\n @method removeTestHelpers\n */\n removeTestHelpers() {\n if (!this.helperContainer) {\n return;\n }\n\n for (let name in _helpers.helpers) {\n this.helperContainer[name] = this.originalMethods[name];\n delete _promise.default.prototype[name];\n delete this.testHelpers[name];\n delete this.originalMethods[name];\n }\n }\n\n }); // This method is no longer needed\n // But still here for backwards compatibility\n // of helper chaining\n\n\n function protoWrap(proto, name, callback, isAsync) {\n proto[name] = function (...args) {\n if (isAsync) {\n return callback.apply(this, args);\n } else {\n return this.then(function () {\n return callback.apply(this, args);\n });\n }\n };\n }\n\n function helper(app, name) {\n let fn = _helpers.helpers[name].method;\n let meta = _helpers.helpers[name].meta;\n\n if (!meta.wait) {\n return (...args) => fn.apply(app, [app, ...args]);\n }\n\n return (...args) => {\n let lastPromise = (0, _run.default)(() => (0, _promise.resolve)((0, _promise.getLastPromise)())); // wait for last helper's promise to resolve and then\n // execute. To be safe, we need to tell the adapter we're going\n // asynchronous here, because fn may not be invoked before we\n // return.\n\n (0, _adapter.asyncStart)();\n return lastPromise.then(() => fn.apply(app, [app, ...args])).finally(_adapter.asyncEnd);\n };\n }\n});","enifed(\"ember-testing/lib/ext/rsvp\", [\"exports\", \"@ember/-internals/runtime\", \"@ember/runloop\", \"@ember/debug\", \"ember-testing/lib/test/adapter\"], function (_exports, _runtime, _runloop, _debug, _adapter) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n _runtime.RSVP.configure('async', function (callback, promise) {\n // if schedule will cause autorun, we need to inform adapter\n if ((0, _debug.isTesting)() && !_runloop.backburner.currentInstance) {\n (0, _adapter.asyncStart)();\n\n _runloop.backburner.schedule('actions', () => {\n (0, _adapter.asyncEnd)();\n callback(promise);\n });\n } else {\n _runloop.backburner.schedule('actions', () => callback(promise));\n }\n });\n\n var _default = _runtime.RSVP;\n _exports.default = _default;\n});","enifed(\"ember-testing/lib/helpers\", [\"ember-testing/lib/test/helpers\", \"ember-testing/lib/helpers/and_then\", \"ember-testing/lib/helpers/click\", \"ember-testing/lib/helpers/current_path\", \"ember-testing/lib/helpers/current_route_name\", \"ember-testing/lib/helpers/current_url\", \"ember-testing/lib/helpers/fill_in\", \"ember-testing/lib/helpers/find\", \"ember-testing/lib/helpers/find_with_assert\", \"ember-testing/lib/helpers/key_event\", \"ember-testing/lib/helpers/pause_test\", \"ember-testing/lib/helpers/trigger_event\", \"ember-testing/lib/helpers/visit\", \"ember-testing/lib/helpers/wait\"], function (_helpers, _and_then, _click, _current_path, _current_route_name, _current_url, _fill_in, _find, _find_with_assert, _key_event, _pause_test, _trigger_event, _visit, _wait) {\n \"use strict\";\n\n (0, _helpers.registerAsyncHelper)('visit', _visit.default);\n (0, _helpers.registerAsyncHelper)('click', _click.default);\n (0, _helpers.registerAsyncHelper)('keyEvent', _key_event.default);\n (0, _helpers.registerAsyncHelper)('fillIn', _fill_in.default);\n (0, _helpers.registerAsyncHelper)('wait', _wait.default);\n (0, _helpers.registerAsyncHelper)('andThen', _and_then.default);\n (0, _helpers.registerAsyncHelper)('pauseTest', _pause_test.pauseTest);\n (0, _helpers.registerAsyncHelper)('triggerEvent', _trigger_event.default);\n (0, _helpers.registerHelper)('find', _find.default);\n (0, _helpers.registerHelper)('findWithAssert', _find_with_assert.default);\n (0, _helpers.registerHelper)('currentRouteName', _current_route_name.default);\n (0, _helpers.registerHelper)('currentPath', _current_path.default);\n (0, _helpers.registerHelper)('currentURL', _current_url.default);\n (0, _helpers.registerHelper)('resumeTest', _pause_test.resumeTest);\n});","enifed(\"ember-testing/lib/helpers/-is-form-control\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = isFormControl;\n const FORM_CONTROL_TAGS = ['INPUT', 'BUTTON', 'SELECT', 'TEXTAREA'];\n /**\n @private\n @param {Element} element the element to check\n @returns {boolean} `true` when the element is a form control, `false` otherwise\n */\n\n function isFormControl(element) {\n let {\n tagName,\n type\n } = element;\n\n if (type === 'hidden') {\n return false;\n }\n\n return FORM_CONTROL_TAGS.indexOf(tagName) > -1;\n }\n});","enifed(\"ember-testing/lib/helpers/and_then\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = andThen;\n\n function andThen(app, callback) {\n return app.testHelpers.wait(callback(app));\n }\n});","enifed(\"ember-testing/lib/helpers/click\", [\"exports\", \"ember-testing/lib/events\"], function (_exports, _events) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = click;\n\n /**\n @module ember\n */\n\n /**\n Clicks an element and triggers any actions triggered by the element's `click`\n event.\n \n Example:\n \n ```javascript\n click('.some-jQuery-selector').then(function() {\n // assert something\n });\n ```\n \n @method click\n @param {String} selector jQuery selector for finding element on the DOM\n @param {Object} context A DOM Element, Document, or jQuery to use as context\n @return {RSVP.Promise}\n @public\n */\n function click(app, selector, context) {\n let $el = app.testHelpers.findWithAssert(selector, context);\n let el = $el[0];\n (0, _events.fireEvent)(el, 'mousedown');\n (0, _events.focus)(el);\n (0, _events.fireEvent)(el, 'mouseup');\n (0, _events.fireEvent)(el, 'click');\n return app.testHelpers.wait();\n }\n});","enifed(\"ember-testing/lib/helpers/current_path\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = currentPath;\n\n /**\n @module ember\n */\n\n /**\n Returns the current path.\n \n Example:\n \n ```javascript\n function validateURL() {\n equal(currentPath(), 'some.path.index', \"correct path was transitioned into.\");\n }\n \n click('#some-link-id').then(validateURL);\n ```\n \n @method currentPath\n @return {Object} The currently active path.\n @since 1.5.0\n @public\n */\n function currentPath(app) {\n let routingService = app.__container__.lookup('service:-routing');\n\n return (0, _metal.get)(routingService, 'currentPath');\n }\n});","enifed(\"ember-testing/lib/helpers/current_route_name\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = currentRouteName;\n\n /**\n @module ember\n */\n\n /**\n Returns the currently active route name.\n \n Example:\n \n ```javascript\n function validateRouteName() {\n equal(currentRouteName(), 'some.path', \"correct route was transitioned into.\");\n }\n visit('/some/path').then(validateRouteName)\n ```\n \n @method currentRouteName\n @return {Object} The name of the currently active route.\n @since 1.5.0\n @public\n */\n function currentRouteName(app) {\n let routingService = app.__container__.lookup('service:-routing');\n\n return (0, _metal.get)(routingService, 'currentRouteName');\n }\n});","enifed(\"ember-testing/lib/helpers/current_url\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = currentURL;\n\n /**\n @module ember\n */\n\n /**\n Returns the current URL.\n \n Example:\n \n ```javascript\n function validateURL() {\n equal(currentURL(), '/some/path', \"correct URL was transitioned into.\");\n }\n \n click('#some-link-id').then(validateURL);\n ```\n \n @method currentURL\n @return {Object} The currently active URL.\n @since 1.5.0\n @public\n */\n function currentURL(app) {\n let router = app.__container__.lookup('router:main');\n\n return (0, _metal.get)(router, 'location').getURL();\n }\n});","enifed(\"ember-testing/lib/helpers/fill_in\", [\"exports\", \"ember-testing/lib/events\", \"ember-testing/lib/helpers/-is-form-control\"], function (_exports, _events, _isFormControl) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = fillIn;\n\n /**\n @module ember\n */\n\n /**\n Fills in an input element with some text.\n \n Example:\n \n ```javascript\n fillIn('#email', 'you@example.com').then(function() {\n // assert something\n });\n ```\n \n @method fillIn\n @param {String} selector jQuery selector finding an input element on the DOM\n to fill text with\n @param {String} text text to place inside the input element\n @return {RSVP.Promise}\n @public\n */\n function fillIn(app, selector, contextOrText, text) {\n let $el, el, context;\n\n if (text === undefined) {\n text = contextOrText;\n } else {\n context = contextOrText;\n }\n\n $el = app.testHelpers.findWithAssert(selector, context);\n el = $el[0];\n (0, _events.focus)(el);\n\n if ((0, _isFormControl.default)(el)) {\n el.value = text;\n } else {\n el.innerHTML = text;\n }\n\n (0, _events.fireEvent)(el, 'input');\n (0, _events.fireEvent)(el, 'change');\n return app.testHelpers.wait();\n }\n});","enifed(\"ember-testing/lib/helpers/find\", [\"exports\", \"@ember/-internals/metal\", \"@ember/debug\", \"@ember/-internals/views\"], function (_exports, _metal, _debug, _views) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = find;\n\n /**\n @module ember\n */\n\n /**\n Finds an element in the context of the app's container element. A simple alias\n for `app.$(selector)`.\n \n Example:\n \n ```javascript\n var $el = find('.my-selector');\n ```\n \n With the `context` param:\n \n ```javascript\n var $el = find('.my-selector', '.parent-element-class');\n ```\n \n @method find\n @param {String} selector jQuery selector for element lookup\n @param {String} [context] (optional) jQuery selector that will limit the selector\n argument to find only within the context's children\n @return {Object} DOM element representing the results of the query\n @public\n */\n function find(app, selector, context) {\n if (_views.jQueryDisabled) {\n (0, _debug.assert)('If jQuery is disabled, please import and use helpers from @ember/test-helpers [https://github.com/emberjs/ember-test-helpers]. Note: `find` is not an available helper.');\n }\n\n let $el;\n context = context || (0, _metal.get)(app, 'rootElement');\n $el = app.$(selector, context);\n return $el;\n }\n});","enifed(\"ember-testing/lib/helpers/find_with_assert\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = findWithAssert;\n\n /**\n @module ember\n */\n\n /**\n Like `find`, but throws an error if the element selector returns no results.\n \n Example:\n \n ```javascript\n var $el = findWithAssert('.doesnt-exist'); // throws error\n ```\n \n With the `context` param:\n \n ```javascript\n var $el = findWithAssert('.selector-id', '.parent-element-class'); // assert will pass\n ```\n \n @method findWithAssert\n @param {String} selector jQuery selector string for finding an element within\n the DOM\n @param {String} [context] (optional) jQuery selector that will limit the\n selector argument to find only within the context's children\n @return {Object} jQuery object representing the results of the query\n @throws {Error} throws error if object returned has a length of 0\n @public\n */\n function findWithAssert(app, selector, context) {\n let $el = app.testHelpers.find(selector, context);\n\n if ($el.length === 0) {\n throw new Error('Element ' + selector + ' not found.');\n }\n\n return $el;\n }\n});","enifed(\"ember-testing/lib/helpers/key_event\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = keyEvent;\n\n /**\n @module ember\n */\n\n /**\n Simulates a key event, e.g. `keypress`, `keydown`, `keyup` with the desired keyCode\n Example:\n ```javascript\n keyEvent('.some-jQuery-selector', 'keypress', 13).then(function() {\n // assert something\n });\n ```\n @method keyEvent\n @param {String} selector jQuery selector for finding element on the DOM\n @param {String} type the type of key event, e.g. `keypress`, `keydown`, `keyup`\n @param {Number} keyCode the keyCode of the simulated key event\n @return {RSVP.Promise}\n @since 1.5.0\n @public\n */\n function keyEvent(app, selector, contextOrType, typeOrKeyCode, keyCode) {\n let context, type;\n\n if (keyCode === undefined) {\n context = null;\n keyCode = typeOrKeyCode;\n type = contextOrType;\n } else {\n context = contextOrType;\n type = typeOrKeyCode;\n }\n\n return app.testHelpers.triggerEvent(selector, context, type, {\n keyCode,\n which: keyCode\n });\n }\n});","enifed(\"ember-testing/lib/helpers/pause_test\", [\"exports\", \"@ember/-internals/runtime\", \"@ember/debug\"], function (_exports, _runtime, _debug) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.resumeTest = resumeTest;\n _exports.pauseTest = pauseTest;\n\n /**\n @module ember\n */\n let resume;\n /**\n Resumes a test paused by `pauseTest`.\n \n @method resumeTest\n @return {void}\n @public\n */\n\n function resumeTest() {\n (0, _debug.assert)('Testing has not been paused. There is nothing to resume.', resume);\n resume();\n resume = undefined;\n }\n /**\n Pauses the current test - this is useful for debugging while testing or for test-driving.\n It allows you to inspect the state of your application at any point.\n Example (The test will pause before clicking the button):\n \n ```javascript\n visit('/')\n return pauseTest();\n click('.btn');\n ```\n \n You may want to turn off the timeout before pausing.\n \n qunit (timeout available to use as of 2.4.0):\n \n ```\n visit('/');\n assert.timeout(0);\n return pauseTest();\n click('.btn');\n ```\n \n mocha (timeout happens automatically as of ember-mocha v0.14.0):\n \n ```\n visit('/');\n this.timeout(0);\n return pauseTest();\n click('.btn');\n ```\n \n \n @since 1.9.0\n @method pauseTest\n @return {Object} A promise that will never resolve\n @public\n */\n\n\n function pauseTest() {\n (0, _debug.info)('Testing paused. Use `resumeTest()` to continue.');\n return new _runtime.RSVP.Promise(resolve => {\n resume = resolve;\n }, 'TestAdapter paused promise');\n }\n});","enifed(\"ember-testing/lib/helpers/trigger_event\", [\"exports\", \"ember-testing/lib/events\"], function (_exports, _events) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = triggerEvent;\n\n /**\n @module ember\n */\n\n /**\n Triggers the given DOM event on the element identified by the provided selector.\n Example:\n ```javascript\n triggerEvent('#some-elem-id', 'blur');\n ```\n This is actually used internally by the `keyEvent` helper like so:\n ```javascript\n triggerEvent('#some-elem-id', 'keypress', { keyCode: 13 });\n ```\n @method triggerEvent\n @param {String} selector jQuery selector for finding element on the DOM\n @param {String} [context] jQuery selector that will limit the selector\n argument to find only within the context's children\n @param {String} type The event type to be triggered.\n @param {Object} [options] The options to be passed to jQuery.Event.\n @return {RSVP.Promise}\n @since 1.5.0\n @public\n */\n function triggerEvent(app, selector, contextOrType, typeOrOptions, possibleOptions) {\n let arity = arguments.length;\n let context, type, options;\n\n if (arity === 3) {\n // context and options are optional, so this is\n // app, selector, type\n context = null;\n type = contextOrType;\n options = {};\n } else if (arity === 4) {\n // context and options are optional, so this is\n if (typeof typeOrOptions === 'object') {\n // either\n // app, selector, type, options\n context = null;\n type = contextOrType;\n options = typeOrOptions;\n } else {\n // or\n // app, selector, context, type\n context = contextOrType;\n type = typeOrOptions;\n options = {};\n }\n } else {\n context = contextOrType;\n type = typeOrOptions;\n options = possibleOptions;\n }\n\n let $el = app.testHelpers.findWithAssert(selector, context);\n let el = $el[0];\n (0, _events.fireEvent)(el, type, options);\n return app.testHelpers.wait();\n }\n});","enifed(\"ember-testing/lib/helpers/visit\", [\"exports\", \"@ember/runloop\"], function (_exports, _runloop) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = visit;\n\n /**\n Loads a route, sets up any controllers, and renders any templates associated\n with the route as though a real user had triggered the route change while\n using your app.\n \n Example:\n \n ```javascript\n visit('posts/index').then(function() {\n // assert something\n });\n ```\n \n @method visit\n @param {String} url the name of the route\n @return {RSVP.Promise}\n @public\n */\n function visit(app, url) {\n let router = app.__container__.lookup('router:main');\n\n let shouldHandleURL = false;\n app.boot().then(() => {\n router.location.setURL(url);\n\n if (shouldHandleURL) {\n (0, _runloop.run)(app.__deprecatedInstance__, 'handleURL', url);\n }\n });\n\n if (app._readinessDeferrals > 0) {\n router.initialURL = url;\n (0, _runloop.run)(app, 'advanceReadiness');\n delete router.initialURL;\n } else {\n shouldHandleURL = true;\n }\n\n return app.testHelpers.wait();\n }\n});","enifed(\"ember-testing/lib/helpers/wait\", [\"exports\", \"ember-testing/lib/test/waiters\", \"@ember/-internals/runtime\", \"@ember/runloop\", \"ember-testing/lib/test/pending_requests\"], function (_exports, _waiters, _runtime, _runloop, _pending_requests) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = wait;\n\n /**\n @module ember\n */\n\n /**\n Causes the run loop to process any pending events. This is used to ensure that\n any async operations from other helpers (or your assertions) have been processed.\n \n This is most often used as the return value for the helper functions (see 'click',\n 'fillIn','visit',etc). However, there is a method to register a test helper which\n utilizes this method without the need to actually call `wait()` in your helpers.\n \n The `wait` helper is built into `registerAsyncHelper` by default. You will not need\n to `return app.testHelpers.wait();` - the wait behavior is provided for you.\n \n Example:\n \n ```javascript\n import { registerAsyncHelper } from '@ember/test';\n \n registerAsyncHelper('loginUser', function(app, username, password) {\n visit('secured/path/here')\n .fillIn('#username', username)\n .fillIn('#password', password)\n .click('.submit');\n });\n ```\n \n @method wait\n @param {Object} value The value to be returned.\n @return {RSVP.Promise} Promise that resolves to the passed value.\n @public\n @since 1.0.0\n */\n function wait(app, value) {\n return new _runtime.RSVP.Promise(function (resolve) {\n let router = app.__container__.lookup('router:main'); // Every 10ms, poll for the async thing to have finished\n\n\n let watcher = setInterval(() => {\n // 1. If the router is loading, keep polling\n let routerIsLoading = router._routerMicrolib && Boolean(router._routerMicrolib.activeTransition);\n\n if (routerIsLoading) {\n return;\n } // 2. If there are pending Ajax requests, keep polling\n\n\n if ((0, _pending_requests.pendingRequests)()) {\n return;\n } // 3. If there are scheduled timers or we are inside of a run loop, keep polling\n\n\n if ((0, _runloop.hasScheduledTimers)() || (0, _runloop.getCurrentRunLoop)()) {\n return;\n }\n\n if ((0, _waiters.checkWaiters)()) {\n return;\n } // Stop polling\n\n\n clearInterval(watcher); // Synchronously resolve the promise\n\n (0, _runloop.run)(null, resolve, value);\n }, 10);\n });\n }\n});","enifed(\"ember-testing/lib/initializers\", [\"@ember/application\"], function (_application) {\n \"use strict\";\n\n let name = 'deferReadiness in `testing` mode';\n (0, _application.onLoad)('Ember.Application', function (Application) {\n if (!Application.initializers[name]) {\n Application.initializer({\n name: name,\n\n initialize(application) {\n if (application.testing) {\n application.deferReadiness();\n }\n }\n\n });\n }\n });\n});","enifed(\"ember-testing/lib/setup_for_testing\", [\"exports\", \"@ember/debug\", \"@ember/-internals/views\", \"ember-testing/lib/test/adapter\", \"ember-testing/lib/test/pending_requests\", \"ember-testing/lib/adapters/adapter\", \"ember-testing/lib/adapters/qunit\"], function (_exports, _debug, _views, _adapter, _pending_requests, _adapter2, _qunit) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = setupForTesting;\n\n /* global self */\n\n /**\n Sets Ember up for testing. This is useful to perform\n basic setup steps in order to unit test.\n \n Use `App.setupForTesting` to perform integration tests (full\n application testing).\n \n @method setupForTesting\n @namespace Ember\n @since 1.5.0\n @private\n */\n function setupForTesting() {\n (0, _debug.setTesting)(true);\n let adapter = (0, _adapter.getAdapter)(); // if adapter is not manually set default to QUnit\n\n if (!adapter) {\n (0, _adapter.setAdapter)(typeof self.QUnit === 'undefined' ? _adapter2.default.create() : _qunit.default.create());\n }\n\n if (!_views.jQueryDisabled) {\n (0, _views.jQuery)(document).off('ajaxSend', _pending_requests.incrementPendingRequests);\n (0, _views.jQuery)(document).off('ajaxComplete', _pending_requests.decrementPendingRequests);\n (0, _pending_requests.clearPendingRequests)();\n (0, _views.jQuery)(document).on('ajaxSend', _pending_requests.incrementPendingRequests);\n (0, _views.jQuery)(document).on('ajaxComplete', _pending_requests.decrementPendingRequests);\n }\n }\n});","enifed(\"ember-testing/lib/support\", [\"@ember/debug\", \"@ember/-internals/views\", \"@ember/-internals/browser-environment\"], function (_debug, _views, _browserEnvironment) {\n \"use strict\";\n\n /**\n @module ember\n */\n const $ = _views.jQuery;\n /**\n This method creates a checkbox and triggers the click event to fire the\n passed in handler. It is used to correct for a bug in older versions\n of jQuery (e.g 1.8.3).\n \n @private\n @method testCheckboxClick\n */\n\n function testCheckboxClick(handler) {\n let input = document.createElement('input');\n $(input).attr('type', 'checkbox').css({\n position: 'absolute',\n left: '-1000px',\n top: '-1000px'\n }).appendTo('body').on('click', handler).trigger('click').remove();\n }\n\n if (_browserEnvironment.hasDOM && !_views.jQueryDisabled) {\n $(function () {\n /*\n Determine whether a checkbox checked using jQuery's \"click\" method will have\n the correct value for its checked property.\n If we determine that the current jQuery version exhibits this behavior,\n patch it to work correctly as in the commit for the actual fix:\n https://github.com/jquery/jquery/commit/1fb2f92.\n */\n testCheckboxClick(function () {\n if (!this.checked && !$.event.special.click) {\n $.event.special.click = {\n // For checkbox, fire native event so checked state will be right\n trigger() {\n if (this.nodeName === 'INPUT' && this.type === 'checkbox' && this.click) {\n this.click();\n return false;\n }\n }\n\n };\n }\n }); // Try again to verify that the patch took effect or blow up.\n\n testCheckboxClick(function () {\n (0, _debug.warn)(\"clicked checkboxes should be checked! the jQuery patch didn't work\", this.checked, {\n id: 'ember-testing.test-checkbox-click'\n });\n });\n });\n }\n});","enifed(\"ember-testing/lib/test\", [\"exports\", \"ember-testing/lib/test/helpers\", \"ember-testing/lib/test/on_inject_helpers\", \"ember-testing/lib/test/promise\", \"ember-testing/lib/test/waiters\", \"ember-testing/lib/test/adapter\"], function (_exports, _helpers, _on_inject_helpers, _promise, _waiters, _adapter) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /**\n @module ember\n */\n\n /**\n This is a container for an assortment of testing related functionality:\n \n * Choose your default test adapter (for your framework of choice).\n * Register/Unregister additional test helpers.\n * Setup callbacks to be fired when the test helpers are injected into\n your application.\n \n @class Test\n @namespace Ember\n @public\n */\n const Test = {\n /**\n Hash containing all known test helpers.\n @property _helpers\n @private\n @since 1.7.0\n */\n _helpers: _helpers.helpers,\n registerHelper: _helpers.registerHelper,\n registerAsyncHelper: _helpers.registerAsyncHelper,\n unregisterHelper: _helpers.unregisterHelper,\n onInjectHelpers: _on_inject_helpers.onInjectHelpers,\n Promise: _promise.default,\n promise: _promise.promise,\n resolve: _promise.resolve,\n registerWaiter: _waiters.registerWaiter,\n unregisterWaiter: _waiters.unregisterWaiter,\n checkWaiters: _waiters.checkWaiters\n };\n /**\n Used to allow ember-testing to communicate with a specific testing\n framework.\n \n You can manually set it before calling `App.setupForTesting()`.\n \n Example:\n \n ```javascript\n Ember.Test.adapter = MyCustomAdapter.create()\n ```\n \n If you do not set it, ember-testing will default to `Ember.Test.QUnitAdapter`.\n \n @public\n @for Ember.Test\n @property adapter\n @type {Class} The adapter to be used.\n @default Ember.Test.QUnitAdapter\n */\n\n Object.defineProperty(Test, 'adapter', {\n get: _adapter.getAdapter,\n set: _adapter.setAdapter\n });\n var _default = Test;\n _exports.default = _default;\n});","enifed(\"ember-testing/lib/test/adapter\", [\"exports\", \"@ember/-internals/error-handling\"], function (_exports, _errorHandling) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.getAdapter = getAdapter;\n _exports.setAdapter = setAdapter;\n _exports.asyncStart = asyncStart;\n _exports.asyncEnd = asyncEnd;\n let adapter;\n\n function getAdapter() {\n return adapter;\n }\n\n function setAdapter(value) {\n adapter = value;\n\n if (value && typeof value.exception === 'function') {\n (0, _errorHandling.setDispatchOverride)(adapterDispatch);\n } else {\n (0, _errorHandling.setDispatchOverride)(null);\n }\n }\n\n function asyncStart() {\n if (adapter) {\n adapter.asyncStart();\n }\n }\n\n function asyncEnd() {\n if (adapter) {\n adapter.asyncEnd();\n }\n }\n\n function adapterDispatch(error) {\n adapter.exception(error);\n console.error(error.stack); // eslint-disable-line no-console\n }\n});","enifed(\"ember-testing/lib/test/helpers\", [\"exports\", \"ember-testing/lib/test/promise\"], function (_exports, _promise) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.registerHelper = registerHelper;\n _exports.registerAsyncHelper = registerAsyncHelper;\n _exports.unregisterHelper = unregisterHelper;\n _exports.helpers = void 0;\n const helpers = {};\n /**\n @module @ember/test\n */\n\n /**\n `registerHelper` is used to register a test helper that will be injected\n when `App.injectTestHelpers` is called.\n \n The helper method will always be called with the current Application as\n the first parameter.\n \n For example:\n \n ```javascript\n import { registerHelper } from '@ember/test';\n import { run } from '@ember/runloop';\n \n registerHelper('boot', function(app) {\n run(app, app.advanceReadiness);\n });\n ```\n \n This helper can later be called without arguments because it will be\n called with `app` as the first parameter.\n \n ```javascript\n import Application from '@ember/application';\n \n App = Application.create();\n App.injectTestHelpers();\n boot();\n ```\n \n @public\n @for @ember/test\n @static\n @method registerHelper\n @param {String} name The name of the helper method to add.\n @param {Function} helperMethod\n @param options {Object}\n */\n\n _exports.helpers = helpers;\n\n function registerHelper(name, helperMethod) {\n helpers[name] = {\n method: helperMethod,\n meta: {\n wait: false\n }\n };\n }\n /**\n `registerAsyncHelper` is used to register an async test helper that will be injected\n when `App.injectTestHelpers` is called.\n \n The helper method will always be called with the current Application as\n the first parameter.\n \n For example:\n \n ```javascript\n import { registerAsyncHelper } from '@ember/test';\n import { run } from '@ember/runloop';\n \n registerAsyncHelper('boot', function(app) {\n run(app, app.advanceReadiness);\n });\n ```\n \n The advantage of an async helper is that it will not run\n until the last async helper has completed. All async helpers\n after it will wait for it complete before running.\n \n \n For example:\n \n ```javascript\n import { registerAsyncHelper } from '@ember/test';\n \n registerAsyncHelper('deletePost', function(app, postId) {\n click('.delete-' + postId);\n });\n \n // ... in your test\n visit('/post/2');\n deletePost(2);\n visit('/post/3');\n deletePost(3);\n ```\n \n @public\n @for @ember/test\n @method registerAsyncHelper\n @param {String} name The name of the helper method to add.\n @param {Function} helperMethod\n @since 1.2.0\n */\n\n\n function registerAsyncHelper(name, helperMethod) {\n helpers[name] = {\n method: helperMethod,\n meta: {\n wait: true\n }\n };\n }\n /**\n Remove a previously added helper method.\n \n Example:\n \n ```javascript\n import { unregisterHelper } from '@ember/test';\n \n unregisterHelper('wait');\n ```\n \n @public\n @method unregisterHelper\n @static\n @for @ember/test\n @param {String} name The helper to remove.\n */\n\n\n function unregisterHelper(name) {\n delete helpers[name];\n delete _promise.default.prototype[name];\n }\n});","enifed(\"ember-testing/lib/test/on_inject_helpers\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.onInjectHelpers = onInjectHelpers;\n _exports.invokeInjectHelpersCallbacks = invokeInjectHelpersCallbacks;\n _exports.callbacks = void 0;\n const callbacks = [];\n /**\n Used to register callbacks to be fired whenever `App.injectTestHelpers`\n is called.\n \n The callback will receive the current application as an argument.\n \n Example:\n \n ```javascript\n import $ from 'jquery';\n \n Ember.Test.onInjectHelpers(function() {\n $(document).ajaxSend(function() {\n Test.pendingRequests++;\n });\n \n $(document).ajaxComplete(function() {\n Test.pendingRequests--;\n });\n });\n ```\n \n @public\n @for Ember.Test\n @method onInjectHelpers\n @param {Function} callback The function to be called.\n */\n\n _exports.callbacks = callbacks;\n\n function onInjectHelpers(callback) {\n callbacks.push(callback);\n }\n\n function invokeInjectHelpersCallbacks(app) {\n for (let i = 0; i < callbacks.length; i++) {\n callbacks[i](app);\n }\n }\n});","enifed(\"ember-testing/lib/test/pending_requests\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.pendingRequests = pendingRequests;\n _exports.clearPendingRequests = clearPendingRequests;\n _exports.incrementPendingRequests = incrementPendingRequests;\n _exports.decrementPendingRequests = decrementPendingRequests;\n let requests = [];\n\n function pendingRequests() {\n return requests.length;\n }\n\n function clearPendingRequests() {\n requests.length = 0;\n }\n\n function incrementPendingRequests(_, xhr) {\n requests.push(xhr);\n }\n\n function decrementPendingRequests(_, xhr) {\n setTimeout(function () {\n for (let i = 0; i < requests.length; i++) {\n if (xhr === requests[i]) {\n requests.splice(i, 1);\n break;\n }\n }\n }, 0);\n }\n});","enifed(\"ember-testing/lib/test/promise\", [\"exports\", \"@ember/-internals/runtime\", \"ember-testing/lib/test/run\"], function (_exports, _runtime, _run) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.promise = promise;\n _exports.resolve = resolve;\n _exports.getLastPromise = getLastPromise;\n _exports.default = void 0;\n let lastPromise;\n\n class TestPromise extends _runtime.RSVP.Promise {\n constructor() {\n super(...arguments);\n lastPromise = this;\n }\n\n then(_onFulfillment, ...args) {\n let onFulfillment = typeof _onFulfillment === 'function' ? result => isolate(_onFulfillment, result) : undefined;\n return super.then(onFulfillment, ...args);\n }\n\n }\n /**\n This returns a thenable tailored for testing. It catches failed\n `onSuccess` callbacks and invokes the `Ember.Test.adapter.exception`\n callback in the last chained then.\n \n This method should be returned by async helpers such as `wait`.\n \n @public\n @for Ember.Test\n @method promise\n @param {Function} resolver The function used to resolve the promise.\n @param {String} label An optional string for identifying the promise.\n */\n\n\n _exports.default = TestPromise;\n\n function promise(resolver, label) {\n let fullLabel = \"Ember.Test.promise: \" + (label || '');\n return new TestPromise(resolver, fullLabel);\n }\n /**\n Replacement for `Ember.RSVP.resolve`\n The only difference is this uses\n an instance of `Ember.Test.Promise`\n \n @public\n @for Ember.Test\n @method resolve\n @param {Mixed} The value to resolve\n @since 1.2.0\n */\n\n\n function resolve(result, label) {\n return TestPromise.resolve(result, label);\n }\n\n function getLastPromise() {\n return lastPromise;\n } // This method isolates nested async methods\n // so that they don't conflict with other last promises.\n //\n // 1. Set `Ember.Test.lastPromise` to null\n // 2. Invoke method\n // 3. Return the last promise created during method\n\n\n function isolate(onFulfillment, result) {\n // Reset lastPromise for nested helpers\n lastPromise = null;\n let value = onFulfillment(result);\n let promise = lastPromise;\n lastPromise = null; // If the method returned a promise\n // return that promise. If not,\n // return the last async helper's promise\n\n if (value && value instanceof TestPromise || !promise) {\n return value;\n } else {\n return (0, _run.default)(() => resolve(promise).then(() => value));\n }\n }\n});","enifed(\"ember-testing/lib/test/run\", [\"exports\", \"@ember/runloop\"], function (_exports, _runloop) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = run;\n\n function run(fn) {\n if (!(0, _runloop.getCurrentRunLoop)()) {\n return (0, _runloop.run)(fn);\n } else {\n return fn();\n }\n }\n});","enifed(\"ember-testing/lib/test/waiters\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.registerWaiter = registerWaiter;\n _exports.unregisterWaiter = unregisterWaiter;\n _exports.checkWaiters = checkWaiters;\n\n /**\n @module @ember/test\n */\n const contexts = [];\n const callbacks = [];\n /**\n This allows ember-testing to play nicely with other asynchronous\n events, such as an application that is waiting for a CSS3\n transition or an IndexDB transaction. The waiter runs periodically\n after each async helper (i.e. `click`, `andThen`, `visit`, etc) has executed,\n until the returning result is truthy. After the waiters finish, the next async helper\n is executed and the process repeats.\n \n For example:\n \n ```javascript\n import { registerWaiter } from '@ember/test';\n \n registerWaiter(function() {\n return myPendingTransactions() === 0;\n });\n ```\n The `context` argument allows you to optionally specify the `this`\n with which your callback will be invoked.\n \n For example:\n \n ```javascript\n import { registerWaiter } from '@ember/test';\n \n registerWaiter(MyDB, MyDB.hasPendingTransactions);\n ```\n \n @public\n @for @ember/test\n @static\n @method registerWaiter\n @param {Object} context (optional)\n @param {Function} callback\n @since 1.2.0\n */\n\n function registerWaiter(context, callback) {\n if (arguments.length === 1) {\n callback = context;\n context = null;\n }\n\n if (indexOf(context, callback) > -1) {\n return;\n }\n\n contexts.push(context);\n callbacks.push(callback);\n }\n /**\n `unregisterWaiter` is used to unregister a callback that was\n registered with `registerWaiter`.\n \n @public\n @for @ember/test\n @static\n @method unregisterWaiter\n @param {Object} context (optional)\n @param {Function} callback\n @since 1.2.0\n */\n\n\n function unregisterWaiter(context, callback) {\n if (!callbacks.length) {\n return;\n }\n\n if (arguments.length === 1) {\n callback = context;\n context = null;\n }\n\n let i = indexOf(context, callback);\n\n if (i === -1) {\n return;\n }\n\n contexts.splice(i, 1);\n callbacks.splice(i, 1);\n }\n /**\n Iterates through each registered test waiter, and invokes\n its callback. If any waiter returns false, this method will return\n true indicating that the waiters have not settled yet.\n \n This is generally used internally from the acceptance/integration test\n infrastructure.\n \n @public\n @for @ember/test\n @static\n @method checkWaiters\n */\n\n\n function checkWaiters() {\n if (!callbacks.length) {\n return false;\n }\n\n for (let i = 0; i < callbacks.length; i++) {\n let context = contexts[i];\n let callback = callbacks[i];\n\n if (!callback.call(context)) {\n return true;\n }\n }\n\n return false;\n }\n\n function indexOf(context, callback) {\n for (let i = 0; i < callbacks.length; i++) {\n if (callbacks[i] === callback && contexts[i] === context) {\n return i;\n }\n }\n\n return -1;\n }\n});","enifed(\"ember-testing/tests/acceptance_test\", [\"internal-test-helpers\", \"@ember/runloop\", \"ember-testing/lib/test\", \"ember-testing/lib/adapters/qunit\", \"@ember/-internals/routing\", \"@ember/-internals/runtime\", \"@ember/-internals/views\", \"@ember/debug\"], function (_internalTestHelpers, _runloop, _test, _qunit, _routing, _runtime, _views, _debug) {\n \"use strict\";\n\n const originalDebug = (0, _debug.getDebugFunction)('debug');\n var originalConsoleError = console.error; // eslint-disable-line no-console\n\n let testContext;\n\n if (!_views.jQueryDisabled) {\n (0, _internalTestHelpers.moduleFor)('ember-testing Acceptance', class extends _internalTestHelpers.AutobootApplicationTestCase {\n constructor() {\n (0, _debug.setDebugFunction)('debug', function () {});\n super();\n this._originalAdapter = _test.default.adapter;\n testContext = this;\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.router.map(function () {\n this.route('posts');\n this.route('comments');\n this.route('abort_transition');\n this.route('redirect');\n });\n this.indexHitCount = 0;\n this.currentRoute = 'index';\n this.add('route:index', _routing.Route.extend({\n model() {\n testContext.indexHitCount += 1;\n }\n\n }));\n this.add('route:posts', _routing.Route.extend({\n renderTemplate() {\n testContext.currentRoute = 'posts';\n\n this._super(...arguments);\n }\n\n }));\n this.addTemplate('posts', \"\\n \\n \");\n this.add('route:comments', _routing.Route.extend({\n renderTemplate() {\n testContext.currentRoute = 'comments';\n\n this._super(...arguments);\n }\n\n }));\n this.addTemplate('comments', \"{{input type=\\\"text\\\"}}
\");\n this.add('route:abort_transition', _routing.Route.extend({\n beforeModel(transition) {\n transition.abort();\n }\n\n }));\n this.add('route:redirect', _routing.Route.extend({\n beforeModel() {\n this.transitionTo('comments');\n }\n\n }));\n this.application.setupForTesting();\n\n _test.default.registerAsyncHelper('slowHelper', () => {\n return new _runtime.RSVP.Promise(resolve => (0, _runloop.later)(resolve, 10));\n });\n\n this.application.injectTestHelpers();\n });\n }\n\n afterEach() {\n console.error = originalConsoleError; // eslint-disable-line no-console\n\n super.afterEach();\n }\n\n teardown() {\n (0, _debug.setDebugFunction)('debug', originalDebug);\n _test.default.adapter = this._originalAdapter;\n\n _test.default.unregisterHelper('slowHelper');\n\n window.slowHelper = undefined;\n testContext = undefined;\n super.teardown();\n }\n\n [\"@test helpers can be chained with then\"](assert) {\n assert.expect(6);\n window.visit('/posts').then(() => {\n assert.equal(this.currentRoute, 'posts', 'Successfully visited posts route');\n assert.equal(window.currentURL(), '/posts', 'posts URL is correct');\n return window.click('a:contains(\"Comments\")');\n }).then(() => {\n assert.equal(this.currentRoute, 'comments', 'visit chained with click');\n return window.fillIn('.ember-text-field', 'yeah');\n }).then(() => {\n assert.equal(document.querySelector('.ember-text-field').value, 'yeah', 'chained with fillIn');\n return window.fillIn('.ember-text-field', '#qunit-fixture', 'context working');\n }).then(() => {\n assert.equal(document.querySelector('.ember-text-field').value, 'context working', 'chained with fillIn');\n return window.click('.does-not-exist');\n }).catch(e => {\n assert.equal(e.message, 'Element .does-not-exist not found.', 'Non-existent click exception caught');\n });\n }\n\n [\"@test helpers can be chained to each other (legacy)\"](assert) {\n assert.expect(7);\n window.visit('/posts').click('a:first', '#comments-link').fillIn('.ember-text-field', 'hello').then(() => {\n assert.equal(this.currentRoute, 'comments', 'Successfully visited comments route');\n assert.equal(window.currentURL(), '/comments', 'Comments URL is correct');\n assert.equal(document.querySelector('.ember-text-field').value, 'hello', 'Fillin successfully works');\n window.find('.ember-text-field').one('keypress', e => {\n assert.equal(e.keyCode, 13, 'keyevent chained with correct keyCode.');\n assert.equal(e.which, 13, 'keyevent chained with correct which.');\n });\n }).keyEvent('.ember-text-field', 'keypress', 13).visit('/posts').then(() => {\n assert.equal(this.currentRoute, 'posts', 'Thens can also be chained to helpers');\n assert.equal(window.currentURL(), '/posts', 'URL is set correct on chained helpers');\n });\n }\n\n [\"@test helpers don't need to be chained\"](assert) {\n assert.expect(5);\n window.visit('/posts');\n window.click('a:first', '#comments-link');\n window.fillIn('.ember-text-field', 'hello');\n window.andThen(() => {\n assert.equal(this.currentRoute, 'comments', 'Successfully visited comments route');\n assert.equal(window.currentURL(), '/comments', 'Comments URL is correct');\n assert.equal(window.find('.ember-text-field').val(), 'hello', 'Fillin successfully works');\n });\n window.visit('/posts');\n window.andThen(() => {\n assert.equal(this.currentRoute, 'posts');\n assert.equal(window.currentURL(), '/posts');\n });\n }\n\n [\"@test Nested async helpers\"](assert) {\n assert.expect(5);\n window.visit('/posts');\n window.andThen(() => {\n window.click('a:first', '#comments-link');\n window.fillIn('.ember-text-field', 'hello');\n });\n window.andThen(() => {\n assert.equal(this.currentRoute, 'comments', 'Successfully visited comments route');\n assert.equal(window.currentURL(), '/comments', 'Comments URL is correct');\n assert.equal(window.find('.ember-text-field').val(), 'hello', 'Fillin successfully works');\n });\n window.visit('/posts');\n window.andThen(() => {\n assert.equal(this.currentRoute, 'posts');\n assert.equal(window.currentURL(), '/posts');\n });\n }\n\n [\"@test Multiple nested async helpers\"](assert) {\n assert.expect(3);\n window.visit('/posts');\n window.andThen(() => {\n window.click('a:first', '#comments-link');\n window.fillIn('.ember-text-field', 'hello');\n window.fillIn('.ember-text-field', 'goodbye');\n });\n window.andThen(() => {\n assert.equal(window.find('.ember-text-field').val(), 'goodbye', 'Fillin successfully works');\n assert.equal(this.currentRoute, 'comments', 'Successfully visited comments route');\n assert.equal(window.currentURL(), '/comments', 'Comments URL is correct');\n });\n }\n\n [\"@test Helpers nested in thens\"](assert) {\n assert.expect(5);\n window.visit('/posts').then(() => {\n window.click('a:first', '#comments-link');\n });\n window.andThen(() => {\n window.fillIn('.ember-text-field', 'hello');\n });\n window.andThen(() => {\n assert.equal(this.currentRoute, 'comments', 'Successfully visited comments route');\n assert.equal(window.currentURL(), '/comments', 'Comments URL is correct');\n assert.equal(window.find('.ember-text-field').val(), 'hello', 'Fillin successfully works');\n });\n window.visit('/posts');\n window.andThen(() => {\n assert.equal(this.currentRoute, 'posts');\n assert.equal(window.currentURL(), '/posts', 'Posts URL is correct');\n });\n }\n\n [\"@test Aborted transitions are not logged via Ember.Test.adapter#exception\"](assert) {\n assert.expect(0);\n _test.default.adapter = _qunit.default.create({\n exception() {\n assert.ok(false, 'aborted transitions are not logged');\n }\n\n });\n window.visit('/abort_transition');\n }\n\n [\"@test Unhandled exceptions are logged via Ember.Test.adapter#exception\"](assert) {\n assert.expect(2);\n\n console.error = () => {}; // eslint-disable-line no-console\n\n\n let asyncHandled;\n _test.default.adapter = _qunit.default.create({\n exception(error) {\n assert.equal(error.message, 'Element .does-not-exist not found.', 'Exception successfully caught and passed to Ember.Test.adapter.exception'); // handle the rejection so it doesn't leak later.\n\n asyncHandled.catch(() => {});\n }\n\n });\n window.visit('/posts');\n window.click('.invalid-element').catch(error => {\n assert.equal(error.message, 'Element .invalid-element not found.', 'Exception successfully handled in the rejection handler');\n });\n asyncHandled = window.click('.does-not-exist');\n }\n\n [\"@test Unhandled exceptions in 'andThen' are logged via Ember.Test.adapter#exception\"](assert) {\n assert.expect(1);\n\n console.error = () => {}; // eslint-disable-line no-console\n\n\n _test.default.adapter = _qunit.default.create({\n exception(error) {\n assert.equal(error.message, 'Catch me', 'Exception successfully caught and passed to Ember.Test.adapter.exception');\n }\n\n });\n window.visit('/posts');\n window.andThen(() => {\n throw new Error('Catch me');\n });\n }\n\n [\"@test should not start routing on the root URL when visiting another\"](assert) {\n assert.expect(4);\n window.visit('/posts');\n window.andThen(() => {\n assert.ok(window.find('#comments-link'), 'found comments-link');\n assert.equal(this.currentRoute, 'posts', 'Successfully visited posts route');\n assert.equal(window.currentURL(), '/posts', 'Posts URL is correct');\n assert.equal(this.indexHitCount, 0, 'should not hit index route when visiting another route');\n });\n }\n\n [\"@test only enters the index route once when visiting \"](assert) {\n assert.expect(1);\n window.visit('/');\n window.andThen(() => {\n assert.equal(this.indexHitCount, 1, 'should hit index once when visiting /');\n });\n }\n\n [\"@test test must not finish while asyncHelpers are pending\"](assert) {\n assert.expect(2);\n let async = 0;\n let innerRan = false;\n _test.default.adapter = _qunit.default.extend({\n asyncStart() {\n async++;\n\n this._super();\n },\n\n asyncEnd() {\n async--;\n\n this._super();\n }\n\n }).create();\n this.application.testHelpers.slowHelper();\n window.andThen(() => {\n innerRan = true;\n });\n assert.equal(innerRan, false, 'should not have run yet');\n assert.ok(async > 0, 'should have told the adapter to pause');\n\n if (async === 0) {\n // If we failed the test, prevent zalgo from escaping and breaking\n // our other tests.\n _test.default.adapter.asyncStart();\n\n _test.default.resolve().then(() => {\n _test.default.adapter.asyncEnd();\n });\n }\n }\n\n [\"@test visiting a URL that causes another transition should yield the correct URL\"](assert) {\n assert.expect(1);\n window.visit('/redirect');\n window.andThen(() => {\n assert.equal(window.currentURL(), '/comments', 'Redirected to Comments URL');\n });\n }\n\n [\"@test visiting a URL and then visiting a second URL with a transition should yield the correct URL\"](assert) {\n assert.expect(2);\n window.visit('/posts');\n window.andThen(function () {\n assert.equal(window.currentURL(), '/posts', 'First visited URL is correct');\n });\n window.visit('/redirect');\n window.andThen(() => {\n assert.equal(window.currentURL(), '/comments', 'Redirected to Comments URL');\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-testing Acceptance - teardown', class extends _internalTestHelpers.AutobootApplicationTestCase {\n [\"@test that the setup/teardown happens correctly\"](assert) {\n assert.expect(2);\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n });\n this.application.injectTestHelpers();\n assert.ok(typeof _test.default.Promise.prototype.click === 'function');\n (0, _internalTestHelpers.runTask)(() => {\n this.application.destroy();\n });\n assert.equal(_test.default.Promise.prototype.click, undefined);\n }\n\n });\n }\n});","enifed(\"ember-testing/tests/adapters/adapter_test\", [\"@ember/runloop\", \"ember-testing/lib/adapters/adapter\", \"internal-test-helpers\"], function (_runloop, _adapter, _internalTestHelpers) {\n \"use strict\";\n\n var adapter;\n (0, _internalTestHelpers.moduleFor)('ember-testing Adapter', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n adapter = _adapter.default.create();\n }\n\n teardown() {\n (0, _runloop.run)(adapter, adapter.destroy);\n }\n\n ['@test exception throws'](assert) {\n var error = 'Hai';\n var thrown;\n\n try {\n adapter.exception(error);\n } catch (e) {\n thrown = e;\n }\n\n assert.equal(thrown, error);\n }\n\n });\n});","enifed(\"ember-testing/tests/adapters/qunit_test\", [\"@ember/runloop\", \"ember-testing/lib/adapters/qunit\", \"internal-test-helpers\"], function (_runloop, _qunit, _internalTestHelpers) {\n \"use strict\";\n\n var adapter;\n (0, _internalTestHelpers.moduleFor)('ember-testing QUnitAdapter: QUnit 2.x', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n this.originalStart = QUnit.start;\n this.originalStop = QUnit.stop;\n delete QUnit.start;\n delete QUnit.stop;\n adapter = _qunit.default.create();\n }\n\n teardown() {\n (0, _runloop.run)(adapter, adapter.destroy);\n QUnit.start = this.originalStart;\n QUnit.stop = this.originalStop;\n }\n\n ['@test asyncStart waits for asyncEnd to finish a test'](assert) {\n adapter.asyncStart();\n setTimeout(function () {\n assert.ok(true);\n adapter.asyncEnd();\n }, 50);\n }\n\n ['@test asyncStart waits for equal numbers of asyncEnd to finish a test'](assert) {\n let adapter = _qunit.default.create();\n\n adapter.asyncStart();\n adapter.asyncStart();\n adapter.asyncEnd();\n setTimeout(function () {\n assert.ok(true);\n adapter.asyncEnd();\n }, 50);\n }\n\n });\n});","enifed(\"ember-testing/tests/adapters_test\", [\"@ember/runloop\", \"@ember/-internals/error-handling\", \"ember-testing/lib/test\", \"ember-testing/lib/adapters/adapter\", \"ember-testing/lib/adapters/qunit\", \"@ember/application\", \"internal-test-helpers\", \"@ember/-internals/runtime\", \"@ember/debug\"], function (_runloop, _errorHandling, _test, _adapter, _qunit, _application, _internalTestHelpers, _runtime, _debug) {\n \"use strict\";\n\n const HAS_UNHANDLED_REJECTION_HANDLER = 'onunhandledrejection' in window;\n const originalDebug = (0, _debug.getDebugFunction)('debug');\n\n const noop = function () {};\n\n var App, originalAdapter, originalQUnit, originalWindowOnerror, originalQUnitUnhandledRejection;\n var originalConsoleError = console.error; // eslint-disable-line no-console\n\n function runThatThrowsSync(message = 'Error for testing error handling') {\n return (0, _runloop.run)(() => {\n throw new Error(message);\n });\n }\n\n function runThatThrowsAsync(message = 'Error for testing error handling') {\n return (0, _runloop.next)(() => {\n throw new Error(message);\n });\n }\n\n class AdapterSetupAndTearDown extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n (0, _debug.setDebugFunction)('debug', noop);\n super();\n originalAdapter = _test.default.adapter;\n originalQUnit = QUnit;\n originalWindowOnerror = window.onerror;\n originalQUnitUnhandledRejection = QUnit.onUnhandledRejection;\n }\n\n afterEach() {\n super.afterEach();\n (0, _debug.setDebugFunction)('debug', originalDebug);\n\n if (App) {\n (0, _runloop.run)(App, App.destroy);\n App.removeTestHelpers();\n App = null;\n }\n\n _test.default.adapter = originalAdapter;\n window.QUnit = originalQUnit;\n window.onerror = originalWindowOnerror;\n (0, _errorHandling.setOnerror)(undefined);\n console.error = originalConsoleError; // eslint-disable-line no-console\n\n QUnit.onUnhandledRejection = originalQUnitUnhandledRejection;\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('ember-testing Adapters', class extends AdapterSetupAndTearDown {\n ['@test Setting a test adapter manually'](assert) {\n assert.expect(1);\n var CustomAdapter;\n CustomAdapter = _adapter.default.extend({\n asyncStart() {\n assert.ok(true, 'Correct adapter was used');\n }\n\n });\n (0, _runloop.run)(function () {\n App = _application.default.create();\n _test.default.adapter = CustomAdapter.create();\n App.setupForTesting();\n });\n\n _test.default.adapter.asyncStart();\n }\n\n ['@test QUnitAdapter is used by default (if QUnit is available)'](assert) {\n assert.expect(1);\n _test.default.adapter = null;\n (0, _runloop.run)(function () {\n App = _application.default.create();\n App.setupForTesting();\n });\n assert.ok(_test.default.adapter instanceof _qunit.default);\n }\n\n ['@test Adapter is used by default (if QUnit is not available)'](assert) {\n assert.expect(2);\n delete window.QUnit;\n _test.default.adapter = null;\n (0, _runloop.run)(function () {\n App = _application.default.create();\n App.setupForTesting();\n });\n assert.ok(_test.default.adapter instanceof _adapter.default);\n assert.ok(!(_test.default.adapter instanceof _qunit.default));\n }\n\n ['@test With Ember.Test.adapter set, errors in synchronous Ember.run are bubbled out'](assert) {\n let thrown = new Error('Boom!');\n let caughtInAdapter, caughtInCatch;\n _test.default.adapter = _qunit.default.create({\n exception(error) {\n caughtInAdapter = error;\n }\n\n });\n\n try {\n (0, _runloop.run)(() => {\n throw thrown;\n });\n } catch (e) {\n caughtInCatch = e;\n }\n\n assert.equal(caughtInAdapter, undefined, 'test adapter should never receive synchronous errors');\n assert.equal(caughtInCatch, thrown, 'a \"normal\" try/catch should catch errors in sync run');\n }\n\n ['@test when both Ember.onerror (which rethrows) and TestAdapter are registered - sync run'](assert) {\n assert.expect(2);\n _test.default.adapter = {\n exception() {\n assert.notOk(true, 'adapter is not called for errors thrown in sync run loops');\n }\n\n };\n (0, _errorHandling.setOnerror)(function (error) {\n assert.ok(true, 'onerror is called for sync errors even if TestAdapter is setup');\n throw error;\n });\n assert.throws(runThatThrowsSync, Error, 'error is thrown');\n }\n\n ['@test when both Ember.onerror (which does not rethrow) and TestAdapter are registered - sync run'](assert) {\n assert.expect(2);\n _test.default.adapter = {\n exception() {\n assert.notOk(true, 'adapter is not called for errors thrown in sync run loops');\n }\n\n };\n (0, _errorHandling.setOnerror)(function () {\n assert.ok(true, 'onerror is called for sync errors even if TestAdapter is setup');\n });\n runThatThrowsSync();\n assert.ok(true, 'no error was thrown, Ember.onerror can intercept errors');\n }\n\n ['@test when TestAdapter is registered and error is thrown - async run'](assert) {\n assert.expect(3);\n let done = assert.async();\n let caughtInAdapter, caughtInCatch, caughtByWindowOnerror;\n _test.default.adapter = {\n exception(error) {\n caughtInAdapter = error;\n }\n\n };\n\n window.onerror = function (message) {\n caughtByWindowOnerror = message; // prevent \"bubbling\" and therefore failing the test\n\n return true;\n };\n\n try {\n runThatThrowsAsync();\n } catch (e) {\n caughtInCatch = e;\n }\n\n setTimeout(() => {\n assert.equal(caughtInAdapter, undefined, 'test adapter should never catch errors in run loops');\n assert.equal(caughtInCatch, undefined, 'a \"normal\" try/catch should never catch errors in an async run');\n assert.pushResult({\n result: /Error for testing error handling/.test(caughtByWindowOnerror),\n actual: caughtByWindowOnerror,\n expected: 'to include `Error for testing error handling`',\n message: 'error should bubble out to window.onerror, and therefore fail tests (due to QUnit implementing window.onerror)'\n });\n done();\n }, 20);\n }\n\n ['@test when both Ember.onerror and TestAdapter are registered - async run'](assert) {\n assert.expect(1);\n let done = assert.async();\n _test.default.adapter = {\n exception() {\n assert.notOk(true, 'Adapter.exception is not called for errors thrown in next');\n }\n\n };\n (0, _errorHandling.setOnerror)(function () {\n assert.ok(true, 'onerror is invoked for errors thrown in next/later');\n });\n runThatThrowsAsync();\n setTimeout(done, 10);\n }\n\n });\n\n function testAdapter(message, generatePromise, timeout = 10) {\n return class PromiseFailureTests extends AdapterSetupAndTearDown {\n [\"@test \" + message + \" when TestAdapter without `exception` method is present - rsvp\"](assert) {\n if (!HAS_UNHANDLED_REJECTION_HANDLER) {\n assert.expect(0);\n return;\n }\n\n assert.expect(1);\n let thrown = new Error('the error');\n _test.default.adapter = _qunit.default.create({\n exception: undefined\n }); // prevent QUnit handler from failing test\n\n QUnit.onUnhandledRejection = () => {};\n\n window.onunhandledrejection = function (rejection) {\n assert.pushResult({\n result: /the error/.test(rejection.reason),\n actual: rejection.reason,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onunhandledrejection, and therefore fail tests (due to QUnit implementing window.onunhandledrejection)'\n }); // prevent \"bubbling\" and therefore failing the test\n\n return true;\n };\n\n generatePromise(thrown); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _runtime.RSVP.Promise(resolve => setTimeout(resolve, timeout));\n }\n\n [\"@test \" + message + \" when both Ember.onerror and TestAdapter without `exception` method are present - rsvp\"](assert) {\n assert.expect(1);\n let thrown = new Error('the error');\n _test.default.adapter = _qunit.default.create({\n exception: undefined\n });\n (0, _errorHandling.setOnerror)(function (error) {\n assert.pushResult({\n result: /the error/.test(error.message),\n actual: error.message,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onerror, and therefore fail tests (due to QUnit implementing window.onerror)'\n });\n });\n generatePromise(thrown); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _runtime.RSVP.Promise(resolve => setTimeout(resolve, timeout));\n }\n\n [\"@test \" + message + \" when TestAdapter is present - rsvp\"](assert) {\n assert.expect(1);\n\n console.error = () => {}; // eslint-disable-line no-console\n\n\n let thrown = new Error('the error');\n _test.default.adapter = _qunit.default.create({\n exception(error) {\n assert.strictEqual(error, thrown, 'Adapter.exception is called for errors thrown in RSVP promises');\n }\n\n });\n generatePromise(thrown); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _runtime.RSVP.Promise(resolve => setTimeout(resolve, timeout));\n }\n\n [\"@test \" + message + \" when both Ember.onerror and TestAdapter are present - rsvp\"](assert) {\n assert.expect(1);\n let thrown = new Error('the error');\n _test.default.adapter = _qunit.default.create({\n exception(error) {\n assert.strictEqual(error, thrown, 'Adapter.exception is called for errors thrown in RSVP promises');\n }\n\n });\n (0, _errorHandling.setOnerror)(function () {\n assert.notOk(true, 'Ember.onerror is not called if Test.adapter does not rethrow');\n });\n generatePromise(thrown); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _runtime.RSVP.Promise(resolve => setTimeout(resolve, timeout));\n }\n\n [\"@test \" + message + \" when both Ember.onerror and TestAdapter are present - rsvp\"](assert) {\n assert.expect(2);\n let thrown = new Error('the error');\n _test.default.adapter = _qunit.default.create({\n exception(error) {\n assert.strictEqual(error, thrown, 'Adapter.exception is called for errors thrown in RSVP promises');\n throw error;\n }\n\n });\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises if Test.adapter rethrows');\n });\n generatePromise(thrown); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _runtime.RSVP.Promise(resolve => setTimeout(resolve, timeout));\n }\n\n };\n }\n\n (0, _internalTestHelpers.moduleFor)('Adapter Errors: .then callback', testAdapter('errors in promise constructor', error => {\n new _runtime.RSVP.Promise(() => {\n throw error;\n });\n }));\n (0, _internalTestHelpers.moduleFor)('Adapter Errors: Promise Contructor', testAdapter('errors in promise constructor', error => {\n _runtime.RSVP.resolve().then(() => {\n throw error;\n });\n }));\n (0, _internalTestHelpers.moduleFor)('Adapter Errors: Promise chain .then callback', testAdapter('errors in promise constructor', error => {\n new _runtime.RSVP.Promise(resolve => setTimeout(resolve, 10)).then(() => {\n throw error;\n });\n }, 20));\n});","enifed(\"ember-testing/tests/ext/rsvp_test\", [\"ember-testing/lib/ext/rsvp\", \"ember-testing/lib/test/adapter\", \"ember-testing/lib/test/promise\", \"@ember/runloop\", \"@ember/debug\", \"internal-test-helpers\"], function (_rsvp, _adapter, _promise, _runloop, _debug, _internalTestHelpers) {\n \"use strict\";\n\n const originalTestAdapter = (0, _adapter.getAdapter)();\n const originalTestingFlag = (0, _debug.isTesting)();\n let asyncStarted = 0;\n let asyncEnded = 0;\n (0, _internalTestHelpers.moduleFor)('ember-testing RSVP', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n (0, _debug.setTesting)(true);\n (0, _adapter.setAdapter)({\n asyncStart() {\n asyncStarted++;\n },\n\n asyncEnd() {\n asyncEnded++;\n }\n\n });\n }\n\n teardown() {\n asyncStarted = 0;\n asyncEnded = 0;\n (0, _adapter.setAdapter)(originalTestAdapter);\n (0, _debug.setTesting)(originalTestingFlag);\n }\n\n ['@test given `Ember.testing = true`, correctly informs the test suite about async steps'](assert) {\n let done = assert.async();\n assert.expect(19);\n assert.ok(!(0, _runloop.getCurrentRunLoop)(), 'expect no run-loop');\n (0, _debug.setTesting)(true);\n assert.equal(asyncStarted, 0);\n assert.equal(asyncEnded, 0);\n\n let user = _rsvp.default.Promise.resolve({\n name: 'tomster'\n });\n\n assert.equal(asyncStarted, 0);\n assert.equal(asyncEnded, 0);\n user.then(function (user) {\n assert.equal(asyncStarted, 1);\n assert.equal(asyncEnded, 1);\n assert.equal(user.name, 'tomster');\n return _rsvp.default.Promise.resolve(1).then(function () {\n assert.equal(asyncStarted, 1);\n assert.equal(asyncEnded, 1);\n });\n }).then(function () {\n assert.equal(asyncStarted, 1);\n assert.equal(asyncEnded, 1);\n return new _rsvp.default.Promise(function (resolve) {\n setTimeout(function () {\n assert.equal(asyncStarted, 1);\n assert.equal(asyncEnded, 1);\n resolve({\n name: 'async tomster'\n });\n assert.equal(asyncStarted, 2);\n assert.equal(asyncEnded, 1);\n }, 0);\n });\n }).then(function (user) {\n assert.equal(user.name, 'async tomster');\n assert.equal(asyncStarted, 2);\n assert.equal(asyncEnded, 2);\n done();\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('TestPromise', class extends _internalTestHelpers.AbstractTestCase {\n ['does not throw error when falsy value passed to then'](assert) {\n assert.expect(1);\n return new _promise.default(function (resolve) {\n resolve();\n }).then(null).then(function () {\n assert.ok(true);\n });\n }\n\n ['able to get last Promise'](assert) {\n assert.expect(2);\n var p1 = new _promise.default(function (resolve) {\n resolve();\n }).then(function () {\n assert.ok(true);\n });\n var p2 = new _promise.default(function (resolve) {\n resolve();\n });\n assert.deepEqual((0, _promise.getLastPromise)(), p2);\n return p1;\n }\n\n });\n});","enifed(\"ember-testing/tests/helper_registration_test\", [\"@ember/runloop\", \"ember-testing/lib/test\", \"@ember/application\", \"internal-test-helpers\"], function (_runloop, _test, _application, _internalTestHelpers) {\n \"use strict\";\n\n var App, appBooted, helperContainer;\n\n function registerHelper() {\n _test.default.registerHelper('boot', function (app) {\n (0, _runloop.run)(app, app.advanceReadiness);\n appBooted = true;\n return app.testHelpers.wait();\n });\n }\n\n function unregisterHelper() {\n _test.default.unregisterHelper('boot');\n }\n\n var originalAdapter = _test.default.adapter;\n\n function setupApp() {\n appBooted = false;\n helperContainer = {};\n (0, _runloop.run)(function () {\n App = _application.default.create();\n App.setupForTesting();\n App.injectTestHelpers(helperContainer);\n });\n }\n\n function destroyApp() {\n if (App) {\n (0, _runloop.run)(App, 'destroy');\n App = null;\n helperContainer = null;\n }\n }\n\n (0, _internalTestHelpers.moduleFor)('Test - registerHelper/unregisterHelper', class extends _internalTestHelpers.AbstractTestCase {\n teardown() {\n _test.default.adapter = originalAdapter;\n destroyApp();\n }\n\n ['@test Helper gets registered'](assert) {\n assert.expect(2);\n registerHelper();\n setupApp();\n assert.ok(App.testHelpers.boot);\n assert.ok(helperContainer.boot);\n }\n\n ['@test Helper is ran when called'](assert) {\n let done = assert.async();\n assert.expect(1);\n registerHelper();\n setupApp();\n App.testHelpers.boot().then(function () {\n assert.ok(appBooted);\n }).finally(done);\n }\n\n ['@test Helper can be unregistered'](assert) {\n assert.expect(4);\n registerHelper();\n setupApp();\n assert.ok(App.testHelpers.boot);\n assert.ok(helperContainer.boot);\n unregisterHelper();\n (0, _runloop.run)(App, 'destroy');\n setupApp();\n assert.ok(!App.testHelpers.boot, 'once unregistered the helper is not added to App.testHelpers');\n assert.ok(!helperContainer.boot, 'once unregistered the helper is not added to the helperContainer');\n }\n\n });\n});","enifed(\"ember-testing/tests/helpers_test\", [\"internal-test-helpers\", \"@ember/-internals/routing\", \"@ember/controller\", \"@ember/-internals/runtime\", \"@ember/runloop\", \"@ember/-internals/glimmer\", \"@ember/-internals/views\", \"ember-testing/lib/test\", \"ember-testing/lib/setup_for_testing\", \"ember-testing/lib/test/pending_requests\", \"ember-testing/lib/test/adapter\", \"ember-testing/lib/test/waiters\", \"@ember/debug\"], function (_internalTestHelpers, _routing, _controller, _runtime, _runloop, _glimmer, _views, _test, _setup_for_testing, _pending_requests, _adapter, _waiters, _debug) {\n \"use strict\";\n\n var originalInfo = (0, _debug.getDebugFunction)('info');\n\n var noop = function () {};\n\n function registerHelper() {\n _test.default.registerHelper('LeakyMcLeakLeak', () => {});\n }\n\n function assertHelpers(assert, application, helperContainer, expected) {\n if (!helperContainer) {\n helperContainer = window;\n }\n\n if (expected === undefined) {\n expected = true;\n }\n\n function checkHelperPresent(helper, expected) {\n var presentInHelperContainer = Boolean(helperContainer[helper]);\n var presentInTestHelpers = Boolean(application.testHelpers[helper]);\n assert.ok(presentInHelperContainer === expected, \"Expected '\" + helper + \"' to be present in the helper container (defaults to window).\");\n assert.ok(presentInTestHelpers === expected, \"Expected '\" + helper + \"' to be present in App.testHelpers.\");\n }\n\n checkHelperPresent('visit', expected);\n checkHelperPresent('click', expected);\n checkHelperPresent('keyEvent', expected);\n checkHelperPresent('fillIn', expected);\n checkHelperPresent('wait', expected);\n checkHelperPresent('triggerEvent', expected);\n }\n\n function assertNoHelpers(assert, application, helperContainer) {\n assertHelpers(assert, application, helperContainer, false);\n }\n\n class HelpersTestCase extends _internalTestHelpers.AutobootApplicationTestCase {\n constructor() {\n super();\n this._originalAdapter = (0, _adapter.getAdapter)();\n }\n\n teardown() {\n (0, _adapter.setAdapter)(this._originalAdapter);\n document.removeEventListener('ajaxSend', _pending_requests.incrementPendingRequests);\n document.removeEventListener('ajaxComplete', _pending_requests.decrementPendingRequests);\n (0, _pending_requests.clearPendingRequests)();\n\n if (this.application) {\n this.application.removeTestHelpers();\n }\n\n super.teardown();\n }\n\n }\n\n class HelpersApplicationTestCase extends HelpersTestCase {\n constructor() {\n super();\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.application.setupForTesting();\n this.application.injectTestHelpers();\n });\n }\n\n }\n\n if (!_views.jQueryDisabled) {\n (0, _internalTestHelpers.moduleFor)('ember-testing: Helper setup', class extends HelpersTestCase {\n [\"@test Ember.Application#injectTestHelpers/#removeTestHelper\"](assert) {\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n });\n assertNoHelpers(assert, this.application);\n registerHelper();\n this.application.injectTestHelpers();\n assertHelpers(assert, this.application);\n assert.ok(_test.default.Promise.prototype.LeakyMcLeakLeak, 'helper in question SHOULD be present');\n this.application.removeTestHelpers();\n assertNoHelpers(assert, this.application);\n assert.equal(_test.default.Promise.prototype.LeakyMcLeakLeak, undefined, 'should NOT leak test promise extensions');\n }\n\n [\"@test Ember.Application#setupForTesting\"](assert) {\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.application.setupForTesting();\n });\n let routerInstance = this.applicationInstance.lookup('router:main');\n assert.equal(routerInstance.location, 'none');\n }\n\n [\"@test Ember.Application.setupForTesting sets the application to 'testing'\"](assert) {\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.application.setupForTesting();\n });\n assert.equal(this.application.testing, true, 'Application instance is set to testing.');\n }\n\n [\"@test Ember.Application.setupForTesting leaves the system in a deferred state.\"](assert) {\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.application.setupForTesting();\n });\n assert.equal(this.application._readinessDeferrals, 1, 'App is in deferred state after setupForTesting.');\n }\n\n [\"@test App.reset() after Application.setupForTesting leaves the system in a deferred state.\"](assert) {\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.application.setupForTesting();\n });\n assert.equal(this.application._readinessDeferrals, 1, 'App is in deferred state after setupForTesting.');\n this.application.reset();\n assert.equal(this.application._readinessDeferrals, 1, 'App is in deferred state after setupForTesting.');\n }\n\n [\"@test Ember.Application#injectTestHelpers calls callbacks registered with onInjectHelpers\"](assert) {\n let injected = 0;\n\n _test.default.onInjectHelpers(() => {\n injected++;\n }); // bind(this) so Babel doesn't leak _this\n // into the context onInjectHelpers.\n\n\n (0, _internalTestHelpers.runTask)(function () {\n this.createApplication();\n this.application.setupForTesting();\n }.bind(this));\n assert.equal(injected, 0, 'onInjectHelpers are not called before injectTestHelpers');\n this.application.injectTestHelpers();\n assert.equal(injected, 1, 'onInjectHelpers are called after injectTestHelpers');\n }\n\n [\"@test Ember.Application#injectTestHelpers adds helpers to provided object.\"](assert) {\n let helpers = {};\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.application.setupForTesting();\n });\n this.application.injectTestHelpers(helpers);\n assertHelpers(assert, this.application, helpers);\n this.application.removeTestHelpers();\n assertNoHelpers(assert, this.application, helpers);\n }\n\n [\"@test Ember.Application#removeTestHelpers resets the helperContainer's original values\"](assert) {\n let helpers = {\n visit: 'snazzleflabber'\n };\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.application.setupForTesting();\n });\n this.application.injectTestHelpers(helpers);\n assert.notEqual(helpers.visit, 'snazzleflabber', 'helper added to container');\n this.application.removeTestHelpers();\n assert.equal(helpers.visit, 'snazzleflabber', 'original value added back to container');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-testing: Helper methods', class extends HelpersApplicationTestCase {\n [\"@test 'wait' respects registerWaiters\"](assert) {\n assert.expect(3);\n let counter = 0;\n\n function waiter() {\n return ++counter > 2;\n }\n\n let other = 0;\n\n function otherWaiter() {\n return ++other > 2;\n }\n\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n (0, _waiters.registerWaiter)(waiter);\n (0, _waiters.registerWaiter)(otherWaiter);\n let {\n application: {\n testHelpers\n }\n } = this;\n return testHelpers.wait().then(() => {\n assert.equal(waiter(), true, 'should not resolve until our waiter is ready');\n (0, _waiters.unregisterWaiter)(waiter);\n counter = 0;\n return testHelpers.wait();\n }).then(() => {\n assert.equal(counter, 0, 'unregistered waiter was not checked');\n assert.equal(otherWaiter(), true, 'other waiter is still registered');\n }).finally(() => {\n (0, _waiters.unregisterWaiter)(otherWaiter);\n });\n }\n\n [\"@test 'visit' advances readiness.\"](assert) {\n assert.expect(2);\n assert.equal(this.application._readinessDeferrals, 1, 'App is in deferred state after setupForTesting.');\n return this.application.testHelpers.visit('/').then(() => {\n assert.equal(this.application._readinessDeferrals, 0, \"App's readiness was advanced by visit.\");\n });\n }\n\n [\"@test 'wait' helper can be passed a resolution value\"](assert) {\n assert.expect(4);\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let promiseObjectValue = {};\n let objectValue = {};\n let {\n application: {\n testHelpers\n }\n } = this;\n return testHelpers.wait('text').then(val => {\n assert.equal(val, 'text', 'can resolve to a string');\n return testHelpers.wait(1);\n }).then(val => {\n assert.equal(val, 1, 'can resolve to an integer');\n return testHelpers.wait(objectValue);\n }).then(val => {\n assert.equal(val, objectValue, 'can resolve to an object');\n return testHelpers.wait(_runtime.RSVP.resolve(promiseObjectValue));\n }).then(val => {\n assert.equal(val, promiseObjectValue, 'can resolve to a promise resolution value');\n });\n }\n\n [\"@test 'click' triggers appropriate events in order\"](assert) {\n assert.expect(5);\n this.add('component:index-wrapper', _glimmer.Component.extend({\n classNames: 'index-wrapper',\n\n didInsertElement() {\n let wrapper = document.querySelector('.index-wrapper');\n wrapper.addEventListener('mousedown', e => events.push(e.type));\n wrapper.addEventListener('mouseup', e => events.push(e.type));\n wrapper.addEventListener('click', e => events.push(e.type));\n wrapper.addEventListener('focusin', e => {\n // IE11 _sometimes_ triggers focusin **twice** in a row\n // (we believe this is when it is under higher load)\n //\n // the goal here is to only push a single focusin when running on\n // IE11\n if (_internalTestHelpers.isIE11) {\n if (events[events.length - 1] !== 'focusin') {\n events.push(e.type);\n }\n } else {\n events.push(e.type);\n }\n });\n }\n\n }));\n this.add('component:x-checkbox', _glimmer.Component.extend({\n tagName: 'input',\n attributeBindings: ['type'],\n type: 'checkbox',\n\n click() {\n events.push('click:' + this.get('checked'));\n },\n\n change() {\n events.push('change:' + this.get('checked'));\n }\n\n }));\n this.addTemplate('index', \"\\n {{#index-wrapper}}\\n {{input type=\\\"text\\\"}}\\n {{x-checkbox type=\\\"checkbox\\\"}}\\n {{textarea}}\\n
\\n {{/index-wrapper}}'));\\n \");\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let events;\n let {\n application: {\n testHelpers\n }\n } = this;\n return testHelpers.wait().then(() => {\n events = [];\n return testHelpers.click('.index-wrapper');\n }).then(() => {\n assert.deepEqual(events, ['mousedown', 'mouseup', 'click'], 'fires events in order');\n }).then(() => {\n events = [];\n return testHelpers.click('.index-wrapper input[type=text]');\n }).then(() => {\n assert.deepEqual(events, ['mousedown', 'focusin', 'mouseup', 'click'], 'fires focus events on inputs');\n }).then(() => {\n events = [];\n return testHelpers.click('.index-wrapper textarea');\n }).then(() => {\n assert.deepEqual(events, ['mousedown', 'focusin', 'mouseup', 'click'], 'fires focus events on textareas');\n }).then(() => {\n events = [];\n return testHelpers.click('.index-wrapper div');\n }).then(() => {\n assert.deepEqual(events, ['mousedown', 'focusin', 'mouseup', 'click'], 'fires focus events on contenteditable');\n }).then(() => {\n events = [];\n return testHelpers.click('.index-wrapper input[type=checkbox]');\n }).then(() => {\n // i.e. mousedown, mouseup, change:true, click, click:true\n // Firefox differs so we can't assert the exact ordering here.\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=843554.\n assert.equal(events.length, 5, 'fires click and change on checkboxes');\n });\n }\n\n [\"@test 'click' triggers native events with simulated X/Y coordinates\"](assert) {\n assert.expect(15);\n this.add('component:index-wrapper', _glimmer.Component.extend({\n classNames: 'index-wrapper',\n\n didInsertElement() {\n let pushEvent = e => events.push(e);\n\n this.element.addEventListener('mousedown', pushEvent);\n this.element.addEventListener('mouseup', pushEvent);\n this.element.addEventListener('click', pushEvent);\n }\n\n }));\n this.addTemplate('index', \"\\n {{#index-wrapper}}some text{{/index-wrapper}}\\n \");\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let events;\n let {\n application: {\n testHelpers: {\n wait,\n click\n }\n }\n } = this;\n return wait().then(() => {\n events = [];\n return click('.index-wrapper');\n }).then(() => {\n events.forEach(e => {\n assert.ok(e instanceof window.Event, 'The event is an instance of MouseEvent');\n assert.ok(typeof e.screenX === 'number', 'screenX is correct');\n assert.ok(typeof e.screenY === 'number', 'screenY is correct');\n assert.ok(typeof e.clientX === 'number', 'clientX is correct');\n assert.ok(typeof e.clientY === 'number', 'clientY is correct');\n });\n });\n }\n\n [\"@test 'triggerEvent' with mouseenter triggers native events with simulated X/Y coordinates\"](assert) {\n assert.expect(5);\n let evt;\n this.add('component:index-wrapper', _glimmer.Component.extend({\n classNames: 'index-wrapper',\n\n didInsertElement() {\n this.element.addEventListener('mouseenter', e => evt = e);\n }\n\n }));\n this.addTemplate('index', \"{{#index-wrapper}}some text{{/index-wrapper}}\");\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let {\n application: {\n testHelpers: {\n wait,\n triggerEvent\n }\n }\n } = this;\n return wait().then(() => {\n return triggerEvent('.index-wrapper', 'mouseenter');\n }).then(() => {\n assert.ok(evt instanceof window.Event, 'The event is an instance of MouseEvent');\n assert.ok(typeof evt.screenX === 'number', 'screenX is correct');\n assert.ok(typeof evt.screenY === 'number', 'screenY is correct');\n assert.ok(typeof evt.clientX === 'number', 'clientX is correct');\n assert.ok(typeof evt.clientY === 'number', 'clientY is correct');\n });\n }\n\n [\"@test 'wait' waits for outstanding timers\"](assert) {\n assert.expect(1);\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let waitDone = false;\n (0, _runloop.later)(() => {\n waitDone = true;\n }, 20);\n return this.application.testHelpers.wait().then(() => {\n assert.equal(waitDone, true, 'should wait for the timer to be fired.');\n });\n }\n\n [\"@test 'wait' respects registerWaiters with optional context\"](assert) {\n assert.expect(3);\n let obj = {\n counter: 0,\n\n ready() {\n return ++this.counter > 2;\n }\n\n };\n let other = 0;\n\n function otherWaiter() {\n return ++other > 2;\n }\n\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n (0, _waiters.registerWaiter)(obj, obj.ready);\n (0, _waiters.registerWaiter)(otherWaiter);\n let {\n application: {\n testHelpers: {\n wait\n }\n }\n } = this;\n return wait().then(() => {\n assert.equal(obj.ready(), true, 'should not resolve until our waiter is ready');\n (0, _waiters.unregisterWaiter)(obj, obj.ready);\n obj.counter = 0;\n return wait();\n }).then(() => {\n assert.equal(obj.counter, 0, 'the unregistered waiter should still be at 0');\n assert.equal(otherWaiter(), true, 'other waiter should still be registered');\n }).finally(() => {\n (0, _waiters.unregisterWaiter)(otherWaiter);\n });\n }\n\n [\"@test 'wait' does not error if routing has not begun\"](assert) {\n assert.expect(1);\n return this.application.testHelpers.wait().then(() => {\n assert.ok(true, 'should not error without `visit`');\n });\n }\n\n [\"@test 'triggerEvent' accepts an optional options hash without context\"](assert) {\n assert.expect(3);\n let event;\n this.add('component:index-wrapper', _glimmer.Component.extend({\n didInsertElement() {\n let domElem = document.querySelector('.input');\n domElem.addEventListener('change', e => event = e);\n domElem.addEventListener('keydown', e => event = e);\n }\n\n }));\n this.addTemplate('index', \"{{index-wrapper}}\");\n this.addTemplate('components/index-wrapper', \"\\n {{input type=\\\"text\\\" id=\\\"scope\\\" class=\\\"input\\\"}}\\n \");\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let {\n application: {\n testHelpers: {\n wait,\n triggerEvent\n }\n }\n } = this;\n return wait().then(() => {\n return triggerEvent('.input', 'keydown', {\n keyCode: 13\n });\n }).then(() => {\n assert.equal(event.keyCode, 13, 'options were passed');\n assert.equal(event.type, 'keydown', 'correct event was triggered');\n assert.equal(event.target.getAttribute('id'), 'scope', 'triggered on the correct element');\n });\n }\n\n [\"@test 'triggerEvent' can limit searching for a selector to a scope\"](assert) {\n assert.expect(2);\n let event;\n this.add('component:index-wrapper', _glimmer.Component.extend({\n didInsertElement() {\n let firstInput = document.querySelector('.input');\n firstInput.addEventListener('blur', e => event = e);\n firstInput.addEventListener('change', e => event = e);\n let secondInput = document.querySelector('#limited .input');\n secondInput.addEventListener('blur', e => event = e);\n secondInput.addEventListener('change', e => event = e);\n }\n\n }));\n this.addTemplate('components/index-wrapper', \"\\n {{input type=\\\"text\\\" id=\\\"outside-scope\\\" class=\\\"input\\\"}}\\n \\n {{input type=\\\"text\\\" id=\\\"inside-scope\\\" class=\\\"input\\\"}}\\n
\\n \");\n this.addTemplate('index', \"{{index-wrapper}}\");\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let {\n application: {\n testHelpers: {\n wait,\n triggerEvent\n }\n }\n } = this;\n return wait().then(() => {\n return triggerEvent('.input', '#limited', 'blur');\n }).then(() => {\n assert.equal(event.type, 'blur', 'correct event was triggered');\n assert.equal(event.target.getAttribute('id'), 'inside-scope', 'triggered on the correct element');\n });\n }\n\n [\"@test 'triggerEvent' can be used to trigger arbitrary events\"](assert) {\n assert.expect(2);\n let event;\n this.add('component:index-wrapper', _glimmer.Component.extend({\n didInsertElement() {\n let foo = document.getElementById('foo');\n foo.addEventListener('blur', e => event = e);\n foo.addEventListener('change', e => event = e);\n }\n\n }));\n this.addTemplate('components/index-wrapper', \"\\n {{input type=\\\"text\\\" id=\\\"foo\\\"}}\\n \");\n this.addTemplate('index', \"{{index-wrapper}}\");\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let {\n application: {\n testHelpers: {\n wait,\n triggerEvent\n }\n }\n } = this;\n return wait().then(() => {\n return triggerEvent('#foo', 'blur');\n }).then(() => {\n assert.equal(event.type, 'blur', 'correct event was triggered');\n assert.equal(event.target.getAttribute('id'), 'foo', 'triggered on the correct element');\n });\n }\n\n [\"@test 'fillIn' takes context into consideration\"](assert) {\n assert.expect(2);\n this.addTemplate('index', \"\\n \\n {{input type=\\\"text\\\" id=\\\"first\\\" class=\\\"current\\\"}}\\n
\\n {{input type=\\\"text\\\" id=\\\"second\\\" class=\\\"current\\\"}}\\n \");\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let {\n application: {\n testHelpers: {\n visit,\n fillIn,\n andThen,\n find\n }\n }\n } = this;\n visit('/');\n fillIn('.current', '#parent', 'current value');\n return andThen(() => {\n assert.equal(find('#first')[0].value, 'current value');\n assert.equal(find('#second')[0].value, '');\n });\n }\n\n [\"@test 'fillIn' focuses on the element\"](assert) {\n let wasFocused = false;\n this.add('controller:index', _controller.default.extend({\n actions: {\n wasFocused() {\n wasFocused = true;\n }\n\n }\n }));\n this.addTemplate('index', \"\\n \\n {{input type=\\\"text\\\" id=\\\"first\\\" focus-in=(action \\\"wasFocused\\\")}}\\n
'\\n \");\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let {\n application: {\n testHelpers: {\n visit,\n fillIn,\n andThen,\n find,\n wait\n }\n }\n } = this;\n visit('/');\n fillIn('#first', 'current value');\n andThen(() => {\n assert.ok(wasFocused, 'focusIn event was triggered');\n assert.equal(find('#first')[0].value, 'current value');\n });\n return wait();\n }\n\n [\"@test 'fillIn' fires 'input' and 'change' events in the proper order\"](assert) {\n assert.expect(1);\n let events = [];\n this.add('controller:index', _controller.default.extend({\n actions: {\n oninputHandler(e) {\n events.push(e.type);\n },\n\n onchangeHandler(e) {\n events.push(e.type);\n }\n\n }\n }));\n this.addTemplate('index', \"\\n \\n \");\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let {\n application: {\n testHelpers: {\n visit,\n fillIn,\n andThen,\n wait\n }\n }\n } = this;\n visit('/');\n fillIn('#first', 'current value');\n andThen(() => {\n assert.deepEqual(events, ['input', 'change'], '`input` and `change` events are fired in the proper order');\n });\n return wait();\n }\n\n [\"@test 'fillIn' only sets the value in the first matched element\"](assert) {\n this.addTemplate('index', \"\\n \\n \\n \");\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let {\n application: {\n testHelpers: {\n visit,\n fillIn,\n find,\n andThen,\n wait\n }\n }\n } = this;\n visit('/');\n fillIn('input.in-test', 'new value');\n andThen(() => {\n assert.equal(find('#first')[0].value, 'new value');\n assert.equal(find('#second')[0].value, '');\n });\n return wait();\n }\n\n [\"@test 'triggerEvent' accepts an optional options hash and context\"](assert) {\n assert.expect(3);\n let event;\n this.add('component:index-wrapper', _glimmer.Component.extend({\n didInsertElement() {\n let firstInput = document.querySelector('.input');\n firstInput.addEventListener('keydown', e => event = e, false);\n firstInput.addEventListener('change', e => event = e, false);\n let secondInput = document.querySelector('#limited .input');\n secondInput.addEventListener('keydown', e => event = e, false);\n secondInput.addEventListener('change', e => event = e, false);\n }\n\n }));\n this.addTemplate('components/index-wrapper', \"\\n {{input type=\\\"text\\\" id=\\\"outside-scope\\\" class=\\\"input\\\"}}\\n \\n {{input type=\\\"text\\\" id=\\\"inside-scope\\\" class=\\\"input\\\"}}\\n
\\n \");\n this.addTemplate('index', \"{{index-wrapper}}\");\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n let {\n application: {\n testHelpers: {\n wait,\n triggerEvent\n }\n }\n } = this;\n return wait().then(() => {\n return triggerEvent('.input', '#limited', 'keydown', {\n keyCode: 13\n });\n }).then(() => {\n assert.equal(event.keyCode, 13, 'options were passed');\n assert.equal(event.type, 'keydown', 'correct event was triggered');\n assert.equal(event.target.getAttribute('id'), 'inside-scope', 'triggered on the correct element');\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-testing: debugging helpers', class extends HelpersApplicationTestCase {\n afterEach() {\n super.afterEach();\n (0, _debug.setDebugFunction)('info', originalInfo);\n }\n\n constructor() {\n super();\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n }\n\n [\"@test pauseTest pauses\"](assert) {\n assert.expect(1); // overwrite info to supress the console output (see https://github.com/emberjs/ember.js/issues/16391)\n\n (0, _debug.setDebugFunction)('info', noop);\n let {\n andThen,\n pauseTest\n } = this.application.testHelpers;\n andThen(() => {\n _test.default.adapter.asyncStart = () => {\n assert.ok(true, 'Async start should be called after waiting for other helpers');\n };\n });\n pauseTest();\n }\n\n [\"@test resumeTest resumes paused tests\"](assert) {\n assert.expect(1); // overwrite info to supress the console output (see https://github.com/emberjs/ember.js/issues/16391)\n\n (0, _debug.setDebugFunction)('info', noop);\n let {\n application: {\n testHelpers: {\n pauseTest,\n resumeTest\n }\n }\n } = this;\n (0, _runloop.later)(() => resumeTest(), 20);\n return pauseTest().then(() => {\n assert.ok(true, 'pauseTest promise was resolved');\n });\n }\n\n [\"@test resumeTest throws if nothing to resume\"](assert) {\n assert.expect(1);\n assert.throws(() => {\n this.application.testHelpers.resumeTest();\n }, /Testing has not been paused. There is nothing to resume./);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-testing: routing helpers', class extends HelpersTestCase {\n constructor() {\n super();\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.application.setupForTesting();\n this.application.injectTestHelpers();\n this.router.map(function () {\n this.route('posts', {\n resetNamespace: true\n }, function () {\n this.route('new');\n this.route('edit', {\n resetNamespace: true\n });\n });\n });\n });\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n }\n\n [\"@test currentRouteName for '/'\"](assert) {\n assert.expect(3);\n let {\n application: {\n testHelpers\n }\n } = this;\n return testHelpers.visit('/').then(() => {\n assert.equal(testHelpers.currentRouteName(), 'index', \"should equal 'index'.\");\n assert.equal(testHelpers.currentPath(), 'index', \"should equal 'index'.\");\n assert.equal(testHelpers.currentURL(), '/', \"should equal '/'.\");\n });\n }\n\n [\"@test currentRouteName for '/posts'\"](assert) {\n assert.expect(3);\n let {\n application: {\n testHelpers\n }\n } = this;\n return testHelpers.visit('/posts').then(() => {\n assert.equal(testHelpers.currentRouteName(), 'posts.index', \"should equal 'posts.index'.\");\n assert.equal(testHelpers.currentPath(), 'posts.index', \"should equal 'posts.index'.\");\n assert.equal(testHelpers.currentURL(), '/posts', \"should equal '/posts'.\");\n });\n }\n\n [\"@test currentRouteName for '/posts/new'\"](assert) {\n assert.expect(3);\n let {\n application: {\n testHelpers\n }\n } = this;\n return testHelpers.visit('/posts/new').then(() => {\n assert.equal(testHelpers.currentRouteName(), 'posts.new', \"should equal 'posts.new'.\");\n assert.equal(testHelpers.currentPath(), 'posts.new', \"should equal 'posts.new'.\");\n assert.equal(testHelpers.currentURL(), '/posts/new', \"should equal '/posts/new'.\");\n });\n }\n\n [\"@test currentRouteName for '/posts/edit'\"](assert) {\n assert.expect(3);\n let {\n application: {\n testHelpers\n }\n } = this;\n return testHelpers.visit('/posts/edit').then(() => {\n assert.equal(testHelpers.currentRouteName(), 'edit', \"should equal 'edit'.\");\n assert.equal(testHelpers.currentPath(), 'posts.edit', \"should equal 'posts.edit'.\");\n assert.equal(testHelpers.currentURL(), '/posts/edit', \"should equal '/posts/edit'.\");\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-testing: pendingRequests', class extends HelpersApplicationTestCase {\n trigger(type, xhr) {\n (0, _views.jQuery)(document).trigger(type, xhr);\n }\n\n [\"@test pendingRequests is maintained for ajaxSend and ajaxComplete events\"](assert) {\n let done = assert.async();\n assert.equal((0, _pending_requests.pendingRequests)(), 0);\n let xhr = {\n some: 'xhr'\n };\n this.trigger('ajaxSend', xhr);\n assert.equal((0, _pending_requests.pendingRequests)(), 1, 'Ember.Test.pendingRequests was incremented');\n this.trigger('ajaxComplete', xhr);\n setTimeout(function () {\n assert.equal((0, _pending_requests.pendingRequests)(), 0, 'Ember.Test.pendingRequests was decremented');\n done();\n }, 0);\n }\n\n [\"@test pendingRequests is ignores ajaxComplete events from past setupForTesting calls\"](assert) {\n assert.equal((0, _pending_requests.pendingRequests)(), 0);\n let xhr = {\n some: 'xhr'\n };\n this.trigger('ajaxSend', xhr);\n assert.equal((0, _pending_requests.pendingRequests)(), 1, 'Ember.Test.pendingRequests was incremented');\n (0, _setup_for_testing.default)();\n assert.equal((0, _pending_requests.pendingRequests)(), 0, 'Ember.Test.pendingRequests was reset');\n let altXhr = {\n some: 'more xhr'\n };\n this.trigger('ajaxSend', altXhr);\n assert.equal((0, _pending_requests.pendingRequests)(), 1, 'Ember.Test.pendingRequests was incremented');\n this.trigger('ajaxComplete', xhr);\n assert.equal((0, _pending_requests.pendingRequests)(), 1, 'Ember.Test.pendingRequests is not impressed with your unexpected complete');\n }\n\n [\"@test pendingRequests is reset by setupForTesting\"](assert) {\n (0, _pending_requests.incrementPendingRequests)();\n (0, _setup_for_testing.default)();\n assert.equal((0, _pending_requests.pendingRequests)(), 0, 'pendingRequests is reset');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-testing: async router', class extends HelpersTestCase {\n constructor() {\n super();\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.router.map(function () {\n this.route('user', {\n resetNamespace: true\n }, function () {\n this.route('profile');\n this.route('edit');\n });\n }); // Emulate a long-running unscheduled async operation.\n\n let resolveLater = () => new _runtime.RSVP.Promise(resolve => {\n /*\n * The wait() helper has a 10ms tick. We should resolve() after\n * at least one tick to test whether wait() held off while the\n * async router was still loading. 20ms should be enough.\n */\n (0, _runloop.later)(resolve, {\n firstName: 'Tom'\n }, 20);\n });\n\n this.add('route:user', _routing.Route.extend({\n model() {\n return resolveLater();\n }\n\n }));\n this.add('route:user.profile', _routing.Route.extend({\n beforeModel() {\n return resolveLater().then(() => this.transitionTo('user.edit'));\n }\n\n }));\n this.application.setupForTesting();\n });\n this.application.injectTestHelpers();\n (0, _internalTestHelpers.runTask)(() => {\n this.application.advanceReadiness();\n });\n }\n\n [\"@test currentRouteName for '/user'\"](assert) {\n assert.expect(4);\n let {\n application: {\n testHelpers\n }\n } = this;\n return testHelpers.visit('/user').then(() => {\n assert.equal(testHelpers.currentRouteName(), 'user.index', \"should equal 'user.index'.\");\n assert.equal(testHelpers.currentPath(), 'user.index', \"should equal 'user.index'.\");\n assert.equal(testHelpers.currentURL(), '/user', \"should equal '/user'.\");\n let userRoute = this.applicationInstance.lookup('route:user');\n assert.equal(userRoute.get('controller.model.firstName'), 'Tom', \"should equal 'Tom'.\");\n });\n }\n\n [\"@test currentRouteName for '/user/profile'\"](assert) {\n assert.expect(4);\n let {\n application: {\n testHelpers\n }\n } = this;\n return testHelpers.visit('/user/profile').then(() => {\n assert.equal(testHelpers.currentRouteName(), 'user.edit', \"should equal 'user.edit'.\");\n assert.equal(testHelpers.currentPath(), 'user.edit', \"should equal 'user.edit'.\");\n assert.equal(testHelpers.currentURL(), '/user/edit', \"should equal '/user/edit'.\");\n let userRoute = this.applicationInstance.lookup('route:user');\n assert.equal(userRoute.get('controller.model.firstName'), 'Tom', \"should equal 'Tom'.\");\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('ember-testing: can override built-in helpers', class extends HelpersTestCase {\n constructor() {\n super();\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.application.setupForTesting();\n });\n this._originalVisitHelper = _test.default._helpers.visit;\n this._originalFindHelper = _test.default._helpers.find;\n }\n\n teardown() {\n _test.default._helpers.visit = this._originalVisitHelper;\n _test.default._helpers.find = this._originalFindHelper;\n super.teardown();\n }\n\n [\"@test can override visit helper\"](assert) {\n assert.expect(1);\n\n _test.default.registerHelper('visit', () => {\n assert.ok(true, 'custom visit helper was called');\n });\n\n this.application.injectTestHelpers();\n return this.application.testHelpers.visit();\n }\n\n [\"@test can override find helper\"](assert) {\n assert.expect(1);\n\n _test.default.registerHelper('find', () => {\n assert.ok(true, 'custom find helper was called');\n return ['not empty array'];\n });\n\n this.application.injectTestHelpers();\n return this.application.testHelpers.findWithAssert('.who-cares');\n }\n\n });\n }\n});","enifed(\"ember-testing/tests/integration_test\", [\"internal-test-helpers\", \"ember-testing/lib/test\", \"@ember/-internals/runtime\", \"@ember/-internals/routing\", \"@ember/-internals/views\"], function (_internalTestHelpers, _test, _runtime, _routing, _views) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember-testing Integration tests of acceptance', class extends _internalTestHelpers.AutobootApplicationTestCase {\n constructor() {\n super();\n this.modelContent = [];\n this._originalAdapter = _test.default.adapter;\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.addTemplate('people', \"\\n \\n {{#each model as |person|}}\\n
{{person.firstName}}
\\n {{/each}}\\n
\\n \");\n this.router.map(function () {\n this.route('people', {\n path: '/'\n });\n });\n this.add('route:people', _routing.Route.extend({\n model: () => this.modelContent\n }));\n this.application.setupForTesting();\n });\n (0, _internalTestHelpers.runTask)(() => {\n this.application.reset();\n });\n this.application.injectTestHelpers();\n }\n\n teardown() {\n super.teardown();\n _test.default.adapter = this._originalAdapter;\n }\n\n [\"@test template is bound to empty array of people\"](assert) {\n if (!_views.jQueryDisabled) {\n (0, _internalTestHelpers.runTask)(() => this.application.advanceReadiness());\n window.visit('/').then(() => {\n let rows = window.find('.name').length;\n assert.equal(rows, 0, 'successfully stubbed an empty array of people');\n });\n } else {\n (0, _internalTestHelpers.runTask)(() => this.application.advanceReadiness());\n window.visit('/').then(() => {\n expectAssertion(() => window.find('.name'), 'If jQuery is disabled, please import and use helpers from @ember/test-helpers [https://github.com/emberjs/ember-test-helpers]. Note: `find` is not an available helper.');\n });\n }\n }\n\n [\"@test template is bound to array of 2 people\"](assert) {\n if (!_views.jQueryDisabled) {\n this.modelContent = (0, _runtime.A)([]);\n this.modelContent.pushObject({\n firstName: 'x'\n });\n this.modelContent.pushObject({\n firstName: 'y'\n });\n (0, _internalTestHelpers.runTask)(() => this.application.advanceReadiness());\n window.visit('/').then(() => {\n let rows = window.find('.name').length;\n assert.equal(rows, 2, 'successfully stubbed a non empty array of people');\n });\n } else {\n assert.expect(0);\n }\n }\n\n [\"@test 'visit' can be called without advanceReadiness.\"](assert) {\n if (!_views.jQueryDisabled) {\n window.visit('/').then(() => {\n let rows = window.find('.name').length;\n assert.equal(rows, 0, 'stubbed an empty array of people without calling advanceReadiness.');\n });\n } else {\n assert.expect(0);\n }\n }\n\n });\n});","enifed(\"ember-testing/tests/reexports_test\", [\"ember\", \"internal-test-helpers\"], function (_ember, _internalTestHelpers) {\n \"use strict\";\n\n class ReexportsTestCase extends _internalTestHelpers.AbstractTestCase {}\n\n [// ember-testing\n ['Test', 'ember-testing'], ['Test.Adapter', 'ember-testing', 'Adapter'], ['Test.QUnitAdapter', 'ember-testing', 'QUnitAdapter'], ['setupForTesting', 'ember-testing']].forEach(reexport => {\n let [path, moduleId, exportName] = reexport; // default path === exportName if none present\n\n if (!exportName) {\n exportName = path;\n }\n\n ReexportsTestCase.prototype[\"@test Ember.\" + path + \" exports correctly\"] = function (assert) {\n (0, _internalTestHelpers.confirmExport)(_ember.default, assert, path, moduleId, exportName);\n };\n });\n (0, _internalTestHelpers.moduleFor)('ember-testing reexports', ReexportsTestCase);\n});","enifed(\"ember-testing/tests/test/waiters-test\", [\"ember-testing/lib/test/waiters\", \"internal-test-helpers\"], function (_waiters, _internalTestHelpers) {\n \"use strict\";\n\n class Waiters {\n constructor() {\n this._waiters = [];\n }\n\n add() {\n this._waiters.push([...arguments]);\n }\n\n register() {\n this.forEach((...args) => {\n (0, _waiters.registerWaiter)(...args);\n });\n }\n\n unregister() {\n this.forEach((...args) => {\n (0, _waiters.unregisterWaiter)(...args);\n });\n }\n\n forEach(callback) {\n for (let i = 0; i < this._waiters.length; i++) {\n let args = this._waiters[i];\n callback(...args);\n }\n }\n\n check() {\n this.register();\n let result = (0, _waiters.checkWaiters)();\n this.unregister();\n return result;\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('ember-testing: waiters', class extends _internalTestHelpers.AbstractTestCase {\n constructor() {\n super();\n this.waiters = new Waiters();\n }\n\n teardown() {\n this.waiters.unregister();\n }\n\n ['@test registering a waiter'](assert) {\n assert.expect(2);\n let obj = {\n foo: true\n };\n this.waiters.add(obj, function () {\n assert.ok(this.foo, 'has proper `this` context');\n return true;\n });\n this.waiters.add(function () {\n assert.ok(true, 'is called');\n return true;\n });\n this.waiters.check();\n }\n\n ['@test unregistering a waiter'](assert) {\n assert.expect(2);\n let obj = {\n foo: true\n };\n this.waiters.add(obj, function () {\n assert.ok(true, 'precond - waiter with context is registered');\n return true;\n });\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter without context is registered');\n return true;\n });\n this.waiters.check();\n this.waiters.unregister();\n (0, _waiters.checkWaiters)();\n }\n\n ['@test checkWaiters returns false if all waiters return true'](assert) {\n assert.expect(3);\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter is registered');\n return true;\n });\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter is registered');\n return true;\n });\n assert.notOk(this.waiters.check(), 'checkWaiters returns true if all waiters return true');\n }\n\n ['@test checkWaiters returns true if any waiters return false'](assert) {\n assert.expect(3);\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter is registered');\n return true;\n });\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter is registered');\n return false;\n });\n assert.ok(this.waiters.check(), 'checkWaiters returns false if any waiters return false');\n }\n\n ['@test checkWaiters short circuits after first falsey waiter'](assert) {\n assert.expect(2);\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter is registered');\n return false;\n });\n this.waiters.add(function () {\n assert.notOk(true, 'waiter should not be called');\n });\n assert.ok(this.waiters.check(), 'checkWaiters returns false if any waiters return false');\n }\n\n });\n});","enifed(\"ember/index\", [\"exports\", \"require\", \"@ember/-internals/environment\", \"node-module\", \"@ember/-internals/utils\", \"@ember/-internals/container\", \"@ember/instrumentation\", \"@ember/-internals/meta\", \"@ember/-internals/metal\", \"@ember/canary-features\", \"@ember/debug\", \"backburner\", \"@ember/-internals/console\", \"@ember/controller\", \"@ember/controller/lib/controller_mixin\", \"@ember/string\", \"@ember/service\", \"@ember/object\", \"@ember/object/computed\", \"@ember/-internals/runtime\", \"@ember/-internals/glimmer\", \"ember/version\", \"@ember/-internals/views\", \"@ember/-internals/routing\", \"@ember/-internals/extension-support\", \"@ember/error\", \"@ember/runloop\", \"@ember/-internals/error-handling\", \"@ember/-internals/owner\", \"@ember/application\", \"@ember/application/globals-resolver\", \"@ember/application/instance\", \"@ember/engine\", \"@ember/engine/instance\", \"@ember/polyfills\", \"@ember/deprecated-features\"], function (_exports, _require, _environment, _nodeModule, utils, _container, instrumentation, _meta, metal, _canaryFeatures, EmberDebug, _backburner, _console, _controller, _controller_mixin, _string, _service, _object, _computed, _runtime, _glimmer, _version, views, routing, extensionSupport, _error, runloop, _errorHandling, _owner, _application, _globalsResolver, _instance, _engine, _instance2, _polyfills, _deprecatedFeatures) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n // eslint-disable-next-line import/no-unresolved\n // ****@ember/-internals/environment****\n const Ember = typeof _environment.context.imports.Ember === 'object' && _environment.context.imports.Ember || {};\n Ember.isNamespace = true;\n\n Ember.toString = function () {\n return 'Ember';\n };\n\n Object.defineProperty(Ember, 'ENV', {\n get: _environment.getENV,\n enumerable: false\n });\n Object.defineProperty(Ember, 'lookup', {\n get: _environment.getLookup,\n set: _environment.setLookup,\n enumerable: false\n });\n\n if (_deprecatedFeatures.EMBER_EXTEND_PROTOTYPES) {\n Object.defineProperty(Ember, 'EXTEND_PROTOTYPES', {\n enumerable: false,\n\n get() {\n (0, EmberDebug.deprecate)('Accessing Ember.EXTEND_PROTOTYPES is deprecated, please migrate to Ember.ENV.EXTEND_PROTOTYPES', false, {\n id: 'ember-env.old-extend-prototypes',\n until: '4.0.0'\n });\n return _environment.ENV.EXTEND_PROTOTYPES;\n }\n\n });\n } // ****@ember/application****\n\n\n Ember.getOwner = _owner.getOwner;\n Ember.setOwner = _owner.setOwner;\n Ember.Application = _application.default;\n Ember.DefaultResolver = Ember.Resolver = _globalsResolver.default;\n Ember.ApplicationInstance = _instance.default; // ****@ember/engine****\n\n Ember.Engine = _engine.default;\n Ember.EngineInstance = _instance2.default; // ****@ember/polyfills****\n\n Ember.assign = _polyfills.assign;\n Ember.merge = _polyfills.merge; // ****@ember/-internals/utils****\n\n Ember.generateGuid = utils.generateGuid;\n Ember.GUID_KEY = utils.GUID_KEY;\n Ember.guidFor = utils.guidFor;\n Ember.inspect = utils.inspect;\n Ember.makeArray = utils.makeArray;\n Ember.canInvoke = utils.canInvoke;\n Ember.tryInvoke = utils.tryInvoke;\n Ember.wrap = utils.wrap;\n Ember.uuid = utils.uuid;\n Object.defineProperty(Ember, 'NAME_KEY', {\n enumerable: false,\n\n get() {\n (0, EmberDebug.deprecate)('Using `Ember.NAME_KEY` is deprecated, override `.toString` instead', false, {\n id: 'ember-name-key-usage',\n until: '3.9.0'\n });\n return utils.NAME_KEY;\n }\n\n }); // ****@ember/-internals/container****\n\n Ember.Container = _container.Container;\n Ember.Registry = _container.Registry; // ****@ember/debug****\n\n Ember.assert = EmberDebug.assert;\n Ember.warn = EmberDebug.warn;\n Ember.debug = EmberDebug.debug;\n Ember.deprecate = EmberDebug.deprecate;\n Ember.deprecateFunc = EmberDebug.deprecateFunc;\n Ember.runInDebug = EmberDebug.runInDebug; // ****@ember/error****\n\n Ember.Error = _error.default;\n /**\n @public\n @class Ember.Debug\n */\n\n Ember.Debug = {\n registerDeprecationHandler: EmberDebug.registerDeprecationHandler,\n registerWarnHandler: EmberDebug.registerWarnHandler,\n isComputed: metal.isComputed\n }; // ****@ember/instrumentation****\n\n Ember.instrument = instrumentation.instrument;\n Ember.subscribe = instrumentation.subscribe;\n Ember.Instrumentation = {\n instrument: instrumentation.instrument,\n subscribe: instrumentation.subscribe,\n unsubscribe: instrumentation.unsubscribe,\n reset: instrumentation.reset\n }; // ****@ember/runloop****\n // Using _globalsRun here so that mutating the function (adding\n // `next`, `later`, etc to it) is only available in globals builds\n\n Ember.run = runloop._globalsRun;\n Ember.run.backburner = runloop.backburner;\n Ember.run.begin = runloop.begin;\n Ember.run.bind = runloop.bind;\n Ember.run.cancel = runloop.cancel;\n Ember.run.debounce = runloop.debounce;\n Ember.run.end = runloop.end;\n Ember.run.hasScheduledTimers = runloop.hasScheduledTimers;\n Ember.run.join = runloop.join;\n Ember.run.later = runloop.later;\n Ember.run.next = runloop.next;\n Ember.run.once = runloop.once;\n Ember.run.schedule = runloop.schedule;\n Ember.run.scheduleOnce = runloop.scheduleOnce;\n Ember.run.throttle = runloop.throttle;\n Ember.run.cancelTimers = runloop.cancelTimers;\n Object.defineProperty(Ember.run, 'currentRunLoop', {\n get: runloop.getCurrentRunLoop,\n enumerable: false\n }); // ****@ember/-internals/metal****\n // Using _globalsComputed here so that mutating the function is only available\n // in globals builds\n\n const computed = metal._globalsComputed;\n Ember.computed = computed;\n Ember._descriptor = metal.nativeDescDecorator;\n Ember._tracked = metal.tracked;\n computed.alias = metal.alias;\n Ember.cacheFor = metal.getCachedValueFor;\n Ember.ComputedProperty = metal.ComputedProperty;\n Object.defineProperty(Ember, '_setComputedDecorator', {\n get() {\n (0, EmberDebug.deprecate)('Please migrate from Ember._setComputedDecorator to Ember._setClassicDecorator', false, {\n id: 'ember._setComputedDecorator',\n until: '3.13.0'\n });\n return metal.setClassicDecorator;\n }\n\n });\n Ember._setClassicDecorator = metal.setClassicDecorator;\n Ember.meta = _meta.meta;\n Ember.get = metal.get;\n Ember.getWithDefault = metal.getWithDefault;\n Ember._getPath = metal._getPath;\n Ember.set = metal.set;\n Ember.trySet = metal.trySet;\n Ember.FEATURES = (0, _polyfills.assign)({\n isEnabled: _canaryFeatures.isEnabled\n }, _canaryFeatures.FEATURES);\n Ember._Cache = utils.Cache;\n Ember.on = metal.on;\n Ember.addListener = metal.addListener;\n Ember.removeListener = metal.removeListener;\n Ember.sendEvent = metal.sendEvent;\n Ember.hasListeners = metal.hasListeners;\n Ember.isNone = metal.isNone;\n Ember.isEmpty = metal.isEmpty;\n Ember.isBlank = metal.isBlank;\n Ember.isPresent = metal.isPresent;\n Ember.notifyPropertyChange = metal.notifyPropertyChange;\n Ember.overrideChains = metal.overrideChains;\n Ember.beginPropertyChanges = metal.beginPropertyChanges;\n Ember.endPropertyChanges = metal.endPropertyChanges;\n Ember.changeProperties = metal.changeProperties;\n Ember.platform = {\n defineProperty: true,\n hasPropertyAccessors: true\n };\n Ember.defineProperty = metal.defineProperty;\n Ember.watchKey = metal.watchKey;\n Ember.unwatchKey = metal.unwatchKey;\n Ember.removeChainWatcher = metal.removeChainWatcher;\n Ember._ChainNode = metal.ChainNode;\n Ember.finishChains = metal.finishChains;\n Ember.watchPath = metal.watchPath;\n Ember.unwatchPath = metal.unwatchPath;\n Ember.watch = metal.watch;\n Ember.isWatching = metal.isWatching;\n Ember.unwatch = metal.unwatch;\n Ember.destroy = _meta.deleteMeta;\n Ember.libraries = metal.libraries;\n Ember.getProperties = metal.getProperties;\n Ember.setProperties = metal.setProperties;\n Ember.expandProperties = metal.expandProperties;\n Ember.addObserver = metal.addObserver;\n Ember.removeObserver = metal.removeObserver;\n Ember.aliasMethod = metal.aliasMethod;\n Ember.observer = metal.observer;\n Ember.mixin = metal.mixin;\n Ember.Mixin = metal.Mixin;\n /**\n A function may be assigned to `Ember.onerror` to be called when Ember\n internals encounter an error. This is useful for specialized error handling\n and reporting code.\n \n ```javascript\n import $ from 'jquery';\n \n Ember.onerror = function(error) {\n $.ajax('/report-error', 'POST', {\n stack: error.stack,\n otherInformation: 'whatever app state you want to provide'\n });\n };\n ```\n \n Internally, `Ember.onerror` is used as Backburner's error handler.\n \n @event onerror\n @for Ember\n @param {Exception} error the error object\n @public\n */\n\n Object.defineProperty(Ember, 'onerror', {\n get: _errorHandling.getOnerror,\n set: _errorHandling.setOnerror,\n enumerable: false\n });\n Object.defineProperty(Ember, 'testing', {\n get: EmberDebug.isTesting,\n set: EmberDebug.setTesting,\n enumerable: false\n });\n Ember._Backburner = _backburner.default; // ****@ember/-internals/console****\n\n if (_deprecatedFeatures.LOGGER) {\n Ember.Logger = _console.default;\n } // ****@ember/-internals/runtime****\n\n\n Ember.A = _runtime.A;\n Ember.String = {\n loc: _string.loc,\n w: _string.w,\n dasherize: _string.dasherize,\n decamelize: _string.decamelize,\n camelize: _string.camelize,\n classify: _string.classify,\n underscore: _string.underscore,\n capitalize: _string.capitalize\n };\n Ember.Object = _runtime.Object;\n Ember._RegistryProxyMixin = _runtime.RegistryProxyMixin;\n Ember._ContainerProxyMixin = _runtime.ContainerProxyMixin;\n Ember.compare = _runtime.compare;\n Ember.copy = _runtime.copy;\n Ember.isEqual = _runtime.isEqual;\n /**\n @module ember\n */\n\n /**\n Namespace for injection helper methods.\n \n @class inject\n @namespace Ember\n @static\n @public\n */\n\n Ember.inject = function inject() {\n (0, EmberDebug.assert)(\"Injected properties must be created through helpers, see '\" + Object.keys(inject).map(k => \"'inject.\" + k + \"'\").join(' or ') + \"'\");\n };\n\n Ember.inject.service = _service.inject;\n Ember.inject.controller = _controller.inject;\n Ember.Array = _runtime.Array;\n Ember.Comparable = _runtime.Comparable;\n Ember.Enumerable = _runtime.Enumerable;\n Ember.ArrayProxy = _runtime.ArrayProxy;\n Ember.ObjectProxy = _runtime.ObjectProxy;\n Ember.ActionHandler = _runtime.ActionHandler;\n Ember.CoreObject = _runtime.CoreObject;\n Ember.NativeArray = _runtime.NativeArray;\n Ember.Copyable = _runtime.Copyable;\n Ember.MutableEnumerable = _runtime.MutableEnumerable;\n Ember.MutableArray = _runtime.MutableArray;\n Ember.TargetActionSupport = _runtime.TargetActionSupport;\n Ember.Evented = _runtime.Evented;\n Ember.PromiseProxyMixin = _runtime.PromiseProxyMixin;\n Ember.Observable = _runtime.Observable;\n Ember.typeOf = _runtime.typeOf;\n Ember.isArray = _runtime.isArray;\n Ember.Object = _runtime.Object;\n Ember.onLoad = _application.onLoad;\n Ember.runLoadHooks = _application.runLoadHooks;\n Ember.Controller = _controller.default;\n Ember.ControllerMixin = _controller_mixin.default;\n Ember.Service = _service.default;\n Ember._ProxyMixin = _runtime._ProxyMixin;\n Ember.RSVP = _runtime.RSVP;\n Ember.Namespace = _runtime.Namespace;\n Ember._action = _object.action;\n computed.empty = _computed.empty;\n computed.notEmpty = _computed.notEmpty;\n computed.none = _computed.none;\n computed.not = _computed.not;\n computed.bool = _computed.bool;\n computed.match = _computed.match;\n computed.equal = _computed.equal;\n computed.gt = _computed.gt;\n computed.gte = _computed.gte;\n computed.lt = _computed.lt;\n computed.lte = _computed.lte;\n computed.oneWay = _computed.oneWay;\n computed.reads = _computed.oneWay;\n computed.readOnly = _computed.readOnly;\n computed.deprecatingAlias = _computed.deprecatingAlias;\n computed.and = _computed.and;\n computed.or = _computed.or;\n computed.sum = _computed.sum;\n computed.min = _computed.min;\n computed.max = _computed.max;\n computed.map = _computed.map;\n computed.sort = _computed.sort;\n computed.setDiff = _computed.setDiff;\n computed.mapBy = _computed.mapBy;\n computed.filter = _computed.filter;\n computed.filterBy = _computed.filterBy;\n computed.uniq = _computed.uniq;\n computed.uniqBy = _computed.uniqBy;\n computed.union = _computed.union;\n computed.intersect = _computed.intersect;\n computed.collect = _computed.collect;\n /**\n Defines the hash of localized strings for the current language. Used by\n the `String.loc` helper. To localize, add string values to this\n hash.\n \n @property STRINGS\n @for Ember\n @type Object\n @private\n */\n\n Object.defineProperty(Ember, 'STRINGS', {\n configurable: false,\n get: _string._getStrings,\n set: _string._setStrings\n });\n /**\n Whether searching on the global for new Namespace instances is enabled.\n \n This is only exported here as to not break any addons. Given the new\n visit API, you will have issues if you treat this as a indicator of\n booted.\n \n Internally this is only exposing a flag in Namespace.\n \n @property BOOTED\n @for Ember\n @type Boolean\n @private\n */\n\n Object.defineProperty(Ember, 'BOOTED', {\n configurable: false,\n enumerable: false,\n get: metal.isNamespaceSearchDisabled,\n set: metal.setNamespaceSearchDisabled\n }); // ****@ember/-internals/glimmer****\n\n Ember.Component = _glimmer.Component;\n _glimmer.Helper.helper = _glimmer.helper;\n Ember.Helper = _glimmer.Helper;\n Ember.Checkbox = _glimmer.Checkbox;\n Ember.TextField = _glimmer.TextField;\n Ember.TextArea = _glimmer.TextArea;\n Ember.LinkComponent = _glimmer.LinkComponent;\n Ember._setComponentManager = _glimmer.setComponentManager;\n Ember._componentManagerCapabilities = _glimmer.capabilities;\n Ember._setModifierManager = _glimmer.setModifierManager;\n Ember._modifierManagerCapabilties = _glimmer.modifierCapabilties;\n Ember.Handlebars = {\n template: _glimmer.template,\n Utils: {\n escapeExpression: _glimmer.escapeExpression\n }\n };\n Ember.HTMLBars = {\n template: _glimmer.template\n };\n\n if (_environment.ENV.EXTEND_PROTOTYPES.String) {\n String.prototype.htmlSafe = function () {\n return (0, _glimmer.htmlSafe)(this);\n };\n }\n\n Ember.String.htmlSafe = _glimmer.htmlSafe;\n Ember.String.isHTMLSafe = _glimmer.isHTMLSafe;\n /**\n Global hash of shared templates. This will automatically be populated\n by the build tools so that you can store your Handlebars templates in\n separate files that get loaded into JavaScript at buildtime.\n \n @property TEMPLATES\n @for Ember\n @type Object\n @private\n */\n\n Object.defineProperty(Ember, 'TEMPLATES', {\n get: _glimmer.getTemplates,\n set: _glimmer.setTemplates,\n configurable: false,\n enumerable: false\n });\n /**\n The semantic version\n \n @property VERSION\n @type String\n @public\n */\n\n Ember.VERSION = _version.default; // ****@ember/-internals/views****\n\n if (_deprecatedFeatures.JQUERY_INTEGRATION && !views.jQueryDisabled) {\n Object.defineProperty(Ember, '$', {\n get() {\n (0, EmberDebug.deprecate)(\"Using Ember.$() has been deprecated, use `import jQuery from 'jquery';` instead\", false, {\n id: 'ember-views.curly-components.jquery-element',\n until: '4.0.0',\n url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis'\n });\n return views.jQuery;\n },\n\n configurable: true,\n enumerable: true\n });\n }\n\n Ember.ViewUtils = {\n isSimpleClick: views.isSimpleClick,\n getElementView: views.getElementView,\n getViewElement: views.getViewElement,\n getViewBounds: views.getViewBounds,\n getViewClientRects: views.getViewClientRects,\n getViewBoundingClientRect: views.getViewBoundingClientRect,\n getRootViews: views.getRootViews,\n getChildViews: views.getChildViews,\n isSerializationFirstNode: _glimmer.isSerializationFirstNode\n };\n Ember.TextSupport = views.TextSupport;\n Ember.ComponentLookup = views.ComponentLookup;\n Ember.EventDispatcher = views.EventDispatcher; // ****@ember/-internals/routing****\n\n Ember.Location = routing.Location;\n Ember.AutoLocation = routing.AutoLocation;\n Ember.HashLocation = routing.HashLocation;\n Ember.HistoryLocation = routing.HistoryLocation;\n Ember.NoneLocation = routing.NoneLocation;\n Ember.controllerFor = routing.controllerFor;\n Ember.generateControllerFactory = routing.generateControllerFactory;\n Ember.generateController = routing.generateController;\n Ember.RouterDSL = routing.RouterDSL;\n Ember.Router = routing.Router;\n Ember.Route = routing.Route;\n (0, _application.runLoadHooks)('Ember.Application', _application.default);\n Ember.DataAdapter = extensionSupport.DataAdapter;\n Ember.ContainerDebugAdapter = extensionSupport.ContainerDebugAdapter;\n\n if ((0, _require.has)('ember-template-compiler')) {\n (0, _require.default)(\"ember-template-compiler\");\n } // do this to ensure that Ember.Test is defined properly on the global\n // if it is present.\n\n\n if ((0, _require.has)('ember-testing')) {\n let testing = (0, _require.default)(\"ember-testing\");\n Ember.Test = testing.Test;\n Ember.Test.Adapter = testing.Adapter;\n Ember.Test.QUnitAdapter = testing.QUnitAdapter;\n Ember.setupForTesting = testing.setupForTesting;\n }\n\n (0, _application.runLoadHooks)('Ember');\n var _default = Ember;\n _exports.default = _default;\n\n if (_nodeModule.IS_NODE) {\n _nodeModule.module.exports = Ember;\n } else {\n _environment.context.exports.Ember = _environment.context.exports.Em = Ember;\n }\n /**\n @module jquery\n @public\n */\n\n /**\n @class jquery\n @public\n @static\n */\n\n /**\n Alias for jQuery\n \n @for jquery\n @method $\n @static\n @public\n */\n\n});","enifed(\"ember/tests/application_lifecycle_test\", [\"internal-test-helpers\", \"@ember/application\", \"@ember/-internals/routing\", \"@ember/-internals/glimmer\", \"@ember/debug\"], function (_internalTestHelpers, _application, _routing, _glimmer, _debug) {\n \"use strict\";\n\n const originalDebug = (0, _debug.getDebugFunction)('debug');\n\n const noop = function () {};\n\n (0, _internalTestHelpers.moduleFor)('Application Lifecycle - route hooks', class extends _internalTestHelpers.AutobootApplicationTestCase {\n createApplication() {\n let application = super.createApplication(...arguments);\n this.add('router:main', _routing.Router.extend({\n location: 'none'\n }));\n return application;\n }\n\n constructor() {\n (0, _debug.setDebugFunction)('debug', noop);\n super();\n let menuItem = this.menuItem = {};\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n\n let SettingRoute = _routing.Route.extend({\n setupController() {\n this.controller.set('selectedMenuItem', menuItem);\n },\n\n deactivate() {\n this.controller.set('selectedMenuItem', null);\n }\n\n });\n\n this.add('route:index', SettingRoute);\n this.add('route:application', SettingRoute);\n });\n }\n\n teardown() {\n (0, _debug.setDebugFunction)('debug', originalDebug);\n }\n\n get indexController() {\n return this.applicationInstance.lookup('controller:index');\n }\n\n get applicationController() {\n return this.applicationInstance.lookup('controller:application');\n }\n\n [\"@test Resetting the application allows controller properties to be set when a route deactivates\"](assert) {\n let {\n indexController,\n applicationController\n } = this;\n assert.equal(indexController.get('selectedMenuItem'), this.menuItem);\n assert.equal(applicationController.get('selectedMenuItem'), this.menuItem);\n this.application.reset();\n assert.equal(indexController.get('selectedMenuItem'), null);\n assert.equal(applicationController.get('selectedMenuItem'), null);\n }\n\n [\"@test Destroying the application resets the router before the appInstance is destroyed\"](assert) {\n let {\n indexController,\n applicationController\n } = this;\n assert.equal(indexController.get('selectedMenuItem'), this.menuItem);\n assert.equal(applicationController.get('selectedMenuItem'), this.menuItem);\n (0, _internalTestHelpers.runTask)(() => {\n this.application.destroy();\n });\n assert.equal(indexController.get('selectedMenuItem'), null);\n assert.equal(applicationController.get('selectedMenuItem'), null);\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Application Lifecycle', class extends _internalTestHelpers.AutobootApplicationTestCase {\n createApplication() {\n let application = super.createApplication(...arguments);\n this.add('router:main', _routing.Router.extend({\n location: 'none'\n }));\n return application;\n }\n\n [\"@test Destroying a route after the router does create an undestroyed 'toplevelView'\"](assert) {\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication();\n this.addTemplate('index', \"Index!\");\n this.addTemplate('application', \"Application! {{outlet}}\");\n });\n let router = this.applicationInstance.lookup('router:main');\n let route = this.applicationInstance.lookup('route:index');\n (0, _internalTestHelpers.runTask)(() => router.destroy());\n assert.equal(router._toplevelView, null, 'the toplevelView was cleared');\n (0, _internalTestHelpers.runTask)(() => route.destroy());\n assert.equal(router._toplevelView, null, 'the toplevelView was not reinitialized');\n (0, _internalTestHelpers.runTask)(() => this.application.destroy());\n assert.equal(router._toplevelView, null, 'the toplevelView was not reinitialized');\n }\n\n [\"@test initializers can augment an applications customEvents hash\"](assert) {\n assert.expect(1);\n\n let MyApplication = _application.default.extend();\n\n MyApplication.initializer({\n name: 'customize-things',\n\n initialize(application) {\n application.customEvents = {\n wowza: 'wowza'\n };\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication({}, MyApplication);\n this.add('component:foo-bar', _glimmer.Component.extend({\n wowza() {\n assert.ok(true, 'fired the event!');\n }\n\n }));\n this.addTemplate('application', \"{{foo-bar}}\");\n this.addTemplate('components/foo-bar', \"
\");\n });\n this.$('#wowza-thingy').trigger('wowza');\n }\n\n [\"@test instanceInitializers can augment an the customEvents hash\"](assert) {\n assert.expect(1);\n\n let MyApplication = _application.default.extend();\n\n MyApplication.instanceInitializer({\n name: 'customize-things',\n\n initialize(application) {\n application.customEvents = {\n herky: 'jerky'\n };\n }\n\n });\n (0, _internalTestHelpers.runTask)(() => {\n this.createApplication({}, MyApplication);\n this.add('component:foo-bar', _glimmer.Component.extend({\n jerky() {\n assert.ok(true, 'fired the event!');\n }\n\n }));\n this.addTemplate('application', \"{{foo-bar}}\");\n this.addTemplate('components/foo-bar', \"
\");\n });\n this.$('#herky-thingy').trigger('herky');\n }\n\n });\n});","enifed(\"ember/tests/component_context_test\", [\"@ember/controller\", \"@ember/-internals/glimmer\", \"internal-test-helpers\"], function (_controller, _glimmer, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Application Lifecycle - Component Context', class extends _internalTestHelpers.ApplicationTestCase {\n ['@test Components with a block should have the proper content when a template is provided'](assert) {\n this.addTemplate('application', \"\\n \\n {{#my-component}}{{text}}{{/my-component}}\\n
\\n \");\n this.add('controller:application', _controller.default.extend({\n text: 'outer'\n }));\n this.addComponent('my-component', {\n ComponentClass: _glimmer.Component.extend({\n text: 'inner'\n }),\n template: \"{{text}}-{{yield}}\"\n });\n return this.visit('/').then(() => {\n let text = (0, _internalTestHelpers.getTextOf)(this.element.querySelector('#wrapper'));\n assert.equal(text, 'inner-outer', 'The component is composed correctly');\n });\n }\n\n ['@test Components with a block should yield the proper content without a template provided'](assert) {\n this.addTemplate('application', \"\\n \\n {{#my-component}}{{text}}{{/my-component}}\\n
\\n \");\n this.add('controller:application', _controller.default.extend({\n text: 'outer'\n }));\n this.addComponent('my-component', {\n ComponentClass: _glimmer.Component.extend({\n text: 'inner'\n })\n });\n return this.visit('/').then(() => {\n let text = (0, _internalTestHelpers.getTextOf)(this.element.querySelector('#wrapper'));\n assert.equal(text, 'outer', 'The component is composed correctly');\n });\n }\n\n ['@test Components without a block should have the proper content when a template is provided'](assert) {\n this.addTemplate('application', \"\\n {{my-component}}
\\n \");\n this.add('controller:application', _controller.default.extend({\n text: 'outer'\n }));\n this.addComponent('my-component', {\n ComponentClass: _glimmer.Component.extend({\n text: 'inner'\n }),\n template: '{{text}}'\n });\n return this.visit('/').then(() => {\n let text = (0, _internalTestHelpers.getTextOf)(this.element.querySelector('#wrapper'));\n assert.equal(text, 'inner', 'The component is composed correctly');\n });\n }\n\n ['@test Components without a block should have the proper content'](assert) {\n this.addTemplate('application', \"\\n {{my-component}}
\\n \");\n this.add('controller:application', _controller.default.extend({\n text: 'outer'\n }));\n this.addComponent('my-component', {\n ComponentClass: _glimmer.Component.extend({\n didInsertElement() {\n this.element.innerHTML = 'Some text inserted';\n }\n\n })\n });\n return this.visit('/').then(() => {\n let text = (0, _internalTestHelpers.getTextOf)(this.element.querySelector('#wrapper'));\n assert.equal(text, 'Some text inserted', 'The component is composed correctly');\n });\n }\n\n ['@test properties of a component without a template should not collide with internal structures [DEPRECATED]'](assert) {\n this.addTemplate('application', \"\\n {{my-component data=foo}}
\");\n this.add('controller:application', _controller.default.extend({\n text: 'outer',\n foo: 'Some text inserted'\n }));\n this.addComponent('my-component', {\n ComponentClass: _glimmer.Component.extend({\n didInsertElement() {\n this.element.innerHTML = this.get('data');\n }\n\n })\n });\n return this.visit('/').then(() => {\n let text = (0, _internalTestHelpers.getTextOf)(this.element.querySelector('#wrapper'));\n assert.equal(text, 'Some text inserted', 'The component is composed correctly');\n });\n }\n\n ['@test attrs property of a component without a template should not collide with internal structures'](assert) {\n this.addTemplate('application', \"\\n {{my-component attrs=foo}}
\\n \");\n this.add('controller:application', _controller.default.extend({\n text: 'outer',\n foo: 'Some text inserted'\n }));\n this.addComponent('my-component', {\n ComponentClass: _glimmer.Component.extend({\n didInsertElement() {\n this.element.innerHTML = this.get('attrs.attrs.value');\n }\n\n })\n });\n return this.visit('/').then(() => {\n let text = (0, _internalTestHelpers.getTextOf)(this.element.querySelector('#wrapper'));\n assert.equal(text, 'Some text inserted', 'The component is composed correctly');\n });\n }\n\n ['@test Components trigger actions in the parents context when called from within a block'](assert) {\n this.addTemplate('application', \"\\n \\n {{#my-component}}\\n
Fizzbuzz \\n {{/my-component}}\\n
\\n \");\n this.add('controller:application', _controller.default.extend({\n actions: {\n fizzbuzz() {\n assert.ok(true, 'action triggered on parent');\n }\n\n }\n }));\n this.addComponent('my-component', {\n ComponentClass: _glimmer.Component.extend({})\n });\n return this.visit('/').then(() => {\n this.$('#fizzbuzz', '#wrapper').click();\n });\n }\n\n ['@test Components trigger actions in the components context when called from within its template'](assert) {\n this.addTemplate('application', \"\\n {{#my-component}}{{text}}{{/my-component}}
\\n \");\n this.add('controller:application', _controller.default.extend({\n actions: {\n fizzbuzz() {\n assert.ok(false, 'action on the wrong context');\n }\n\n }\n }));\n this.addComponent('my-component', {\n ComponentClass: _glimmer.Component.extend({\n actions: {\n fizzbuzz() {\n assert.ok(true, 'action triggered on component');\n }\n\n }\n }),\n template: \"Fizzbuzz \"\n });\n return this.visit('/').then(() => {\n this.$('#fizzbuzz', '#wrapper').click();\n });\n }\n\n });\n});","enifed(\"ember/tests/component_registration_test\", [\"@ember/application\", \"@ember/controller\", \"@ember/-internals/glimmer\", \"ember-template-compiler\", \"internal-test-helpers\", \"@ember/-internals/environment\"], function (_application, _controller, _glimmer, _emberTemplateCompiler, _internalTestHelpers, _environment) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Application Lifecycle - Component Registration', class extends _internalTestHelpers.ApplicationTestCase {\n // This is necessary for this.application.instanceInitializer to not leak between tests\n createApplication(options) {\n return super.createApplication(options, _application.default.extend());\n }\n\n ['@test The helper becomes the body of the component']() {\n this.addTemplate('components/expand-it', 'hello {{yield}}
');\n this.addTemplate('application', 'Hello world {{#expand-it}}world{{/expand-it}}');\n return this.visit('/').then(() => {\n this.assertText('Hello world hello world');\n this.assertComponentElement(this.element.firstElementChild, {\n tagName: 'div',\n content: 'hello world
'\n });\n });\n }\n\n ['@test The helper becomes the body of the component (ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS = true;)']() {\n _environment.ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS = true;\n this.addTemplate('components/expand-it', 'hello {{yield}}
');\n this.addTemplate('application', 'Hello world {{#expand-it}}world{{/expand-it}}');\n return this.visit('/').then(() => {\n this.assertInnerHTML('Hello world hello world
');\n _environment.ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS = false;\n });\n }\n\n ['@test If a component is registered, it is used'](assert) {\n this.addTemplate('components/expand-it', 'hello {{yield}}
');\n this.addTemplate('application', \"Hello world {{#expand-it}}world{{/expand-it}}\");\n this.application.instanceInitializer({\n name: 'expand-it-component',\n\n initialize(applicationInstance) {\n applicationInstance.register('component:expand-it', _glimmer.Component.extend({\n classNames: 'testing123'\n }));\n }\n\n });\n return this.visit('/').then(() => {\n let text = this.$('div.testing123').text().trim();\n assert.equal(text, 'hello world', 'The component is composed correctly');\n });\n }\n\n ['@test Late-registered components can be rendered with custom `layout` property'](assert) {\n this.addTemplate('application', \"there goes {{my-hero}}
\");\n this.application.instanceInitializer({\n name: 'my-hero-component',\n\n initialize(applicationInstance) {\n applicationInstance.register('component:my-hero', _glimmer.Component.extend({\n classNames: 'testing123',\n layout: (0, _emberTemplateCompiler.compile)('watch him as he GOES')\n }));\n }\n\n });\n return this.visit('/').then(() => {\n let text = this.$('#wrapper').text().trim();\n assert.equal(text, 'there goes watch him as he GOES', 'The component is composed correctly');\n });\n }\n\n ['@test Late-registered components can be rendered with template registered on the container'](assert) {\n this.addTemplate('application', \"hello world {{sally-rutherford}}-{{#sally-rutherford}}!!!{{/sally-rutherford}}
\");\n this.application.instanceInitializer({\n name: 'sally-rutherford-component-template',\n\n initialize(applicationInstance) {\n applicationInstance.register('template:components/sally-rutherford', (0, _emberTemplateCompiler.compile)('funkytowny{{yield}}'));\n }\n\n });\n this.application.instanceInitializer({\n name: 'sally-rutherford-component',\n\n initialize(applicationInstance) {\n applicationInstance.register('component:sally-rutherford', _glimmer.Component);\n }\n\n });\n return this.visit('/').then(() => {\n let text = this.$('#wrapper').text().trim();\n assert.equal(text, 'hello world funkytowny-funkytowny!!!', 'The component is composed correctly');\n });\n }\n\n ['@test Late-registered components can be rendered with ONLY the template registered on the container'](assert) {\n this.addTemplate('application', \"hello world {{borf-snorlax}}-{{#borf-snorlax}}!!!{{/borf-snorlax}}
\");\n this.application.instanceInitializer({\n name: 'borf-snorlax-component-template',\n\n initialize(applicationInstance) {\n applicationInstance.register('template:components/borf-snorlax', (0, _emberTemplateCompiler.compile)('goodfreakingTIMES{{yield}}'));\n }\n\n });\n return this.visit('/').then(() => {\n let text = this.$('#wrapper').text().trim();\n assert.equal(text, 'hello world goodfreakingTIMES-goodfreakingTIMES!!!', 'The component is composed correctly');\n });\n }\n\n ['@test Assigning layoutName to a component should setup the template as a layout'](assert) {\n assert.expect(1);\n this.addTemplate('application', \"{{#my-component}}{{text}}{{/my-component}}
\");\n this.addTemplate('foo-bar-baz', '{{text}}-{{yield}}');\n this.application.instanceInitializer({\n name: 'application-controller',\n\n initialize(applicationInstance) {\n applicationInstance.register('controller:application', _controller.default.extend({\n text: 'outer'\n }));\n }\n\n });\n this.application.instanceInitializer({\n name: 'my-component-component',\n\n initialize(applicationInstance) {\n applicationInstance.register('component:my-component', _glimmer.Component.extend({\n text: 'inner',\n layoutName: 'foo-bar-baz'\n }));\n }\n\n });\n return this.visit('/').then(() => {\n let text = this.$('#wrapper').text().trim();\n assert.equal(text, 'inner-outer', 'The component is composed correctly');\n });\n }\n\n ['@test Assigning layoutName and layout to a component should use the `layout` value'](assert) {\n assert.expect(1);\n this.addTemplate('application', \"{{#my-component}}{{text}}{{/my-component}}
\");\n this.addTemplate('foo-bar-baz', 'No way!');\n this.application.instanceInitializer({\n name: 'application-controller-layout',\n\n initialize(applicationInstance) {\n applicationInstance.register('controller:application', _controller.default.extend({\n text: 'outer'\n }));\n }\n\n });\n this.application.instanceInitializer({\n name: 'my-component-component-layout',\n\n initialize(applicationInstance) {\n applicationInstance.register('component:my-component', _glimmer.Component.extend({\n text: 'inner',\n layoutName: 'foo-bar-baz',\n layout: (0, _emberTemplateCompiler.compile)('{{text}}-{{yield}}')\n }));\n }\n\n });\n return this.visit('/').then(() => {\n let text = this.$('#wrapper').text().trim();\n assert.equal(text, 'inner-outer', 'The component is composed correctly');\n });\n }\n\n ['@test Using name of component that does not exist']() {\n this.addTemplate('application', \"{{#no-good}} {{/no-good}}
\"); // TODO: Use the async form of expectAssertion here when it is available\n\n expectAssertion(() => {\n this.visit('/');\n }, /.* named \"no-good\" .*/);\n return (0, _internalTestHelpers.runLoopSettled)();\n }\n\n });\n});","enifed(\"ember/tests/controller_test\", [\"@ember/controller\", \"internal-test-helpers\", \"@ember/-internals/glimmer\"], function (_controller, _internalTestHelpers, _glimmer) {\n \"use strict\";\n\n /*\n In Ember 1.x, controllers subtly affect things like template scope\n and action targets in exciting and often inscrutable ways. This test\n file contains integration tests that verify the correct behavior of\n the many parts of the system that change and rely upon controller scope,\n from the runtime up to the templating layer.\n */\n (0, _internalTestHelpers.moduleFor)('Template scoping examples', class extends _internalTestHelpers.ApplicationTestCase {\n ['@test Actions inside an outlet go to the associated controller'](assert) {\n this.add('controller:index', _controller.default.extend({\n actions: {\n componentAction() {\n assert.ok(true, 'controller received the action');\n }\n\n }\n }));\n this.addComponent('component-with-action', {\n ComponentClass: _glimmer.Component.extend({\n classNames: ['component-with-action'],\n\n click() {\n this.action();\n }\n\n })\n });\n this.addTemplate('index', '{{component-with-action action=(action \"componentAction\")}}');\n return this.visit('/').then(() => {\n (0, _internalTestHelpers.runTask)(() => this.$('.component-with-action').click());\n });\n }\n\n });\n});","enifed(\"ember/tests/error_handler_test\", [\"@ember/debug\", \"@ember/runloop\", \"@ember/-internals/error-handling\", \"rsvp\", \"internal-test-helpers\"], function (_debug, _runloop, _errorHandling, _rsvp, _internalTestHelpers) {\n \"use strict\";\n\n const HAS_UNHANDLED_REJECTION_HANDLER = 'onunhandledrejection' in window;\n let QUNIT_ON_UNHANDLED_REJECTION = QUnit.onUnhandledRejection;\n let WINDOW_ONERROR;\n\n function runThatThrowsSync(message = 'Error for testing error handling') {\n return (0, _runloop.run)(() => {\n throw new Error(message);\n });\n }\n\n (0, _internalTestHelpers.moduleFor)('error_handler', class extends _internalTestHelpers.AbstractTestCase {\n beforeEach() {\n // capturing this outside of module scope to ensure we grab\n // the test frameworks own window.onerror to reset it\n WINDOW_ONERROR = window.onerror;\n }\n\n afterEach() {\n (0, _debug.setTesting)(_debug.isTesting);\n window.onerror = WINDOW_ONERROR;\n (0, _errorHandling.setOnerror)(undefined);\n QUnit.onUnhandledRejection = QUNIT_ON_UNHANDLED_REJECTION;\n }\n\n ['@test by default there is no onerror - sync run'](assert) {\n assert.strictEqual((0, _errorHandling.getOnerror)(), undefined, 'precond - there should be no Ember.onerror set by default');\n assert.throws(runThatThrowsSync, Error, 'errors thrown sync are catchable');\n }\n\n ['@test when Ember.onerror (which rethrows) is registered - sync run'](assert) {\n assert.expect(2);\n (0, _errorHandling.setOnerror)(function (error) {\n assert.ok(true, 'onerror called');\n throw error;\n });\n assert.throws(runThatThrowsSync, Error, 'error is thrown');\n }\n\n ['@test when Ember.onerror (which does not rethrow) is registered - sync run'](assert) {\n assert.expect(2);\n (0, _errorHandling.setOnerror)(function () {\n assert.ok(true, 'onerror called');\n });\n runThatThrowsSync();\n assert.ok(true, 'no error was thrown, Ember.onerror can intercept errors');\n }\n\n ['@test does not swallow exceptions by default (Ember.testing = true, no Ember.onerror) - sync run'](assert) {\n (0, _debug.setTesting)(true);\n let error = new Error('the error');\n assert.throws(() => {\n (0, _runloop.run)(() => {\n throw error;\n });\n }, error);\n }\n\n ['@test does not swallow exceptions by default (Ember.testing = false, no Ember.onerror) - sync run'](assert) {\n (0, _debug.setTesting)(false);\n let error = new Error('the error');\n assert.throws(() => {\n (0, _runloop.run)(() => {\n throw error;\n });\n }, error);\n }\n\n ['@test does not swallow exceptions (Ember.testing = false, Ember.onerror which rethrows) - sync run'](assert) {\n assert.expect(2);\n (0, _debug.setTesting)(false);\n (0, _errorHandling.setOnerror)(function (error) {\n assert.ok(true, 'Ember.onerror was called');\n throw error;\n });\n let error = new Error('the error');\n assert.throws(() => {\n (0, _runloop.run)(() => {\n throw error;\n });\n }, error);\n }\n\n ['@test Ember.onerror can intercept errors (aka swallow) by not rethrowing (Ember.testing = false) - sync run'](assert) {\n assert.expect(1);\n (0, _debug.setTesting)(false);\n (0, _errorHandling.setOnerror)(function () {\n assert.ok(true, 'Ember.onerror was called');\n });\n let error = new Error('the error');\n\n try {\n (0, _runloop.run)(() => {\n throw error;\n });\n } catch (e) {\n assert.notOk(true, 'Ember.onerror that does not rethrow is intentionally swallowing errors, try / catch wrapping does not see error');\n }\n }\n\n ['@test does not swallow exceptions by default (Ember.testing = true, no Ember.onerror) - async run'](assert) {\n let done = assert.async();\n let caughtByWindowOnerror;\n (0, _debug.setTesting)(true);\n\n window.onerror = function (message) {\n caughtByWindowOnerror = message; // prevent \"bubbling\" and therefore failing the test\n\n return true;\n };\n\n (0, _runloop.later)(() => {\n throw new Error('the error');\n }, 10);\n setTimeout(() => {\n assert.pushResult({\n result: /the error/.test(caughtByWindowOnerror),\n actual: caughtByWindowOnerror,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onerror, and therefore fail tests (due to QUnit implementing window.onerror)'\n });\n done();\n }, 20);\n }\n\n ['@test does not swallow exceptions by default (Ember.testing = false, no Ember.onerror) - async run'](assert) {\n let done = assert.async();\n let caughtByWindowOnerror;\n (0, _debug.setTesting)(false);\n\n window.onerror = function (message) {\n caughtByWindowOnerror = message; // prevent \"bubbling\" and therefore failing the test\n\n return true;\n };\n\n (0, _runloop.later)(() => {\n throw new Error('the error');\n }, 10);\n setTimeout(() => {\n assert.pushResult({\n result: /the error/.test(caughtByWindowOnerror),\n actual: caughtByWindowOnerror,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onerror, and therefore fail tests (due to QUnit implementing window.onerror)'\n });\n done();\n }, 20);\n }\n\n ['@test Ember.onerror can intercept errors (aka swallow) by not rethrowing (Ember.testing = false) - async run'](assert) {\n let done = assert.async();\n (0, _debug.setTesting)(false);\n\n window.onerror = function () {\n assert.notOk(true, 'window.onerror is never invoked when Ember.onerror intentionally swallows errors'); // prevent \"bubbling\" and therefore failing the test\n\n return true;\n };\n\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called with the error');\n });\n (0, _runloop.later)(() => {\n throw thrown;\n }, 10);\n setTimeout(done, 20);\n }\n\n [\"@test errors in promise constructor when Ember.onerror which does not rethrow is present - rsvp\"](assert) {\n assert.expect(1);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n });\n new _rsvp.default.Promise(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 10));\n }\n\n [\"@test errors in promise constructor when Ember.onerror which does rethrow is present - rsvp\"](assert) {\n if (!HAS_UNHANDLED_REJECTION_HANDLER) {\n assert.expect(0);\n return;\n }\n\n assert.expect(2);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n throw error;\n }); // prevent QUnit handler from failing test\n\n QUnit.onUnhandledRejection = () => {};\n\n window.onunhandledrejection = function (event) {\n assert.pushResult({\n result: /the error/.test(event.reason),\n actual: event.reason,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onunhandledrejection, and therefore fail tests (due to QUnit implementing window.onunhandledrejection)'\n });\n };\n\n new _rsvp.default.Promise(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 10));\n }\n\n [\"@test errors in promise constructor when Ember.onerror which does not rethrow is present (Ember.testing = false) - rsvp\"](assert) {\n assert.expect(1);\n (0, _debug.setTesting)(false);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n });\n new _rsvp.default.Promise(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 10));\n }\n\n [\"@test errors in promise constructor when Ember.onerror which does rethrow is present (Ember.testing = false) - rsvp\"](assert) {\n if (!HAS_UNHANDLED_REJECTION_HANDLER) {\n assert.expect(0);\n return;\n }\n\n assert.expect(2);\n (0, _debug.setTesting)(false);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n throw error;\n }); // prevent QUnit handler from failing test\n\n QUnit.onUnhandledRejection = () => {};\n\n window.onunhandledrejection = function (event) {\n assert.pushResult({\n result: /the error/.test(event.reason),\n actual: event.reason,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onunhandledrejection, and therefore fail tests (due to QUnit implementing window.onunhandledrejection)'\n });\n };\n\n new _rsvp.default.Promise(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 10));\n }\n\n [\"@test errors in promise .then callback when Ember.onerror which does not rethrow is present - rsvp\"](assert) {\n assert.expect(1);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n });\n\n _rsvp.default.resolve().then(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 10));\n }\n\n [\"@test errors in promise .then callback when Ember.onerror which does rethrow is present - rsvp\"](assert) {\n if (!HAS_UNHANDLED_REJECTION_HANDLER) {\n assert.expect(0);\n return;\n }\n\n assert.expect(2);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n throw error;\n }); // prevent QUnit handler from failing test\n\n QUnit.onUnhandledRejection = () => {};\n\n window.onunhandledrejection = function (event) {\n assert.pushResult({\n result: /the error/.test(event.reason),\n actual: event.reason,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onunhandledrejection, and therefore fail tests (due to QUnit implementing window.onunhandledrejection)'\n });\n };\n\n _rsvp.default.resolve().then(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 10));\n }\n\n [\"@test errors in promise .then callback when Ember.onerror which does not rethrow is present (Ember.testing = false) - rsvp\"](assert) {\n assert.expect(1);\n (0, _debug.setTesting)(false);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n });\n\n _rsvp.default.resolve().then(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 10));\n }\n\n [\"@test errors in promise .then callback when Ember.onerror which does rethrow is present (Ember.testing = false) - rsvp\"](assert) {\n if (!HAS_UNHANDLED_REJECTION_HANDLER) {\n assert.expect(0);\n return;\n }\n\n assert.expect(2);\n (0, _debug.setTesting)(false);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n throw error;\n }); // prevent QUnit handler from failing test\n\n QUnit.onUnhandledRejection = () => {};\n\n window.onunhandledrejection = function (event) {\n assert.pushResult({\n result: /the error/.test(event.reason),\n actual: event.reason,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onunhandledrejection, and therefore fail tests (due to QUnit implementing window.onunhandledrejection)'\n });\n };\n\n _rsvp.default.resolve().then(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 10));\n }\n\n [\"@test errors in async promise .then callback when Ember.onerror which does not rethrow is present - rsvp\"](assert) {\n assert.expect(1);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n });\n new _rsvp.default.Promise(resolve => setTimeout(resolve, 10)).then(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 20));\n }\n\n [\"@test errors in async promise .then callback when Ember.onerror which does rethrow is present - rsvp\"](assert) {\n if (!HAS_UNHANDLED_REJECTION_HANDLER) {\n assert.expect(0);\n return;\n }\n\n assert.expect(2);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n throw error;\n }); // prevent QUnit handler from failing test\n\n QUnit.onUnhandledRejection = () => {};\n\n window.onunhandledrejection = function (event) {\n assert.pushResult({\n result: /the error/.test(event.reason),\n actual: event.reason,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onunhandledrejection, and therefore fail tests (due to QUnit implementing window.onunhandledrejection)'\n });\n };\n\n new _rsvp.default.Promise(resolve => setTimeout(resolve, 10)).then(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 20));\n }\n\n [\"@test errors in async promise .then callback when Ember.onerror which does not rethrow is present (Ember.testing = false) - rsvp\"](assert) {\n assert.expect(1);\n (0, _debug.setTesting)(false);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n });\n new _rsvp.default.Promise(resolve => setTimeout(resolve, 10)).then(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 20));\n }\n\n [\"@test errors in async promise .then callback when Ember.onerror which does rethrow is present (Ember.testing = false) - rsvp\"](assert) {\n if (!HAS_UNHANDLED_REJECTION_HANDLER) {\n assert.expect(0);\n return;\n }\n\n assert.expect(2);\n (0, _debug.setTesting)(false);\n let thrown = new Error('the error');\n (0, _errorHandling.setOnerror)(function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n throw error;\n }); // prevent QUnit handler from failing test\n\n QUnit.onUnhandledRejection = () => {};\n\n window.onunhandledrejection = function (event) {\n assert.pushResult({\n result: /the error/.test(event.reason),\n actual: event.reason,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onunhandledrejection, and therefore fail tests (due to QUnit implementing window.onunhandledrejection)'\n });\n };\n\n new _rsvp.default.Promise(resolve => setTimeout(resolve, 10)).then(() => {\n throw thrown;\n }); // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n\n return new _rsvp.default.Promise(resolve => setTimeout(resolve, 20));\n }\n\n });\n});","enifed(\"ember/tests/homepage_example_test\", [\"@ember/-internals/routing\", \"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"internal-test-helpers\"], function (_routing, _metal, _runtime, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('The example renders correctly', class extends _internalTestHelpers.ApplicationTestCase {\n ['@test Render index template into application outlet'](assert) {\n this.addTemplate('application', '{{outlet}}');\n this.addTemplate('index', 'People {{#each model as |person|}}Hello, {{person.fullName}} ! {{/each}} ');\n\n let Person = _runtime.Object.extend({\n firstName: null,\n lastName: null,\n fullName: (0, _metal.computed)('firstName', 'lastName', function () {\n return this.get('firstName') + \" \" + this.get('lastName');\n })\n });\n\n this.add('route:index', _routing.Route.extend({\n model() {\n return (0, _runtime.A)([Person.create({\n firstName: 'Tom',\n lastName: 'Dale'\n }), Person.create({\n firstName: 'Yehuda',\n lastName: 'Katz'\n })]);\n }\n\n }));\n return this.visit('/').then(() => {\n let $ = this.$();\n assert.equal($.findAll('h1').text(), 'People');\n assert.equal($.findAll('li').length, 2);\n assert.equal($.findAll('li:nth-of-type(1)').text(), 'Hello, Tom Dale!');\n assert.equal($.findAll('li:nth-of-type(2)').text(), 'Hello, Yehuda Katz!');\n });\n }\n\n });\n});","enifed(\"ember/tests/integration/multiple-app-test\", [\"internal-test-helpers\", \"@ember/application\", \"@ember/-internals/glimmer\", \"@ember/-internals/owner\", \"@ember/polyfills\", \"rsvp\"], function (_internalTestHelpers, _application, _glimmer, _owner, _polyfills, _rsvp) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('View Integration', class extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n document.getElementById('qunit-fixture').innerHTML = \"\\n
\\n
\\n \";\n super();\n (0, _internalTestHelpers.runTask)(() => {\n this.createSecondApplication();\n });\n }\n\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n rootElement: '#one',\n router: null\n });\n }\n\n createSecondApplication(options) {\n let {\n applicationOptions\n } = this;\n let secondApplicationOptions = {\n rootElement: '#two'\n };\n let myOptions = (0, _polyfills.assign)(applicationOptions, secondApplicationOptions, options);\n this.secondApp = _application.default.create(myOptions);\n this.secondResolver = this.secondApp.__registry__.resolver;\n return this.secondApp;\n }\n\n teardown() {\n super.teardown();\n\n if (this.secondApp) {\n (0, _internalTestHelpers.runTask)(() => {\n this.secondApp.destroy();\n });\n }\n }\n\n addFactoriesToResolver(actions, resolver) {\n resolver.add('component:special-button', _glimmer.Component.extend({\n actions: {\n doStuff() {\n let rootElement = (0, _owner.getOwner)(this).application.rootElement;\n actions.push(rootElement);\n }\n\n }\n }));\n resolver.add('template:index', this.compile(\"\\n Node 1 {{special-button}}\\n \", {\n moduleName: 'my-app/templates/index.hbs'\n }));\n resolver.add('template:components/special-button', this.compile(\"\\n Button \\n \", {\n moduleName: 'my-app/templates/components/special-button.hbs'\n }));\n }\n\n [\"@test booting multiple applications can properly handle events\"](assert) {\n let actions = [];\n this.addFactoriesToResolver(actions, this.resolver);\n this.addFactoriesToResolver(actions, this.secondResolver);\n return (0, _rsvp.resolve)().then(() => this.application.visit('/')).then(() => this.secondApp.visit('/')).then(() => {\n document.querySelector('#two .do-stuff').click();\n document.querySelector('#one .do-stuff').click();\n assert.deepEqual(actions, ['#two', '#one']);\n });\n }\n\n });\n});","enifed(\"ember/tests/production_build_test\", [\"@glimmer/env\", \"@ember/debug\", \"internal-test-helpers\"], function (_env, _debug, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('production builds', class extends _internalTestHelpers.AbstractTestCase {\n ['@test assert does not throw in production builds'](assert) {\n if (!_env.DEBUG) {\n assert.expect(1);\n\n try {\n (0, _debug.assert)('Should not throw');\n assert.ok(true, 'Ember.assert did not throw');\n } catch (e) {\n assert.ok(false, \"Expected assert not to throw but it did: \" + e.message);\n }\n } else {\n assert.expect(0);\n }\n }\n\n ['@test runInDebug does not run the callback in production builds'](assert) {\n if (!_env.DEBUG) {\n let fired = false;\n (0, _debug.runInDebug)(() => fired = true);\n assert.equal(fired, false, 'runInDebug callback should not be ran');\n } else {\n assert.expect(0);\n }\n }\n\n });\n});","enifed(\"ember/tests/reexports_test\", [\"ember/index\", \"@ember/canary-features\", \"internal-test-helpers\", \"@ember/-internals/views\"], function (_index, _canaryFeatures, _internalTestHelpers, _views) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('ember reexports', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test Ember exports correctly\"](assert) {\n allExports.forEach(reexport => {\n let [path, moduleId, exportName] = reexport; // default path === exportName if none present\n\n if (!exportName) {\n exportName = path;\n }\n\n (0, _internalTestHelpers.confirmExport)(_index.default, assert, path, moduleId, exportName, \"Ember.\" + path + \" exports correctly\");\n });\n }\n\n ['@test Ember.String.isHTMLSafe exports correctly'](assert) {\n (0, _internalTestHelpers.confirmExport)(_index.default, assert, 'String.isHTMLSafe', '@ember/-internals/glimmer', 'isHTMLSafe');\n }\n\n ['@test Ember.EXTEND_PROTOTYPES is present (but deprecated)'](assert) {\n expectDeprecation(() => {\n assert.strictEqual(_index.default.ENV.EXTEND_PROTOTYPES, _index.default.EXTEND_PROTOTYPES, 'Ember.EXTEND_PROTOTYPES exists');\n }, /EXTEND_PROTOTYPES is deprecated/);\n }\n\n ['@test Ember.NAME_KEY is deprecated']() {\n expectDeprecation(() => {\n _index.default.NAME_KEY;\n }, 'Using `Ember.NAME_KEY` is deprecated, override `.toString` instead');\n }\n\n '@test Ember.FEATURES is exported'(assert) {\n for (let feature in _canaryFeatures.FEATURES) {\n assert.equal(_index.default.FEATURES[feature], _canaryFeatures.FEATURES[feature], 'Ember.FEATURES contains ${feature} with correct value');\n }\n }\n\n '@test Ember._setComputedDecorator is deprecated'() {\n expectDeprecation(() => {\n _index.default._setComputedDecorator;\n }, 'Please migrate from Ember._setComputedDecorator to Ember._setClassicDecorator');\n }\n\n });\n\n if (!_views.jQueryDisabled) {\n (0, _internalTestHelpers.moduleFor)('ember reexports: jQuery enabled', class extends _internalTestHelpers.AbstractTestCase {\n [\"@test Ember.$ is exported\"](assert) {\n expectDeprecation(() => {\n let body = _index.default.$('body').get(0);\n\n assert.equal(body, document.body, 'Ember.$ exports working jQuery instance');\n }, \"Using Ember.$() has been deprecated, use `import jQuery from 'jquery';` instead\");\n }\n\n '@test Ember.$ _**is**_ window.jQuery'(assert) {\n expectDeprecation(() => {\n assert.strictEqual(_index.default.$, _views.jQuery);\n }, \"Using Ember.$() has been deprecated, use `import jQuery from 'jquery';` instead\");\n }\n\n });\n }\n\n let allExports = [// @ember/-internals/environment\n ['ENV', '@ember/-internals/environment', {\n get: 'getENV'\n }], ['lookup', '@ember/-internals/environment', {\n get: 'getLookup',\n set: 'setLookup'\n }], ['getOwner', '@ember/application', 'getOwner'], ['setOwner', '@ember/application', 'setOwner'], ['assign', '@ember/polyfills'], // @ember/-internals/utils\n ['GUID_KEY', '@ember/-internals/utils'], ['uuid', '@ember/-internals/utils'], ['generateGuid', '@ember/-internals/utils'], ['guidFor', '@ember/-internals/utils'], ['inspect', '@ember/-internals/utils'], ['makeArray', '@ember/-internals/utils'], ['canInvoke', '@ember/-internals/utils'], ['tryInvoke', '@ember/-internals/utils'], ['wrap', '@ember/-internals/utils'], // @ember/-internals/container\n ['Registry', '@ember/-internals/container', 'Registry'], ['Container', '@ember/-internals/container', 'Container'], // @ember/debug\n ['deprecateFunc', '@ember/debug'], ['deprecate', '@ember/debug'], ['assert', '@ember/debug'], ['warn', '@ember/debug'], ['debug', '@ember/debug'], ['runInDebug', '@ember/debug'], ['Debug.registerDeprecationHandler', '@ember/debug', 'registerDeprecationHandler'], ['Debug.registerWarnHandler', '@ember/debug', 'registerWarnHandler'], ['Error', '@ember/error', 'default'], // @ember/-internals/metal\n ['computed', '@ember/-internals/metal', '_globalsComputed'], ['_descriptor', '@ember/-internals/metal', 'nativeDescDecorator'], ['_tracked', '@ember/-internals/metal', 'tracked'], ['computed.alias', '@ember/-internals/metal', 'alias'], ['ComputedProperty', '@ember/-internals/metal'], ['_setClassicDecorator', '@ember/-internals/metal', 'setClassicDecorator'], ['cacheFor', '@ember/-internals/metal', 'getCachedValueFor'], ['merge', '@ember/polyfills'], ['instrument', '@ember/instrumentation'], ['subscribe', '@ember/instrumentation', 'subscribe'], ['Instrumentation.instrument', '@ember/instrumentation', 'instrument'], ['Instrumentation.subscribe', '@ember/instrumentation', 'subscribe'], ['Instrumentation.unsubscribe', '@ember/instrumentation', 'unsubscribe'], ['Instrumentation.reset', '@ember/instrumentation', 'reset'], ['testing', '@ember/debug', {\n get: 'isTesting',\n set: 'setTesting'\n }], ['onerror', '@ember/-internals/error-handling', {\n get: 'getOnerror',\n set: 'setOnerror'\n }], ['FEATURES.isEnabled', '@ember/canary-features', 'isEnabled'], ['meta', '@ember/-internals/meta'], ['get', '@ember/-internals/metal'], ['set', '@ember/-internals/metal'], ['_getPath', '@ember/-internals/metal'], ['getWithDefault', '@ember/-internals/metal'], ['trySet', '@ember/-internals/metal'], ['_Cache', '@ember/-internals/utils', 'Cache'], ['on', '@ember/-internals/metal'], ['addListener', '@ember/-internals/metal'], ['removeListener', '@ember/-internals/metal'], ['sendEvent', '@ember/-internals/metal'], ['hasListeners', '@ember/-internals/metal'], ['isNone', '@ember/-internals/metal'], ['isEmpty', '@ember/-internals/metal'], ['isBlank', '@ember/-internals/metal'], ['isPresent', '@ember/-internals/metal'], ['_Backburner', 'backburner', 'default'], ['run', '@ember/runloop', '_globalsRun'], ['run.backburner', '@ember/runloop', 'backburner'], ['run.begin', '@ember/runloop', 'begin'], ['run.bind', '@ember/runloop', 'bind'], ['run.cancel', '@ember/runloop', 'cancel'], ['run.debounce', '@ember/runloop', 'debounce'], ['run.end', '@ember/runloop', 'end'], ['run.hasScheduledTimers', '@ember/runloop', 'hasScheduledTimers'], ['run.join', '@ember/runloop', 'join'], ['run.later', '@ember/runloop', 'later'], ['run.next', '@ember/runloop', 'next'], ['run.once', '@ember/runloop', 'once'], ['run.schedule', '@ember/runloop', 'schedule'], ['run.scheduleOnce', '@ember/runloop', 'scheduleOnce'], ['run.throttle', '@ember/runloop', 'throttle'], ['run.currentRunLoop', '@ember/runloop', {\n get: 'getCurrentRunLoop'\n }], ['run.cancelTimers', '@ember/runloop', 'cancelTimers'], ['notifyPropertyChange', '@ember/-internals/metal'], ['overrideChains', '@ember/-internals/metal'], ['beginPropertyChanges', '@ember/-internals/metal'], ['endPropertyChanges', '@ember/-internals/metal'], ['changeProperties', '@ember/-internals/metal'], ['platform.defineProperty', null, {\n value: true\n }], ['platform.hasPropertyAccessors', null, {\n value: true\n }], ['defineProperty', '@ember/-internals/metal'], ['watchKey', '@ember/-internals/metal'], ['unwatchKey', '@ember/-internals/metal'], ['removeChainWatcher', '@ember/-internals/metal'], ['_ChainNode', '@ember/-internals/metal', 'ChainNode'], ['finishChains', '@ember/-internals/metal'], ['watchPath', '@ember/-internals/metal'], ['unwatchPath', '@ember/-internals/metal'], ['watch', '@ember/-internals/metal'], ['isWatching', '@ember/-internals/metal'], ['unwatch', '@ember/-internals/metal'], ['destroy', '@ember/-internals/meta', 'deleteMeta'], ['libraries', '@ember/-internals/metal'], ['getProperties', '@ember/-internals/metal'], ['setProperties', '@ember/-internals/metal'], ['expandProperties', '@ember/-internals/metal'], ['addObserver', '@ember/-internals/metal'], ['removeObserver', '@ember/-internals/metal'], ['aliasMethod', '@ember/-internals/metal'], ['observer', '@ember/-internals/metal'], ['mixin', '@ember/-internals/metal'], ['Mixin', '@ember/-internals/metal'], // @ember/-internals/console\n ['Logger', '@ember/-internals/console', 'default'], // @ember/-internals/views\n ['ViewUtils.isSimpleClick', '@ember/-internals/views', 'isSimpleClick'], ['ViewUtils.getElementView', '@ember/-internals/views', 'getElementView'], ['ViewUtils.getViewElement', '@ember/-internals/views', 'getViewElement'], ['ViewUtils.getViewBounds', '@ember/-internals/views', 'getViewBounds'], ['ViewUtils.getViewClientRects', '@ember/-internals/views', 'getViewClientRects'], ['ViewUtils.getViewBoundingClientRect', '@ember/-internals/views', 'getViewBoundingClientRect'], ['ViewUtils.getRootViews', '@ember/-internals/views', 'getRootViews'], ['ViewUtils.getChildViews', '@ember/-internals/views', 'getChildViews'], ['ViewUtils.isSerializationFirstNode', '@ember/-internals/glimmer', 'isSerializationFirstNode'], ['TextSupport', '@ember/-internals/views'], ['ComponentLookup', '@ember/-internals/views'], ['EventDispatcher', '@ember/-internals/views'], // @ember/-internals/glimmer\n ['Component', '@ember/-internals/glimmer', 'Component'], ['Helper', '@ember/-internals/glimmer', 'Helper'], ['Helper.helper', '@ember/-internals/glimmer', 'helper'], ['Checkbox', '@ember/-internals/glimmer', 'Checkbox'], ['LinkComponent', '@ember/-internals/glimmer', 'LinkComponent'], ['TextArea', '@ember/-internals/glimmer', 'TextArea'], ['TextField', '@ember/-internals/glimmer', 'TextField'], ['TEMPLATES', '@ember/-internals/glimmer', {\n get: 'getTemplates',\n set: 'setTemplates'\n }], ['Handlebars.template', '@ember/-internals/glimmer', 'template'], ['HTMLBars.template', '@ember/-internals/glimmer', 'template'], ['Handlebars.Utils.escapeExpression', '@ember/-internals/glimmer', 'escapeExpression'], ['String.htmlSafe', '@ember/-internals/glimmer', 'htmlSafe'], ['_setComponentManager', '@ember/-internals/glimmer', 'setComponentManager'], ['_componentManagerCapabilities', '@ember/-internals/glimmer', 'capabilities'], // @ember/-internals/runtime\n ['A', '@ember/-internals/runtime'], ['_RegistryProxyMixin', '@ember/-internals/runtime', 'RegistryProxyMixin'], ['_ContainerProxyMixin', '@ember/-internals/runtime', 'ContainerProxyMixin'], ['Object', '@ember/-internals/runtime'], ['String.loc', '@ember/string', 'loc'], ['String.w', '@ember/string', 'w'], ['String.dasherize', '@ember/string', 'dasherize'], ['String.decamelize', '@ember/string', 'decamelize'], ['String.camelize', '@ember/string', 'camelize'], ['String.classify', '@ember/string', 'classify'], ['String.underscore', '@ember/string', 'underscore'], ['String.capitalize', '@ember/string', 'capitalize'], ['compare', '@ember/-internals/runtime'], ['copy', '@ember/-internals/runtime'], ['isEqual', '@ember/-internals/runtime'], ['inject.controller', '@ember/controller', 'inject'], ['inject.service', '@ember/service', 'inject'], ['Array', '@ember/-internals/runtime'], ['Comparable', '@ember/-internals/runtime'], ['Namespace', '@ember/-internals/runtime'], ['Enumerable', '@ember/-internals/runtime'], ['ArrayProxy', '@ember/-internals/runtime'], ['ObjectProxy', '@ember/-internals/runtime'], ['ActionHandler', '@ember/-internals/runtime'], ['CoreObject', '@ember/-internals/runtime'], ['NativeArray', '@ember/-internals/runtime'], ['Copyable', '@ember/-internals/runtime'], ['MutableEnumerable', '@ember/-internals/runtime'], ['MutableArray', '@ember/-internals/runtime'], ['TargetActionSupport', '@ember/-internals/runtime'], ['Evented', '@ember/-internals/runtime'], ['PromiseProxyMixin', '@ember/-internals/runtime'], ['Observable', '@ember/-internals/runtime'], ['typeOf', '@ember/-internals/runtime'], ['isArray', '@ember/-internals/runtime'], ['Object', '@ember/-internals/runtime'], ['onLoad', '@ember/application'], ['runLoadHooks', '@ember/application'], ['Controller', '@ember/controller', 'default'], ['ControllerMixin', '@ember/controller/lib/controller_mixin', 'default'], ['Service', '@ember/service', 'default'], ['_ProxyMixin', '@ember/-internals/runtime'], ['RSVP', '@ember/-internals/runtime'], ['STRINGS', '@ember/string', {\n get: '_getStrings',\n set: '_setStrings'\n }], ['BOOTED', '@ember/-internals/metal', {\n get: 'isNamespaceSearchDisabled',\n set: 'setNamespaceSearchDisabled'\n }], _canaryFeatures.EMBER_NATIVE_DECORATOR_SUPPORT ? ['_action', '@ember/object', 'action'] : null, ['computed.empty', '@ember/object/computed', 'empty'], ['computed.notEmpty', '@ember/object/computed', 'notEmpty'], ['computed.none', '@ember/object/computed', 'none'], ['computed.not', '@ember/object/computed', 'not'], ['computed.bool', '@ember/object/computed', 'bool'], ['computed.match', '@ember/object/computed', 'match'], ['computed.equal', '@ember/object/computed', 'equal'], ['computed.gt', '@ember/object/computed', 'gt'], ['computed.gte', '@ember/object/computed', 'gte'], ['computed.lt', '@ember/object/computed', 'lt'], ['computed.lte', '@ember/object/computed', 'lte'], ['computed.oneWay', '@ember/object/computed', 'oneWay'], ['computed.reads', '@ember/object/computed', 'oneWay'], ['computed.readOnly', '@ember/object/computed', 'readOnly'], ['computed.deprecatingAlias', '@ember/object/computed', 'deprecatingAlias'], ['computed.and', '@ember/object/computed', 'and'], ['computed.or', '@ember/object/computed', 'or'], ['computed.sum', '@ember/object/computed', 'sum'], ['computed.min', '@ember/object/computed', 'min'], ['computed.max', '@ember/object/computed', 'max'], ['computed.map', '@ember/object/computed', 'map'], ['computed.sort', '@ember/object/computed', 'sort'], ['computed.setDiff', '@ember/object/computed', 'setDiff'], ['computed.mapBy', '@ember/object/computed', 'mapBy'], ['computed.filter', '@ember/object/computed', 'filter'], ['computed.filterBy', '@ember/object/computed', 'filterBy'], ['computed.uniq', '@ember/object/computed', 'uniq'], ['computed.uniqBy', '@ember/object/computed', 'uniqBy'], ['computed.union', '@ember/object/computed', 'union'], ['computed.intersect', '@ember/object/computed', 'intersect'], ['computed.collect', '@ember/object/computed', 'collect'], // @ember/-internals/routing\n ['Location', '@ember/-internals/routing'], ['AutoLocation', '@ember/-internals/routing'], ['HashLocation', '@ember/-internals/routing'], ['HistoryLocation', '@ember/-internals/routing'], ['NoneLocation', '@ember/-internals/routing'], ['controllerFor', '@ember/-internals/routing'], ['generateControllerFactory', '@ember/-internals/routing'], ['generateController', '@ember/-internals/routing'], ['RouterDSL', '@ember/-internals/routing'], ['Router', '@ember/-internals/routing'], ['Route', '@ember/-internals/routing'], // ember-application\n ['Application', '@ember/application', 'default'], ['ApplicationInstance', '@ember/application/instance', 'default'], ['Engine', '@ember/engine', 'default'], ['EngineInstance', '@ember/engine/instance', 'default'], ['Resolver', '@ember/application/globals-resolver', 'default'], ['DefaultResolver', '@ember/application/globals-resolver', 'default'], // @ember/-internals/extension-support\n ['DataAdapter', '@ember/-internals/extension-support'], ['ContainerDebugAdapter', '@ember/-internals/extension-support']].filter(Boolean);\n});","enifed(\"ember/tests/routing/decoupled_basic_test\", [\"@ember/-internals/owner\", \"rsvp\", \"ember-template-compiler\", \"@ember/-internals/routing\", \"@ember/controller\", \"@ember/-internals/runtime\", \"internal-test-helpers\", \"@ember/runloop\", \"@ember/-internals/metal\", \"@ember/-internals/glimmer\", \"@ember/engine\", \"router_js\"], function (_owner, _rsvp, _emberTemplateCompiler, _routing, _controller, _runtime, _internalTestHelpers, _runloop, _metal, _glimmer, _engine, _router_js) {\n \"use strict\";\n\n /* eslint-disable no-console */\n let originalConsoleError;\n (0, _internalTestHelpers.moduleFor)('Basic Routing - Decoupled from global resolver', class extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n super(...arguments);\n this.addTemplate('home', 'Hours ');\n this.addTemplate('camelot', '');\n this.addTemplate('homepage', 'Megatroll {{model.home}}
');\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n originalConsoleError = console.error;\n }\n\n teardown() {\n super.teardown();\n console.error = originalConsoleError;\n }\n\n getController(name) {\n return this.applicationInstance.lookup(\"controller:\" + name);\n }\n\n handleURLAborts(assert, path, deprecated) {\n (0, _runloop.run)(() => {\n let router = this.applicationInstance.lookup('router:main');\n let result;\n\n if (deprecated !== undefined) {\n expectDeprecation(() => {\n result = router.handleURL(path);\n });\n } else {\n result = router.handleURL(path);\n }\n\n result.then(function () {\n assert.ok(false, 'url: `' + path + '` was NOT to be handled');\n }, function (reason) {\n assert.ok(reason && reason.message === 'TransitionAborted', 'url: `' + path + '` was to be aborted');\n });\n });\n }\n\n get currentPath() {\n let currentPath;\n expectDeprecation(() => {\n currentPath = this.getController('application').get('currentPath');\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n return currentPath;\n }\n\n get currentURL() {\n return this.appRouter.get('currentURL');\n }\n\n handleURLRejectsWith(context, assert, path, expectedReason) {\n return context.visit(path).then(() => {\n assert.ok(false, 'expected handleURLing: `' + path + '` to fail');\n }).catch(reason => {\n assert.equal(reason.message, expectedReason);\n });\n }\n\n ['@test warn on URLs not included in the route set']() {\n return this.visit('/').then(() => {\n expectAssertion(() => {\n this.visit('/what-is-this-i-dont-even');\n }, /'\\/what-is-this-i-dont-even' did not match any routes/);\n });\n }\n\n ['@test The Homepage'](assert) {\n return this.visit('/').then(() => {\n assert.equal(this.currentPath, 'home', 'currently on the home route');\n let text = this.$('.hours').text();\n assert.equal(text, 'Hours', 'the home template was rendered');\n });\n }\n\n [\"@test The Homepage and the Camelot page with multiple Router.map calls\"](assert) {\n this.router.map(function () {\n this.route('camelot', {\n path: '/camelot'\n });\n });\n return this.visit('/camelot').then(() => {\n assert.equal(this.currentPath, 'camelot');\n let text = this.$('#camelot').text();\n assert.equal(text, 'Is a silly place', 'the camelot template was rendered');\n return this.visit('/');\n }).then(() => {\n assert.equal(this.currentPath, 'home');\n let text = this.$('.hours').text();\n assert.equal(text, 'Hours', 'the home template was rendered');\n });\n }\n\n [\"@test The Homepage with explicit template name in renderTemplate\"](assert) {\n this.add('route:home', _routing.Route.extend({\n renderTemplate() {\n this.render('homepage');\n }\n\n }));\n return this.visit('/').then(() => {\n let text = this.$('#troll').text();\n assert.equal(text, 'Megatroll', 'the homepage template was rendered');\n });\n }\n\n [\"@test an alternate template will pull in an alternate controller\"](assert) {\n this.add('route:home', _routing.Route.extend({\n renderTemplate() {\n this.render('homepage');\n }\n\n }));\n this.add('controller:homepage', _controller.default.extend({\n model: {\n home: 'Comes from homepage'\n }\n }));\n return this.visit('/').then(() => {\n let text = this.$('p').text();\n assert.equal(text, 'Comes from homepage', 'the homepage template was rendered');\n });\n }\n\n [\"@test An alternate template will pull in an alternate controller instead of controllerName\"](assert) {\n this.add('route:home', _routing.Route.extend({\n controllerName: 'foo',\n\n renderTemplate() {\n this.render('homepage');\n }\n\n }));\n this.add('controller:foo', _controller.default.extend({\n model: {\n home: 'Comes from foo'\n }\n }));\n this.add('controller:homepage', _controller.default.extend({\n model: {\n home: 'Comes from homepage'\n }\n }));\n return this.visit('/').then(() => {\n let text = this.$('p').text();\n assert.equal(text, 'Comes from homepage', 'the homepage template was rendered');\n });\n }\n\n [\"@test The template will pull in an alternate controller via key/value\"](assert) {\n this.router.map(function () {\n this.route('homepage', {\n path: '/'\n });\n });\n this.add('route:homepage', _routing.Route.extend({\n renderTemplate() {\n this.render({\n controller: 'home'\n });\n }\n\n }));\n this.add('controller:home', _controller.default.extend({\n model: {\n home: 'Comes from home.'\n }\n }));\n return this.visit('/').then(() => {\n let text = this.$('p').text();\n assert.equal(text, 'Comes from home.', 'the homepage template was rendered from data from the HomeController');\n });\n }\n\n [\"@test The Homepage with explicit template name in renderTemplate and controller\"](assert) {\n this.add('controller:home', _controller.default.extend({\n model: {\n home: 'YES I AM HOME'\n }\n }));\n this.add('route:home', _routing.Route.extend({\n renderTemplate() {\n this.render('homepage');\n }\n\n }));\n return this.visit('/').then(() => {\n let text = this.$('p').text();\n assert.equal(text, 'YES I AM HOME', 'The homepage template was rendered');\n });\n }\n\n [\"@test Model passed via renderTemplate model is set as controller's model\"](assert) {\n this.addTemplate('bio', '{{model.name}}
');\n this.add('route:home', _routing.Route.extend({\n renderTemplate() {\n this.render('bio', {\n model: {\n name: 'emberjs'\n }\n });\n }\n\n }));\n return this.visit('/').then(() => {\n let text = this.$('p').text();\n assert.equal(text, 'emberjs', \"Passed model was set as controller's model\");\n });\n }\n\n ['@test render uses templateName from route'](assert) {\n this.addTemplate('the_real_home_template', 'THIS IS THE REAL HOME
');\n this.add('route:home', _routing.Route.extend({\n templateName: 'the_real_home_template'\n }));\n return this.visit('/').then(() => {\n let text = this.$('p').text();\n assert.equal(text, 'THIS IS THE REAL HOME', 'the homepage template was rendered');\n });\n }\n\n ['@test defining templateName allows other templates to be rendered'](assert) {\n this.addTemplate('alert', \"Invader!
\");\n this.addTemplate('the_real_home_template', \"THIS IS THE REAL HOME
{{outlet 'alert'}}\");\n this.add('route:home', _routing.Route.extend({\n templateName: 'the_real_home_template',\n actions: {\n showAlert() {\n this.render('alert', {\n into: 'home',\n outlet: 'alert'\n });\n }\n\n }\n }));\n return this.visit('/').then(() => {\n let text = this.$('p').text();\n assert.equal(text, 'THIS IS THE REAL HOME', 'the homepage template was rendered');\n return (0, _internalTestHelpers.runTask)(() => this.appRouter.send('showAlert'));\n }).then(() => {\n let text = this.$('.alert-box').text();\n assert.equal(text, 'Invader!', 'Template for alert was rendered into the outlet');\n });\n }\n\n ['@test templateName is still used when calling render with no name and options'](assert) {\n this.addTemplate('alert', \"Invader!
\");\n this.addTemplate('home', \"THIS IS THE REAL HOME
{{outlet 'alert'}}\");\n this.add('route:home', _routing.Route.extend({\n templateName: 'alert',\n\n renderTemplate() {\n this.render({});\n }\n\n }));\n return this.visit('/').then(() => {\n let text = this.$('.alert-box').text();\n assert.equal(text, 'Invader!', 'default templateName was rendered into outlet');\n });\n }\n\n ['@test The Homepage with a `setupController` hook'](assert) {\n this.addTemplate('home', \"{{#each hours as |entry|}}\\n {{entry}} \\n {{/each}}\\n \\n \");\n this.add('route:home', _routing.Route.extend({\n setupController(controller) {\n controller.set('hours', ['Monday through Friday: 9am to 5pm', 'Saturday: Noon to Midnight', 'Sunday: Noon to 6pm']);\n }\n\n }));\n return this.visit('/').then(() => {\n let text = this.$('ul li:nth-child(3)').text();\n assert.equal(text, 'Sunday: Noon to 6pm', 'The template was rendered with the hours context');\n });\n }\n\n [\"@test The route controller is still set when overriding the setupController hook\"](assert) {\n this.add('route:home', _routing.Route.extend({\n setupController() {// no-op\n // importantly, we are not calling this._super\n }\n\n }));\n this.add('controller:home', _controller.default.extend());\n return this.visit('/').then(() => {\n let homeRoute = this.applicationInstance.lookup('route:home');\n let homeController = this.applicationInstance.lookup('controller:home');\n assert.equal(homeRoute.controller, homeController, 'route controller is the home controller');\n });\n }\n\n ['@test the route controller can be specified via controllerName'](assert) {\n this.addTemplate('home', '{{myValue}}
');\n this.add('route:home', _routing.Route.extend({\n controllerName: 'myController'\n }));\n this.add('controller:myController', _controller.default.extend({\n myValue: 'foo'\n }));\n return this.visit('/').then(() => {\n let homeRoute = this.applicationInstance.lookup('route:home');\n let myController = this.applicationInstance.lookup('controller:myController');\n let text = this.$('p').text();\n assert.equal(homeRoute.controller, myController, 'route controller is set by controllerName');\n assert.equal(text, 'foo', 'The homepage template was rendered with data from the custom controller');\n });\n }\n\n [\"@test The route controller specified via controllerName is used in render\"](assert) {\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n this.add('route:home', _routing.Route.extend({\n controllerName: 'myController',\n\n renderTemplate() {\n this.render('alternative_home');\n }\n\n }));\n this.add('controller:myController', _controller.default.extend({\n myValue: 'foo'\n }));\n this.addTemplate('alternative_home', 'alternative home: {{myValue}}
');\n return this.visit('/').then(() => {\n let homeRoute = this.applicationInstance.lookup('route:home');\n let myController = this.applicationInstance.lookup('controller:myController');\n let text = this.$('p').text();\n assert.equal(homeRoute.controller, myController, 'route controller is set by controllerName');\n assert.equal(text, 'alternative home: foo', 'The homepage template was rendered with data from the custom controller');\n });\n }\n\n [\"@test The route controller specified via controllerName is used in render even when a controller with the routeName is available\"](assert) {\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n this.addTemplate('home', 'home: {{myValue}}
');\n this.add('route:home', _routing.Route.extend({\n controllerName: 'myController'\n }));\n this.add('controller:home', _controller.default.extend({\n myValue: 'home'\n }));\n this.add('controller:myController', _controller.default.extend({\n myValue: 'myController'\n }));\n return this.visit('/').then(() => {\n let homeRoute = this.applicationInstance.lookup('route:home');\n let myController = this.applicationInstance.lookup('controller:myController');\n let text = this.$('p').text();\n assert.equal(homeRoute.controller, myController, 'route controller is set by controllerName');\n assert.equal(text, 'home: myController', 'The homepage template was rendered with data from the custom controller');\n });\n }\n\n [\"@test The Homepage with a 'setupController' hook modifying other controllers\"](assert) {\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n this.add('route:home', _routing.Route.extend({\n setupController()\n /* controller */\n {\n this.controllerFor('home').set('hours', ['Monday through Friday: 9am to 5pm', 'Saturday: Noon to Midnight', 'Sunday: Noon to 6pm']);\n }\n\n }));\n this.addTemplate('home', '{{#each hours as |entry|}}{{entry}} {{/each}} ');\n return this.visit('/').then(() => {\n let text = this.$('ul li:nth-child(3)').text();\n assert.equal(text, 'Sunday: Noon to 6pm', 'The template was rendered with the hours context');\n });\n }\n\n [\"@test The Homepage with a computed model that does not get overridden\"](assert) {\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n this.add('controller:home', _controller.default.extend({\n model: (0, _metal.computed)(function () {\n return ['Monday through Friday: 9am to 5pm', 'Saturday: Noon to Midnight', 'Sunday: Noon to 6pm'];\n })\n }));\n this.addTemplate('home', '{{#each model as |passage|}}{{passage}} {{/each}} ');\n return this.visit('/').then(() => {\n let text = this.$('ul li:nth-child(3)').text();\n assert.equal(text, 'Sunday: Noon to 6pm', 'The template was rendered with the context intact');\n });\n }\n\n [\"@test The Homepage getting its controller context via model\"](assert) {\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n this.add('route:home', _routing.Route.extend({\n model() {\n return ['Monday through Friday: 9am to 5pm', 'Saturday: Noon to Midnight', 'Sunday: Noon to 6pm'];\n },\n\n setupController(controller, model) {\n assert.equal(this.controllerFor('home'), controller);\n this.controllerFor('home').set('hours', model);\n }\n\n }));\n this.addTemplate('home', '{{#each hours as |entry|}}{{entry}} {{/each}} ');\n return this.visit('/').then(() => {\n let text = this.$('ul li:nth-child(3)').text();\n assert.equal(text, 'Sunday: Noon to 6pm', 'The template was rendered with the hours context');\n });\n }\n\n [\"@test The Specials Page getting its controller context by deserializing the params hash\"](assert) {\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n this.route('special', {\n path: '/specials/:menu_item_id'\n });\n });\n this.add('route:special', _routing.Route.extend({\n model(params) {\n return _runtime.Object.create({\n menuItemId: params.menu_item_id\n });\n }\n\n }));\n this.addTemplate('special', '{{model.menuItemId}}
');\n return this.visit('/specials/1').then(() => {\n let text = this.$('p').text();\n assert.equal(text, '1', 'The model was used to render the template');\n });\n }\n\n ['@test The Specials Page defaults to looking models up via `find`']() {\n let MenuItem = _runtime.Object.extend();\n\n MenuItem.reopenClass({\n find(id) {\n return MenuItem.create({\n id\n });\n }\n\n });\n this.add('model:menu_item', MenuItem);\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n this.route('special', {\n path: '/specials/:menu_item_id'\n });\n });\n this.addTemplate('special', '{{model.id}}');\n return this.visit('/specials/1').then(() => {\n this.assertText('1', 'The model was used to render the template');\n });\n }\n\n ['@test The Special Page returning a promise puts the app into a loading state until the promise is resolved']() {\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n this.route('special', {\n path: '/specials/:menu_item_id'\n });\n });\n let menuItem, resolve;\n\n let MenuItem = _runtime.Object.extend();\n\n MenuItem.reopenClass({\n find(id) {\n menuItem = MenuItem.create({\n id: id\n });\n return new _rsvp.default.Promise(function (res) {\n resolve = res;\n });\n }\n\n });\n this.add('model:menu_item', MenuItem);\n this.addTemplate('special', '{{model.id}}
');\n this.addTemplate('loading', 'LOADING!
');\n let visited = this.visit('/specials/1');\n this.assertText('LOADING!', 'The app is in the loading state');\n resolve(menuItem);\n return visited.then(() => {\n this.assertText('1', 'The app is now in the specials state');\n });\n }\n\n [\"@test The loading state doesn't get entered for promises that resolve on the same run loop\"](assert) {\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n this.route('special', {\n path: '/specials/:menu_item_id'\n });\n });\n\n let MenuItem = _runtime.Object.extend();\n\n MenuItem.reopenClass({\n find(id) {\n return {\n id: id\n };\n }\n\n });\n this.add('model:menu_item', MenuItem);\n this.add('route:loading', _routing.Route.extend({\n enter() {\n assert.ok(false, \"LoadingRoute shouldn't have been entered.\");\n }\n\n }));\n this.addTemplate('special', '{{model.id}}
');\n this.addTemplate('loading', 'LOADING!
');\n return this.visit('/specials/1').then(() => {\n let text = this.$('p').text();\n assert.equal(text, '1', 'The app is now in the specials state');\n });\n }\n\n [\"@test The Special page returning an error invokes SpecialRoute's error handler\"](assert) {\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n this.route('special', {\n path: '/specials/:menu_item_id'\n });\n });\n let menuItem, promise, resolve;\n\n let MenuItem = _runtime.Object.extend();\n\n MenuItem.reopenClass({\n find(id) {\n menuItem = MenuItem.create({\n id: id\n });\n promise = new _rsvp.default.Promise(res => resolve = res);\n return promise;\n }\n\n });\n this.add('model:menu_item', MenuItem);\n this.add('route:special', _routing.Route.extend({\n setup() {\n throw new Error('Setup error');\n },\n\n actions: {\n error(reason) {\n assert.equal(reason.message, 'Setup error', 'SpecialRoute#error received the error thrown from setup');\n return true;\n }\n\n }\n }));\n this.handleURLRejectsWith(this, assert, 'specials/1', 'Setup error');\n (0, _runloop.run)(() => resolve(menuItem));\n }\n\n [\"@test ApplicationRoute's default error handler can be overridden\"](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n this.route('special', {\n path: '/specials/:menu_item_id'\n });\n });\n let menuItem, resolve;\n\n let MenuItem = _runtime.Object.extend();\n\n MenuItem.reopenClass({\n find(id) {\n menuItem = MenuItem.create({\n id: id\n });\n return new _rsvp.default.Promise(res => resolve = res);\n }\n\n });\n this.add('model:menu_item', MenuItem);\n this.add('route:application', _routing.Route.extend({\n actions: {\n error(reason) {\n assert.equal(reason.message, 'Setup error', 'error was correctly passed to custom ApplicationRoute handler');\n return true;\n }\n\n }\n }));\n this.add('route:special', _routing.Route.extend({\n setup() {\n throw new Error('Setup error');\n }\n\n }));\n this.handleURLRejectsWith(this, assert, '/specials/1', 'Setup error');\n (0, _runloop.run)(() => resolve(menuItem));\n }\n\n ['@test Moving from one page to another triggers the correct callbacks'](assert) {\n assert.expect(3);\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n this.route('special', {\n path: '/specials/:menu_item_id'\n });\n });\n\n let MenuItem = _runtime.Object.extend();\n\n MenuItem.reopenClass({\n find(id) {\n return MenuItem.create({\n id: id\n });\n }\n\n });\n this.add('model:menu_item', MenuItem);\n this.addTemplate('home', 'Home ');\n this.addTemplate('special', '{{model.id}}
');\n return this.visit('/').then(() => {\n this.assertText('Home', 'The app is now in the initial state');\n let promiseContext = MenuItem.create({\n id: 1\n });\n return this.visit('/specials/1', promiseContext);\n }).then(() => {\n assert.equal(this.currentURL, '/specials/1');\n this.assertText('1', 'The app is now transitioned');\n });\n }\n\n ['@test Nested callbacks are not exited when moving to siblings'](assert) {\n let rootSetup = 0;\n let rootRender = 0;\n let rootModel = 0;\n let rootSerialize = 0;\n let menuItem;\n let rootElement;\n\n let MenuItem = _runtime.Object.extend();\n\n MenuItem.reopenClass({\n find(id) {\n menuItem = MenuItem.create({\n id: id\n });\n return menuItem;\n }\n\n });\n this.router.map(function () {\n this.route('root', {\n path: '/'\n }, function () {\n this.route('special', {\n path: '/specials/:menu_item_id',\n resetNamespace: true\n });\n });\n });\n this.add('route:root', _routing.Route.extend({\n model() {\n rootModel++;\n return this._super(...arguments);\n },\n\n setupController() {\n rootSetup++;\n },\n\n renderTemplate() {\n rootRender++;\n },\n\n serialize() {\n rootSerialize++;\n return this._super(...arguments);\n }\n\n }));\n this.add('route:loading', _routing.Route.extend({}));\n this.add('route:home', _routing.Route.extend({}));\n this.add('route:special', _routing.Route.extend({\n model({\n menu_item_id\n }) {\n return MenuItem.find(menu_item_id);\n },\n\n setupController(controller, model) {\n (0, _metal.set)(controller, 'model', model);\n }\n\n }));\n this.addTemplate('root.index', 'Home ');\n this.addTemplate('special', '{{model.id}}
');\n this.addTemplate('loading', 'LOADING!
');\n return this.visit('/').then(() => {\n rootElement = document.getElementById('qunit-fixture');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('h3')), 'Home', 'The app is now in the initial state');\n assert.equal(rootSetup, 1, 'The root setup was triggered');\n assert.equal(rootRender, 1, 'The root render was triggered');\n assert.equal(rootSerialize, 0, 'The root serialize was not called');\n assert.equal(rootModel, 1, 'The root model was called');\n let router = this.applicationInstance.lookup('router:main');\n let menuItem = MenuItem.create({\n id: 1\n });\n return router.transitionTo('special', menuItem).then(function () {\n assert.equal(rootSetup, 1, 'The root setup was not triggered again');\n assert.equal(rootRender, 1, 'The root render was not triggered again');\n assert.equal(rootSerialize, 0, 'The root serialize was not called'); // TODO: Should this be changed?\n\n assert.equal(rootModel, 1, 'The root model was called again');\n assert.deepEqual(router.location.path, '/specials/1');\n assert.equal(router.currentPath, 'root.special');\n });\n });\n }\n\n ['@test Events are triggered on the controller if a matching action name is implemented'](assert) {\n let done = assert.async();\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n let model = {\n name: 'Tom Dale'\n };\n let stateIsNotCalled = true;\n this.add('route:home', _routing.Route.extend({\n model() {\n return model;\n },\n\n actions: {\n showStuff() {\n stateIsNotCalled = false;\n }\n\n }\n }));\n this.addTemplate('home', '{{name}} ');\n this.add('controller:home', _controller.default.extend({\n actions: {\n showStuff(context) {\n assert.ok(stateIsNotCalled, 'an event on the state is not triggered');\n assert.deepEqual(context, {\n name: 'Tom Dale'\n }, 'an event with context is passed');\n done();\n }\n\n }\n }));\n this.visit('/').then(() => {\n document.getElementById('qunit-fixture').querySelector('a').click();\n });\n }\n\n ['@test Events are triggered on the current state when defined in `actions` object'](assert) {\n let done = assert.async();\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n let model = {\n name: 'Tom Dale'\n };\n\n let HomeRoute = _routing.Route.extend({\n model() {\n return model;\n },\n\n actions: {\n showStuff(obj) {\n assert.ok(this instanceof HomeRoute, 'the handler is an App.HomeRoute');\n assert.deepEqual(Object.assign({}, obj), {\n name: 'Tom Dale'\n }, 'the context is correct');\n done();\n }\n\n }\n });\n\n this.add('route:home', HomeRoute);\n this.addTemplate('home', '{{model.name}} ');\n this.visit('/').then(() => {\n document.getElementById('qunit-fixture').querySelector('a').click();\n });\n }\n\n ['@test Events defined in `actions` object are triggered on the current state when routes are nested'](assert) {\n let done = assert.async();\n this.router.map(function () {\n this.route('root', {\n path: '/'\n }, function () {\n this.route('index', {\n path: '/'\n });\n });\n });\n let model = {\n name: 'Tom Dale'\n };\n\n let RootRoute = _routing.Route.extend({\n actions: {\n showStuff(obj) {\n assert.ok(this instanceof RootRoute, 'the handler is an App.HomeRoute');\n assert.deepEqual(Object.assign({}, obj), {\n name: 'Tom Dale'\n }, 'the context is correct');\n done();\n }\n\n }\n });\n\n this.add('route:root', RootRoute);\n this.add('route:root.index', _routing.Route.extend({\n model() {\n return model;\n }\n\n }));\n this.addTemplate('root.index', '{{model.name}} ');\n this.visit('/').then(() => {\n document.getElementById('qunit-fixture').querySelector('a').click();\n });\n }\n\n ['@test Events can be handled by inherited event handlers'](assert) {\n assert.expect(4);\n\n let SuperRoute = _routing.Route.extend({\n actions: {\n foo() {\n assert.ok(true, 'foo');\n },\n\n bar(msg) {\n assert.equal(msg, 'HELLO', 'bar hander in super route');\n }\n\n }\n });\n\n let RouteMixin = _metal.Mixin.create({\n actions: {\n bar(msg) {\n assert.equal(msg, 'HELLO', 'bar handler in mixin');\n\n this._super(msg);\n }\n\n }\n });\n\n this.add('route:home', SuperRoute.extend(RouteMixin, {\n actions: {\n baz() {\n assert.ok(true, 'baz', 'baz hander in route');\n }\n\n }\n }));\n this.addTemplate('home', \"\\n Do foo \\n Do bar with arg \\n Do bar \\n \");\n return this.visit('/').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n rootElement.querySelector('.do-foo').click();\n rootElement.querySelector('.do-bar-with-arg').click();\n rootElement.querySelector('.do-baz').click();\n });\n }\n\n ['@test Actions are not triggered on the controller if a matching action name is implemented as a method'](assert) {\n let done = assert.async();\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n let model = {\n name: 'Tom Dale'\n };\n let stateIsNotCalled = true;\n this.add('route:home', _routing.Route.extend({\n model() {\n return model;\n },\n\n actions: {\n showStuff(context) {\n assert.ok(stateIsNotCalled, 'an event on the state is not triggered');\n assert.deepEqual(context, {\n name: 'Tom Dale'\n }, 'an event with context is passed');\n done();\n }\n\n }\n }));\n this.addTemplate('home', '{{name}} ');\n this.add('controller:home', _controller.default.extend({\n showStuff() {\n stateIsNotCalled = false;\n assert.ok(stateIsNotCalled, 'an event on the state is not triggered');\n }\n\n }));\n this.visit('/').then(() => {\n document.getElementById('qunit-fixture').querySelector('a').click();\n });\n }\n\n ['@test actions can be triggered with multiple arguments'](assert) {\n let done = assert.async();\n this.router.map(function () {\n this.route('root', {\n path: '/'\n }, function () {\n this.route('index', {\n path: '/'\n });\n });\n });\n let model1 = {\n name: 'Tilde'\n };\n let model2 = {\n name: 'Tom Dale'\n };\n\n let RootRoute = _routing.Route.extend({\n actions: {\n showStuff(obj1, obj2) {\n assert.ok(this instanceof RootRoute, 'the handler is an App.HomeRoute');\n assert.deepEqual(Object.assign({}, obj1), {\n name: 'Tilde'\n }, 'the first context is correct');\n assert.deepEqual(Object.assign({}, obj2), {\n name: 'Tom Dale'\n }, 'the second context is correct');\n done();\n }\n\n }\n });\n\n this.add('route:root', RootRoute);\n this.add('controller:root.index', _controller.default.extend({\n model1: model1,\n model2: model2\n }));\n this.addTemplate('root.index', '{{model1.name}} ');\n this.visit('/').then(() => {\n document.getElementById('qunit-fixture').querySelector('a').click();\n });\n }\n\n ['@test transitioning multiple times in a single run loop only sets the URL once'](assert) {\n this.router.map(function () {\n this.route('root', {\n path: '/'\n });\n this.route('foo');\n this.route('bar');\n });\n return this.visit('/').then(() => {\n let urlSetCount = 0;\n let router = this.applicationInstance.lookup('router:main');\n\n router.get('location').setURL = function (path) {\n urlSetCount++;\n (0, _metal.set)(this, 'path', path);\n };\n\n assert.equal(urlSetCount, 0);\n (0, _runloop.run)(function () {\n router.transitionTo('foo');\n router.transitionTo('bar');\n });\n assert.equal(urlSetCount, 1);\n assert.equal(router.get('location').getURL(), '/bar');\n });\n }\n\n ['@test navigating away triggers a url property change'](assert) {\n assert.expect(3);\n this.router.map(function () {\n this.route('root', {\n path: '/'\n });\n this.route('foo', {\n path: '/foo'\n });\n this.route('bar', {\n path: '/bar'\n });\n });\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n (0, _metal.addObserver)(router, 'url', function () {\n assert.ok(true, 'url change event was fired');\n });\n ['foo', 'bar', '/foo'].forEach(destination => (0, _runloop.run)(router, 'transitionTo', destination));\n });\n }\n\n ['@test using replaceWith calls location.replaceURL if available'](assert) {\n let setCount = 0;\n let replaceCount = 0;\n this.router.reopen({\n location: _routing.NoneLocation.create({\n setURL(path) {\n setCount++;\n (0, _metal.set)(this, 'path', path);\n },\n\n replaceURL(path) {\n replaceCount++;\n (0, _metal.set)(this, 'path', path);\n }\n\n })\n });\n this.router.map(function () {\n this.route('root', {\n path: '/'\n });\n this.route('foo');\n });\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n assert.equal(setCount, 1);\n assert.equal(replaceCount, 0);\n (0, _runloop.run)(() => router.replaceWith('foo'));\n assert.equal(setCount, 1, 'should not call setURL');\n assert.equal(replaceCount, 1, 'should call replaceURL once');\n assert.equal(router.get('location').getURL(), '/foo');\n });\n }\n\n ['@test using replaceWith calls setURL if location.replaceURL is not defined'](assert) {\n let setCount = 0;\n this.router.reopen({\n location: _routing.NoneLocation.create({\n setURL(path) {\n setCount++;\n (0, _metal.set)(this, 'path', path);\n }\n\n })\n });\n this.router.map(function () {\n this.route('root', {\n path: '/'\n });\n this.route('foo');\n });\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n assert.equal(setCount, 1);\n (0, _runloop.run)(() => router.replaceWith('foo'));\n assert.equal(setCount, 2, 'should call setURL once');\n assert.equal(router.get('location').getURL(), '/foo');\n });\n }\n\n ['@test Route inherits model from parent route'](assert) {\n assert.expect(9);\n this.router.map(function () {\n this.route('the-post', {\n path: '/posts/:post_id'\n }, function () {\n this.route('comments');\n this.route('shares', {\n path: '/shares/:share_id',\n resetNamespace: true\n }, function () {\n this.route('share');\n });\n });\n });\n let post1 = {};\n let post2 = {};\n let post3 = {};\n let share1 = {};\n let share2 = {};\n let share3 = {};\n let posts = {\n 1: post1,\n 2: post2,\n 3: post3\n };\n let shares = {\n 1: share1,\n 2: share2,\n 3: share3\n };\n this.add('route:the-post', _routing.Route.extend({\n model(params) {\n return posts[params.post_id];\n }\n\n }));\n this.add('route:the-post.comments', _routing.Route.extend({\n afterModel(post\n /*, transition */\n ) {\n let parent_model = this.modelFor('the-post');\n assert.equal(post, parent_model);\n }\n\n }));\n this.add('route:shares', _routing.Route.extend({\n model(params) {\n return shares[params.share_id];\n }\n\n }));\n this.add('route:shares.share', _routing.Route.extend({\n afterModel(share\n /*, transition */\n ) {\n let parent_model = this.modelFor('shares');\n assert.equal(share, parent_model);\n }\n\n }));\n return this.visit('/posts/1/comments').then(() => {\n assert.ok(true, 'url: /posts/1/comments was handled');\n return this.visit('/posts/1/shares/1');\n }).then(() => {\n assert.ok(true, 'url: /posts/1/shares/1 was handled');\n return this.visit('/posts/2/comments');\n }).then(() => {\n assert.ok(true, 'url: /posts/2/comments was handled');\n return this.visit('/posts/2/shares/2');\n }).then(() => {\n assert.ok(true, 'url: /posts/2/shares/2 was handled');\n return this.visit('/posts/3/comments');\n }).then(() => {\n assert.ok(true, 'url: /posts/3/shares was handled');\n return this.visit('/posts/3/shares/3');\n }).then(() => {\n assert.ok(true, 'url: /posts/3/shares/3 was handled');\n });\n }\n\n ['@test Routes with { resetNamespace: true } inherits model from parent route'](assert) {\n assert.expect(6);\n this.router.map(function () {\n this.route('the-post', {\n path: '/posts/:post_id'\n }, function () {\n this.route('comments', {\n resetNamespace: true\n }, function () {});\n });\n });\n let post1 = {};\n let post2 = {};\n let post3 = {};\n let posts = {\n 1: post1,\n 2: post2,\n 3: post3\n };\n this.add('route:the-post', _routing.Route.extend({\n model(params) {\n return posts[params.post_id];\n }\n\n }));\n this.add('route:comments', _routing.Route.extend({\n afterModel(post\n /*, transition */\n ) {\n let parent_model = this.modelFor('the-post');\n assert.equal(post, parent_model);\n }\n\n }));\n return this.visit('/posts/1/comments').then(() => {\n assert.ok(true, '/posts/1/comments');\n return this.visit('/posts/2/comments');\n }).then(() => {\n assert.ok(true, '/posts/2/comments');\n return this.visit('/posts/3/comments');\n }).then(() => {\n assert.ok(true, '/posts/3/comments');\n });\n }\n\n ['@test It is possible to get the model from a parent route'](assert) {\n assert.expect(6);\n this.router.map(function () {\n this.route('the-post', {\n path: '/posts/:post_id'\n }, function () {\n this.route('comments', {\n resetNamespace: true\n });\n });\n });\n let post1 = {};\n let post2 = {};\n let post3 = {};\n let currentPost;\n let posts = {\n 1: post1,\n 2: post2,\n 3: post3\n };\n this.add('route:the-post', _routing.Route.extend({\n model(params) {\n return posts[params.post_id];\n }\n\n }));\n this.add('route:comments', _routing.Route.extend({\n model() {\n assert.equal(this.modelFor('the-post'), currentPost);\n }\n\n }));\n currentPost = post1;\n return this.visit('/posts/1/comments').then(() => {\n assert.ok(true, '/posts/1/comments has been handled');\n currentPost = post2;\n return this.visit('/posts/2/comments');\n }).then(() => {\n assert.ok(true, '/posts/2/comments has been handled');\n currentPost = post3;\n return this.visit('/posts/3/comments');\n }).then(() => {\n assert.ok(true, '/posts/3/comments has been handled');\n });\n }\n\n ['@test A redirection hook is provided'](assert) {\n this.router.map(function () {\n this.route('choose', {\n path: '/'\n });\n this.route('home');\n });\n let chooseFollowed = 0;\n let destination = 'home';\n this.add('route:choose', _routing.Route.extend({\n redirect() {\n if (destination) {\n this.transitionTo(destination);\n }\n },\n\n setupController() {\n chooseFollowed++;\n }\n\n }));\n return this.visit('/').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal(chooseFollowed, 0, \"The choose route wasn't entered since a transition occurred\");\n assert.equal(rootElement.querySelectorAll('h3.hours').length, 1, 'The home template was rendered');\n assert.equal(this.currentPath, 'home');\n });\n }\n\n ['@test Redirecting from the middle of a route aborts the remainder of the routes'](assert) {\n assert.expect(4);\n this.router.map(function () {\n this.route('home');\n this.route('foo', function () {\n this.route('bar', {\n resetNamespace: true\n }, function () {\n this.route('baz');\n });\n });\n });\n this.add('route:bar', _routing.Route.extend({\n redirect() {\n this.transitionTo('home');\n },\n\n setupController() {\n assert.ok(false, 'Should transition before setupController');\n }\n\n }));\n this.add('route:bar-baz', _routing.Route.extend({\n enter() {\n assert.ok(false, 'Should abort transition getting to next route');\n }\n\n }));\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n this.handleURLAborts(assert, '/foo/bar/baz');\n let currentPath;\n expectDeprecation(() => {\n currentPath = this.applicationInstance.lookup('controller:application').get('currentPath');\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n assert.equal(currentPath, 'home');\n assert.equal(router.get('location').getURL(), '/home');\n });\n }\n\n ['@test Redirecting to the current target in the middle of a route does not abort initial routing'](assert) {\n assert.expect(6);\n this.router.map(function () {\n this.route('home');\n this.route('foo', function () {\n this.route('bar', {\n resetNamespace: true\n }, function () {\n this.route('baz');\n });\n });\n });\n let successCount = 0;\n this.add('route:bar', _routing.Route.extend({\n redirect() {\n return this.transitionTo('bar.baz').then(function () {\n successCount++;\n });\n },\n\n setupController() {\n assert.ok(true, \"Should still invoke bar's setupController\");\n }\n\n }));\n this.add('route:bar.baz', _routing.Route.extend({\n setupController() {\n assert.ok(true, \"Should still invoke bar.baz's setupController\");\n }\n\n }));\n return this.visit('/foo/bar/baz').then(() => {\n assert.ok(true, '/foo/bar/baz has been handled');\n let currentPath;\n expectDeprecation(() => {\n currentPath = this.applicationInstance.lookup('controller:application').get('currentPath');\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n assert.equal(currentPath, 'foo.bar.baz');\n assert.equal(successCount, 1, 'transitionTo success handler was called once');\n });\n }\n\n ['@test Redirecting to the current target with a different context aborts the remainder of the routes'](assert) {\n assert.expect(5);\n this.router.map(function () {\n this.route('home');\n this.route('foo', function () {\n this.route('bar', {\n path: 'bar/:id',\n resetNamespace: true\n }, function () {\n this.route('baz');\n });\n });\n });\n let model = {\n id: 2\n };\n let count = 0;\n this.add('route:bar', _routing.Route.extend({\n afterModel() {\n if (count++ > 10) {\n assert.ok(false, 'infinite loop');\n } else {\n this.transitionTo('bar.baz', model);\n }\n }\n\n }));\n this.add('route:bar.baz', _routing.Route.extend({\n setupController() {\n assert.ok(true, 'Should still invoke setupController');\n }\n\n }));\n return this.visit('/').then(() => {\n this.handleURLAborts(assert, '/foo/bar/1/baz');\n let currentPath;\n expectDeprecation(() => {\n currentPath = this.applicationInstance.lookup('controller:application').get('currentPath');\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n assert.equal(currentPath, 'foo.bar.baz');\n assert.equal(this.applicationInstance.lookup('router:main').get('location').getURL(), '/foo/bar/2/baz');\n });\n }\n\n ['@test Transitioning from a parent event does not prevent currentPath from being set'](assert) {\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar', {\n resetNamespace: true\n }, function () {\n this.route('baz');\n });\n this.route('qux');\n });\n });\n this.add('route:foo', _routing.Route.extend({\n actions: {\n goToQux() {\n this.transitionTo('foo.qux');\n }\n\n }\n }));\n return this.visit('/foo/bar/baz').then(() => {\n assert.ok(true, '/foo/bar/baz has been handled');\n let applicationController = this.applicationInstance.lookup('controller:application');\n let router = this.applicationInstance.lookup('router:main');\n let currentPath;\n expectDeprecation(() => {\n currentPath = applicationController.get('currentPath');\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n assert.equal(currentPath, 'foo.bar.baz');\n (0, _runloop.run)(() => router.send('goToQux'));\n expectDeprecation(() => {\n currentPath = applicationController.get('currentPath');\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n assert.equal(currentPath, 'foo.qux');\n assert.equal(router.get('location').getURL(), '/foo/qux');\n });\n }\n\n ['@test Generated names can be customized when providing routes with dot notation'](assert) {\n assert.expect(4);\n this.addTemplate('index', 'Index
');\n this.addTemplate('application', \"Home {{outlet}}
\");\n this.addTemplate('foo', \"{{outlet}}
\");\n this.addTemplate('bar', \"{{outlet}}
\");\n this.addTemplate('bar.baz', '{{name}}Bottom!
');\n this.router.map(function () {\n this.route('foo', {\n path: '/top'\n }, function () {\n this.route('bar', {\n path: '/middle',\n resetNamespace: true\n }, function () {\n this.route('baz', {\n path: '/bottom'\n });\n });\n });\n });\n this.add('route:foo', _routing.Route.extend({\n renderTemplate() {\n assert.ok(true, 'FooBarRoute was called');\n return this._super(...arguments);\n }\n\n }));\n this.add('route:bar.baz', _routing.Route.extend({\n renderTemplate() {\n assert.ok(true, 'BarBazRoute was called');\n return this._super(...arguments);\n }\n\n }));\n this.add('controller:bar', _controller.default.extend({\n name: 'Bar'\n }));\n this.add('controller:bar.baz', _controller.default.extend({\n name: 'BarBaz'\n }));\n return this.visit('/top/middle/bottom').then(() => {\n assert.ok(true, '/top/middle/bottom has been handled');\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('.main .middle .bottom p')), 'BarBazBottom!', 'The templates were rendered into their appropriate parents');\n });\n }\n\n [\"@test Child routes render into their parent route's template by default\"](assert) {\n this.addTemplate('index', 'Index
');\n this.addTemplate('application', \"Home {{outlet}}
\");\n this.addTemplate('top', \"{{outlet}}
\");\n this.addTemplate('middle', \"{{outlet}}
\");\n this.addTemplate('middle.bottom', 'Bottom!
');\n this.router.map(function () {\n this.route('top', function () {\n this.route('middle', {\n resetNamespace: true\n }, function () {\n this.route('bottom');\n });\n });\n });\n return this.visit('/top/middle/bottom').then(() => {\n assert.ok(true, '/top/middle/bottom has been handled');\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('.main .middle .bottom p')), 'Bottom!', 'The templates were rendered into their appropriate parents');\n });\n }\n\n ['@test Child routes render into specified template'](assert) {\n this.addTemplate('index', 'Index
');\n this.addTemplate('application', \"Home {{outlet}}
\");\n this.addTemplate('top', \"{{outlet}}
\");\n this.addTemplate('middle', \"{{outlet}}
\");\n this.addTemplate('middle.bottom', 'Bottom!
');\n this.router.map(function () {\n this.route('top', function () {\n this.route('middle', {\n resetNamespace: true\n }, function () {\n this.route('bottom');\n });\n });\n });\n this.add('route:middle.bottom', _routing.Route.extend({\n renderTemplate() {\n this.render('middle/bottom', {\n into: 'top'\n });\n }\n\n }));\n return this.visit('/top/middle/bottom').then(() => {\n assert.ok(true, '/top/middle/bottom has been handled');\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal(rootElement.querySelectorAll('.main .middle .bottom p').length, 0, 'should not render into the middle template');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('.main .middle > p')), 'Bottom!', 'The template was rendered into the top template');\n });\n }\n\n ['@test Rendering into specified template with slash notation'](assert) {\n this.addTemplate('person.profile', 'profile {{outlet}}');\n this.addTemplate('person.details', 'details!');\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n this.add('route:home', _routing.Route.extend({\n renderTemplate() {\n this.render('person/profile');\n this.render('person/details', {\n into: 'person/profile'\n });\n }\n\n }));\n return this.visit('/').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal(rootElement.textContent.trim(), 'profile details!', 'The templates were rendered');\n });\n }\n\n ['@test Parent route context change'](assert) {\n let editCount = 0;\n let editedPostIds = (0, _runtime.A)();\n this.addTemplate('application', '{{outlet}}');\n this.addTemplate('posts', '{{outlet}}');\n this.addTemplate('post', '{{outlet}}');\n this.addTemplate('post/index', 'showing');\n this.addTemplate('post/edit', 'editing');\n this.router.map(function () {\n this.route('posts', function () {\n this.route('post', {\n path: '/:postId',\n resetNamespace: true\n }, function () {\n this.route('edit');\n });\n });\n });\n this.add('route:posts', _routing.Route.extend({\n actions: {\n showPost(context) {\n this.transitionTo('post', context);\n }\n\n }\n }));\n this.add('route:post', _routing.Route.extend({\n model(params) {\n return {\n id: params.postId\n };\n },\n\n serialize(model) {\n return {\n postId: model.id\n };\n },\n\n actions: {\n editPost() {\n this.transitionTo('post.edit');\n }\n\n }\n }));\n this.add('route:post.edit', _routing.Route.extend({\n model() {\n let postId = this.modelFor('post').id;\n editedPostIds.push(postId);\n return null;\n },\n\n setup() {\n this._super(...arguments);\n\n editCount++;\n }\n\n }));\n return this.visit('/posts/1').then(() => {\n assert.ok(true, '/posts/1 has been handled');\n let router = this.applicationInstance.lookup('router:main');\n (0, _runloop.run)(() => router.send('editPost'));\n (0, _runloop.run)(() => router.send('showPost', {\n id: '2'\n }));\n (0, _runloop.run)(() => router.send('editPost'));\n assert.equal(editCount, 2, 'set up the edit route twice without failure');\n assert.deepEqual(editedPostIds, ['1', '2'], 'modelFor posts.post returns the right context');\n });\n }\n\n ['@test Router accounts for rootURL on page load when using history location'](assert) {\n let rootURL = window.location.pathname + '/app';\n let postsTemplateRendered = false;\n let setHistory;\n\n setHistory = function (obj, path) {\n obj.set('history', {\n state: {\n path: path\n }\n });\n };\n\n let location = _routing.HistoryLocation.create({\n initState() {\n let path = rootURL + '/posts';\n setHistory(this, path);\n this.set('location', {\n pathname: path,\n href: 'http://localhost/' + path\n });\n },\n\n replaceState(path) {\n setHistory(this, path);\n },\n\n pushState(path) {\n setHistory(this, path);\n }\n\n });\n\n this.router.reopen({\n // location: 'historyTest',\n location,\n rootURL: rootURL\n });\n this.router.map(function () {\n this.route('posts', {\n path: '/posts'\n });\n });\n this.add('route:posts', _routing.Route.extend({\n model() {},\n\n renderTemplate() {\n postsTemplateRendered = true;\n }\n\n }));\n return this.visit('/').then(() => {\n assert.ok(postsTemplateRendered, 'Posts route successfully stripped from rootURL');\n (0, _internalTestHelpers.runDestroy)(location);\n location = null;\n });\n }\n\n ['@test The rootURL is passed properly to the location implementation'](assert) {\n assert.expect(1);\n let rootURL = '/blahzorz';\n this.add('location:history-test', _routing.HistoryLocation.extend({\n rootURL: 'this is not the URL you are looking for',\n history: {\n pushState() {}\n\n },\n\n initState() {\n assert.equal(this.get('rootURL'), rootURL);\n }\n\n }));\n this.router.reopen({\n location: 'history-test',\n rootURL: rootURL,\n\n // if we transition in this test we will receive failures\n // if the tests are run from a static file\n _doURLTransition() {\n return _rsvp.default.resolve('');\n }\n\n });\n return this.visit('/');\n }\n\n ['@test Only use route rendered into main outlet for default into property on child'](assert) {\n this.addTemplate('application', \"{{outlet 'menu'}}{{outlet}}\");\n this.addTemplate('posts', '{{outlet}}');\n this.addTemplate('posts.index', 'postsIndex
');\n this.addTemplate('posts.menu', '');\n this.router.map(function () {\n this.route('posts', function () {});\n });\n this.add('route:posts', _routing.Route.extend({\n renderTemplate() {\n this.render();\n this.render('posts/menu', {\n into: 'application',\n outlet: 'menu'\n });\n }\n\n }));\n return this.visit('/posts').then(() => {\n assert.ok(true, '/posts has been handled');\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('div.posts-menu')), 'postsMenu', 'The posts/menu template was rendered');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('p.posts-index')), 'postsIndex', 'The posts/index template was rendered');\n });\n }\n\n ['@test Generating a URL should not affect currentModel'](assert) {\n this.router.map(function () {\n this.route('post', {\n path: '/posts/:post_id'\n });\n });\n let posts = {\n 1: {\n id: 1\n },\n 2: {\n id: 2\n }\n };\n this.add('route:post', _routing.Route.extend({\n model(params) {\n return posts[params.post_id];\n }\n\n }));\n return this.visit('/posts/1').then(() => {\n assert.ok(true, '/posts/1 has been handled');\n let route = this.applicationInstance.lookup('route:post');\n assert.equal(route.modelFor('post'), posts[1]);\n let url = this.applicationInstance.lookup('router:main').generate('post', posts[2]);\n assert.equal(url, '/posts/2');\n assert.equal(route.modelFor('post'), posts[1]);\n });\n }\n\n [\"@test Nested index route is not overridden by parent's implicit index route\"](assert) {\n this.router.map(function () {\n this.route('posts', function () {\n this.route('index', {\n path: ':category'\n });\n });\n });\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n return router.transitionTo('posts', {\n category: 'emberjs'\n });\n }).then(() => {\n let router = this.applicationInstance.lookup('router:main');\n assert.deepEqual(router.location.path, '/posts/emberjs');\n });\n }\n\n ['@test Application template does not duplicate when re-rendered'](assert) {\n this.addTemplate('application', 'I render once {{outlet}}');\n this.router.map(function () {\n this.route('posts');\n });\n this.add('route:application', _routing.Route.extend({\n model() {\n return (0, _runtime.A)();\n }\n\n }));\n return this.visit('/posts').then(() => {\n assert.ok(true, '/posts has been handled');\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('h3.render-once')), 'I render once');\n });\n }\n\n ['@test Child routes should render inside the application template if the application template causes a redirect'](assert) {\n this.addTemplate('application', 'App {{outlet}}');\n this.addTemplate('posts', 'posts');\n this.router.map(function () {\n this.route('posts');\n this.route('photos');\n });\n this.add('route:application', _routing.Route.extend({\n afterModel() {\n this.transitionTo('posts');\n }\n\n }));\n return this.visit('/posts').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal(rootElement.textContent.trim(), 'App posts');\n });\n }\n\n [\"@test The template is not re-rendered when the route's context changes\"](assert) {\n this.router.map(function () {\n this.route('page', {\n path: '/page/:name'\n });\n });\n this.add('route:page', _routing.Route.extend({\n model(params) {\n return _runtime.Object.create({\n name: params.name\n });\n }\n\n }));\n let insertionCount = 0;\n this.add('component:foo-bar', _glimmer.Component.extend({\n didInsertElement() {\n insertionCount += 1;\n }\n\n }));\n this.addTemplate('page', '{{model.name}}{{foo-bar}}
');\n let rootElement = document.getElementById('qunit-fixture');\n return this.visit('/page/first').then(() => {\n assert.ok(true, '/page/first has been handled');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('p')), 'first');\n assert.equal(insertionCount, 1);\n return this.visit('/page/second');\n }).then(() => {\n assert.ok(true, '/page/second has been handled');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('p')), 'second');\n assert.equal(insertionCount, 1, 'view should have inserted only once');\n let router = this.applicationInstance.lookup('router:main');\n return (0, _runloop.run)(() => router.transitionTo('page', _runtime.Object.create({\n name: 'third'\n })));\n }).then(() => {\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('p')), 'third');\n assert.equal(insertionCount, 1, 'view should still have inserted only once');\n });\n }\n\n ['@test The template is not re-rendered when two routes present the exact same template & controller'](assert) {\n this.router.map(function () {\n this.route('first');\n this.route('second');\n this.route('third');\n this.route('fourth');\n }); // Note add a component to test insertion\n\n let insertionCount = 0;\n this.add('component:x-input', _glimmer.Component.extend({\n didInsertElement() {\n insertionCount += 1;\n }\n\n }));\n\n let SharedRoute = _routing.Route.extend({\n setupController() {\n this.controllerFor('shared').set('message', 'This is the ' + this.routeName + ' message');\n },\n\n renderTemplate() {\n this.render('shared', {\n controller: 'shared'\n });\n }\n\n });\n\n this.add('route:shared', SharedRoute);\n this.add('route:first', SharedRoute.extend());\n this.add('route:second', SharedRoute.extend());\n this.add('route:third', SharedRoute.extend());\n this.add('route:fourth', SharedRoute.extend());\n this.add('controller:shared', _controller.default.extend());\n this.addTemplate('shared', '{{message}}{{x-input}}
');\n let rootElement = document.getElementById('qunit-fixture');\n return this.visit('/first').then(() => {\n assert.ok(true, '/first has been handled');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('p')), 'This is the first message');\n assert.equal(insertionCount, 1, 'expected one assertion');\n return this.visit('/second');\n }).then(() => {\n assert.ok(true, '/second has been handled');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('p')), 'This is the second message');\n assert.equal(insertionCount, 1, 'expected one assertion');\n return (0, _runloop.run)(() => {\n this.applicationInstance.lookup('router:main').transitionTo('third').then(function () {\n assert.ok(true, 'expected transition');\n }, function (reason) {\n assert.ok(false, 'unexpected transition failure: ', QUnit.jsDump.parse(reason));\n });\n });\n }).then(() => {\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('p')), 'This is the third message');\n assert.equal(insertionCount, 1, 'expected one assertion');\n return this.visit('fourth');\n }).then(() => {\n assert.ok(true, '/fourth has been handled');\n assert.equal(insertionCount, 1, 'expected one assertion');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('p')), 'This is the fourth message');\n });\n }\n\n ['@test ApplicationRoute with model does not proxy the currentPath'](assert) {\n let model = {};\n let currentPath;\n this.router.map(function () {\n this.route('index', {\n path: '/'\n });\n });\n this.add('route:application', _routing.Route.extend({\n model() {\n return model;\n }\n\n }));\n this.add('controller:application', _controller.default.extend({\n currentPathDidChange: (0, _metal.observer)('currentPath', function () {\n expectDeprecation(() => {\n currentPath = this.currentPath;\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n })\n }));\n return this.visit('/').then(() => {\n assert.equal(currentPath, 'index', 'currentPath is index');\n assert.equal('currentPath' in model, false, 'should have defined currentPath on controller');\n });\n }\n\n ['@test Promises encountered on app load put app into loading state until resolved'](assert) {\n assert.expect(2);\n\n let deferred = _rsvp.default.defer();\n\n this.router.map(function () {\n this.route('index', {\n path: '/'\n });\n });\n this.add('route:index', _routing.Route.extend({\n model() {\n return deferred.promise;\n }\n\n }));\n this.addTemplate('index', 'INDEX
');\n this.addTemplate('loading', 'LOADING
');\n (0, _runloop.run)(() => this.visit('/'));\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('p')), 'LOADING', 'The loading state is displaying.');\n (0, _runloop.run)(deferred.resolve);\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('p')), 'INDEX', 'The index route is display.');\n }\n\n ['@test Route should tear down multiple outlets'](assert) {\n this.addTemplate('application', \"{{outlet 'menu'}}{{outlet}}{{outlet 'footer'}}\");\n this.addTemplate('posts', '{{outlet}}');\n this.addTemplate('users', 'users');\n this.addTemplate('posts.index', 'postsIndex
');\n this.addTemplate('posts.menu', '');\n this.addTemplate('posts.footer', '');\n this.router.map(function () {\n this.route('posts', function () {});\n this.route('users', function () {});\n });\n this.add('route:posts', _routing.Route.extend({\n renderTemplate() {\n this.render('posts/menu', {\n into: 'application',\n outlet: 'menu'\n });\n this.render();\n this.render('posts/footer', {\n into: 'application',\n outlet: 'footer'\n });\n }\n\n }));\n let rootElement = document.getElementById('qunit-fixture');\n return this.visit('/posts').then(() => {\n assert.ok(true, '/posts has been handled');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('div.posts-menu')), 'postsMenu', 'The posts/menu template was rendered');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('p.posts-index')), 'postsIndex', 'The posts/index template was rendered');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('div.posts-footer')), 'postsFooter', 'The posts/footer template was rendered');\n return this.visit('/users');\n }).then(() => {\n assert.ok(true, '/users has been handled');\n assert.equal(rootElement.querySelector('div.posts-menu'), null, 'The posts/menu template was removed');\n assert.equal(rootElement.querySelector('p.posts-index'), null, 'The posts/index template was removed');\n assert.equal(rootElement.querySelector('div.posts-footer'), null, 'The posts/footer template was removed');\n });\n }\n\n ['@test Route supports clearing outlet explicitly'](assert) {\n this.addTemplate('application', \"{{outlet}}{{outlet 'modal'}}\");\n this.addTemplate('posts', '{{outlet}}');\n this.addTemplate('users', 'users');\n this.addTemplate('posts.index', 'postsIndex {{outlet}}
');\n this.addTemplate('posts.modal', 'postsModal
');\n this.addTemplate('posts.extra', '');\n this.router.map(function () {\n this.route('posts', function () {});\n this.route('users', function () {});\n });\n this.add('route:posts', _routing.Route.extend({\n actions: {\n showModal() {\n this.render('posts/modal', {\n into: 'application',\n outlet: 'modal'\n });\n },\n\n hideModal() {\n this.disconnectOutlet({\n outlet: 'modal',\n parentView: 'application'\n });\n }\n\n }\n }));\n this.add('route:posts.index', _routing.Route.extend({\n actions: {\n showExtra() {\n this.render('posts/extra', {\n into: 'posts/index'\n });\n },\n\n hideExtra() {\n this.disconnectOutlet({\n parentView: 'posts/index'\n });\n }\n\n }\n }));\n let rootElement = document.getElementById('qunit-fixture');\n return this.visit('/posts').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('div.posts-index')), 'postsIndex', 'The posts/index template was rendered');\n (0, _runloop.run)(() => router.send('showModal'));\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('div.posts-modal')), 'postsModal', 'The posts/modal template was rendered');\n (0, _runloop.run)(() => router.send('showExtra'));\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('div.posts-extra')), 'postsExtra', 'The posts/extra template was rendered');\n (0, _runloop.run)(() => router.send('hideModal'));\n assert.equal(rootElement.querySelector('div.posts-modal'), null, 'The posts/modal template was removed');\n (0, _runloop.run)(() => router.send('hideExtra'));\n assert.equal(rootElement.querySelector('div.posts-extra'), null, 'The posts/extra template was removed');\n (0, _runloop.run)(function () {\n router.send('showModal');\n });\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('div.posts-modal')), 'postsModal', 'The posts/modal template was rendered');\n (0, _runloop.run)(function () {\n router.send('showExtra');\n });\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('div.posts-extra')), 'postsExtra', 'The posts/extra template was rendered');\n return this.visit('/users');\n }).then(() => {\n assert.equal(rootElement.querySelector('div.posts-index'), null, 'The posts/index template was removed');\n assert.equal(rootElement.querySelector('div.posts-modal'), null, 'The posts/modal template was removed');\n assert.equal(rootElement.querySelector('div.posts-extra'), null, 'The posts/extra template was removed');\n });\n }\n\n ['@test Route supports clearing outlet using string parameter'](assert) {\n this.addTemplate('application', \"{{outlet}}{{outlet 'modal'}}\");\n this.addTemplate('posts', '{{outlet}}');\n this.addTemplate('users', 'users');\n this.addTemplate('posts.index', 'postsIndex {{outlet}}
');\n this.addTemplate('posts.modal', 'postsModal
');\n this.router.map(function () {\n this.route('posts', function () {});\n this.route('users', function () {});\n });\n this.add('route:posts', _routing.Route.extend({\n actions: {\n showModal() {\n this.render('posts/modal', {\n into: 'application',\n outlet: 'modal'\n });\n },\n\n hideModal() {\n this.disconnectOutlet('modal');\n }\n\n }\n }));\n let rootElement = document.getElementById('qunit-fixture');\n return this.visit('/posts').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('div.posts-index')), 'postsIndex', 'The posts/index template was rendered');\n (0, _runloop.run)(() => router.send('showModal'));\n assert.equal((0, _internalTestHelpers.getTextOf)(rootElement.querySelector('div.posts-modal')), 'postsModal', 'The posts/modal template was rendered');\n (0, _runloop.run)(() => router.send('hideModal'));\n assert.equal(rootElement.querySelector('div.posts-modal'), null, 'The posts/modal template was removed');\n return this.visit('/users');\n }).then(() => {\n assert.equal(rootElement.querySelector('div.posts-index'), null, 'The posts/index template was removed');\n assert.equal(rootElement.querySelector('div.posts-modal'), null, 'The posts/modal template was removed');\n });\n }\n\n ['@test Route silently fails when cleaning an outlet from an inactive view'](assert) {\n assert.expect(1); // handleURL\n\n this.addTemplate('application', '{{outlet}}');\n this.addTemplate('posts', \"{{outlet 'modal'}}\");\n this.addTemplate('modal', 'A Yo.');\n this.router.map(function () {\n this.route('posts');\n });\n this.add('route:posts', _routing.Route.extend({\n actions: {\n hideSelf() {\n this.disconnectOutlet({\n outlet: 'main',\n parentView: 'application'\n });\n },\n\n showModal() {\n this.render('modal', {\n into: 'posts',\n outlet: 'modal'\n });\n },\n\n hideModal() {\n this.disconnectOutlet({\n outlet: 'modal',\n parentView: 'posts'\n });\n }\n\n }\n }));\n return this.visit('/posts').then(() => {\n assert.ok(true, '/posts has been handled');\n let router = this.applicationInstance.lookup('router:main');\n (0, _runloop.run)(() => router.send('showModal'));\n (0, _runloop.run)(() => router.send('hideSelf'));\n (0, _runloop.run)(() => router.send('hideModal'));\n });\n }\n\n ['@test Router `willTransition` hook passes in cancellable transition'](assert) {\n assert.expect(8);\n this.router.reopen({\n willTransition(_, _2, transition) {\n assert.ok(true, 'willTransition was called');\n\n if (transition.intent.url !== '/') {\n transition.abort();\n }\n }\n\n });\n this.router.map(function () {\n this.route('nork');\n this.route('about');\n });\n this.add('route:loading', _routing.Route.extend({\n activate() {\n assert.ok(false, 'LoadingRoute was not entered');\n }\n\n }));\n this.add('route:nork', _routing.Route.extend({\n activate() {\n assert.ok(false, 'NorkRoute was not entered');\n }\n\n }));\n this.add('route:about', _routing.Route.extend({\n activate() {\n assert.ok(false, 'AboutRoute was not entered');\n }\n\n }));\n let deprecation = /You attempted to override the \"willTransition\" method which is deprecated\\./;\n return expectDeprecation(() => {\n return this.visit('/').then(() => {\n this.handleURLAborts(assert, '/nork', deprecation);\n this.handleURLAborts(assert, '/about', deprecation);\n });\n }, deprecation);\n }\n\n ['@test Aborting/redirecting the transition in `willTransition` prevents LoadingRoute from being entered'](assert) {\n assert.expect(5);\n this.router.map(function () {\n this.route('index');\n this.route('nork');\n this.route('about');\n });\n let redirect = false;\n this.add('route:index', _routing.Route.extend({\n actions: {\n willTransition(transition) {\n assert.ok(true, 'willTransition was called');\n\n if (redirect) {\n // router.js won't refire `willTransition` for this redirect\n this.transitionTo('about');\n } else {\n transition.abort();\n }\n }\n\n }\n }));\n let deferred = null;\n this.add('route:loading', _routing.Route.extend({\n activate() {\n assert.ok(deferred, 'LoadingRoute should be entered at this time');\n },\n\n deactivate() {\n assert.ok(true, 'LoadingRoute was exited');\n }\n\n }));\n this.add('route:nork', _routing.Route.extend({\n activate() {\n assert.ok(true, 'NorkRoute was entered');\n }\n\n }));\n this.add('route:about', _routing.Route.extend({\n activate() {\n assert.ok(true, 'AboutRoute was entered');\n },\n\n model() {\n if (deferred) {\n return deferred.promise;\n }\n }\n\n }));\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main'); // Attempted transitions out of index should abort.\n\n (0, _runloop.run)(router, 'transitionTo', 'nork');\n (0, _runloop.run)(router, 'handleURL', '/nork'); // Attempted transitions out of index should redirect to about\n\n redirect = true;\n (0, _runloop.run)(router, 'transitionTo', 'nork');\n (0, _runloop.run)(router, 'transitionTo', 'index'); // Redirected transitions out of index to a route with a\n // promise model should pause the transition and\n // activate LoadingRoute\n\n deferred = _rsvp.default.defer();\n (0, _runloop.run)(router, 'transitionTo', 'nork');\n (0, _runloop.run)(deferred.resolve);\n });\n }\n\n ['@test `didTransition` event fires on the router'](assert) {\n assert.expect(3);\n this.router.map(function () {\n this.route('nork');\n });\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n router.one('didTransition', function () {\n assert.ok(true, 'didTransition fired on initial routing');\n });\n this.visit('/');\n }).then(() => {\n let router = this.applicationInstance.lookup('router:main');\n router.one('didTransition', function () {\n assert.ok(true, 'didTransition fired on the router');\n assert.equal(router.get('url'), '/nork', 'The url property is updated by the time didTransition fires');\n });\n return this.visit('/nork');\n });\n }\n\n ['@test `activate` event fires on the route'](assert) {\n assert.expect(2);\n let eventFired = 0;\n this.router.map(function () {\n this.route('nork');\n });\n this.add('route:nork', _routing.Route.extend({\n init() {\n this._super(...arguments);\n\n this.on('activate', function () {\n assert.equal(++eventFired, 1, 'activate event is fired once');\n });\n },\n\n activate() {\n assert.ok(true, 'activate hook is called');\n }\n\n }));\n return this.visit('/nork');\n }\n\n ['@test `deactivate` event fires on the route'](assert) {\n assert.expect(2);\n let eventFired = 0;\n this.router.map(function () {\n this.route('nork');\n this.route('dork');\n });\n this.add('route:nork', _routing.Route.extend({\n init() {\n this._super(...arguments);\n\n this.on('deactivate', function () {\n assert.equal(++eventFired, 1, 'deactivate event is fired once');\n });\n },\n\n deactivate() {\n assert.ok(true, 'deactivate hook is called');\n }\n\n }));\n return this.visit('/nork').then(() => this.visit('/dork'));\n }\n\n ['@test Actions can be handled by inherited action handlers'](assert) {\n assert.expect(4);\n\n let SuperRoute = _routing.Route.extend({\n actions: {\n foo() {\n assert.ok(true, 'foo');\n },\n\n bar(msg) {\n assert.equal(msg, 'HELLO');\n }\n\n }\n });\n\n let RouteMixin = _metal.Mixin.create({\n actions: {\n bar(msg) {\n assert.equal(msg, 'HELLO');\n\n this._super(msg);\n }\n\n }\n });\n\n this.add('route:home', SuperRoute.extend(RouteMixin, {\n actions: {\n baz() {\n assert.ok(true, 'baz');\n }\n\n }\n }));\n this.addTemplate('home', \"\\n Do foo \\n Do bar with arg \\n Do bar \\n \");\n return this.visit('/').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n rootElement.querySelector('.do-foo').click();\n rootElement.querySelector('.do-bar-with-arg').click();\n rootElement.querySelector('.do-baz').click();\n });\n }\n\n ['@test transitionTo returns Transition when passed a route name'](assert) {\n assert.expect(1);\n this.router.map(function () {\n this.route('root', {\n path: '/'\n });\n this.route('bar');\n });\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n let transition = (0, _runloop.run)(() => router.transitionTo('bar'));\n assert.equal(transition instanceof _router_js.InternalTransition, true);\n });\n }\n\n ['@test transitionTo returns Transition when passed a url'](assert) {\n assert.expect(1);\n this.router.map(function () {\n this.route('root', {\n path: '/'\n });\n this.route('bar', function () {\n this.route('baz');\n });\n });\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n let transition = (0, _runloop.run)(() => router.transitionTo('/bar/baz'));\n assert.equal(transition instanceof _router_js.InternalTransition, true);\n });\n }\n\n ['@test currentRouteName is a property installed on ApplicationController that can be used in transitionTo'](assert) {\n assert.expect(36);\n this.router.map(function () {\n this.route('index', {\n path: '/'\n });\n this.route('be', function () {\n this.route('excellent', {\n resetNamespace: true\n }, function () {\n this.route('to', {\n resetNamespace: true\n }, function () {\n this.route('each', {\n resetNamespace: true\n }, function () {\n this.route('other');\n });\n });\n });\n });\n });\n return this.visit('/').then(() => {\n let appController = this.applicationInstance.lookup('controller:application');\n let router = this.applicationInstance.lookup('router:main');\n\n function transitionAndCheck(path, expectedPath, expectedRouteName) {\n if (path) {\n (0, _runloop.run)(router, 'transitionTo', path);\n }\n\n expectDeprecation(() => {\n assert.equal(appController.get('currentPath'), expectedPath);\n assert.equal(appController.get('currentRouteName'), expectedRouteName);\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n }\n\n transitionAndCheck(null, 'index', 'index');\n transitionAndCheck('/be', 'be.index', 'be.index');\n transitionAndCheck('/be/excellent', 'be.excellent.index', 'excellent.index');\n transitionAndCheck('/be/excellent/to', 'be.excellent.to.index', 'to.index');\n transitionAndCheck('/be/excellent/to/each', 'be.excellent.to.each.index', 'each.index');\n transitionAndCheck('/be/excellent/to/each/other', 'be.excellent.to.each.other', 'each.other');\n transitionAndCheck('index', 'index', 'index');\n transitionAndCheck('be', 'be.index', 'be.index');\n transitionAndCheck('excellent', 'be.excellent.index', 'excellent.index');\n transitionAndCheck('to.index', 'be.excellent.to.index', 'to.index');\n transitionAndCheck('each', 'be.excellent.to.each.index', 'each.index');\n transitionAndCheck('each.other', 'be.excellent.to.each.other', 'each.other');\n });\n }\n\n ['@test Route model hook finds the same model as a manual find'](assert) {\n let post;\n\n let Post = _runtime.Object.extend();\n\n this.add('model:post', Post);\n Post.reopenClass({\n find() {\n post = this;\n return {};\n }\n\n });\n this.router.map(function () {\n this.route('post', {\n path: '/post/:post_id'\n });\n });\n return this.visit('/post/1').then(() => {\n assert.equal(Post, post);\n });\n }\n\n ['@test Routes can refresh themselves causing their model hooks to be re-run'](assert) {\n this.router.map(function () {\n this.route('parent', {\n path: '/parent/:parent_id'\n }, function () {\n this.route('child');\n });\n });\n let appcount = 0;\n this.add('route:application', _routing.Route.extend({\n model() {\n ++appcount;\n }\n\n }));\n let parentcount = 0;\n this.add('route:parent', _routing.Route.extend({\n model(params) {\n assert.equal(params.parent_id, '123');\n ++parentcount;\n },\n\n actions: {\n refreshParent() {\n this.refresh();\n }\n\n }\n }));\n let childcount = 0;\n this.add('route:parent.child', _routing.Route.extend({\n model() {\n ++childcount;\n }\n\n }));\n let router;\n return this.visit('/').then(() => {\n router = this.applicationInstance.lookup('router:main');\n assert.equal(appcount, 1);\n assert.equal(parentcount, 0);\n assert.equal(childcount, 0);\n return (0, _runloop.run)(router, 'transitionTo', 'parent.child', '123');\n }).then(() => {\n assert.equal(appcount, 1);\n assert.equal(parentcount, 1);\n assert.equal(childcount, 1);\n return (0, _runloop.run)(router, 'send', 'refreshParent');\n }).then(() => {\n assert.equal(appcount, 1);\n assert.equal(parentcount, 2);\n assert.equal(childcount, 2);\n });\n }\n\n ['@test Specifying non-existent controller name in route#render throws'](assert) {\n assert.expect(1);\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n this.add('route:home', _routing.Route.extend({\n renderTemplate() {\n expectAssertion(() => {\n this.render('homepage', {\n controller: 'stefanpenneristhemanforme'\n });\n }, \"You passed `controller: 'stefanpenneristhemanforme'` into the `render` method, but no such controller could be found.\");\n }\n\n }));\n return this.visit('/');\n }\n\n [\"@test Redirecting with null model doesn't error out\"](assert) {\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n this.route('about', {\n path: '/about/:hurhurhur'\n });\n });\n this.add('route:about', _routing.Route.extend({\n serialize: function (model) {\n if (model === null) {\n return {\n hurhurhur: 'TreeklesMcGeekles'\n };\n }\n }\n }));\n this.add('route:home', _routing.Route.extend({\n beforeModel() {\n this.transitionTo('about', null);\n }\n\n }));\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n assert.equal(router.get('location.path'), '/about/TreeklesMcGeekles');\n });\n }\n\n ['@test rejecting the model hooks promise with a non-error prints the `message` property'](assert) {\n assert.expect(5);\n let rejectedMessage = 'OMG!! SOOOOOO BAD!!!!';\n let rejectedStack = 'Yeah, buddy: stack gets printed too.';\n this.router.map(function () {\n this.route('yippie', {\n path: '/'\n });\n });\n\n console.error = function (initialMessage, errorMessage, errorStack) {\n assert.equal(initialMessage, 'Error while processing route: yippie', 'a message with the current route name is printed');\n assert.equal(errorMessage, rejectedMessage, \"the rejected reason's message property is logged\");\n assert.equal(errorStack, rejectedStack, \"the rejected reason's stack property is logged\");\n };\n\n this.add('route:yippie', _routing.Route.extend({\n model() {\n return _rsvp.default.reject({\n message: rejectedMessage,\n stack: rejectedStack\n });\n }\n\n }));\n return assert.throws(() => {\n return this.visit('/');\n }, function (err) {\n assert.equal(err.message, rejectedMessage);\n return true;\n }, 'expected an exception');\n }\n\n ['@test rejecting the model hooks promise with an error with `errorThrown` property prints `errorThrown.message` property'](assert) {\n assert.expect(5);\n let rejectedMessage = 'OMG!! SOOOOOO BAD!!!!';\n let rejectedStack = 'Yeah, buddy: stack gets printed too.';\n this.router.map(function () {\n this.route('yippie', {\n path: '/'\n });\n });\n\n console.error = function (initialMessage, errorMessage, errorStack) {\n assert.equal(initialMessage, 'Error while processing route: yippie', 'a message with the current route name is printed');\n assert.equal(errorMessage, rejectedMessage, \"the rejected reason's message property is logged\");\n assert.equal(errorStack, rejectedStack, \"the rejected reason's stack property is logged\");\n };\n\n this.add('route:yippie', _routing.Route.extend({\n model() {\n return _rsvp.default.reject({\n errorThrown: {\n message: rejectedMessage,\n stack: rejectedStack\n }\n });\n }\n\n }));\n assert.throws(() => this.visit('/'), function (err) {\n assert.equal(err.message, rejectedMessage);\n return true;\n }, 'expected an exception');\n }\n\n ['@test rejecting the model hooks promise with no reason still logs error'](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.route('wowzers', {\n path: '/'\n });\n });\n\n console.error = function (initialMessage) {\n assert.equal(initialMessage, 'Error while processing route: wowzers', 'a message with the current route name is printed');\n };\n\n this.add('route:wowzers', _routing.Route.extend({\n model() {\n return _rsvp.default.reject();\n }\n\n }));\n return assert.throws(() => this.visit('/'));\n }\n\n ['@test rejecting the model hooks promise with a string shows a good error'](assert) {\n assert.expect(3);\n let rejectedMessage = 'Supercalifragilisticexpialidocious';\n this.router.map(function () {\n this.route('yondo', {\n path: '/'\n });\n });\n\n console.error = function (initialMessage, errorMessage) {\n assert.equal(initialMessage, 'Error while processing route: yondo', 'a message with the current route name is printed');\n assert.equal(errorMessage, rejectedMessage, \"the rejected reason's message property is logged\");\n };\n\n this.add('route:yondo', _routing.Route.extend({\n model() {\n return _rsvp.default.reject(rejectedMessage);\n }\n\n }));\n assert.throws(() => this.visit('/'), new RegExp(rejectedMessage), 'expected an exception');\n }\n\n [\"@test willLeave, willChangeContext, willChangeModel actions don't fire unless feature flag enabled\"](assert) {\n assert.expect(1);\n this.router.map(function () {\n this.route('about');\n });\n\n function shouldNotFire() {\n assert.ok(false, \"this action shouldn't have been received\");\n }\n\n this.add('route:index', _routing.Route.extend({\n actions: {\n willChangeModel: shouldNotFire,\n willChangeContext: shouldNotFire,\n willLeave: shouldNotFire\n }\n }));\n this.add('route:about', _routing.Route.extend({\n setupController() {\n assert.ok(true, 'about route was entered');\n }\n\n }));\n return this.visit('/about');\n }\n\n ['@test Errors in transitionTo within redirect hook are logged'](assert) {\n assert.expect(4);\n let actual = [];\n this.router.map(function () {\n this.route('yondo', {\n path: '/'\n });\n this.route('stink-bomb');\n });\n this.add('route:yondo', _routing.Route.extend({\n redirect() {\n this.transitionTo('stink-bomb', {\n something: 'goes boom'\n });\n }\n\n }));\n\n console.error = function () {\n // push the arguments onto an array so we can detect if the error gets logged twice\n actual.push(arguments);\n };\n\n assert.throws(() => this.visit('/'), /More context objects were passed/);\n assert.equal(actual.length, 1, 'the error is only logged once');\n assert.equal(actual[0][0], 'Error while processing route: yondo', 'source route is printed');\n assert.ok(actual[0][1].match(/More context objects were passed than there are dynamic segments for the route: stink-bomb/), 'the error is printed');\n }\n\n ['@test Errors in transition show error template if available'](assert) {\n this.addTemplate('error', \"Error!
\");\n this.router.map(function () {\n this.route('yondo', {\n path: '/'\n });\n this.route('stink-bomb');\n });\n this.add('route:yondo', _routing.Route.extend({\n redirect() {\n this.transitionTo('stink-bomb', {\n something: 'goes boom'\n });\n }\n\n }));\n\n console.error = () => {};\n\n return this.visit('/').then(() => {\n let rootElement = document.querySelector('#qunit-fixture');\n assert.equal(rootElement.querySelectorAll('#error').length, 1, 'Error template was rendered.');\n });\n }\n\n ['@test Route#resetController gets fired when changing models and exiting routes'](assert) {\n assert.expect(4);\n this.router.map(function () {\n this.route('a', function () {\n this.route('b', {\n path: '/b/:id',\n resetNamespace: true\n }, function () {});\n this.route('c', {\n path: '/c/:id',\n resetNamespace: true\n }, function () {});\n });\n this.route('out');\n });\n let calls = [];\n\n let SpyRoute = _routing.Route.extend({\n setupController()\n /* controller, model, transition */\n {\n calls.push(['setup', this.routeName]);\n },\n\n resetController()\n /* controller */\n {\n calls.push(['reset', this.routeName]);\n }\n\n });\n\n this.add('route:a', SpyRoute.extend());\n this.add('route:b', SpyRoute.extend());\n this.add('route:c', SpyRoute.extend());\n this.add('route:out', SpyRoute.extend());\n let router;\n return this.visit('/').then(() => {\n router = this.applicationInstance.lookup('router:main');\n assert.deepEqual(calls, []);\n return (0, _runloop.run)(router, 'transitionTo', 'b', 'b-1');\n }).then(() => {\n assert.deepEqual(calls, [['setup', 'a'], ['setup', 'b']]);\n calls.length = 0;\n return (0, _runloop.run)(router, 'transitionTo', 'c', 'c-1');\n }).then(() => {\n assert.deepEqual(calls, [['reset', 'b'], ['setup', 'c']]);\n calls.length = 0;\n return (0, _runloop.run)(router, 'transitionTo', 'out');\n }).then(() => {\n assert.deepEqual(calls, [['reset', 'c'], ['reset', 'a'], ['setup', 'out']]);\n });\n }\n\n ['@test Exception during initialization of non-initial route is not swallowed'](assert) {\n this.router.map(function () {\n this.route('boom');\n });\n this.add('route:boom', _routing.Route.extend({\n init() {\n throw new Error('boom!');\n }\n\n }));\n return assert.throws(() => this.visit('/boom'), /\\bboom\\b/);\n }\n\n ['@test Exception during initialization of initial route is not swallowed'](assert) {\n this.router.map(function () {\n this.route('boom', {\n path: '/'\n });\n });\n this.add('route:boom', _routing.Route.extend({\n init() {\n throw new Error('boom!');\n }\n\n }));\n return assert.throws(() => this.visit('/'), /\\bboom\\b/);\n }\n\n ['@test {{outlet}} works when created after initial render'](assert) {\n this.addTemplate('sample', 'Hi{{#if showTheThing}}{{outlet}}{{/if}}Bye');\n this.addTemplate('sample.inner', 'Yay');\n this.addTemplate('sample.inner2', 'Boo');\n this.router.map(function () {\n this.route('sample', {\n path: '/'\n }, function () {\n this.route('inner', {\n path: '/'\n });\n this.route('inner2', {\n path: '/2'\n });\n });\n });\n let rootElement;\n return this.visit('/').then(() => {\n rootElement = document.getElementById('qunit-fixture');\n assert.equal(rootElement.textContent.trim(), 'HiBye', 'initial render');\n (0, _runloop.run)(() => this.applicationInstance.lookup('controller:sample').set('showTheThing', true));\n assert.equal(rootElement.textContent.trim(), 'HiYayBye', 'second render');\n return this.visit('/2');\n }).then(() => {\n assert.equal(rootElement.textContent.trim(), 'HiBooBye', 'third render');\n });\n }\n\n ['@test Can render into a named outlet at the top level'](assert) {\n this.addTemplate('application', 'A-{{outlet}}-B-{{outlet \"other\"}}-C');\n this.addTemplate('modal', 'Hello world');\n this.addTemplate('index', 'The index');\n this.router.map(function () {\n this.route('index', {\n path: '/'\n });\n });\n this.add('route:application', _routing.Route.extend({\n renderTemplate() {\n this.render();\n this.render('modal', {\n into: 'application',\n outlet: 'other'\n });\n }\n\n }));\n return this.visit('/').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal(rootElement.textContent.trim(), 'A-The index-B-Hello world-C', 'initial render');\n });\n }\n\n ['@test Can disconnect a named outlet at the top level'](assert) {\n this.addTemplate('application', 'A-{{outlet}}-B-{{outlet \"other\"}}-C');\n this.addTemplate('modal', 'Hello world');\n this.addTemplate('index', 'The index');\n this.router.map(function () {\n this.route('index', {\n path: '/'\n });\n });\n this.add('route:application', _routing.Route.extend({\n renderTemplate() {\n this.render();\n this.render('modal', {\n into: 'application',\n outlet: 'other'\n });\n },\n\n actions: {\n banish() {\n this.disconnectOutlet({\n parentView: 'application',\n outlet: 'other'\n });\n }\n\n }\n }));\n return this.visit('/').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal(rootElement.textContent.trim(), 'A-The index-B-Hello world-C', 'initial render');\n (0, _runloop.run)(this.applicationInstance.lookup('router:main'), 'send', 'banish');\n assert.equal(rootElement.textContent.trim(), 'A-The index-B--C', 'second render');\n });\n }\n\n ['@test Can render into a named outlet at the top level, with empty main outlet'](assert) {\n this.addTemplate('application', 'A-{{outlet}}-B-{{outlet \"other\"}}-C');\n this.addTemplate('modal', 'Hello world');\n this.router.map(function () {\n this.route('hasNoTemplate', {\n path: '/'\n });\n });\n this.add('route:application', _routing.Route.extend({\n renderTemplate() {\n this.render();\n this.render('modal', {\n into: 'application',\n outlet: 'other'\n });\n }\n\n }));\n return this.visit('/').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal(rootElement.textContent.trim(), 'A--B-Hello world-C', 'initial render');\n });\n }\n\n ['@test Can render into a named outlet at the top level, later'](assert) {\n this.addTemplate('application', 'A-{{outlet}}-B-{{outlet \"other\"}}-C');\n this.addTemplate('modal', 'Hello world');\n this.addTemplate('index', 'The index');\n this.router.map(function () {\n this.route('index', {\n path: '/'\n });\n });\n this.add('route:application', _routing.Route.extend({\n actions: {\n launch() {\n this.render('modal', {\n into: 'application',\n outlet: 'other'\n });\n }\n\n }\n }));\n return this.visit('/').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal(rootElement.textContent.trim(), 'A-The index-B--C', 'initial render');\n (0, _runloop.run)(this.applicationInstance.lookup('router:main'), 'send', 'launch');\n assert.equal(rootElement.textContent.trim(), 'A-The index-B-Hello world-C', 'second render');\n });\n }\n\n [\"@test Can render routes with no 'main' outlet and their children\"](assert) {\n this.addTemplate('application', '{{outlet \"app\"}}
');\n this.addTemplate('app', '{{outlet \"common\"}}
{{outlet \"sub\"}}
');\n this.addTemplate('common', '
');\n this.addTemplate('sub', '
');\n this.router.map(function () {\n this.route('app', {\n path: '/app'\n }, function () {\n this.route('sub', {\n path: '/sub',\n resetNamespace: true\n });\n });\n });\n this.add('route:app', _routing.Route.extend({\n renderTemplate() {\n this.render('app', {\n outlet: 'app',\n into: 'application'\n });\n this.render('common', {\n outlet: 'common',\n into: 'app'\n });\n }\n\n }));\n this.add('route:sub', _routing.Route.extend({\n renderTemplate() {\n this.render('sub', {\n outlet: 'sub',\n into: 'app'\n });\n }\n\n }));\n let rootElement;\n return this.visit('/app').then(() => {\n rootElement = document.getElementById('qunit-fixture');\n assert.equal(rootElement.querySelectorAll('#app-common #common').length, 1, 'Finds common while viewing /app');\n return this.visit('/app/sub');\n }).then(() => {\n assert.equal(rootElement.querySelectorAll('#app-common #common').length, 1, 'Finds common while viewing /app/sub');\n assert.equal(rootElement.querySelectorAll('#app-sub #sub').length, 1, 'Finds sub while viewing /app/sub');\n });\n }\n\n ['@test Tolerates stacked renders'](assert) {\n this.addTemplate('application', '{{outlet}}{{outlet \"modal\"}}');\n this.addTemplate('index', 'hi');\n this.addTemplate('layer', 'layer');\n this.router.map(function () {\n this.route('index', {\n path: '/'\n });\n });\n this.add('route:application', _routing.Route.extend({\n actions: {\n openLayer() {\n this.render('layer', {\n into: 'application',\n outlet: 'modal'\n });\n },\n\n close() {\n this.disconnectOutlet({\n outlet: 'modal',\n parentView: 'application'\n });\n }\n\n }\n }));\n return this.visit('/').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n let router = this.applicationInstance.lookup('router:main');\n assert.equal(rootElement.textContent.trim(), 'hi');\n (0, _runloop.run)(router, 'send', 'openLayer');\n assert.equal(rootElement.textContent.trim(), 'hilayer');\n (0, _runloop.run)(router, 'send', 'openLayer');\n assert.equal(rootElement.textContent.trim(), 'hilayer');\n (0, _runloop.run)(router, 'send', 'close');\n assert.equal(rootElement.textContent.trim(), 'hi');\n });\n }\n\n ['@test Renders child into parent with non-default template name'](assert) {\n this.addTemplate('application', '{{outlet}}
');\n this.addTemplate('exports.root', '{{outlet}}
');\n this.addTemplate('exports.index', '
');\n this.router.map(function () {\n this.route('root', function () {});\n });\n this.add('route:root', _routing.Route.extend({\n renderTemplate() {\n this.render('exports/root');\n }\n\n }));\n this.add('route:root.index', _routing.Route.extend({\n renderTemplate() {\n this.render('exports/index');\n }\n\n }));\n return this.visit('/root').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n assert.equal(rootElement.querySelectorAll('.a .b .c').length, 1);\n });\n }\n\n [\"@test Allows any route to disconnectOutlet another route's templates\"](assert) {\n this.addTemplate('application', '{{outlet}}{{outlet \"modal\"}}');\n this.addTemplate('index', 'hi');\n this.addTemplate('layer', 'layer');\n this.router.map(function () {\n this.route('index', {\n path: '/'\n });\n });\n this.add('route:application', _routing.Route.extend({\n actions: {\n openLayer() {\n this.render('layer', {\n into: 'application',\n outlet: 'modal'\n });\n }\n\n }\n }));\n this.add('route:index', _routing.Route.extend({\n actions: {\n close() {\n this.disconnectOutlet({\n parentView: 'application',\n outlet: 'modal'\n });\n }\n\n }\n }));\n return this.visit('/').then(() => {\n let rootElement = document.getElementById('qunit-fixture');\n let router = this.applicationInstance.lookup('router:main');\n assert.equal(rootElement.textContent.trim(), 'hi');\n (0, _runloop.run)(router, 'send', 'openLayer');\n assert.equal(rootElement.textContent.trim(), 'hilayer');\n (0, _runloop.run)(router, 'send', 'close');\n assert.equal(rootElement.textContent.trim(), 'hi');\n });\n }\n\n ['@test Components inside an outlet have their didInsertElement hook invoked when the route is displayed'](assert) {\n this.addTemplate('index', '{{#if showFirst}}{{my-component}}{{else}}{{other-component}}{{/if}}');\n let myComponentCounter = 0;\n let otherComponentCounter = 0;\n let indexController;\n this.router.map(function () {\n this.route('index', {\n path: '/'\n });\n });\n this.add('controller:index', _controller.default.extend({\n showFirst: true\n }));\n this.add('route:index', _routing.Route.extend({\n setupController(controller) {\n indexController = controller;\n }\n\n }));\n this.add('component:my-component', _glimmer.Component.extend({\n didInsertElement() {\n myComponentCounter++;\n }\n\n }));\n this.add('component:other-component', _glimmer.Component.extend({\n didInsertElement() {\n otherComponentCounter++;\n }\n\n }));\n return this.visit('/').then(() => {\n assert.strictEqual(myComponentCounter, 1, 'didInsertElement invoked on displayed component');\n assert.strictEqual(otherComponentCounter, 0, 'didInsertElement not invoked on displayed component');\n (0, _runloop.run)(() => indexController.set('showFirst', false));\n assert.strictEqual(myComponentCounter, 1, 'didInsertElement not invoked on displayed component');\n assert.strictEqual(otherComponentCounter, 1, 'didInsertElement invoked on displayed component');\n });\n }\n\n ['@test Doesnt swallow exception thrown from willTransition'](assert) {\n assert.expect(1);\n this.addTemplate('application', '{{outlet}}');\n this.addTemplate('index', 'index');\n this.addTemplate('other', 'other');\n this.router.map(function () {\n this.route('index', {\n path: '/'\n });\n this.route('other', function () {});\n });\n this.add('route:index', _routing.Route.extend({\n actions: {\n willTransition() {\n throw new Error('boom');\n }\n\n }\n }));\n return this.visit('/').then(() => {\n return assert.throws(() => {\n return this.visit('/other');\n }, /boom/, 'expected an exception but none was thrown');\n });\n }\n\n ['@test Exception if outlet name is undefined in render and disconnectOutlet']() {\n this.add('route:application', _routing.Route.extend({\n actions: {\n showModal() {\n this.render({\n outlet: undefined,\n parentView: 'application'\n });\n },\n\n hideModal() {\n this.disconnectOutlet({\n outlet: undefined,\n parentView: 'application'\n });\n }\n\n }\n }));\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n expectAssertion(() => {\n (0, _runloop.run)(() => router.send('showModal'));\n }, /You passed undefined as the outlet name/);\n expectAssertion(() => {\n (0, _runloop.run)(() => router.send('hideModal'));\n }, /You passed undefined as the outlet name/);\n });\n }\n\n ['@test Route serializers work for Engines'](assert) {\n assert.expect(2); // Register engine\n\n let BlogEngine = _engine.default.extend();\n\n this.add('engine:blog', BlogEngine); // Register engine route map\n\n let postSerialize = function (params) {\n assert.ok(true, 'serialize hook runs');\n return {\n post_id: params.id\n };\n };\n\n let BlogMap = function () {\n this.route('post', {\n path: '/post/:post_id',\n serialize: postSerialize\n });\n };\n\n this.add('route-map:blog', BlogMap);\n this.router.map(function () {\n this.mount('blog');\n });\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n assert.equal(router._routerMicrolib.generate('blog.post', {\n id: '13'\n }), '/blog/post/13', 'url is generated properly');\n });\n }\n\n ['@test Defining a Route#serialize method in an Engine throws an error'](assert) {\n assert.expect(1); // Register engine\n\n let BlogEngine = _engine.default.extend();\n\n this.add('engine:blog', BlogEngine); // Register engine route map\n\n let BlogMap = function () {\n this.route('post');\n };\n\n this.add('route-map:blog', BlogMap);\n this.router.map(function () {\n this.mount('blog');\n });\n return this.visit('/').then(() => {\n let router = this.applicationInstance.lookup('router:main');\n\n let PostRoute = _routing.Route.extend({\n serialize() {}\n\n });\n\n this.applicationInstance.lookup('engine:blog').register('route:post', PostRoute);\n assert.throws(() => router.transitionTo('blog.post'), /Defining a custom serialize method on an Engine route is not supported/);\n });\n }\n\n ['@test App.destroy does not leave undestroyed views after clearing engines'](assert) {\n assert.expect(4);\n let engineInstance; // Register engine\n\n let BlogEngine = _engine.default.extend();\n\n this.add('engine:blog', BlogEngine);\n\n let EngineIndexRoute = _routing.Route.extend({\n init() {\n this._super(...arguments);\n\n engineInstance = (0, _owner.getOwner)(this);\n }\n\n }); // Register engine route map\n\n\n let BlogMap = function () {\n this.route('post');\n };\n\n this.add('route-map:blog', BlogMap);\n this.router.map(function () {\n this.mount('blog');\n });\n return this.visit('/').then(() => {\n let engine = this.applicationInstance.lookup('engine:blog');\n engine.register('route:index', EngineIndexRoute);\n engine.register('template:index', (0, _emberTemplateCompiler.compile)('Engine Post!'));\n return this.visit('/blog');\n }).then(() => {\n assert.ok(true, '/blog has been handled');\n let route = engineInstance.lookup('route:index');\n let router = this.applicationInstance.lookup('router:main');\n (0, _runloop.run)(router, 'destroy');\n assert.equal(router._toplevelView, null, 'the toplevelView was cleared');\n (0, _runloop.run)(route, 'destroy');\n assert.equal(router._toplevelView, null, 'the toplevelView was not reinitialized');\n (0, _runloop.run)(this.applicationInstance, 'destroy');\n assert.equal(router._toplevelView, null, 'the toplevelView was not reinitialized');\n });\n }\n\n [\"@test Generated route should be an instance of App's default route if provided\"](assert) {\n let generatedRoute;\n this.router.map(function () {\n this.route('posts');\n });\n\n let AppRoute = _routing.Route.extend();\n\n this.add('route:basic', AppRoute);\n return this.visit('/posts').then(() => {\n generatedRoute = this.applicationInstance.lookup('route:posts');\n assert.ok(generatedRoute instanceof AppRoute, 'should extend the correct route');\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/query_params_test\", [\"@ember/controller\", \"@ember/string\", \"@ember/-internals/runtime\", \"@ember/runloop\", \"@ember/-internals/meta\", \"@ember/-internals/metal\", \"@ember/-internals/routing\", \"router_js\", \"internal-test-helpers\"], function (_controller, _string, _runtime, _runloop, _meta, _metal, _routing, _router_js, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Query Params - main', class extends _internalTestHelpers.QueryParamTestCase {\n refreshModelWhileLoadingTest(loadingReturn) {\n let assert = this.assert;\n assert.expect(9);\n let appModelCount = 0;\n let promiseResolve;\n this.add('route:application', _routing.Route.extend({\n queryParams: {\n appomg: {\n defaultValue: 'applol'\n }\n },\n\n model()\n /* params */\n {\n appModelCount++;\n }\n\n }));\n this.setSingleQPController('index', 'omg', undefined, {\n omg: undefined\n });\n let actionName = typeof loadingReturn !== 'undefined' ? 'loading' : 'ignore';\n let indexModelCount = 0;\n this.add('route:index', _routing.Route.extend({\n queryParams: {\n omg: {\n refreshModel: true\n }\n },\n actions: {\n [actionName]: function () {\n return loadingReturn;\n }\n },\n\n model(params) {\n indexModelCount++;\n\n if (indexModelCount === 2) {\n assert.deepEqual(params, {\n omg: 'lex'\n });\n return new _runtime.RSVP.Promise(function (resolve) {\n promiseResolve = resolve;\n return;\n });\n } else if (indexModelCount === 3) {\n assert.deepEqual(params, {\n omg: 'hello'\n }, \"Model hook reruns even if the previous one didn't finish\");\n }\n }\n\n }));\n return this.visit('/').then(() => {\n assert.equal(appModelCount, 1, 'appModelCount is 1');\n assert.equal(indexModelCount, 1);\n let indexController = this.getController('index');\n this.setAndFlush(indexController, 'omg', 'lex');\n assert.equal(appModelCount, 1, 'appModelCount is 1');\n assert.equal(indexModelCount, 2);\n this.setAndFlush(indexController, 'omg', 'hello');\n assert.equal(appModelCount, 1, 'appModelCount is 1');\n assert.equal(indexModelCount, 3);\n (0, _runloop.run)(function () {\n promiseResolve();\n });\n assert.equal((0, _metal.get)(indexController, 'omg'), 'hello', 'At the end last value prevails');\n });\n }\n\n [\"@test No replaceURL occurs on startup because default values don't show up in URL\"](assert) {\n assert.expect(1);\n this.setSingleQPController('index');\n return this.visitAndAssert('/');\n }\n\n ['@test Calling transitionTo does not lose query params already on the activeTransition'](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.route('parent', function () {\n this.route('child');\n this.route('sibling');\n });\n });\n this.add('route:parent.child', _routing.Route.extend({\n afterModel() {\n this.transitionTo('parent.sibling');\n }\n\n }));\n this.setSingleQPController('parent');\n return this.visit('/parent/child?foo=lol').then(() => {\n this.assertCurrentPath('/parent/sibling?foo=lol', 'redirected to the sibling route, instead of child route');\n assert.equal(this.getController('parent').get('foo'), 'lol', 'controller has value from the active transition');\n });\n }\n\n ['@test Single query params can be set on the controller and reflected in the url'](assert) {\n assert.expect(3);\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n this.setSingleQPController('home');\n return this.visitAndAssert('/').then(() => {\n let controller = this.getController('home');\n this.setAndFlush(controller, 'foo', '456');\n this.assertCurrentPath('/?foo=456');\n this.setAndFlush(controller, 'foo', '987');\n this.assertCurrentPath('/?foo=987');\n });\n }\n\n ['@test Query params can map to different url keys configured on the controller'](assert) {\n assert.expect(6);\n this.add('controller:index', _controller.default.extend({\n queryParams: [{\n foo: 'other_foo',\n bar: {\n as: 'other_bar'\n }\n }],\n foo: 'FOO',\n bar: 'BAR'\n }));\n return this.visitAndAssert('/').then(() => {\n let controller = this.getController('index');\n this.setAndFlush(controller, 'foo', 'LEX');\n this.assertCurrentPath('/?other_foo=LEX', \"QP mapped correctly without 'as'\");\n this.setAndFlush(controller, 'foo', 'WOO');\n this.assertCurrentPath('/?other_foo=WOO', \"QP updated correctly without 'as'\");\n this.transitionTo('/?other_foo=NAW');\n assert.equal(controller.get('foo'), 'NAW', 'QP managed correctly on URL transition');\n this.setAndFlush(controller, 'bar', 'NERK');\n this.assertCurrentPath('/?other_bar=NERK&other_foo=NAW', \"QP mapped correctly with 'as'\");\n this.setAndFlush(controller, 'bar', 'NUKE');\n this.assertCurrentPath('/?other_bar=NUKE&other_foo=NAW', \"QP updated correctly with 'as'\");\n });\n }\n\n ['@test Routes have a private overridable serializeQueryParamKey hook'](assert) {\n assert.expect(2);\n this.add('route:index', _routing.Route.extend({\n serializeQueryParamKey: _string.dasherize\n }));\n this.setSingleQPController('index', 'funTimes', '');\n return this.visitAndAssert('/').then(() => {\n let controller = this.getController('index');\n this.setAndFlush(controller, 'funTimes', 'woot');\n this.assertCurrentPath('/?fun-times=woot');\n });\n }\n\n ['@test Can override inherited QP behavior by specifying queryParams as a computed property'](assert) {\n assert.expect(3);\n this.setSingleQPController('index', 'a', 0, {\n queryParams: (0, _metal.computed)(function () {\n return ['c'];\n }),\n c: true\n });\n return this.visitAndAssert('/').then(() => {\n let indexController = this.getController('index');\n this.setAndFlush(indexController, 'a', 1);\n this.assertCurrentPath('/', 'QP did not update due to being overriden');\n this.setAndFlush(indexController, 'c', false);\n this.assertCurrentPath('/?c=false', 'QP updated with overridden param');\n });\n }\n\n ['@test Can concatenate inherited QP behavior by specifying queryParams as an array'](assert) {\n assert.expect(3);\n this.setSingleQPController('index', 'a', 0, {\n queryParams: ['c'],\n c: true\n });\n return this.visitAndAssert('/').then(() => {\n let indexController = this.getController('index');\n this.setAndFlush(indexController, 'a', 1);\n this.assertCurrentPath('/?a=1', 'Inherited QP did update');\n this.setAndFlush(indexController, 'c', false);\n this.assertCurrentPath('/?a=1&c=false', 'New QP did update');\n });\n }\n\n ['@test model hooks receives query params'](assert) {\n assert.expect(2);\n this.setSingleQPController('index');\n this.add('route:index', _routing.Route.extend({\n model(params) {\n assert.deepEqual(params, {\n foo: 'bar'\n });\n }\n\n }));\n return this.visitAndAssert('/');\n }\n\n ['@test model hooks receives query params with dynamic segment params'](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.route('index', {\n path: '/:id'\n });\n });\n this.setSingleQPController('index');\n this.add('route:index', _routing.Route.extend({\n model(params) {\n assert.deepEqual(params, {\n foo: 'bar',\n id: 'baz'\n });\n }\n\n }));\n return this.visitAndAssert('/baz');\n }\n\n ['@test model hooks receives query params (overridden by incoming url value)'](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.route('index', {\n path: '/:id'\n });\n });\n this.setSingleQPController('index');\n this.add('route:index', _routing.Route.extend({\n model(params) {\n assert.deepEqual(params, {\n foo: 'baz',\n id: 'boo'\n });\n }\n\n }));\n return this.visitAndAssert('/boo?foo=baz');\n }\n\n ['@test error is thrown if dynamic segment and query param have same name'](assert) {\n assert.expect(1);\n this.router.map(function () {\n this.route('index', {\n path: '/:foo'\n });\n });\n this.setSingleQPController('index');\n expectAssertion(() => {\n this.visitAndAssert('/boo?foo=baz');\n }, \"The route 'index' has both a dynamic segment and query param with name 'foo'. Please rename one to avoid collisions.\");\n }\n\n ['@test query params have been set by the time setupController is called'](assert) {\n assert.expect(2);\n this.setSingleQPController('application');\n this.add('route:application', _routing.Route.extend({\n setupController(controller) {\n assert.equal(controller.get('foo'), 'YEAH', \"controller's foo QP property set before setupController called\");\n }\n\n }));\n return this.visitAndAssert('/?foo=YEAH');\n }\n\n ['@test mapped query params have been set by the time setupController is called'](assert) {\n assert.expect(2);\n this.setSingleQPController('application', {\n faz: 'foo'\n });\n this.add('route:application', _routing.Route.extend({\n setupController(controller) {\n assert.equal(controller.get('faz'), 'YEAH', \"controller's foo QP property set before setupController called\");\n }\n\n }));\n return this.visitAndAssert('/?foo=YEAH');\n }\n\n ['@test Route#paramsFor fetches query params with default value'](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.route('index', {\n path: '/:something'\n });\n });\n this.setSingleQPController('index');\n this.add('route:index', _routing.Route.extend({\n model()\n /* params, transition */\n {\n assert.deepEqual(this.paramsFor('index'), {\n something: 'baz',\n foo: 'bar'\n }, 'could retrieve params for index');\n }\n\n }));\n return this.visitAndAssert('/baz');\n }\n\n ['@test Route#paramsFor fetches query params with non-default value'](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.route('index', {\n path: '/:something'\n });\n });\n this.setSingleQPController('index');\n this.add('route:index', _routing.Route.extend({\n model()\n /* params, transition */\n {\n assert.deepEqual(this.paramsFor('index'), {\n something: 'baz',\n foo: 'boo'\n }, 'could retrieve params for index');\n }\n\n }));\n return this.visitAndAssert('/baz?foo=boo');\n }\n\n ['@test Route#paramsFor fetches default falsy query params'](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.route('index', {\n path: '/:something'\n });\n });\n this.setSingleQPController('index', 'foo', false);\n this.add('route:index', _routing.Route.extend({\n model()\n /* params, transition */\n {\n assert.deepEqual(this.paramsFor('index'), {\n something: 'baz',\n foo: false\n }, 'could retrieve params for index');\n }\n\n }));\n return this.visitAndAssert('/baz');\n }\n\n ['@test Route#paramsFor fetches non-default falsy query params'](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.route('index', {\n path: '/:something'\n });\n });\n this.setSingleQPController('index', 'foo', true);\n this.add('route:index', _routing.Route.extend({\n model()\n /* params, transition */\n {\n assert.deepEqual(this.paramsFor('index'), {\n something: 'baz',\n foo: false\n }, 'could retrieve params for index');\n }\n\n }));\n return this.visitAndAssert('/baz?foo=false');\n }\n\n ['@test model hook can query prefix-less application params'](assert) {\n assert.expect(4);\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n this.add('route:application', _routing.Route.extend({\n model(params) {\n assert.deepEqual(params, {\n appomg: 'applol'\n });\n }\n\n }));\n this.add('route:index', _routing.Route.extend({\n model(params) {\n assert.deepEqual(params, {\n omg: 'lol'\n });\n assert.deepEqual(this.paramsFor('application'), {\n appomg: 'applol'\n });\n }\n\n }));\n return this.visitAndAssert('/');\n }\n\n ['@test model hook can query prefix-less application params (overridden by incoming url value)'](assert) {\n assert.expect(4);\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n this.add('route:application', _routing.Route.extend({\n model(params) {\n assert.deepEqual(params, {\n appomg: 'appyes'\n });\n }\n\n }));\n this.add('route:index', _routing.Route.extend({\n model(params) {\n assert.deepEqual(params, {\n omg: 'yes'\n });\n assert.deepEqual(this.paramsFor('application'), {\n appomg: 'appyes'\n });\n }\n\n }));\n return this.visitAndAssert('/?appomg=appyes&omg=yes');\n }\n\n ['@test can opt into full transition by setting refreshModel in route queryParams'](assert) {\n assert.expect(7);\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n let appModelCount = 0;\n this.add('route:application', _routing.Route.extend({\n model()\n /* params, transition */\n {\n appModelCount++;\n }\n\n }));\n let indexModelCount = 0;\n this.add('route:index', _routing.Route.extend({\n queryParams: {\n omg: {\n refreshModel: true\n }\n },\n\n model(params) {\n indexModelCount++;\n\n if (indexModelCount === 1) {\n assert.deepEqual(params, {\n omg: 'lol'\n }, 'params are correct on first pass');\n } else if (indexModelCount === 2) {\n assert.deepEqual(params, {\n omg: 'lex'\n }, 'params are correct on second pass');\n }\n }\n\n }));\n return this.visitAndAssert('/').then(() => {\n assert.equal(appModelCount, 1, 'app model hook ran');\n assert.equal(indexModelCount, 1, 'index model hook ran');\n let indexController = this.getController('index');\n this.setAndFlush(indexController, 'omg', 'lex');\n assert.equal(appModelCount, 1, 'app model hook did not run again');\n assert.equal(indexModelCount, 2, 'index model hook ran again due to refreshModel');\n });\n }\n\n ['@test refreshModel and replace work together'](assert) {\n assert.expect(8);\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n let appModelCount = 0;\n this.add('route:application', _routing.Route.extend({\n model()\n /* params */\n {\n appModelCount++;\n }\n\n }));\n let indexModelCount = 0;\n this.add('route:index', _routing.Route.extend({\n queryParams: {\n omg: {\n refreshModel: true,\n replace: true\n }\n },\n\n model(params) {\n indexModelCount++;\n\n if (indexModelCount === 1) {\n assert.deepEqual(params, {\n omg: 'lol'\n }, 'params are correct on first pass');\n } else if (indexModelCount === 2) {\n assert.deepEqual(params, {\n omg: 'lex'\n }, 'params are correct on second pass');\n }\n }\n\n }));\n return this.visitAndAssert('/').then(() => {\n assert.equal(appModelCount, 1, 'app model hook ran');\n assert.equal(indexModelCount, 1, 'index model hook ran');\n let indexController = this.getController('index');\n this.expectedReplaceURL = '/?omg=lex';\n this.setAndFlush(indexController, 'omg', 'lex');\n assert.equal(appModelCount, 1, 'app model hook did not run again');\n assert.equal(indexModelCount, 2, 'index model hook ran again due to refreshModel');\n });\n }\n\n ['@test multiple QP value changes only cause a single model refresh'](assert) {\n assert.expect(2);\n this.setSingleQPController('index', 'alex', 'lol');\n this.setSingleQPController('index', 'steely', 'lel');\n let refreshCount = 0;\n this.add('route:index', _routing.Route.extend({\n queryParams: {\n alex: {\n refreshModel: true\n },\n steely: {\n refreshModel: true\n }\n },\n\n refresh() {\n refreshCount++;\n }\n\n }));\n return this.visitAndAssert('/').then(() => {\n let indexController = this.getController('index');\n (0, _runloop.run)(indexController, 'setProperties', {\n alex: 'fran',\n steely: 'david'\n });\n assert.equal(refreshCount, 1, 'index refresh hook only run once');\n });\n }\n\n ['@test refreshModel does not cause a second transition during app boot '](assert) {\n assert.expect(1);\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n this.add('route:index', _routing.Route.extend({\n queryParams: {\n omg: {\n refreshModel: true\n }\n },\n\n refresh() {\n assert.ok(false);\n }\n\n }));\n return this.visitAndAssert('/?appomg=hello&omg=world');\n }\n\n ['@test queryParams are updated when a controller property is set and the route is refreshed. Issue #13263 '](assert) {\n this.addTemplate('application', 'Increment {{foo}} {{outlet}}');\n this.setSingleQPController('application', 'foo', 1, {\n actions: {\n increment() {\n this.incrementProperty('foo');\n this.send('refreshRoute');\n }\n\n }\n });\n this.add('route:application', _routing.Route.extend({\n actions: {\n refreshRoute() {\n this.refresh();\n }\n\n }\n }));\n return this.visitAndAssert('/').then(() => {\n assert.equal((0, _internalTestHelpers.getTextOf)(document.getElementById('test-value')), '1');\n (0, _runloop.run)(document.getElementById('test-button'), 'click');\n assert.equal((0, _internalTestHelpers.getTextOf)(document.getElementById('test-value')), '2');\n this.assertCurrentPath('/?foo=2');\n (0, _runloop.run)(document.getElementById('test-button'), 'click');\n assert.equal((0, _internalTestHelpers.getTextOf)(document.getElementById('test-value')), '3');\n this.assertCurrentPath('/?foo=3');\n });\n }\n\n [\"@test Use Ember.get to retrieve query params 'refreshModel' configuration\"](assert) {\n assert.expect(7);\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n let appModelCount = 0;\n this.add('route:application', _routing.Route.extend({\n model()\n /* params */\n {\n appModelCount++;\n }\n\n }));\n let indexModelCount = 0;\n this.add('route:index', _routing.Route.extend({\n queryParams: _runtime.Object.create({\n unknownProperty() {\n return {\n refreshModel: true\n };\n }\n\n }),\n\n model(params) {\n indexModelCount++;\n\n if (indexModelCount === 1) {\n assert.deepEqual(params, {\n omg: 'lol'\n });\n } else if (indexModelCount === 2) {\n assert.deepEqual(params, {\n omg: 'lex'\n });\n }\n }\n\n }));\n return this.visitAndAssert('/').then(() => {\n assert.equal(appModelCount, 1);\n assert.equal(indexModelCount, 1);\n let indexController = this.getController('index');\n this.setAndFlush(indexController, 'omg', 'lex');\n assert.equal(appModelCount, 1);\n assert.equal(indexModelCount, 2);\n });\n }\n\n ['@test can use refreshModel even with URL changes that remove QPs from address bar'](assert) {\n assert.expect(4);\n this.setSingleQPController('index', 'omg', 'lol');\n let indexModelCount = 0;\n this.add('route:index', _routing.Route.extend({\n queryParams: {\n omg: {\n refreshModel: true\n }\n },\n\n model(params) {\n indexModelCount++;\n let data;\n\n if (indexModelCount === 1) {\n data = 'foo';\n } else if (indexModelCount === 2) {\n data = 'lol';\n }\n\n assert.deepEqual(params, {\n omg: data\n }, 'index#model receives right data');\n }\n\n }));\n return this.visitAndAssert('/?omg=foo').then(() => {\n this.transitionTo('/');\n let indexController = this.getController('index');\n assert.equal(indexController.get('omg'), 'lol');\n });\n }\n\n ['@test can opt into a replace query by specifying replace:true in the Route config hash'](assert) {\n assert.expect(2);\n this.setSingleQPController('application', 'alex', 'matchneer');\n this.add('route:application', _routing.Route.extend({\n queryParams: {\n alex: {\n replace: true\n }\n }\n }));\n return this.visitAndAssert('/').then(() => {\n let appController = this.getController('application');\n this.expectedReplaceURL = '/?alex=wallace';\n this.setAndFlush(appController, 'alex', 'wallace');\n });\n }\n\n ['@test Route query params config can be configured using property name instead of URL key'](assert) {\n assert.expect(2);\n this.add('controller:application', _controller.default.extend({\n queryParams: [{\n commitBy: 'commit_by'\n }]\n }));\n this.add('route:application', _routing.Route.extend({\n queryParams: {\n commitBy: {\n replace: true\n }\n }\n }));\n return this.visitAndAssert('/').then(() => {\n let appController = this.getController('application');\n this.expectedReplaceURL = '/?commit_by=igor_seb';\n this.setAndFlush(appController, 'commitBy', 'igor_seb');\n });\n }\n\n ['@test An explicit replace:false on a changed QP always wins and causes a pushState'](assert) {\n assert.expect(3);\n this.add('controller:application', _controller.default.extend({\n queryParams: ['alex', 'steely'],\n alex: 'matchneer',\n steely: 'dan'\n }));\n this.add('route:application', _routing.Route.extend({\n queryParams: {\n alex: {\n replace: true\n },\n steely: {\n replace: false\n }\n }\n }));\n return this.visit('/').then(() => {\n let appController = this.getController('application');\n this.expectedPushURL = '/?alex=wallace&steely=jan';\n (0, _runloop.run)(appController, 'setProperties', {\n alex: 'wallace',\n steely: 'jan'\n });\n this.expectedPushURL = '/?alex=wallace&steely=fran';\n (0, _runloop.run)(appController, 'setProperties', {\n steely: 'fran'\n });\n this.expectedReplaceURL = '/?alex=sriracha&steely=fran';\n (0, _runloop.run)(appController, 'setProperties', {\n alex: 'sriracha'\n });\n });\n }\n\n ['@test can opt into full transition by setting refreshModel in route queryParams when transitioning from child to parent'](assert) {\n this.addTemplate('parent', '{{outlet}}');\n this.addTemplate('parent.child', \"{{link-to 'Parent' 'parent' (query-params foo='change') id='parent-link'}}\");\n this.router.map(function () {\n this.route('parent', function () {\n this.route('child');\n });\n });\n let parentModelCount = 0;\n this.add('route:parent', _routing.Route.extend({\n model() {\n parentModelCount++;\n },\n\n queryParams: {\n foo: {\n refreshModel: true\n }\n }\n }));\n this.setSingleQPController('parent', 'foo', 'abc');\n return this.visit('/parent/child?foo=lol').then(() => {\n assert.equal(parentModelCount, 1);\n (0, _runloop.run)(document.getElementById('parent-link'), 'click');\n assert.equal(parentModelCount, 2);\n });\n }\n\n [\"@test Use Ember.get to retrieve query params 'replace' configuration\"](assert) {\n assert.expect(2);\n this.setSingleQPController('application', 'alex', 'matchneer');\n this.add('route:application', _routing.Route.extend({\n queryParams: _runtime.Object.create({\n unknownProperty()\n /* keyName */\n {\n // We are simulating all qps requiring refresh\n return {\n replace: true\n };\n }\n\n })\n }));\n return this.visitAndAssert('/').then(() => {\n let appController = this.getController('application');\n this.expectedReplaceURL = '/?alex=wallace';\n this.setAndFlush(appController, 'alex', 'wallace');\n });\n }\n\n ['@test can override incoming QP values in setupController'](assert) {\n assert.expect(3);\n this.router.map(function () {\n this.route('about');\n });\n this.setSingleQPController('index', 'omg', 'lol');\n this.add('route:index', _routing.Route.extend({\n setupController(controller) {\n assert.ok(true, 'setupController called');\n controller.set('omg', 'OVERRIDE');\n },\n\n actions: {\n queryParamsDidChange() {\n assert.ok(false, \"queryParamsDidChange shouldn't fire\");\n }\n\n }\n }));\n return this.visitAndAssert('/about').then(() => {\n this.transitionTo('index');\n this.assertCurrentPath('/?omg=OVERRIDE');\n });\n }\n\n ['@test can override incoming QP array values in setupController'](assert) {\n assert.expect(3);\n this.router.map(function () {\n this.route('about');\n });\n this.setSingleQPController('index', 'omg', ['lol']);\n this.add('route:index', _routing.Route.extend({\n setupController(controller) {\n assert.ok(true, 'setupController called');\n controller.set('omg', ['OVERRIDE']);\n },\n\n actions: {\n queryParamsDidChange() {\n assert.ok(false, \"queryParamsDidChange shouldn't fire\");\n }\n\n }\n }));\n return this.visitAndAssert('/about').then(() => {\n this.transitionTo('index');\n this.assertCurrentPath('/?omg=' + encodeURIComponent(JSON.stringify(['OVERRIDE'])));\n });\n }\n\n ['@test URL transitions that remove QPs still register as QP changes'](assert) {\n assert.expect(2);\n this.setSingleQPController('index', 'omg', 'lol');\n return this.visit('/?omg=borf').then(() => {\n let indexController = this.getController('index');\n assert.equal(indexController.get('omg'), 'borf');\n this.transitionTo('/');\n assert.equal(indexController.get('omg'), 'lol');\n });\n }\n\n ['@test Subresource naming style is supported'](assert) {\n assert.expect(5);\n this.router.map(function () {\n this.route('abc.def', {\n path: '/abcdef'\n }, function () {\n this.route('zoo');\n });\n });\n this.addTemplate('application', \"{{link-to 'A' 'abc.def' (query-params foo='123') id='one'}}{{link-to 'B' 'abc.def.zoo' (query-params foo='123' bar='456') id='two'}}{{outlet}}\");\n this.setSingleQPController('abc.def', 'foo', 'lol');\n this.setSingleQPController('abc.def.zoo', 'bar', 'haha');\n return this.visitAndAssert('/').then(() => {\n assert.equal(this.$('#one').attr('href'), '/abcdef?foo=123');\n assert.equal(this.$('#two').attr('href'), '/abcdef/zoo?bar=456&foo=123');\n (0, _runloop.run)(this.$('#one'), 'click');\n this.assertCurrentPath('/abcdef?foo=123');\n (0, _runloop.run)(this.$('#two'), 'click');\n this.assertCurrentPath('/abcdef/zoo?bar=456&foo=123');\n });\n }\n\n ['@test transitionTo supports query params']() {\n this.setSingleQPController('index', 'foo', 'lol');\n return this.visitAndAssert('/').then(() => {\n this.transitionTo({\n queryParams: {\n foo: 'borf'\n }\n });\n this.assertCurrentPath('/?foo=borf', 'shorthand supported');\n this.transitionTo({\n queryParams: {\n 'index:foo': 'blaf'\n }\n });\n this.assertCurrentPath('/?foo=blaf', 'longform supported');\n this.transitionTo({\n queryParams: {\n 'index:foo': false\n }\n });\n this.assertCurrentPath('/?foo=false', 'longform supported (bool)');\n this.transitionTo({\n queryParams: {\n foo: false\n }\n });\n this.assertCurrentPath('/?foo=false', 'shorhand supported (bool)');\n });\n }\n\n ['@test transitionTo supports query params (multiple)']() {\n this.add('controller:index', _controller.default.extend({\n queryParams: ['foo', 'bar'],\n foo: 'lol',\n bar: 'wat'\n }));\n return this.visitAndAssert('/').then(() => {\n this.transitionTo({\n queryParams: {\n foo: 'borf'\n }\n });\n this.assertCurrentPath('/?foo=borf', 'shorthand supported');\n this.transitionTo({\n queryParams: {\n 'index:foo': 'blaf'\n }\n });\n this.assertCurrentPath('/?foo=blaf', 'longform supported');\n this.transitionTo({\n queryParams: {\n 'index:foo': false\n }\n });\n this.assertCurrentPath('/?foo=false', 'longform supported (bool)');\n this.transitionTo({\n queryParams: {\n foo: false\n }\n });\n this.assertCurrentPath('/?foo=false', 'shorhand supported (bool)');\n });\n }\n\n [\"@test setting controller QP to empty string doesn't generate null in URL\"](assert) {\n assert.expect(1);\n this.setSingleQPController('index', 'foo', '123');\n return this.visit('/').then(() => {\n let controller = this.getController('index');\n this.expectedPushURL = '/?foo=';\n this.setAndFlush(controller, 'foo', '');\n });\n }\n\n [\"@test setting QP to empty string doesn't generate null in URL\"](assert) {\n assert.expect(1);\n this.add('route:index', _routing.Route.extend({\n queryParams: {\n foo: {\n defaultValue: '123'\n }\n }\n }));\n return this.visit('/').then(() => {\n let controller = this.getController('index');\n this.expectedPushURL = '/?foo=';\n this.setAndFlush(controller, 'foo', '');\n });\n }\n\n ['@test A default boolean value deserializes QPs as booleans rather than strings'](assert) {\n assert.expect(3);\n this.setSingleQPController('index', 'foo', false);\n this.add('route:index', _routing.Route.extend({\n model(params) {\n assert.equal(params.foo, true, 'model hook received foo as boolean true');\n }\n\n }));\n return this.visit('/?foo=true').then(() => {\n let controller = this.getController('index');\n assert.equal(controller.get('foo'), true);\n this.transitionTo('/?foo=false');\n assert.equal(controller.get('foo'), false);\n });\n }\n\n ['@test Query param without value are empty string'](assert) {\n assert.expect(1);\n this.add('controller:index', _controller.default.extend({\n queryParams: ['foo'],\n foo: ''\n }));\n return this.visit('/?foo=').then(() => {\n let controller = this.getController('index');\n assert.equal(controller.get('foo'), '');\n });\n }\n\n ['@test Array query params can be set'](assert) {\n assert.expect(2);\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n this.setSingleQPController('home', 'foo', []);\n return this.visit('/').then(() => {\n let controller = this.getController('home');\n this.setAndFlush(controller, 'foo', [1, 2]);\n this.assertCurrentPath('/?foo=%5B1%2C2%5D');\n this.setAndFlush(controller, 'foo', [3, 4]);\n this.assertCurrentPath('/?foo=%5B3%2C4%5D');\n });\n }\n\n ['@test (de)serialization: arrays'](assert) {\n assert.expect(4);\n this.setSingleQPController('index', 'foo', [1]);\n return this.visitAndAssert('/').then(() => {\n this.transitionTo({\n queryParams: {\n foo: [2, 3]\n }\n });\n this.assertCurrentPath('/?foo=%5B2%2C3%5D', 'shorthand supported');\n this.transitionTo({\n queryParams: {\n 'index:foo': [4, 5]\n }\n });\n this.assertCurrentPath('/?foo=%5B4%2C5%5D', 'longform supported');\n this.transitionTo({\n queryParams: {\n foo: []\n }\n });\n this.assertCurrentPath('/?foo=%5B%5D', 'longform supported');\n });\n }\n\n ['@test Url with array query param sets controller property to array'](assert) {\n assert.expect(1);\n this.setSingleQPController('index', 'foo', '');\n return this.visit('/?foo[]=1&foo[]=2&foo[]=3').then(() => {\n let controller = this.getController('index');\n assert.deepEqual(controller.get('foo'), ['1', '2', '3']);\n });\n }\n\n ['@test Array query params can be pushed/popped'](assert) {\n assert.expect(17);\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n this.setSingleQPController('home', 'foo', (0, _runtime.A)());\n return this.visitAndAssert('/').then(() => {\n let controller = this.getController('home');\n (0, _runloop.run)(controller.foo, 'pushObject', 1);\n this.assertCurrentPath('/?foo=%5B1%5D');\n assert.deepEqual(controller.foo, [1]);\n (0, _runloop.run)(controller.foo, 'popObject');\n this.assertCurrentPath('/');\n assert.deepEqual(controller.foo, []);\n (0, _runloop.run)(controller.foo, 'pushObject', 1);\n this.assertCurrentPath('/?foo=%5B1%5D');\n assert.deepEqual(controller.foo, [1]);\n (0, _runloop.run)(controller.foo, 'popObject');\n this.assertCurrentPath('/');\n assert.deepEqual(controller.foo, []);\n (0, _runloop.run)(controller.foo, 'pushObject', 1);\n this.assertCurrentPath('/?foo=%5B1%5D');\n assert.deepEqual(controller.foo, [1]);\n (0, _runloop.run)(controller.foo, 'pushObject', 2);\n this.assertCurrentPath('/?foo=%5B1%2C2%5D');\n assert.deepEqual(controller.foo, [1, 2]);\n (0, _runloop.run)(controller.foo, 'popObject');\n this.assertCurrentPath('/?foo=%5B1%5D');\n assert.deepEqual(controller.foo, [1]);\n (0, _runloop.run)(controller.foo, 'unshiftObject', 'lol');\n this.assertCurrentPath('/?foo=%5B%22lol%22%2C1%5D');\n assert.deepEqual(controller.foo, ['lol', 1]);\n });\n }\n\n [\"@test Overwriting with array with same content shouldn't refire update\"](assert) {\n assert.expect(4);\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n });\n let modelCount = 0;\n this.add('route:home', _routing.Route.extend({\n model() {\n modelCount++;\n }\n\n }));\n this.setSingleQPController('home', 'foo', (0, _runtime.A)([1]));\n return this.visitAndAssert('/').then(() => {\n assert.equal(modelCount, 1);\n let controller = this.getController('home');\n this.setAndFlush(controller, 'model', (0, _runtime.A)([1]));\n assert.equal(modelCount, 1);\n this.assertCurrentPath('/');\n });\n }\n\n ['@test Defaulting to params hash as the model should not result in that params object being watched'](assert) {\n assert.expect(1);\n this.router.map(function () {\n this.route('other');\n }); // This causes the params hash, which is returned as a route's\n // model if no other model could be resolved given the provided\n // params (and no custom model hook was defined), to be watched,\n // unless we return a copy of the params hash.\n\n this.setSingleQPController('application', 'woot', 'wat');\n this.add('route:other', _routing.Route.extend({\n model(p, trans) {\n let m = (0, _meta.peekMeta)(trans[_router_js.PARAMS_SYMBOL].application);\n assert.ok(m === null, \"A meta object isn't constructed for this params POJO\");\n }\n\n }));\n return this.visit('/').then(() => {\n this.transitionTo('other');\n });\n }\n\n ['@test Setting bound query param property to null or undefined does not serialize to url'](assert) {\n assert.expect(9);\n this.router.map(function () {\n this.route('home');\n });\n this.setSingleQPController('home', 'foo', [1, 2]);\n return this.visitAndAssert('/home').then(() => {\n var controller = this.getController('home');\n assert.deepEqual(controller.get('foo'), [1, 2]);\n this.assertCurrentPath('/home');\n this.setAndFlush(controller, 'foo', (0, _runtime.A)([1, 3]));\n this.assertCurrentPath('/home?foo=%5B1%2C3%5D');\n return this.transitionTo('/home').then(() => {\n assert.deepEqual(controller.get('foo'), [1, 2]);\n this.assertCurrentPath('/home');\n this.setAndFlush(controller, 'foo', null);\n this.assertCurrentPath('/home', 'Setting property to null');\n this.setAndFlush(controller, 'foo', (0, _runtime.A)([1, 3]));\n this.assertCurrentPath('/home?foo=%5B1%2C3%5D');\n this.setAndFlush(controller, 'foo', undefined);\n this.assertCurrentPath('/home', 'Setting property to undefined');\n });\n });\n }\n\n ['@test {{link-to}} with null or undefined QPs does not get serialized into url'](assert) {\n assert.expect(3);\n this.addTemplate('home', \"{{link-to 'Home' 'home' (query-params foo=nullValue) id='null-link'}}{{link-to 'Home' 'home' (query-params foo=undefinedValue) id='undefined-link'}}\");\n this.router.map(function () {\n this.route('home');\n });\n this.setSingleQPController('home', 'foo', [], {\n nullValue: null,\n undefinedValue: undefined\n });\n return this.visitAndAssert('/home').then(() => {\n assert.equal(this.$('#null-link').attr('href'), '/home');\n assert.equal(this.$('#undefined-link').attr('href'), '/home');\n });\n }\n\n [\"@test A child of a resource route still defaults to parent route's model even if the child route has a query param\"](assert) {\n assert.expect(2);\n this.setSingleQPController('index', 'woot', undefined, {\n woot: undefined\n });\n this.add('route:application', _routing.Route.extend({\n model()\n /* p, trans */\n {\n return {\n woot: true\n };\n }\n\n }));\n this.add('route:index', _routing.Route.extend({\n setupController(controller, model) {\n assert.deepEqual(model, {\n woot: true\n }, 'index route inherited model route from parent route');\n }\n\n }));\n return this.visitAndAssert('/');\n }\n\n ['@test opting into replace does not affect transitions between routes'](assert) {\n assert.expect(5);\n this.addTemplate('application', \"{{link-to 'Foo' 'foo' id='foo-link'}}{{link-to 'Bar' 'bar' id='bar-no-qp-link'}}{{link-to 'Bar' 'bar' (query-params raytiley='isthebest') id='bar-link'}}{{outlet}}\");\n this.router.map(function () {\n this.route('foo');\n this.route('bar');\n });\n this.setSingleQPController('bar', 'raytiley', 'israd');\n this.add('route:bar', _routing.Route.extend({\n queryParams: {\n raytiley: {\n replace: true\n }\n }\n }));\n return this.visit('/').then(() => {\n let controller = this.getController('bar');\n this.expectedPushURL = '/foo';\n (0, _runloop.run)(document.getElementById('foo-link'), 'click');\n this.expectedPushURL = '/bar';\n (0, _runloop.run)(document.getElementById('bar-no-qp-link'), 'click');\n this.expectedReplaceURL = '/bar?raytiley=woot';\n this.setAndFlush(controller, 'raytiley', 'woot');\n this.expectedPushURL = '/foo';\n (0, _runloop.run)(document.getElementById('foo-link'), 'click');\n this.expectedPushURL = '/bar?raytiley=isthebest';\n (0, _runloop.run)(document.getElementById('bar-link'), 'click');\n });\n }\n\n [\"@test undefined isn't serialized or deserialized into a string\"](assert) {\n assert.expect(4);\n this.router.map(function () {\n this.route('example');\n });\n this.addTemplate('application', \"{{link-to 'Example' 'example' (query-params foo=undefined) id='the-link'}}\");\n this.setSingleQPController('example', 'foo', undefined, {\n foo: undefined\n });\n this.add('route:example', _routing.Route.extend({\n model(params) {\n assert.deepEqual(params, {\n foo: undefined\n });\n }\n\n }));\n return this.visitAndAssert('/').then(() => {\n assert.equal(this.$('#the-link').attr('href'), '/example', 'renders without undefined qp serialized');\n return this.transitionTo('example', {\n queryParams: {\n foo: undefined\n }\n }).then(() => {\n this.assertCurrentPath('/example');\n });\n });\n }\n\n ['@test when refreshModel is true and loading hook is undefined, model hook will rerun when QPs change even if previous did not finish']() {\n return this.refreshModelWhileLoadingTest();\n }\n\n ['@test when refreshModel is true and loading hook returns false, model hook will rerun when QPs change even if previous did not finish']() {\n return this.refreshModelWhileLoadingTest(false);\n }\n\n ['@test when refreshModel is true and loading hook returns true, model hook will rerun when QPs change even if previous did not finish']() {\n return this.refreshModelWhileLoadingTest(true);\n }\n\n [\"@test warn user that Route's queryParams configuration must be an Object, not an Array\"](assert) {\n assert.expect(1);\n this.add('route:application', _routing.Route.extend({\n queryParams: [{\n commitBy: {\n replace: true\n }\n }]\n }));\n expectAssertion(() => {\n this.visit('/');\n }, 'You passed in `[{\"commitBy\":{\"replace\":true}}]` as the value for `queryParams` but `queryParams` cannot be an Array');\n }\n\n ['@test handle route names that clash with Object.prototype properties'](assert) {\n assert.expect(1);\n this.router.map(function () {\n this.route('constructor');\n });\n this.add('route:constructor', _routing.Route.extend({\n queryParams: {\n foo: {\n defaultValue: '123'\n }\n }\n }));\n return this.visit('/').then(() => {\n this.transitionTo('constructor', {\n queryParams: {\n foo: '999'\n }\n });\n let controller = this.getController('constructor');\n assert.equal((0, _metal.get)(controller, 'foo'), '999');\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/query_params_test/model_dependent_state_with_query_params_test\", [\"@ember/controller\", \"@ember/-internals/runtime\", \"@ember/-internals/routing\", \"@ember/runloop\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_controller, _runtime, _routing, _runloop, _metal, _internalTestHelpers) {\n \"use strict\";\n\n class ModelDependentQPTestCase extends _internalTestHelpers.QueryParamTestCase {\n boot() {\n this.setupApplication();\n return this.visitApplication();\n }\n\n teardown() {\n super.teardown(...arguments);\n this.assert.ok(!this.expectedModelHookParams, 'there should be no pending expectation of expected model hook params');\n }\n\n reopenController(name, options) {\n this.application.resolveRegistration(\"controller:\" + name).reopen(options);\n }\n\n reopenRoute(name, options) {\n this.application.resolveRegistration(\"route:\" + name).reopen(options);\n }\n\n queryParamsStickyTest1(urlPrefix) {\n let assert = this.assert;\n assert.expect(14);\n return this.boot().then(() => {\n (0, _runloop.run)(this.$link1, 'click');\n this.assertCurrentPath(urlPrefix + \"/a-1\");\n this.setAndFlush(this.controller, 'q', 'lol');\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1?q=lol\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3\");\n (0, _runloop.run)(this.$link2, 'click');\n assert.equal(this.controller.get('q'), 'wat');\n assert.equal(this.controller.get('z'), 0);\n assert.deepEqual(this.controller.get('model'), {\n id: 'a-2'\n });\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1?q=lol\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3\");\n });\n }\n\n queryParamsStickyTest2(urlPrefix) {\n let assert = this.assert;\n assert.expect(24);\n return this.boot().then(() => {\n this.expectedModelHookParams = {\n id: 'a-1',\n q: 'lol',\n z: 0\n };\n this.transitionTo(urlPrefix + \"/a-1?q=lol\");\n assert.deepEqual(this.controller.get('model'), {\n id: 'a-1'\n });\n assert.equal(this.controller.get('q'), 'lol');\n assert.equal(this.controller.get('z'), 0);\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1?q=lol\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3\");\n this.expectedModelHookParams = {\n id: 'a-2',\n q: 'lol',\n z: 0\n };\n this.transitionTo(urlPrefix + \"/a-2?q=lol\");\n assert.deepEqual(this.controller.get('model'), {\n id: 'a-2'\n }, \"controller's model changed to a-2\");\n assert.equal(this.controller.get('q'), 'lol');\n assert.equal(this.controller.get('z'), 0);\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1?q=lol\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2?q=lol\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3\");\n this.expectedModelHookParams = {\n id: 'a-3',\n q: 'lol',\n z: 123\n };\n this.transitionTo(urlPrefix + \"/a-3?q=lol&z=123\");\n assert.equal(this.controller.get('q'), 'lol');\n assert.equal(this.controller.get('z'), 123);\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1?q=lol\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2?q=lol\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3?q=lol&z=123\");\n });\n }\n\n queryParamsStickyTest3(urlPrefix, articleLookup) {\n let assert = this.assert;\n assert.expect(32);\n this.addTemplate('application', \"{{#each articles as |a|}} {{link-to 'Article' '\" + articleLookup + \"' a.id id=a.id}} {{/each}}\");\n return this.boot().then(() => {\n this.expectedModelHookParams = {\n id: 'a-1',\n q: 'wat',\n z: 0\n };\n this.transitionTo(articleLookup, 'a-1');\n assert.deepEqual(this.controller.get('model'), {\n id: 'a-1'\n });\n assert.equal(this.controller.get('q'), 'wat');\n assert.equal(this.controller.get('z'), 0);\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3\");\n this.expectedModelHookParams = {\n id: 'a-2',\n q: 'lol',\n z: 0\n };\n this.transitionTo(articleLookup, 'a-2', {\n queryParams: {\n q: 'lol'\n }\n });\n assert.deepEqual(this.controller.get('model'), {\n id: 'a-2'\n });\n assert.equal(this.controller.get('q'), 'lol');\n assert.equal(this.controller.get('z'), 0);\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2?q=lol\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3\");\n this.expectedModelHookParams = {\n id: 'a-3',\n q: 'hay',\n z: 0\n };\n this.transitionTo(articleLookup, 'a-3', {\n queryParams: {\n q: 'hay'\n }\n });\n assert.deepEqual(this.controller.get('model'), {\n id: 'a-3'\n });\n assert.equal(this.controller.get('q'), 'hay');\n assert.equal(this.controller.get('z'), 0);\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2?q=lol\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3?q=hay\");\n this.expectedModelHookParams = {\n id: 'a-2',\n q: 'lol',\n z: 1\n };\n this.transitionTo(articleLookup, 'a-2', {\n queryParams: {\n z: 1\n }\n });\n assert.deepEqual(this.controller.get('model'), {\n id: 'a-2'\n });\n assert.equal(this.controller.get('q'), 'lol');\n assert.equal(this.controller.get('z'), 1);\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2?q=lol&z=1\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3?q=hay\");\n });\n }\n\n queryParamsStickyTest4(urlPrefix, articleLookup) {\n let assert = this.assert;\n assert.expect(24);\n this.setupApplication();\n this.reopenController(articleLookup, {\n queryParams: {\n q: {\n scope: 'controller'\n }\n }\n });\n return this.visitApplication().then(() => {\n (0, _runloop.run)(this.$link1, 'click');\n this.assertCurrentPath(urlPrefix + \"/a-1\");\n this.setAndFlush(this.controller, 'q', 'lol');\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1?q=lol\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2?q=lol\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3?q=lol\");\n (0, _runloop.run)(this.$link2, 'click');\n assert.equal(this.controller.get('q'), 'lol');\n assert.equal(this.controller.get('z'), 0);\n assert.deepEqual(this.controller.get('model'), {\n id: 'a-2'\n });\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1?q=lol\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2?q=lol\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3?q=lol\");\n this.expectedModelHookParams = {\n id: 'a-3',\n q: 'haha',\n z: 123\n };\n this.transitionTo(urlPrefix + \"/a-3?q=haha&z=123\");\n assert.deepEqual(this.controller.get('model'), {\n id: 'a-3'\n });\n assert.equal(this.controller.get('q'), 'haha');\n assert.equal(this.controller.get('z'), 123);\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1?q=haha\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2?q=haha\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3?q=haha&z=123\");\n this.setAndFlush(this.controller, 'q', 'woot');\n assert.equal(this.$link1.getAttribute('href'), urlPrefix + \"/a-1?q=woot\");\n assert.equal(this.$link2.getAttribute('href'), urlPrefix + \"/a-2?q=woot\");\n assert.equal(this.$link3.getAttribute('href'), urlPrefix + \"/a-3?q=woot&z=123\");\n });\n }\n\n queryParamsStickyTest5(urlPrefix, commentsLookupKey) {\n let assert = this.assert;\n assert.expect(12);\n return this.boot().then(() => {\n this.transitionTo(commentsLookupKey, 'a-1');\n let commentsCtrl = this.getController(commentsLookupKey);\n assert.equal(commentsCtrl.get('page'), 1);\n this.assertCurrentPath(urlPrefix + \"/a-1/comments\");\n this.setAndFlush(commentsCtrl, 'page', 2);\n this.assertCurrentPath(urlPrefix + \"/a-1/comments?page=2\");\n this.setAndFlush(commentsCtrl, 'page', 3);\n this.assertCurrentPath(urlPrefix + \"/a-1/comments?page=3\");\n this.transitionTo(commentsLookupKey, 'a-2');\n assert.equal(commentsCtrl.get('page'), 1);\n this.assertCurrentPath(urlPrefix + \"/a-2/comments\");\n this.transitionTo(commentsLookupKey, 'a-1');\n assert.equal(commentsCtrl.get('page'), 3);\n this.assertCurrentPath(urlPrefix + \"/a-1/comments?page=3\");\n });\n }\n\n queryParamsStickyTest6(urlPrefix, articleLookup, commentsLookup) {\n let assert = this.assert;\n assert.expect(13);\n this.setupApplication();\n this.reopenRoute(articleLookup, {\n resetController(controller, isExiting) {\n this.controllerFor(commentsLookup).set('page', 1);\n\n if (isExiting) {\n controller.set('q', 'imdone');\n }\n }\n\n });\n this.addTemplate('about', \"{{link-to 'A' '\" + commentsLookup + \"' 'a-1' id='one'}} {{link-to 'B' '\" + commentsLookup + \"' 'a-2' id='two'}}\");\n return this.visitApplication().then(() => {\n this.transitionTo(commentsLookup, 'a-1');\n let commentsCtrl = this.getController(commentsLookup);\n assert.equal(commentsCtrl.get('page'), 1);\n this.assertCurrentPath(urlPrefix + \"/a-1/comments\");\n this.setAndFlush(commentsCtrl, 'page', 2);\n this.assertCurrentPath(urlPrefix + \"/a-1/comments?page=2\");\n this.transitionTo(commentsLookup, 'a-2');\n assert.equal(commentsCtrl.get('page'), 1);\n assert.equal(this.controller.get('q'), 'wat');\n this.transitionTo(commentsLookup, 'a-1');\n this.assertCurrentPath(urlPrefix + \"/a-1/comments\");\n assert.equal(commentsCtrl.get('page'), 1);\n this.transitionTo('about');\n assert.equal(document.getElementById('one').getAttribute('href'), urlPrefix + \"/a-1/comments?q=imdone\");\n assert.equal(document.getElementById('two').getAttribute('href'), urlPrefix + \"/a-2/comments\");\n });\n }\n\n }\n\n (0, _internalTestHelpers.moduleFor)('Query Params - model-dependent state', class extends ModelDependentQPTestCase {\n setupApplication() {\n this.router.map(function () {\n this.route('article', {\n path: '/a/:id'\n }, function () {\n this.route('comments', {\n resetNamespace: true\n });\n });\n this.route('about');\n });\n let articles = (0, _runtime.A)([{\n id: 'a-1'\n }, {\n id: 'a-2'\n }, {\n id: 'a-3'\n }]);\n this.add('controller:application', _controller.default.extend({\n articles\n }));\n let self = this;\n let assert = this.assert;\n this.add('route:article', _routing.Route.extend({\n model(params) {\n if (self.expectedModelHookParams) {\n assert.deepEqual(params, self.expectedModelHookParams, 'the ArticleRoute model hook received the expected merged dynamic segment + query params hash');\n self.expectedModelHookParams = null;\n }\n\n return articles.findBy('id', params.id);\n }\n\n }));\n this.add('controller:article', _controller.default.extend({\n queryParams: ['q', 'z'],\n q: 'wat',\n z: 0\n }));\n this.add('controller:comments', _controller.default.extend({\n queryParams: 'page',\n page: 1\n }));\n this.addTemplate('application', \"{{#each articles as |a|}} 1{{link-to 'Article' 'article' a id=a.id}} {{/each}} {{outlet}}\");\n }\n\n visitApplication() {\n return this.visit('/').then(() => {\n let assert = this.assert;\n this.$link1 = document.getElementById('a-1');\n this.$link2 = document.getElementById('a-2');\n this.$link3 = document.getElementById('a-3');\n assert.equal(this.$link1.getAttribute('href'), '/a/a-1');\n assert.equal(this.$link2.getAttribute('href'), '/a/a-2');\n assert.equal(this.$link3.getAttribute('href'), '/a/a-3');\n this.controller = this.getController('article');\n });\n }\n\n [\"@test query params have 'model' stickiness by default\"]() {\n return this.queryParamsStickyTest1('/a');\n }\n\n [\"@test query params have 'model' stickiness by default (url changes)\"]() {\n return this.queryParamsStickyTest2('/a');\n }\n\n [\"@test query params have 'model' stickiness by default (params-based transitions)\"]() {\n return this.queryParamsStickyTest3('/a', 'article');\n }\n\n [\"@test 'controller' stickiness shares QP state between models\"]() {\n return this.queryParamsStickyTest4('/a', 'article');\n }\n\n [\"@test 'model' stickiness is scoped to current or first dynamic parent route\"]() {\n return this.queryParamsStickyTest5('/a', 'comments');\n }\n\n ['@test can reset query params using the resetController hook']() {\n return this.queryParamsStickyTest6('/a', 'article', 'comments');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Query Params - model-dependent state (nested)', class extends ModelDependentQPTestCase {\n setupApplication() {\n this.router.map(function () {\n this.route('site', function () {\n this.route('article', {\n path: '/a/:id'\n }, function () {\n this.route('comments');\n });\n });\n this.route('about');\n });\n let site_articles = (0, _runtime.A)([{\n id: 'a-1'\n }, {\n id: 'a-2'\n }, {\n id: 'a-3'\n }]);\n this.add('controller:application', _controller.default.extend({\n articles: site_articles\n }));\n let self = this;\n let assert = this.assert;\n this.add('route:site.article', _routing.Route.extend({\n model(params) {\n if (self.expectedModelHookParams) {\n assert.deepEqual(params, self.expectedModelHookParams, 'the ArticleRoute model hook received the expected merged dynamic segment + query params hash');\n self.expectedModelHookParams = null;\n }\n\n return site_articles.findBy('id', params.id);\n }\n\n }));\n this.add('controller:site.article', _controller.default.extend({\n queryParams: ['q', 'z'],\n q: 'wat',\n z: 0\n }));\n this.add('controller:site.article.comments', _controller.default.extend({\n queryParams: 'page',\n page: 1\n }));\n this.addTemplate('application', \"{{#each articles as |a|}} {{link-to 'Article' 'site.article' a id=a.id}} {{/each}} {{outlet}}\");\n }\n\n visitApplication() {\n return this.visit('/').then(() => {\n let assert = this.assert;\n this.$link1 = document.getElementById('a-1');\n this.$link2 = document.getElementById('a-2');\n this.$link3 = document.getElementById('a-3');\n assert.equal(this.$link1.getAttribute('href'), '/site/a/a-1');\n assert.equal(this.$link2.getAttribute('href'), '/site/a/a-2');\n assert.equal(this.$link3.getAttribute('href'), '/site/a/a-3');\n this.controller = this.getController('site.article');\n });\n }\n\n [\"@test query params have 'model' stickiness by default\"]() {\n return this.queryParamsStickyTest1('/site/a');\n }\n\n [\"@test query params have 'model' stickiness by default (url changes)\"]() {\n return this.queryParamsStickyTest2('/site/a');\n }\n\n [\"@test query params have 'model' stickiness by default (params-based transitions)\"]() {\n return this.queryParamsStickyTest3('/site/a', 'site.article');\n }\n\n [\"@test 'controller' stickiness shares QP state between models\"]() {\n return this.queryParamsStickyTest4('/site/a', 'site.article');\n }\n\n [\"@test 'model' stickiness is scoped to current or first dynamic parent route\"]() {\n return this.queryParamsStickyTest5('/site/a', 'site.article.comments');\n }\n\n ['@test can reset query params using the resetController hook']() {\n return this.queryParamsStickyTest6('/site/a', 'site.article', 'site.article.comments');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Query Params - model-dependent state (nested & more than 1 dynamic segment)', class extends ModelDependentQPTestCase {\n setupApplication() {\n this.router.map(function () {\n this.route('site', {\n path: '/site/:site_id'\n }, function () {\n this.route('article', {\n path: '/a/:article_id'\n }, function () {\n this.route('comments');\n });\n });\n });\n let sites = (0, _runtime.A)([{\n id: 's-1'\n }, {\n id: 's-2'\n }, {\n id: 's-3'\n }]);\n let site_articles = (0, _runtime.A)([{\n id: 'a-1'\n }, {\n id: 'a-2'\n }, {\n id: 'a-3'\n }]);\n this.add('controller:application', _controller.default.extend({\n siteArticles: site_articles,\n sites,\n allSitesAllArticles: (0, _metal.computed)({\n get() {\n let ret = [];\n let siteArticles = this.siteArticles;\n let sites = this.sites;\n sites.forEach(site => {\n ret = ret.concat(siteArticles.map(article => {\n return {\n id: site.id + \"-\" + article.id,\n site_id: site.id,\n article_id: article.id\n };\n }));\n });\n return ret;\n }\n\n })\n }));\n let self = this;\n let assert = this.assert;\n this.add('route:site', _routing.Route.extend({\n model(params) {\n if (self.expectedSiteModelHookParams) {\n assert.deepEqual(params, self.expectedSiteModelHookParams, 'the SiteRoute model hook received the expected merged dynamic segment + query params hash');\n self.expectedSiteModelHookParams = null;\n }\n\n return sites.findBy('id', params.site_id);\n }\n\n }));\n this.add('route:site.article', _routing.Route.extend({\n model(params) {\n if (self.expectedArticleModelHookParams) {\n assert.deepEqual(params, self.expectedArticleModelHookParams, 'the SiteArticleRoute model hook received the expected merged dynamic segment + query params hash');\n self.expectedArticleModelHookParams = null;\n }\n\n return site_articles.findBy('id', params.article_id);\n }\n\n }));\n this.add('controller:site', _controller.default.extend({\n queryParams: ['country'],\n country: 'au'\n }));\n this.add('controller:site.article', _controller.default.extend({\n queryParams: ['q', 'z'],\n q: 'wat',\n z: 0\n }));\n this.add('controller:site.article.comments', _controller.default.extend({\n queryParams: ['page'],\n page: 1\n }));\n this.addTemplate('application', \"{{#each allSitesAllArticles as |a|}} {{#link-to 'site.article' a.site_id a.article_id id=a.id}}Article [{{a.site_id}}] [{{a.article_id}}]{{/link-to}} {{/each}} {{outlet}}\");\n }\n\n visitApplication() {\n return this.visit('/').then(() => {\n let assert = this.assert;\n this.links = {};\n this.links['s-1-a-1'] = document.getElementById('s-1-a-1');\n this.links['s-1-a-2'] = document.getElementById('s-1-a-2');\n this.links['s-1-a-3'] = document.getElementById('s-1-a-3');\n this.links['s-2-a-1'] = document.getElementById('s-2-a-1');\n this.links['s-2-a-2'] = document.getElementById('s-2-a-2');\n this.links['s-2-a-3'] = document.getElementById('s-2-a-3');\n this.links['s-3-a-1'] = document.getElementById('s-3-a-1');\n this.links['s-3-a-2'] = document.getElementById('s-3-a-2');\n this.links['s-3-a-3'] = document.getElementById('s-3-a-3');\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3');\n this.site_controller = this.getController('site');\n this.article_controller = this.getController('site.article');\n });\n }\n\n [\"@test query params have 'model' stickiness by default\"](assert) {\n assert.expect(59);\n return this.boot().then(() => {\n (0, _runloop.run)(this.links['s-1-a-1'], 'click');\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-1'\n });\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-1'\n });\n this.assertCurrentPath('/site/s-1/a/a-1');\n this.setAndFlush(this.article_controller, 'q', 'lol');\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?q=lol');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3');\n this.setAndFlush(this.site_controller, 'country', 'us');\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1?country=us&q=lol');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?country=us');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3?country=us');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?q=lol');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3');\n (0, _runloop.run)(this.links['s-1-a-2'], 'click');\n assert.equal(this.site_controller.get('country'), 'us');\n assert.equal(this.article_controller.get('q'), 'wat');\n assert.equal(this.article_controller.get('z'), 0);\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-1'\n });\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-2'\n });\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1?country=us&q=lol');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?country=us');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3?country=us');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?q=lol');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3');\n (0, _runloop.run)(this.links['s-2-a-2'], 'click');\n assert.equal(this.site_controller.get('country'), 'au');\n assert.equal(this.article_controller.get('q'), 'wat');\n assert.equal(this.article_controller.get('z'), 0);\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-2'\n });\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-2'\n });\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1?country=us&q=lol');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?country=us');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3?country=us');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?q=lol');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3');\n });\n }\n\n [\"@test query params have 'model' stickiness by default (url changes)\"](assert) {\n assert.expect(88);\n return this.boot().then(() => {\n this.expectedSiteModelHookParams = {\n site_id: 's-1',\n country: 'au'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-1',\n q: 'lol',\n z: 0\n };\n this.transitionTo('/site/s-1/a/a-1?q=lol');\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-1'\n }, \"site controller's model is s-1\");\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-1'\n }, \"article controller's model is a-1\");\n assert.equal(this.site_controller.get('country'), 'au');\n assert.equal(this.article_controller.get('q'), 'lol');\n assert.equal(this.article_controller.get('z'), 0);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?q=lol');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3');\n this.expectedSiteModelHookParams = {\n site_id: 's-2',\n country: 'us'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-1',\n q: 'lol',\n z: 0\n };\n this.transitionTo('/site/s-2/a/a-1?country=us&q=lol');\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-2'\n }, \"site controller's model is s-2\");\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-1'\n }, \"article controller's model is a-1\");\n assert.equal(this.site_controller.get('country'), 'us');\n assert.equal(this.article_controller.get('q'), 'lol');\n assert.equal(this.article_controller.get('z'), 0);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?country=us&q=lol');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2?country=us');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3?country=us');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3');\n this.expectedSiteModelHookParams = {\n site_id: 's-2',\n country: 'us'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-2',\n q: 'lol',\n z: 0\n };\n this.transitionTo('/site/s-2/a/a-2?country=us&q=lol');\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-2'\n }, \"site controller's model is s-2\");\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-2'\n }, \"article controller's model is a-2\");\n assert.equal(this.site_controller.get('country'), 'us');\n assert.equal(this.article_controller.get('q'), 'lol');\n assert.equal(this.article_controller.get('z'), 0);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?q=lol');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?country=us&q=lol');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2?country=us&q=lol');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3?country=us');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2?q=lol');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3');\n this.expectedSiteModelHookParams = {\n site_id: 's-2',\n country: 'us'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-3',\n q: 'lol',\n z: 123\n };\n this.transitionTo('/site/s-2/a/a-3?country=us&q=lol&z=123');\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-2'\n }, \"site controller's model is s-2\");\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-3'\n }, \"article controller's model is a-3\");\n assert.equal(this.site_controller.get('country'), 'us');\n assert.equal(this.article_controller.get('q'), 'lol');\n assert.equal(this.article_controller.get('z'), 123);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?q=lol');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3?q=lol&z=123');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?country=us&q=lol');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2?country=us&q=lol');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3?country=us&q=lol&z=123');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2?q=lol');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3?q=lol&z=123');\n this.expectedSiteModelHookParams = {\n site_id: 's-3',\n country: 'nz'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-3',\n q: 'lol',\n z: 123\n };\n this.transitionTo('/site/s-3/a/a-3?country=nz&q=lol&z=123');\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-3'\n }, \"site controller's model is s-3\");\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-3'\n }, \"article controller's model is a-3\");\n assert.equal(this.site_controller.get('country'), 'nz');\n assert.equal(this.article_controller.get('q'), 'lol');\n assert.equal(this.article_controller.get('z'), 123);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?q=lol');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3?q=lol&z=123');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?country=us&q=lol');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2?country=us&q=lol');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3?country=us&q=lol&z=123');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1?country=nz&q=lol');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2?country=nz&q=lol');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3?country=nz&q=lol&z=123');\n });\n }\n\n [\"@test query params have 'model' stickiness by default (params-based transitions)\"](assert) {\n assert.expect(118);\n return this.boot().then(() => {\n this.expectedSiteModelHookParams = {\n site_id: 's-1',\n country: 'au'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-1',\n q: 'wat',\n z: 0\n };\n this.transitionTo('site.article', 's-1', 'a-1');\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-1'\n });\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-1'\n });\n assert.equal(this.site_controller.get('country'), 'au');\n assert.equal(this.article_controller.get('q'), 'wat');\n assert.equal(this.article_controller.get('z'), 0);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3');\n this.expectedSiteModelHookParams = {\n site_id: 's-1',\n country: 'au'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-2',\n q: 'lol',\n z: 0\n };\n this.transitionTo('site.article', 's-1', 'a-2', {\n queryParams: {\n q: 'lol'\n }\n });\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-1'\n });\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-2'\n });\n assert.equal(this.site_controller.get('country'), 'au');\n assert.equal(this.article_controller.get('q'), 'lol');\n assert.equal(this.article_controller.get('z'), 0);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?q=lol');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2?q=lol');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2?q=lol');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3');\n this.expectedSiteModelHookParams = {\n site_id: 's-1',\n country: 'au'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-3',\n q: 'hay',\n z: 0\n };\n this.transitionTo('site.article', 's-1', 'a-3', {\n queryParams: {\n q: 'hay'\n }\n });\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-1'\n });\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-3'\n });\n assert.equal(this.site_controller.get('country'), 'au');\n assert.equal(this.article_controller.get('q'), 'hay');\n assert.equal(this.article_controller.get('z'), 0);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?q=lol');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3?q=hay');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2?q=lol');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3?q=hay');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2?q=lol');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3?q=hay');\n this.expectedSiteModelHookParams = {\n site_id: 's-1',\n country: 'au'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-2',\n q: 'lol',\n z: 1\n };\n this.transitionTo('site.article', 's-1', 'a-2', {\n queryParams: {\n z: 1\n }\n });\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-1'\n });\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-2'\n });\n assert.equal(this.site_controller.get('country'), 'au');\n assert.equal(this.article_controller.get('q'), 'lol');\n assert.equal(this.article_controller.get('z'), 1);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?q=lol&z=1');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3?q=hay');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2?q=lol&z=1');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3?q=hay');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2?q=lol&z=1');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3?q=hay');\n this.expectedSiteModelHookParams = {\n site_id: 's-2',\n country: 'us'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-2',\n q: 'lol',\n z: 1\n };\n this.transitionTo('site.article', 's-2', 'a-2', {\n queryParams: {\n country: 'us'\n }\n });\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-2'\n });\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-2'\n });\n assert.equal(this.site_controller.get('country'), 'us');\n assert.equal(this.article_controller.get('q'), 'lol');\n assert.equal(this.article_controller.get('z'), 1);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?q=lol&z=1');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3?q=hay');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?country=us');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2?country=us&q=lol&z=1');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3?country=us&q=hay');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2?q=lol&z=1');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3?q=hay');\n this.expectedSiteModelHookParams = {\n site_id: 's-2',\n country: 'us'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-1',\n q: 'yeah',\n z: 0\n };\n this.transitionTo('site.article', 's-2', 'a-1', {\n queryParams: {\n q: 'yeah'\n }\n });\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-2'\n });\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-1'\n });\n assert.equal(this.site_controller.get('country'), 'us');\n assert.equal(this.article_controller.get('q'), 'yeah');\n assert.equal(this.article_controller.get('z'), 0);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1?q=yeah');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?q=lol&z=1');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3?q=hay');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?country=us&q=yeah');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2?country=us&q=lol&z=1');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3?country=us&q=hay');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1?q=yeah');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2?q=lol&z=1');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3?q=hay');\n this.expectedSiteModelHookParams = {\n site_id: 's-3',\n country: 'nz'\n };\n this.expectedArticleModelHookParams = {\n article_id: 'a-3',\n q: 'hay',\n z: 3\n };\n this.transitionTo('site.article', 's-3', 'a-3', {\n queryParams: {\n country: 'nz',\n z: 3\n }\n });\n assert.deepEqual(this.site_controller.get('model'), {\n id: 's-3'\n });\n assert.deepEqual(this.article_controller.get('model'), {\n id: 'a-3'\n });\n assert.equal(this.site_controller.get('country'), 'nz');\n assert.equal(this.article_controller.get('q'), 'hay');\n assert.equal(this.article_controller.get('z'), 3);\n assert.equal(this.links['s-1-a-1'].getAttribute('href'), '/site/s-1/a/a-1?q=yeah');\n assert.equal(this.links['s-1-a-2'].getAttribute('href'), '/site/s-1/a/a-2?q=lol&z=1');\n assert.equal(this.links['s-1-a-3'].getAttribute('href'), '/site/s-1/a/a-3?q=hay&z=3');\n assert.equal(this.links['s-2-a-1'].getAttribute('href'), '/site/s-2/a/a-1?country=us&q=yeah');\n assert.equal(this.links['s-2-a-2'].getAttribute('href'), '/site/s-2/a/a-2?country=us&q=lol&z=1');\n assert.equal(this.links['s-2-a-3'].getAttribute('href'), '/site/s-2/a/a-3?country=us&q=hay&z=3');\n assert.equal(this.links['s-3-a-1'].getAttribute('href'), '/site/s-3/a/a-1?country=nz&q=yeah');\n assert.equal(this.links['s-3-a-2'].getAttribute('href'), '/site/s-3/a/a-2?country=nz&q=lol&z=1');\n assert.equal(this.links['s-3-a-3'].getAttribute('href'), '/site/s-3/a/a-3?country=nz&q=hay&z=3');\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/query_params_test/overlapping_query_params_test\", [\"@ember/controller\", \"@ember/-internals/routing\", \"@ember/runloop\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_controller, _routing, _runloop, _metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Query Params - overlapping query param property names', class extends _internalTestHelpers.QueryParamTestCase {\n setupBase() {\n this.router.map(function () {\n this.route('parent', function () {\n this.route('child');\n });\n });\n return this.visit('/parent/child');\n }\n\n ['@test can remap same-named qp props'](assert) {\n assert.expect(7);\n this.setMappedQPController('parent');\n this.setMappedQPController('parent.child', 'page', 'childPage');\n return this.setupBase().then(() => {\n this.assertCurrentPath('/parent/child');\n let parentController = this.getController('parent');\n let parentChildController = this.getController('parent.child');\n this.setAndFlush(parentController, 'page', 2);\n this.assertCurrentPath('/parent/child?parentPage=2');\n this.setAndFlush(parentController, 'page', 1);\n this.assertCurrentPath('/parent/child');\n this.setAndFlush(parentChildController, 'page', 2);\n this.assertCurrentPath('/parent/child?childPage=2');\n this.setAndFlush(parentChildController, 'page', 1);\n this.assertCurrentPath('/parent/child');\n (0, _runloop.run)(() => {\n parentController.set('page', 2);\n parentChildController.set('page', 2);\n });\n this.assertCurrentPath('/parent/child?childPage=2&parentPage=2');\n (0, _runloop.run)(() => {\n parentController.set('page', 1);\n parentChildController.set('page', 1);\n });\n this.assertCurrentPath('/parent/child');\n });\n }\n\n ['@test query params can be either controller property or url key'](assert) {\n assert.expect(3);\n this.setMappedQPController('parent');\n return this.setupBase().then(() => {\n this.assertCurrentPath('/parent/child');\n this.transitionTo('parent.child', {\n queryParams: {\n page: 2\n }\n });\n this.assertCurrentPath('/parent/child?parentPage=2');\n this.transitionTo('parent.child', {\n queryParams: {\n parentPage: 3\n }\n });\n this.assertCurrentPath('/parent/child?parentPage=3');\n });\n }\n\n ['@test query param matching a url key and controller property'](assert) {\n assert.expect(3);\n this.setMappedQPController('parent', 'page', 'parentPage');\n this.setMappedQPController('parent.child', 'index', 'page');\n return this.setupBase().then(() => {\n this.transitionTo('parent.child', {\n queryParams: {\n page: 2\n }\n });\n this.assertCurrentPath('/parent/child?parentPage=2');\n this.transitionTo('parent.child', {\n queryParams: {\n parentPage: 3\n }\n });\n this.assertCurrentPath('/parent/child?parentPage=3');\n this.transitionTo('parent.child', {\n queryParams: {\n index: 2,\n page: 2\n }\n });\n this.assertCurrentPath('/parent/child?page=2&parentPage=2');\n });\n }\n\n ['@test query param matching same property on two controllers use the urlKey higher in the chain'](assert) {\n assert.expect(4);\n this.setMappedQPController('parent', 'page', 'parentPage');\n this.setMappedQPController('parent.child', 'page', 'childPage');\n return this.setupBase().then(() => {\n this.transitionTo('parent.child', {\n queryParams: {\n page: 2\n }\n });\n this.assertCurrentPath('/parent/child?parentPage=2');\n this.transitionTo('parent.child', {\n queryParams: {\n parentPage: 3\n }\n });\n this.assertCurrentPath('/parent/child?parentPage=3');\n this.transitionTo('parent.child', {\n queryParams: {\n childPage: 2,\n page: 2\n }\n });\n this.assertCurrentPath('/parent/child?childPage=2&parentPage=2');\n this.transitionTo('parent.child', {\n queryParams: {\n childPage: 3,\n parentPage: 4\n }\n });\n this.assertCurrentPath('/parent/child?childPage=3&parentPage=4');\n });\n }\n\n ['@test query params does not error when a query parameter exists for route instances that share a controller'](assert) {\n assert.expect(1);\n\n let parentController = _controller.default.extend({\n queryParams: {\n page: 'page'\n }\n });\n\n this.add('controller:parent', parentController);\n this.add('route:parent.child', _routing.Route.extend({\n controllerName: 'parent'\n }));\n return this.setupBase('/parent').then(() => {\n this.transitionTo('parent.child', {\n queryParams: {\n page: 2\n }\n });\n this.assertCurrentPath('/parent/child?page=2');\n });\n }\n\n ['@test query params in the same route hierarchy with the same url key get auto-scoped'](assert) {\n assert.expect(1);\n this.setMappedQPController('parent');\n this.setMappedQPController('parent.child');\n expectAssertion(() => {\n this.setupBase();\n }, \"You're not allowed to have more than one controller property map to the same query param key, but both `parent:page` and `parent.child:page` map to `parentPage`. You can fix this by mapping one of the controller properties to a different query param key via the `as` config option, e.g. `page: { as: 'other-page' }`\");\n }\n\n ['@test Support shared but overridable mixin pattern'](assert) {\n assert.expect(7);\n\n let HasPage = _metal.Mixin.create({\n queryParams: 'page',\n page: 1\n });\n\n this.add('controller:parent', _controller.default.extend(HasPage, {\n queryParams: {\n page: 'yespage'\n }\n }));\n this.add('controller:parent.child', _controller.default.extend(HasPage));\n return this.setupBase().then(() => {\n this.assertCurrentPath('/parent/child');\n let parentController = this.getController('parent');\n let parentChildController = this.getController('parent.child');\n this.setAndFlush(parentChildController, 'page', 2);\n this.assertCurrentPath('/parent/child?page=2');\n assert.equal(parentController.get('page'), 1);\n assert.equal(parentChildController.get('page'), 2);\n this.setAndFlush(parentController, 'page', 2);\n this.assertCurrentPath('/parent/child?page=2&yespage=2');\n assert.equal(parentController.get('page'), 2);\n assert.equal(parentChildController.get('page'), 2);\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/query_params_test/query_param_async_get_handler_test\", [\"@ember/-internals/metal\", \"@ember/-internals/runtime\", \"@ember/-internals/routing\", \"internal-test-helpers\"], function (_metal, _runtime, _routing, _internalTestHelpers) {\n \"use strict\";\n\n // These tests mimic what happens with lazily loaded Engines.\n (0, _internalTestHelpers.moduleFor)('Query Params - async get handler', class extends _internalTestHelpers.QueryParamTestCase {\n get routerOptions() {\n let fetchedHandlers = this.fetchedHandlers = [];\n return {\n location: 'test',\n\n init() {\n this._super(...arguments);\n\n this._seenHandlers = Object.create(null);\n this._handlerPromises = Object.create(null);\n },\n\n setupRouter() {\n this._super(...arguments);\n\n let {\n _handlerPromises: handlerPromises,\n _seenHandlers: seenHandlers\n } = this;\n let getRoute = this._routerMicrolib.getRoute;\n\n this._routerMicrolib.getRoute = function (routeName) {\n fetchedHandlers.push(routeName); // Cache the returns so we don't have more than one Promise for a\n // given handler.\n\n return handlerPromises[routeName] || (handlerPromises[routeName] = new _runtime.RSVP.Promise(resolve => {\n setTimeout(() => {\n let handler = getRoute(routeName);\n seenHandlers[routeName] = handler;\n resolve(handler);\n }, 10);\n }));\n };\n },\n\n _getQPMeta(routeInfo) {\n let handler = this._seenHandlers[routeInfo.name];\n\n if (handler) {\n return (0, _metal.get)(handler, '_qp');\n }\n }\n\n };\n }\n\n ['@test can render a link to an asynchronously loaded route without fetching the route'](assert) {\n assert.expect(4);\n this.router.map(function () {\n this.route('post', {\n path: '/post/:id'\n });\n });\n this.setSingleQPController('post');\n\n let setupAppTemplate = () => {\n this.addTemplate('application', \"\\n {{link-to 'Post' 'post' 1337 (query-params foo='bar') class='post-link is-1337'}}\\n {{link-to 'Post' 'post' 7331 (query-params foo='boo') class='post-link is-7331'}}\\n {{outlet}}\\n \");\n };\n\n setupAppTemplate();\n return this.visitAndAssert('/').then(() => {\n assert.equal(this.$('.post-link.is-1337').attr('href'), '/post/1337?foo=bar', 'renders correctly with default QP value');\n assert.equal(this.$('.post-link.is-7331').attr('href'), '/post/7331?foo=boo', 'renders correctly with non-default QP value');\n assert.deepEqual(this.fetchedHandlers, ['application', 'index'], \"only fetched the handlers for the route we're on\");\n });\n }\n\n ['@test can transitionTo to an asynchronously loaded route with simple query params'](assert) {\n assert.expect(6);\n this.router.map(function () {\n this.route('post', {\n path: '/post/:id'\n });\n this.route('posts');\n });\n this.setSingleQPController('post');\n let postController;\n return this.visitAndAssert('/').then(() => {\n postController = this.getController('post');\n return this.transitionTo('posts').then(() => {\n this.assertCurrentPath('/posts');\n });\n }).then(() => {\n return this.transitionTo('post', 1337, {\n queryParams: {\n foo: 'boo'\n }\n }).then(() => {\n assert.equal(postController.get('foo'), 'boo', 'simple QP is correctly set on controller');\n this.assertCurrentPath('/post/1337?foo=boo');\n });\n }).then(() => {\n return this.transitionTo('post', 1337, {\n queryParams: {\n foo: 'bar'\n }\n }).then(() => {\n assert.equal(postController.get('foo'), 'bar', 'simple QP is correctly set with default value');\n this.assertCurrentPath('/post/1337');\n });\n });\n }\n\n ['@test can transitionTo to an asynchronously loaded route with array query params'](assert) {\n assert.expect(5);\n this.router.map(function () {\n this.route('post', {\n path: '/post/:id'\n });\n });\n this.setSingleQPController('post', 'comments', []);\n let postController;\n return this.visitAndAssert('/').then(() => {\n postController = this.getController('post');\n return this.transitionTo('post', 1337, {\n queryParams: {\n comments: [1, 2]\n }\n }).then(() => {\n assert.deepEqual(postController.get('comments'), [1, 2], 'array QP is correctly set with default value');\n this.assertCurrentPath('/post/1337?comments=%5B1%2C2%5D');\n });\n }).then(() => {\n return this.transitionTo('post', 1338).then(() => {\n assert.deepEqual(postController.get('comments'), [], 'array QP is correctly set on controller');\n this.assertCurrentPath('/post/1338');\n });\n });\n }\n\n ['@test can transitionTo to an asynchronously loaded route with mapped query params'](assert) {\n assert.expect(7);\n this.router.map(function () {\n this.route('post', {\n path: '/post/:id'\n }, function () {\n this.route('index', {\n path: '/'\n });\n });\n });\n this.setSingleQPController('post');\n this.setMappedQPController('post.index', 'comment', 'note');\n let postController;\n let postIndexController;\n return this.visitAndAssert('/').then(() => {\n postController = this.getController('post');\n postIndexController = this.getController('post.index');\n return this.transitionTo('post.index', 1337, {\n queryParams: {\n note: 6,\n foo: 'boo'\n }\n }).then(() => {\n assert.equal(postController.get('foo'), 'boo', 'simple QP is correctly set on controller');\n assert.equal(postIndexController.get('comment'), 6, 'mapped QP is correctly set on controller');\n this.assertCurrentPath('/post/1337?foo=boo¬e=6');\n });\n }).then(() => {\n return this.transitionTo('post', 1337, {\n queryParams: {\n foo: 'bar'\n }\n }).then(() => {\n assert.equal(postController.get('foo'), 'bar', 'simple QP is correctly set with default value');\n assert.equal(postIndexController.get('comment'), 6, 'mapped QP retains value scoped to model');\n this.assertCurrentPath('/post/1337?note=6');\n });\n });\n }\n\n ['@test can transitionTo with a URL'](assert) {\n assert.expect(7);\n this.router.map(function () {\n this.route('post', {\n path: '/post/:id'\n }, function () {\n this.route('index', {\n path: '/'\n });\n });\n });\n this.setSingleQPController('post');\n this.setMappedQPController('post.index', 'comment', 'note');\n let postController;\n let postIndexController;\n return this.visitAndAssert('/').then(() => {\n postController = this.getController('post');\n postIndexController = this.getController('post.index');\n return this.transitionTo('/post/1337?foo=boo¬e=6').then(() => {\n assert.equal(postController.get('foo'), 'boo', 'simple QP is correctly deserialized on controller');\n assert.equal(postIndexController.get('comment'), 6, 'mapped QP is correctly deserialized on controller');\n this.assertCurrentPath('/post/1337?foo=boo¬e=6');\n });\n }).then(() => {\n return this.transitionTo('/post/1337?note=6').then(() => {\n assert.equal(postController.get('foo'), 'bar', 'simple QP is correctly deserialized with default value');\n assert.equal(postIndexController.get('comment'), 6, 'mapped QP retains value scoped to model');\n this.assertCurrentPath('/post/1337?note=6');\n });\n });\n }\n\n [\"@test undefined isn't serialized or deserialized into a string\"](assert) {\n assert.expect(4);\n this.router.map(function () {\n this.route('example');\n });\n this.addTemplate('application', \"{{link-to 'Example' 'example' (query-params foo=undefined) id='the-link'}}\");\n this.setSingleQPController('example', 'foo', undefined, {\n foo: undefined\n });\n this.add('route:example', _routing.Route.extend({\n model(params) {\n assert.deepEqual(params, {\n foo: undefined\n });\n }\n\n }));\n return this.visitAndAssert('/').then(() => {\n assert.equal(this.$('#the-link').attr('href'), '/example', 'renders without undefined qp serialized');\n return this.transitionTo('example', {\n queryParams: {\n foo: undefined\n }\n }).then(() => {\n this.assertCurrentPath('/example');\n });\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/query_params_test/query_params_paramless_link_to_test\", [\"@ember/controller\", \"internal-test-helpers\"], function (_controller, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Query Params - paramless link-to', class extends _internalTestHelpers.QueryParamTestCase {\n testParamlessLinks(assert, routeName) {\n assert.expect(1);\n this.addTemplate(routeName, \"{{link-to 'index' 'index' id='index-link'}}\");\n this.add(\"controller:\" + routeName, _controller.default.extend({\n queryParams: ['foo'],\n foo: 'wat'\n }));\n return this.visit('/?foo=YEAH').then(() => {\n assert.equal(document.getElementById('index-link').getAttribute('href'), '/?foo=YEAH');\n });\n }\n\n [\"@test param-less links in an app booted with query params in the URL don't reset the query params: application\"](assert) {\n return this.testParamlessLinks(assert, 'application');\n }\n\n [\"@test param-less links in an app booted with query params in the URL don't reset the query params: index\"](assert) {\n return this.testParamlessLinks(assert, 'index');\n }\n\n });\n});","enifed(\"ember/tests/routing/query_params_test/shared_state_test\", [\"@ember/controller\", \"@ember/service\", \"@ember/runloop\", \"internal-test-helpers\"], function (_controller, _service, _runloop, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Query Params - shared service state', class extends _internalTestHelpers.QueryParamTestCase {\n boot() {\n this.setupApplication();\n return this.visitApplication();\n }\n\n setupApplication() {\n this.router.map(function () {\n this.route('home', {\n path: '/'\n });\n this.route('dashboard');\n });\n this.add('service:filters', _service.default.extend({\n shared: true\n }));\n this.add('controller:home', _controller.default.extend({\n filters: (0, _service.inject)()\n }));\n this.add('controller:dashboard', _controller.default.extend({\n filters: (0, _service.inject)(),\n queryParams: [{\n 'filters.shared': 'shared'\n }]\n }));\n this.addTemplate('application', \"{{link-to 'Home' 'home' }} {{outlet}}
\");\n this.addTemplate('home', \"{{link-to 'Dashboard' 'dashboard' }}{{input type=\\\"checkbox\\\" id='filters-checkbox' checked=(mut filters.shared) }}\");\n this.addTemplate('dashboard', \"{{link-to 'Home' 'home' }}\");\n }\n\n visitApplication() {\n return this.visit('/');\n }\n\n ['@test can modify shared state before transition'](assert) {\n assert.expect(1);\n return this.boot().then(() => {\n this.$input = document.getElementById('filters-checkbox'); // click the checkbox once to set filters.shared to false\n\n (0, _runloop.run)(this.$input, 'click');\n return this.visit('/dashboard').then(() => {\n assert.ok(true, 'expecting navigating to dashboard to succeed');\n });\n });\n }\n\n ['@test can modify shared state back to the default value before transition'](assert) {\n assert.expect(1);\n return this.boot().then(() => {\n this.$input = document.getElementById('filters-checkbox'); // click the checkbox twice to set filters.shared to false and back to true\n\n (0, _runloop.run)(this.$input, 'click');\n (0, _runloop.run)(this.$input, 'click');\n return this.visit('/dashboard').then(() => {\n assert.ok(true, 'expecting navigating to dashboard to succeed');\n });\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/router_map_test\", [\"internal-test-helpers\", \"@ember/runloop\", \"@ember/-internals/routing\"], function (_internalTestHelpers, _runloop, _routing) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Router.map', class extends _internalTestHelpers.ApplicationTestCase {\n ['@test Router.map returns an Ember Router class'](assert) {\n assert.expect(1);\n let ret = this.router.map(function () {\n this.route('hello');\n });\n assert.ok(_routing.Router.detect(ret));\n }\n\n ['@test Router.map can be called multiple times'](assert) {\n assert.expect(2);\n this.addTemplate('hello', 'Hello!');\n this.addTemplate('goodbye', 'Goodbye!');\n this.router.map(function () {\n this.route('hello');\n });\n this.router.map(function () {\n this.route('goodbye');\n });\n return (0, _runloop.run)(() => {\n return this.visit('/hello').then(() => {\n this.assertText('Hello!');\n }).then(() => {\n return this.visit('/goodbye');\n }).then(() => {\n this.assertText('Goodbye!');\n });\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/router_service_test/basic_test\", [\"@ember/-internals/routing\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_routing, _metal, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Router Service - main', class extends _internalTestHelpers.RouterTestCase {\n ['@test RouterService#currentRouteName is correctly set for top level route'](assert) {\n assert.expect(6);\n return this.visit('/').then(() => {\n let currentRoute = this.routerService.currentRoute;\n let {\n name,\n localName,\n params,\n paramNames,\n queryParams\n } = currentRoute;\n assert.equal(name, 'parent.index');\n assert.equal(localName, 'index');\n assert.deepEqual(params, {});\n assert.deepEqual(queryParams, {});\n assert.deepEqual(paramNames, []);\n assert.equal(this.routerService.get('currentRouteName'), 'parent.index');\n });\n }\n\n ['@test RouterService#currentRouteName is correctly set for child route'](assert) {\n assert.expect(6);\n return this.visit('/child').then(() => {\n let currentRoute = this.routerService.currentRoute;\n let {\n name,\n localName,\n params,\n paramNames,\n queryParams\n } = currentRoute;\n assert.equal(name, 'parent.child');\n assert.equal(localName, 'child');\n assert.deepEqual(params, {});\n assert.deepEqual(queryParams, {});\n assert.deepEqual(paramNames, []);\n assert.equal(this.routerService.get('currentRouteName'), 'parent.child');\n });\n }\n\n ['@test RouterService#currentRouteName is correctly set after transition'](assert) {\n assert.expect(5);\n return this.visit('/child').then(() => {\n let currentRoute = this.routerService.currentRoute;\n let {\n name,\n localName\n } = currentRoute;\n assert.equal(name, 'parent.child');\n assert.equal(localName, 'child');\n return this.routerService.transitionTo('parent.sister');\n }).then(() => {\n let currentRoute = this.routerService.currentRoute;\n let {\n name,\n localName\n } = currentRoute;\n assert.equal(name, 'parent.sister');\n assert.equal(localName, 'sister');\n assert.equal(this.routerService.get('currentRouteName'), 'parent.sister');\n });\n }\n\n '@test substates survive aborts GH#17430'(assert) {\n assert.expect(2);\n this.add(\"route:parent.child\", _routing.Route.extend({\n beforeModel(transition) {\n transition.abort();\n this.intermediateTransitionTo('parent.sister');\n }\n\n }));\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('/child');\n }).catch(e => {\n assert.equal(this.routerService.currentRouteName, 'parent.sister');\n assert.equal(e.message, 'TransitionAborted');\n });\n }\n\n ['@test RouterService#currentRouteName is correctly set on each transition'](assert) {\n assert.expect(9);\n return this.visit('/child').then(() => {\n let currentRoute = this.routerService.currentRoute;\n let {\n name,\n localName\n } = currentRoute;\n assert.equal(name, 'parent.child');\n assert.equal(localName, 'child');\n assert.equal(this.routerService.get('currentRouteName'), 'parent.child');\n return this.visit('/sister');\n }).then(() => {\n let currentRoute = this.routerService.currentRoute;\n let {\n name,\n localName\n } = currentRoute;\n assert.equal(name, 'parent.sister');\n assert.equal(localName, 'sister');\n assert.equal(this.routerService.get('currentRouteName'), 'parent.sister');\n return this.visit('/brother');\n }).then(() => {\n let currentRoute = this.routerService.currentRoute;\n let {\n name,\n localName\n } = currentRoute;\n assert.equal(name, 'parent.brother');\n assert.equal(localName, 'brother');\n assert.equal(this.routerService.get('currentRouteName'), 'parent.brother');\n });\n }\n\n ['@test RouterService#rootURL is correctly set to the default value'](assert) {\n assert.expect(1);\n return this.visit('/').then(() => {\n assert.equal(this.routerService.get('rootURL'), '/');\n });\n }\n\n ['@test RouterService#rootURL is correctly set to a custom value'](assert) {\n assert.expect(1);\n this.add('route:parent.index', _routing.Route.extend({\n init() {\n this._super();\n\n (0, _metal.set)(this._router, 'rootURL', '/homepage');\n }\n\n }));\n return this.visit('/').then(() => {\n assert.equal(this.routerService.get('rootURL'), '/homepage');\n });\n }\n\n ['@test RouterService#location is correctly delegated from router:main'](assert) {\n assert.expect(2);\n return this.visit('/').then(() => {\n let location = this.routerService.get('location');\n assert.ok(location);\n assert.ok(location instanceof _routing.NoneLocation);\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/router_service_test/build_routeinfo_metadata_test\", [\"@ember/canary-features\", \"internal-test-helpers\", \"@ember/service\", \"@ember/-internals/routing\"], function (_canaryFeatures, _internalTestHelpers, _service, _routing) {\n \"use strict\";\n\n if (_canaryFeatures.EMBER_ROUTING_BUILD_ROUTEINFO_METADATA) {\n (0, _internalTestHelpers.moduleFor)('buildRouteInfoMetadata', class extends _internalTestHelpers.RouterTestCase {\n '@test basic metadata'(assert) {\n assert.expect(4);\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n assert.equal(transition.to.name, 'parent.index');\n assert.equal(transition.to.metadata, 'parent-index-page');\n });\n this.router.on('routeDidChange', transition => {\n assert.equal(transition.to.name, 'parent.index');\n assert.equal(transition.to.metadata, 'parent-index-page');\n });\n }\n\n }));\n this.add(\"route:parent.index\", _routing.Route.extend({\n buildRouteInfoMetadata() {\n return 'parent-index-page';\n }\n\n }));\n return this.visit('/');\n }\n\n '@test hierarchical metadata'(assert) {\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n buildRouteInfoMetadata() {\n return 'application-shell';\n },\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n assert.equal(transition.to.name, 'parent.index');\n assert.equal(transition.to.metadata, 'parent-index-page');\n assert.equal(transition.to.parent.name, 'parent');\n assert.equal(transition.to.parent.metadata, 'parent-page');\n assert.equal(transition.to.parent.parent.name, 'application');\n assert.equal(transition.to.parent.parent.metadata, 'application-shell');\n });\n this.router.on('routeDidChange', transition => {\n assert.equal(transition.to.name, 'parent.index');\n assert.equal(transition.to.metadata, 'parent-index-page');\n assert.equal(transition.to.parent.name, 'parent');\n assert.equal(transition.to.parent.metadata, 'parent-page');\n assert.equal(transition.to.parent.parent.name, 'application');\n assert.equal(transition.to.parent.parent.metadata, 'application-shell');\n });\n }\n\n }));\n this.add(\"route:parent\", _routing.Route.extend({\n buildRouteInfoMetadata() {\n return 'parent-page';\n }\n\n }));\n this.add(\"route:parent.index\", _routing.Route.extend({\n buildRouteInfoMetadata() {\n return 'parent-index-page';\n }\n\n }));\n return this.visit('/');\n }\n\n '@test metadata can be complex objects'(assert) {\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n assert.equal(transition.to.name, 'parent.index');\n assert.equal(transition.to.metadata.name, 'parent-index-page');\n assert.equal(transition.to.metadata.title('PARENT'), 'My Name is PARENT');\n });\n this.router.on('routeDidChange', transition => {\n assert.equal(transition.to.name, 'parent.index');\n assert.equal(transition.to.metadata.name, 'parent-index-page');\n assert.equal(transition.to.metadata.title('PARENT'), 'My Name is PARENT');\n });\n }\n\n }));\n this.add(\"route:parent\", _routing.Route.extend({}));\n this.add(\"route:parent.index\", _routing.Route.extend({\n buildRouteInfoMetadata() {\n return {\n name: 'parent-index-page',\n title: name => \"My Name is \" + name\n };\n }\n\n }));\n return this.visit('/');\n }\n\n '@test metadata is placed on the `from`'(assert) {\n assert.expect(12);\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n if (transition.to.name === 'parent.index') {\n assert.equal(transition.to.metadata.name, 'parent-index-page');\n assert.equal(transition.to.metadata.title('INDEX'), 'My Name is INDEX');\n } else {\n assert.equal(transition.from.metadata.name, 'parent-index-page');\n assert.equal(transition.from.metadata.title('INDEX'), 'My Name is INDEX');\n assert.equal(transition.to.metadata.name, 'parent-child-page');\n assert.equal(transition.to.metadata.title('CHILD'), 'My Name is CHILD!!');\n }\n });\n this.router.on('routeDidChange', transition => {\n if (transition.to.name === 'parent.index') {\n assert.equal(transition.to.metadata.name, 'parent-index-page');\n assert.equal(transition.to.metadata.title('INDEX'), 'My Name is INDEX');\n } else {\n assert.equal(transition.from.metadata.name, 'parent-index-page');\n assert.equal(transition.from.metadata.title('INDEX'), 'My Name is INDEX');\n assert.equal(transition.to.metadata.name, 'parent-child-page');\n assert.equal(transition.to.metadata.title('CHILD'), 'My Name is CHILD!!');\n }\n });\n }\n\n }));\n this.add(\"route:parent\", _routing.Route.extend({}));\n this.add(\"route:parent.index\", _routing.Route.extend({\n buildRouteInfoMetadata() {\n return {\n name: 'parent-index-page',\n title: name => \"My Name is \" + name\n };\n }\n\n }));\n this.add(\"route:parent.child\", _routing.Route.extend({\n buildRouteInfoMetadata() {\n return {\n name: 'parent-child-page',\n title: name => \"My Name is \" + name + \"!!\"\n };\n }\n\n }));\n return this.visit('/').then(() => {\n return this.visit('/child');\n });\n }\n\n '@test can be used with model data from `attributes`'(assert) {\n assert.expect(6);\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeDidChange', transition => {\n if (transition.to.name === 'parent.index') {\n assert.equal(transition.to.metadata.name, 'parent-index-page');\n assert.equal(transition.to.metadata.title(transition.to.attributes), 'My Name is INDEX');\n } else {\n assert.equal(transition.from.metadata.name, 'parent-index-page');\n assert.equal(transition.from.metadata.title(transition.from.attributes), 'My Name is INDEX');\n assert.equal(transition.to.metadata.name, 'parent-child-page');\n assert.equal(transition.to.metadata.title(transition.to.attributes), 'My Name is CHILD!!');\n }\n });\n }\n\n }));\n this.add(\"route:parent\", _routing.Route.extend({}));\n this.add(\"route:parent.index\", _routing.Route.extend({\n model() {\n return {\n name: 'INDEX'\n };\n },\n\n buildRouteInfoMetadata() {\n return {\n name: 'parent-index-page',\n title: model => \"My Name is \" + model.name\n };\n }\n\n }));\n this.add(\"route:parent.child\", _routing.Route.extend({\n model() {\n return {\n name: 'CHILD'\n };\n },\n\n buildRouteInfoMetadata() {\n return {\n name: 'parent-child-page',\n title: model => \"My Name is \" + model.name + \"!!\"\n };\n }\n\n }));\n return this.visit('/').then(() => {\n return this.visit('/child');\n });\n }\n\n });\n }\n});","enifed(\"ember/tests/routing/router_service_test/currenturl_lifecycle_test\", [\"@ember/service\", \"@ember/object/computed\", \"@ember/-internals/glimmer\", \"@ember/-internals/routing\", \"@ember/-internals/metal\", \"internal-test-helpers\", \"@ember/-internals/runtime\"], function (_service, _computed, _glimmer, _routing, _metal, _internalTestHelpers, _runtime) {\n \"use strict\";\n\n let results = [];\n let ROUTE_NAMES = ['index', 'child', 'sister', 'brother', 'loading'];\n\n let InstrumentedRoute = _routing.Route.extend({\n routerService: (0, _service.inject)('router'),\n\n beforeModel() {\n let service = (0, _metal.get)(this, 'routerService');\n results.push([service.get('currentRouteName'), 'beforeModel', service.get('currentURL')]);\n },\n\n model() {\n let service = (0, _metal.get)(this, 'routerService');\n results.push([service.get('currentRouteName'), 'model', service.get('currentURL')]);\n return new _runtime.RSVP.Promise(resolve => {\n setTimeout(resolve, 200);\n });\n },\n\n afterModel() {\n let service = (0, _metal.get)(this, 'routerService');\n results.push([service.get('currentRouteName'), 'afterModel', service.get('currentURL')]);\n }\n\n });\n\n (0, _internalTestHelpers.moduleFor)('Router Service - currentURL | currentRouteName', class extends _internalTestHelpers.RouterTestCase {\n constructor() {\n super(...arguments);\n results = [];\n ROUTE_NAMES.forEach(name => {\n let routeName = \"parent.\" + name;\n this.add(\"route:\" + routeName, InstrumentedRoute.extend());\n this.addTemplate(routeName, '{{current-url}}');\n });\n\n let CurrenURLComponent = _glimmer.Component.extend({\n routerService: (0, _service.inject)('router'),\n currentURL: (0, _computed.readOnly)('routerService.currentURL'),\n currentRouteName: (0, _computed.readOnly)('routerService.currentRouteName'),\n currentRoute: (0, _computed.readOnly)('routerService.currentRoute')\n });\n\n this.addComponent('current-url', {\n ComponentClass: CurrenURLComponent,\n template: '{{currentURL}}-{{currentRouteName}}-{{currentRoute.name}}'\n });\n }\n\n ['@test RouterService#currentURL is correctly set for top level route'](assert) {\n assert.expect(1);\n return this.visit('/').then(() => {\n assert.equal(this.routerService.get('currentURL'), '/');\n });\n }\n\n ['@test RouterService#currentURL is correctly set for child route'](assert) {\n assert.expect(1);\n return this.visit('/child').then(() => {\n assert.equal(this.routerService.get('currentURL'), '/child');\n });\n }\n\n ['@test RouterService#currentURL is correctly set after transition'](assert) {\n assert.expect(1);\n return this.visit('/child').then(() => {\n return this.routerService.transitionTo('parent.sister');\n }).then(() => {\n assert.equal(this.routerService.get('currentURL'), '/sister');\n });\n }\n\n ['@test RouterService#currentURL is correctly set on each transition'](assert) {\n assert.expect(3);\n return this.visit('/child').then(() => {\n assert.equal(this.routerService.get('currentURL'), '/child');\n return this.visit('/sister');\n }).then(() => {\n assert.equal(this.routerService.get('currentURL'), '/sister');\n return this.visit('/brother');\n }).then(() => {\n assert.equal(this.routerService.get('currentURL'), '/brother');\n });\n }\n\n ['@test RouterService#currentURL is not set during lifecycle hooks'](assert) {\n assert.expect(2);\n return this.visit('/').then(() => {\n assert.deepEqual(results, [[null, 'beforeModel', null], [null, 'model', null], ['parent.loading', 'afterModel', '/']]);\n results = [];\n return this.visit('/child');\n }).then(() => {\n assert.deepEqual(results, [['parent.index', 'beforeModel', '/'], ['parent.index', 'model', '/'], ['parent.loading', 'afterModel', '/child']]);\n });\n }\n\n ['@test RouterService#currentURL is correctly set with component after consecutive visits'](assert) {\n assert.expect(3);\n return this.visit('/').then(() => {\n this.assertText('/-parent.index-parent.index');\n return this.visit('/child');\n }).then(() => {\n this.assertText('/child-parent.child-parent.child');\n return this.visit('/');\n }).then(() => {\n this.assertText('/-parent.index-parent.index');\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/router_service_test/events_test\", [\"internal-test-helpers\", \"@ember/service\", \"@ember/-internals/routing\", \"@ember/runloop\"], function (_internalTestHelpers, _service, _routing, _runloop) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Router Service - events', class extends _internalTestHelpers.RouterTestCase {\n '@test initial render'(assert) {\n assert.expect(12);\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n assert.ok(transition);\n assert.equal(transition.from, undefined);\n assert.equal(transition.to.name, 'parent.index');\n assert.equal(transition.to.localName, 'index');\n });\n this.router.on('routeDidChange', transition => {\n assert.ok(transition);\n assert.ok(this.router.currentURL, \"has URL \" + this.router.currentURL);\n assert.equal(this.router.currentURL, '/');\n assert.ok(this.router.currentRouteName, \"has route name \" + this.router.currentRouteName);\n assert.equal(this.router.currentRouteName, 'parent.index');\n assert.equal(transition.from, undefined);\n assert.equal(transition.to.name, 'parent.index');\n assert.equal(transition.to.localName, 'index');\n });\n }\n\n }));\n return this.visit('/');\n }\n\n '@test subsequent visits'(assert) {\n assert.expect(24);\n let toParent = true;\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n if (toParent) {\n assert.equal(this.router.currentURL, null, 'starts as null');\n assert.equal(transition.from, undefined);\n assert.equal(transition.to.name, 'parent.child');\n assert.equal(transition.to.localName, 'child');\n assert.equal(transition.to.parent.name, 'parent', 'parent node');\n assert.equal(transition.to.parent.child, transition.to, 'parents child node is the `to`');\n assert.equal(transition.to.parent.parent.name, 'application', 'top level');\n assert.equal(transition.to.parent.parent.parent, null, 'top level');\n } else {\n assert.equal(this.router.currentURL, '/child', 'not changed until transition');\n assert.notEqual(transition.from, undefined);\n assert.equal(transition.from.name, 'parent.child');\n assert.equal(transition.from.localName, 'child');\n assert.equal(transition.to.localName, 'sister');\n assert.equal(transition.to.name, 'parent.sister');\n }\n });\n this.router.on('routeDidChange', transition => {\n if (toParent) {\n assert.equal(this.router.currentURL, '/child');\n assert.equal(transition.from, undefined);\n assert.equal(transition.to.name, 'parent.child');\n assert.equal(transition.to.localName, 'child');\n } else {\n assert.equal(this.router.currentURL, '/sister');\n assert.notEqual(transition.from, undefined);\n assert.equal(transition.from.name, 'parent.child');\n assert.equal(transition.from.localName, 'child');\n assert.equal(transition.to.localName, 'sister');\n assert.equal(transition.to.name, 'parent.sister');\n }\n });\n }\n\n }));\n return this.visit('/child').then(() => {\n toParent = false;\n return this.routerService.transitionTo('parent.sister');\n });\n }\n\n '@test transitions can be retried async'(assert) {\n let done = assert.async();\n this.add(\"route:parent.child\", _routing.Route.extend({\n actions: {\n willTransition(transition) {\n transition.abort();\n this.intermediateTransitionTo('parent.sister');\n (0, _runloop.later)(() => {\n transition.retry();\n done();\n }, 500);\n }\n\n }\n }));\n return this.visit('/child').then(() => {\n return this.visit('/');\n }).catch(e => {\n assert.equal(e.message, 'TransitionAborted');\n });\n }\n\n '@test redirection with `transitionTo`'(assert) {\n assert.expect(8);\n let toChild = false;\n let toSister = false;\n this.add(\"route:parent\", _routing.Route.extend({\n model() {\n this.transitionTo('parent.child');\n }\n\n }));\n this.add(\"route:parent.child\", _routing.Route.extend({\n model() {\n this.transitionTo('parent.sister');\n }\n\n }));\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n assert.equal(transition.from, undefined, 'initial');\n\n if (toChild) {\n if (toSister) {\n assert.equal(transition.to.name, 'parent.sister', 'going to /sister');\n } else {\n assert.equal(transition.to.name, 'parent.child', 'going to /child');\n toSister = true;\n }\n } else {\n // Going to `/`\n assert.equal(transition.to.name, 'parent.index', 'going to /');\n toChild = true;\n }\n });\n this.router.on('routeDidChange', transition => {\n assert.equal(transition.from, undefined, 'initial');\n assert.equal(transition.to.name, 'parent.sister', 'landed on /sister');\n });\n }\n\n }));\n return this.visit('/');\n }\n\n '@test redirection with `replaceWith`'(assert) {\n assert.expect(8);\n let toChild = false;\n let toSister = false;\n this.add(\"route:parent\", _routing.Route.extend({\n model() {\n this.replaceWith('parent.child');\n }\n\n }));\n this.add(\"route:parent.child\", _routing.Route.extend({\n model() {\n this.replaceWith('parent.sister');\n }\n\n }));\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n assert.equal(transition.from, undefined, 'initial');\n\n if (toChild) {\n if (toSister) {\n assert.equal(transition.to.name, 'parent.sister', 'going to /sister');\n } else {\n assert.equal(transition.to.name, 'parent.child', 'going to /child');\n toSister = true;\n }\n } else {\n // Going to `/`\n assert.equal(transition.to.name, 'parent.index', 'going to /');\n toChild = true;\n }\n });\n this.router.on('routeDidChange', transition => {\n assert.equal(transition.from, undefined, 'initial');\n assert.equal(transition.to.name, 'parent.sister', 'landed on /sister');\n });\n }\n\n }));\n return this.visit('/');\n }\n\n '@test nested redirection with `transitionTo`'(assert) {\n assert.expect(11);\n let toChild = false;\n let toSister = false;\n this.add(\"route:parent.child\", _routing.Route.extend({\n model() {\n this.transitionTo('parent.sister');\n }\n\n }));\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n if (toChild) {\n assert.equal(transition.from.name, 'parent.index');\n\n if (toSister) {\n assert.equal(transition.to.name, 'parent.sister', 'going to /sister');\n } else {\n assert.equal(transition.to.name, 'parent.child', 'going to /child');\n toSister = true;\n }\n } else {\n // Going to `/`\n assert.equal(transition.to.name, 'parent.index', 'going to /');\n assert.equal(transition.from, undefined, 'initial');\n }\n });\n this.router.on('routeDidChange', transition => {\n if (toSister) {\n assert.equal(transition.from.name, 'parent.index', 'initial');\n assert.equal(transition.to.name, 'parent.sister', 'landed on /sister');\n } else {\n assert.equal(transition.from, undefined, 'initial');\n assert.equal(transition.to.name, 'parent.index', 'landed on /');\n }\n });\n }\n\n }));\n return this.visit('/').then(() => {\n toChild = true;\n return this.routerService.transitionTo('/child').catch(e => {\n assert.equal(e.name, 'TransitionAborted', 'Transition aborted');\n });\n });\n }\n\n '@test nested redirection with `replaceWith`'(assert) {\n assert.expect(11);\n let toChild = false;\n let toSister = false;\n this.add(\"route:parent.child\", _routing.Route.extend({\n model() {\n this.replaceWith('parent.sister');\n }\n\n }));\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n if (toChild) {\n assert.equal(transition.from.name, 'parent.index');\n\n if (toSister) {\n assert.equal(transition.to.name, 'parent.sister', 'going to /sister');\n } else {\n assert.equal(transition.to.name, 'parent.child', 'going to /child');\n toSister = true;\n }\n } else {\n // Going to `/`\n assert.equal(transition.to.name, 'parent.index', 'going to /');\n assert.equal(transition.from, undefined, 'initial');\n }\n });\n this.router.on('routeDidChange', transition => {\n if (toSister) {\n assert.equal(transition.from.name, 'parent.index', 'initial');\n assert.equal(transition.to.name, 'parent.sister', 'landed on /sister');\n } else {\n assert.equal(transition.from, undefined, 'initial');\n assert.equal(transition.to.name, 'parent.index', 'landed on /');\n }\n });\n }\n\n }));\n return this.visit('/').then(() => {\n toChild = true;\n return this.routerService.transitionTo('/child').catch(e => {\n assert.equal(e.name, 'TransitionAborted', 'Transition aborted');\n });\n });\n }\n\n '@test aborted transition'(assert) {\n assert.expect(11);\n let didAbort = false;\n let toChild = false;\n this.add(\"route:parent.child\", _routing.Route.extend({\n model(_model, transition) {\n didAbort = true;\n transition.abort();\n }\n\n }));\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n if (didAbort) {\n assert.equal(transition.to.name, 'parent.index', 'transition aborted');\n assert.equal(transition.from.name, 'parent.index', 'transition aborted');\n } else if (toChild) {\n assert.equal(transition.from.name, 'parent.index', 'from /');\n assert.equal(transition.to.name, 'parent.child', 'to /child');\n } else {\n assert.equal(transition.to.name, 'parent.index', 'going to /');\n assert.equal(transition.from, undefined, 'initial');\n }\n });\n this.router.on('routeDidChange', transition => {\n if (didAbort) {\n assert.equal(transition.to.name, 'parent.index', 'landed on /');\n assert.equal(transition.from.name, 'parent.index', 'initial');\n } else {\n assert.equal(transition.to.name, 'parent.index', 'transition aborted');\n assert.equal(transition.from, undefined, 'transition aborted');\n }\n });\n }\n\n }));\n return this.visit('/').then(() => {\n toChild = true;\n return this.routerService.transitionTo('/child').catch(e => {\n assert.equal(e.name, 'TransitionAborted', 'Transition aborted');\n });\n });\n }\n\n '@test query param transitions'(assert) {\n assert.expect(15);\n let initial = true;\n let addQP = false;\n let removeQP = false;\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n assert.equal(transition.to.name, 'parent.index');\n\n if (initial) {\n assert.equal(transition.from, null);\n assert.deepEqual(transition.to.queryParams, {\n a: 'true'\n });\n } else if (addQP) {\n assert.deepEqual(transition.from.queryParams, {\n a: 'true'\n });\n assert.deepEqual(transition.to.queryParams, {\n a: 'false',\n b: 'b'\n });\n } else if (removeQP) {\n assert.deepEqual(transition.from.queryParams, {\n a: 'false',\n b: 'b'\n });\n assert.deepEqual(transition.to.queryParams, {\n a: 'false'\n });\n } else {\n assert.ok(false, 'never');\n }\n });\n this.router.on('routeDidChange', transition => {\n if (initial) {\n assert.equal(transition.from, null);\n assert.deepEqual(transition.to.queryParams, {\n a: 'true'\n });\n } else if (addQP) {\n assert.deepEqual(transition.from.queryParams, {\n a: 'true'\n });\n assert.deepEqual(transition.to.queryParams, {\n a: 'false',\n b: 'b'\n });\n } else if (removeQP) {\n assert.deepEqual(transition.from.queryParams, {\n a: 'false',\n b: 'b'\n });\n assert.deepEqual(transition.to.queryParams, {\n a: 'false'\n });\n } else {\n assert.ok(false, 'never');\n }\n });\n }\n\n }));\n return this.visit('/?a=true').then(() => {\n addQP = true;\n initial = false;\n return this.routerService.transitionTo('/?a=false&b=b');\n }).then(() => {\n removeQP = true;\n addQP = false;\n return this.routerService.transitionTo('/?a=false');\n });\n }\n\n '@test query param redirects with `transitionTo`'(assert) {\n assert.expect(6);\n let toSister = false;\n this.add(\"route:parent.child\", _routing.Route.extend({\n model() {\n toSister = true;\n this.transitionTo('/sister?a=a');\n }\n\n }));\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n if (toSister) {\n assert.equal(transition.to.name, 'parent.sister');\n assert.deepEqual(transition.to.queryParams, {\n a: 'a'\n });\n } else {\n assert.equal(transition.to.name, 'parent.child');\n assert.deepEqual(transition.to.queryParams, {});\n }\n });\n this.router.on('routeDidChange', transition => {\n assert.equal(transition.to.name, 'parent.sister');\n assert.deepEqual(transition.to.queryParams, {\n a: 'a'\n });\n });\n }\n\n }));\n return this.visit('/child');\n }\n\n '@test query param redirects with `replaceWith`'(assert) {\n assert.expect(6);\n let toSister = false;\n this.add(\"route:parent.child\", _routing.Route.extend({\n model() {\n toSister = true;\n this.replaceWith('/sister?a=a');\n }\n\n }));\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n if (toSister) {\n assert.equal(transition.to.name, 'parent.sister');\n assert.deepEqual(transition.to.queryParams, {\n a: 'a'\n });\n } else {\n assert.equal(transition.to.name, 'parent.child');\n assert.deepEqual(transition.to.queryParams, {});\n }\n });\n this.router.on('routeDidChange', transition => {\n assert.equal(transition.to.name, 'parent.sister');\n assert.deepEqual(transition.to.queryParams, {\n a: 'a'\n });\n });\n }\n\n }));\n return this.visit('/child');\n }\n\n '@test params'(assert) {\n assert.expect(14);\n let inital = true;\n this.add('route:dynamic', _routing.Route.extend({\n model(params) {\n if (inital) {\n assert.deepEqual(params, {\n dynamic_id: '123'\n });\n } else {\n assert.deepEqual(params, {\n dynamic_id: '1'\n });\n }\n\n return params;\n }\n\n }));\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n assert.equal(transition.to.name, 'dynamic');\n\n if (inital) {\n assert.deepEqual(transition.to.paramNames, ['dynamic_id']);\n assert.deepEqual(transition.to.params, {\n dynamic_id: '123'\n });\n } else {\n assert.deepEqual(transition.to.paramNames, ['dynamic_id']);\n assert.deepEqual(transition.to.params, {\n dynamic_id: '1'\n });\n }\n });\n this.router.on('routeDidChange', transition => {\n assert.equal(transition.to.name, 'dynamic');\n assert.deepEqual(transition.to.paramNames, ['dynamic_id']);\n\n if (inital) {\n assert.deepEqual(transition.to.params, {\n dynamic_id: '123'\n });\n } else {\n assert.deepEqual(transition.to.params, {\n dynamic_id: '1'\n });\n }\n });\n }\n\n }));\n return this.visit('/dynamic/123').then(() => {\n inital = false;\n return this.routerService.transitionTo('dynamic', 1);\n });\n }\n\n '@test nested params'(assert) {\n assert.expect(30);\n let initial = true;\n this.add('route:dynamicWithChild', _routing.Route.extend({\n model(params) {\n if (initial) {\n assert.deepEqual(params, {\n dynamic_id: '123'\n });\n } else {\n assert.deepEqual(params, {\n dynamic_id: '456'\n });\n }\n\n return params.dynamic_id;\n }\n\n }));\n this.add('route:dynamicWithChild.child', _routing.Route.extend({\n model(params) {\n assert.deepEqual(params, {\n child_id: '456'\n });\n return params.child_id;\n }\n\n }));\n this.add(\"route:application\", _routing.Route.extend({\n router: (0, _service.inject)('router'),\n\n init() {\n this._super(...arguments);\n\n this.router.on('routeWillChange', transition => {\n assert.equal(transition.to.name, 'dynamicWithChild.child');\n assert.deepEqual(transition.to.paramNames, ['child_id']);\n assert.deepEqual(transition.to.params, {\n child_id: '456'\n });\n assert.deepEqual(transition.to.parent.paramNames, ['dynamic_id']);\n\n if (initial) {\n assert.deepEqual(transition.to.parent.params, {\n dynamic_id: '123'\n });\n } else {\n assert.deepEqual(transition.from.attributes, '456');\n assert.deepEqual(transition.from.parent.attributes, '123');\n assert.deepEqual(transition.to.parent.params, {\n dynamic_id: '456'\n });\n }\n });\n this.router.on('routeDidChange', transition => {\n assert.equal(transition.to.name, 'dynamicWithChild.child');\n assert.deepEqual(transition.to.paramNames, ['child_id']);\n assert.deepEqual(transition.to.params, {\n child_id: '456'\n });\n assert.deepEqual(transition.to.parent.paramNames, ['dynamic_id']);\n\n if (initial) {\n assert.deepEqual(transition.to.parent.params, {\n dynamic_id: '123'\n });\n } else {\n assert.deepEqual(transition.from.attributes, '456');\n assert.deepEqual(transition.from.parent.attributes, '123');\n assert.deepEqual(transition.to.attributes, '456');\n assert.deepEqual(transition.to.parent.attributes, '456');\n assert.deepEqual(transition.to.parent.params, {\n dynamic_id: '456'\n });\n }\n });\n }\n\n }));\n return this.visit('/dynamic-with-child/123/456').then(() => {\n initial = false;\n return this.routerService.transitionTo('/dynamic-with-child/456/456');\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Router Service - deprecated events', class extends _internalTestHelpers.RouterTestCase {\n '@test willTransition events are deprecated'() {\n return this.visit('/').then(() => {\n expectDeprecation(() => {\n this.routerService['_router'].on('willTransition', () => {});\n }, 'You attempted to listen to the \"willTransition\" event which is deprecated. Please inject the router service and listen to the \"routeWillChange\" event.');\n });\n }\n\n '@test willTransition events are deprecated on routes'() {\n this.add('route:application', _routing.Route.extend({\n init() {\n this._super(...arguments);\n\n this.on('willTransition', () => {});\n }\n\n }));\n expectDeprecation(() => {\n return this.visit('/');\n }, 'You attempted to listen to the \"willTransition\" event which is deprecated. Please inject the router service and listen to the \"routeWillChange\" event.');\n }\n\n '@test didTransition events are deprecated on routes'() {\n this.add('route:application', _routing.Route.extend({\n init() {\n this._super(...arguments);\n\n this.on('didTransition', () => {});\n }\n\n }));\n expectDeprecation(() => {\n return this.visit('/');\n }, 'You attempted to listen to the \"didTransition\" event which is deprecated. Please inject the router service and listen to the \"routeDidChange\" event.');\n }\n\n '@test other events are not deprecated on routes'() {\n this.add('route:application', _routing.Route.extend({\n init() {\n this._super(...arguments);\n\n this.on('fixx', () => {});\n }\n\n }));\n expectNoDeprecation(() => {\n return this.visit('/');\n });\n }\n\n '@test didTransition events are deprecated'() {\n return this.visit('/').then(() => {\n expectDeprecation(() => {\n this.routerService['_router'].on('didTransition', () => {});\n }, 'You attempted to listen to the \"didTransition\" event which is deprecated. Please inject the router service and listen to the \"routeDidChange\" event.');\n });\n }\n\n '@test other events are not deprecated'() {\n return this.visit('/').then(() => {\n expectNoDeprecation(() => {\n this.routerService['_router'].on('wat', () => {});\n });\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Router Service: deprecated willTransition hook', class extends _internalTestHelpers.RouterTestCase {\n get routerOptions() {\n return {\n willTransition() {\n this._super(...arguments); // Overrides\n\n }\n\n };\n }\n\n '@test willTransition hook is deprecated'() {\n expectDeprecation(() => {\n return this.visit('/');\n }, 'You attempted to override the \"willTransition\" method which is deprecated. Please inject the router service and listen to the \"routeWillChange\" event.');\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Router Service: deprecated didTransition hook', class extends _internalTestHelpers.RouterTestCase {\n get routerOptions() {\n return {\n didTransition() {\n this._super(...arguments); // Overrides\n\n }\n\n };\n }\n\n '@test didTransition hook is deprecated'() {\n expectDeprecation(() => {\n return this.visit('/');\n }, 'You attempted to override the \"didTransition\" method which is deprecated. Please inject the router service and listen to the \"routeDidChange\" event.');\n }\n\n });\n});","enifed(\"ember/tests/routing/router_service_test/isActive_test\", [\"@ember/controller\", \"internal-test-helpers\"], function (_controller, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Router Service - isActive', class extends _internalTestHelpers.RouterTestCase {\n ['@test RouterService#isActive returns true for simple route'](assert) {\n assert.expect(1);\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.child');\n }).then(() => {\n return this.routerService.transitionTo('parent.sister');\n }).then(() => {\n assert.ok(this.routerService.isActive('parent.sister'));\n });\n }\n\n ['@test RouterService#isActive returns true for simple route with dynamic segments'](assert) {\n assert.expect(1);\n let dynamicModel = {\n id: 1\n };\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('dynamic', dynamicModel);\n }).then(() => {\n assert.ok(this.routerService.isActive('dynamic', dynamicModel));\n });\n }\n\n ['@test RouterService#isActive does not eagerly instantiate controller for query params'](assert) {\n assert.expect(1);\n let queryParams = this.buildQueryParams({\n sort: 'ASC'\n });\n this.add('controller:parent.sister', _controller.default.extend({\n queryParams: ['sort'],\n sort: 'ASC',\n\n init() {\n assert.ok(false, 'should never create');\n\n this._super(...arguments);\n }\n\n }));\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.brother');\n }).then(() => {\n assert.notOk(this.routerService.isActive('parent.sister', queryParams));\n });\n }\n\n ['@test RouterService#isActive is correct for simple route with basic query params'](assert) {\n assert.expect(2);\n let queryParams = this.buildQueryParams({\n sort: 'ASC'\n });\n this.add('controller:parent.child', _controller.default.extend({\n queryParams: ['sort'],\n sort: 'ASC'\n }));\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.child', queryParams);\n }).then(() => {\n assert.ok(this.routerService.isActive('parent.child', queryParams));\n assert.notOk(this.routerService.isActive('parent.child', this.buildQueryParams({\n sort: 'DESC'\n })));\n });\n }\n\n ['@test RouterService#isActive for simple route with array as query params'](assert) {\n assert.expect(1);\n let queryParams = this.buildQueryParams({\n sort: ['ascending']\n });\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.child', queryParams);\n }).then(() => {\n assert.notOk(this.routerService.isActive('parent.child', this.buildQueryParams({\n sort: 'descending'\n })));\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/router_service_test/recognize_test\", [\"internal-test-helpers\", \"@ember/-internals/routing\"], function (_internalTestHelpers, _routing) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Router Service - recognize', class extends _internalTestHelpers.RouterTestCase {\n '@test returns a RouteInfo for recognized URL'(assert) {\n return this.visit('/').then(() => {\n let routeInfo = this.routerService.recognize('/dynamic-with-child/123/1?a=b');\n assert.ok(routeInfo);\n let {\n name,\n localName,\n parent,\n child,\n params,\n queryParams,\n paramNames\n } = routeInfo;\n assert.equal(name, 'dynamicWithChild.child');\n assert.equal(localName, 'child');\n assert.ok(parent);\n assert.equal(parent.name, 'dynamicWithChild');\n assert.notOk(child);\n assert.deepEqual(params, {\n child_id: '1'\n });\n assert.deepEqual(queryParams, {\n a: 'b'\n });\n assert.deepEqual(paramNames, ['child_id']);\n });\n }\n\n '@test does not transition'(assert) {\n this.addTemplate('parent', 'Parent');\n this.addTemplate('dynamic-with-child.child', 'Dynamic Child');\n return this.visit('/').then(() => {\n this.routerService.recognize('/dynamic-with-child/123/1?a=b');\n this.assertText('Parent', 'Did not transition and cause render');\n assert.equal(this.routerService.currentURL, '/', 'Did not transition');\n });\n }\n\n '@test respects the usage of a different rootURL'(assert) {\n this.router.reopen({\n rootURL: '/app/'\n });\n return this.visit('/app').then(() => {\n let routeInfo = this.routerService.recognize('/app/child/');\n assert.ok(routeInfo);\n let {\n name,\n localName,\n parent\n } = routeInfo;\n assert.equal(name, 'parent.child');\n assert.equal(localName, 'child');\n assert.equal(parent.name, 'parent');\n });\n }\n\n '@test must include rootURL'() {\n this.addTemplate('parent', 'Parent');\n this.addTemplate('dynamic-with-child.child', 'Dynamic Child');\n this.router.reopen({\n rootURL: '/app/'\n });\n return this.visit('/app').then(() => {\n expectAssertion(() => {\n this.routerService.recognize('/dynamic-with-child/123/1?a=b');\n }, 'You must pass a url that begins with the application\\'s rootURL \"/app/\"');\n });\n }\n\n '@test returns `null` if URL is not recognized'(assert) {\n return this.visit('/').then(() => {\n let routeInfo = this.routerService.recognize('/foo');\n assert.equal(routeInfo, null);\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Router Service - recognizeAndLoad', class extends _internalTestHelpers.RouterTestCase {\n '@test returns a RouteInfoWithAttributes for recognized URL'(assert) {\n this.add('route:dynamicWithChild', _routing.Route.extend({\n model(params) {\n return {\n name: 'dynamicWithChild',\n data: params.dynamic_id\n };\n }\n\n }));\n this.add('route:dynamicWithChild.child', _routing.Route.extend({\n model(params) {\n return {\n name: 'dynamicWithChild.child',\n data: params.child_id\n };\n }\n\n }));\n return this.visit('/').then(() => {\n return this.routerService.recognizeAndLoad('/dynamic-with-child/123/1?a=b');\n }).then(routeInfoWithAttributes => {\n assert.ok(routeInfoWithAttributes);\n let {\n name,\n localName,\n parent,\n attributes,\n paramNames,\n params,\n queryParams\n } = routeInfoWithAttributes;\n assert.equal(name, 'dynamicWithChild.child');\n assert.equal(localName, 'child');\n assert.equal(parent.name, 'dynamicWithChild');\n assert.deepEqual(params, {\n child_id: '1'\n });\n assert.deepEqual(queryParams, {\n a: 'b'\n });\n assert.deepEqual(paramNames, ['child_id']);\n assert.deepEqual(attributes, {\n name: 'dynamicWithChild.child',\n data: '1'\n });\n assert.deepEqual(parent.attributes, {\n name: 'dynamicWithChild',\n data: '123'\n });\n assert.deepEqual(parent.paramNames, ['dynamic_id']);\n assert.deepEqual(parent.params, {\n dynamic_id: '123'\n });\n });\n }\n\n '@test does not transition'(assert) {\n this.addTemplate('parent', 'Parent{{outlet}}');\n this.addTemplate('parent.child', 'Child');\n this.add('route:parent.child', _routing.Route.extend({\n model() {\n return {\n name: 'child',\n data: ['stuff']\n };\n }\n\n }));\n return this.visit('/').then(() => {\n this.routerService.on('routeWillChange', () => assert.ok(false));\n this.routerService.on('routeDidChange', () => assert.ok(false));\n return this.routerService.recognizeAndLoad('/child');\n }).then(() => {\n assert.equal(this.routerService.currentURL, '/');\n this.assertText('Parent');\n });\n }\n\n '@test respects the usage of a different rootURL'(assert) {\n this.router.reopen({\n rootURL: '/app/'\n });\n return this.visit('/app').then(() => {\n return this.routerService.recognizeAndLoad('/app/child/');\n }).then(routeInfoWithAttributes => {\n assert.ok(routeInfoWithAttributes);\n let {\n name,\n localName,\n parent\n } = routeInfoWithAttributes;\n assert.equal(name, 'parent.child');\n assert.equal(localName, 'child');\n assert.equal(parent.name, 'parent');\n });\n }\n\n '@test must include rootURL'() {\n this.router.reopen({\n rootURL: '/app/'\n });\n return this.visit('/app').then(() => {\n expectAssertion(() => {\n this.routerService.recognizeAndLoad('/dynamic-with-child/123/1?a=b');\n }, 'You must pass a url that begins with the application\\'s rootURL \"/app/\"');\n });\n }\n\n '@test rejects if url is not recognized'(assert) {\n this.addTemplate('parent', 'Parent{{outlet}}');\n this.addTemplate('parent.child', 'Child');\n this.add('route:parent.child', _routing.Route.extend({\n model() {\n return {\n name: 'child',\n data: ['stuff']\n };\n }\n\n }));\n return this.visit('/').then(() => {\n return this.routerService.recognizeAndLoad('/foo');\n }).then(() => {\n assert.ok(false, 'never');\n }, reason => {\n assert.equal(reason, 'URL /foo was not recognized');\n });\n }\n\n '@test rejects if there is an unhandled error'(assert) {\n this.addTemplate('parent', 'Parent{{outlet}}');\n this.addTemplate('parent.child', 'Child');\n this.add('route:parent.child', _routing.Route.extend({\n model() {\n throw Error('Unhandled');\n }\n\n }));\n return this.visit('/').then(() => {\n return this.routerService.recognizeAndLoad('/child');\n }).then(() => {\n assert.ok(false, 'never');\n }, err => {\n assert.equal(err.message, 'Unhandled');\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/router_service_test/replaceWith_test\", [\"@ember/-internals/routing\", \"internal-test-helpers\", \"router_js\", \"@ember/controller\"], function (_routing, _internalTestHelpers, _router_js, _controller) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Router Service - replaceWith', class extends _internalTestHelpers.RouterTestCase {\n constructor() {\n super(...arguments);\n let testCase = this;\n testCase.state = [];\n this.add('location:test', _routing.NoneLocation.extend({\n setURL(path) {\n testCase.state.push(path);\n this.set('path', path);\n },\n\n replaceURL(path) {\n testCase.state.splice(testCase.state.length - 1, 1, path);\n this.set('path', path);\n }\n\n }));\n }\n\n get routerOptions() {\n return {\n location: 'test'\n };\n }\n\n ['@test RouterService#replaceWith returns a Transition'](assert) {\n assert.expect(1);\n let transition;\n return this.visit('/').then(() => {\n transition = this.routerService.replaceWith('parent.child');\n assert.ok(transition instanceof _router_js.InternalTransition);\n return transition;\n });\n }\n\n ['@test RouterService#replaceWith with basic route replaces location'](assert) {\n assert.expect(1);\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.child');\n }).then(() => {\n return this.routerService.transitionTo('parent.sister');\n }).then(() => {\n return this.routerService.replaceWith('parent.brother');\n }).then(() => {\n assert.deepEqual(this.state, ['/', '/child', '/brother']);\n });\n }\n\n ['@test RouterService#replaceWith with basic route using URLs replaces location'](assert) {\n assert.expect(1);\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('/child');\n }).then(() => {\n return this.routerService.transitionTo('/sister');\n }).then(() => {\n return this.routerService.replaceWith('/brother');\n }).then(() => {\n assert.deepEqual(this.state, ['/', '/child', '/brother']);\n });\n }\n\n ['@test RouterService#replaceWith transitioning back to previously visited route replaces location'](assert) {\n assert.expect(1);\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.child');\n }).then(() => {\n return this.routerService.transitionTo('parent.sister');\n }).then(() => {\n return this.routerService.transitionTo('parent.brother');\n }).then(() => {\n return this.routerService.replaceWith('parent.sister');\n }).then(() => {\n assert.deepEqual(this.state, ['/', '/child', '/sister', '/sister']);\n });\n }\n\n ['@test RouterService#replaceWith with basic query params does not remove query param defaults'](assert) {\n assert.expect(1);\n this.add('controller:parent.child', _controller.default.extend({\n queryParams: ['sort'],\n sort: 'ASC'\n }));\n let queryParams = this.buildQueryParams({\n sort: 'ASC'\n });\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.brother');\n }).then(() => {\n return this.routerService.replaceWith('parent.sister');\n }).then(() => {\n return this.routerService.replaceWith('parent.child', queryParams);\n }).then(() => {\n assert.deepEqual(this.state, ['/', '/child?sort=ASC']);\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/router_service_test/transitionTo_test\", [\"@ember/service\", \"@ember/-internals/glimmer\", \"@ember/-internals/routing\", \"@ember/controller\", \"@ember/runloop\", \"@ember/-internals/metal\", \"internal-test-helpers\", \"router_js\"], function (_service, _glimmer, _routing, _controller, _runloop, _metal, _internalTestHelpers, _router_js) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Router Service - transitionTo', class extends _internalTestHelpers.RouterTestCase {\n constructor() {\n super(...arguments);\n let testCase = this;\n testCase.state = [];\n this.add('location:test', _routing.NoneLocation.extend({\n setURL(path) {\n testCase.state.push(path);\n this.set('path', path);\n },\n\n replaceURL(path) {\n testCase.state.splice(testCase.state.length - 1, 1, path);\n this.set('path', path);\n }\n\n }));\n }\n\n get routerOptions() {\n return {\n location: 'test'\n };\n }\n\n ['@test RouterService#transitionTo returns a Transition'](assert) {\n assert.expect(1);\n let transition;\n return this.visit('/').then(() => {\n transition = this.routerService.transitionTo('parent.child');\n assert.ok(transition instanceof _router_js.InternalTransition);\n return transition;\n });\n }\n\n ['@test RouterService#transitionTo with basic route updates location'](assert) {\n assert.expect(1);\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.child');\n }).then(() => {\n return this.routerService.transitionTo('parent.sister');\n }).then(() => {\n return this.routerService.transitionTo('parent.brother');\n }).then(() => {\n assert.deepEqual(this.state, ['/', '/child', '/sister', '/brother']);\n });\n }\n\n ['@test RouterService#transitionTo transitioning back to previously visited route updates location'](assert) {\n assert.expect(1);\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.child');\n }).then(() => {\n return this.routerService.transitionTo('parent.sister');\n }).then(() => {\n return this.routerService.transitionTo('parent.brother');\n }).then(() => {\n return this.routerService.transitionTo('parent.sister');\n }).then(() => {\n assert.deepEqual(this.state, ['/', '/child', '/sister', '/brother', '/sister']);\n });\n }\n\n ['@test RouterService#transitionTo with basic route'](assert) {\n assert.expect(1);\n let componentInstance;\n this.addTemplate('parent.index', '{{foo-bar}}');\n this.addComponent('foo-bar', {\n ComponentClass: _glimmer.Component.extend({\n routerService: (0, _service.inject)('router'),\n\n init() {\n this._super();\n\n componentInstance = this;\n },\n\n actions: {\n transitionToSister() {\n (0, _metal.get)(this, 'routerService').transitionTo('parent.sister');\n }\n\n }\n }),\n template: \"foo-bar\"\n });\n return this.visit('/').then(() => {\n (0, _runloop.run)(function () {\n componentInstance.send('transitionToSister');\n });\n assert.equal(this.routerService.get('currentRouteName'), 'parent.sister');\n });\n }\n\n ['@test RouterService#transitionTo with basic route using URL'](assert) {\n assert.expect(1);\n let componentInstance;\n this.addTemplate('parent.index', '{{foo-bar}}');\n this.addComponent('foo-bar', {\n ComponentClass: _glimmer.Component.extend({\n routerService: (0, _service.inject)('router'),\n\n init() {\n this._super();\n\n componentInstance = this;\n },\n\n actions: {\n transitionToSister() {\n (0, _metal.get)(this, 'routerService').transitionTo('/sister');\n }\n\n }\n }),\n template: \"foo-bar\"\n });\n return this.visit('/').then(() => {\n (0, _runloop.run)(function () {\n componentInstance.send('transitionToSister');\n });\n assert.equal(this.routerService.get('currentRouteName'), 'parent.sister');\n });\n }\n\n ['@test RouterService#transitionTo with dynamic segment'](assert) {\n assert.expect(3);\n let componentInstance;\n let dynamicModel = {\n id: 1,\n contents: 'much dynamicism'\n };\n this.addTemplate('parent.index', '{{foo-bar}}');\n this.addTemplate('dynamic', '{{model.contents}}');\n this.addComponent('foo-bar', {\n ComponentClass: _glimmer.Component.extend({\n routerService: (0, _service.inject)('router'),\n\n init() {\n this._super();\n\n componentInstance = this;\n },\n\n actions: {\n transitionToDynamic() {\n (0, _metal.get)(this, 'routerService').transitionTo('dynamic', dynamicModel);\n }\n\n }\n }),\n template: \"foo-bar\"\n });\n return this.visit('/').then(() => {\n (0, _runloop.run)(function () {\n componentInstance.send('transitionToDynamic');\n });\n assert.equal(this.routerService.get('currentRouteName'), 'dynamic');\n assert.equal(this.routerService.get('currentURL'), '/dynamic/1');\n this.assertText('much dynamicism');\n });\n }\n\n ['@test RouterService#transitionTo with dynamic segment and model hook'](assert) {\n assert.expect(3);\n let componentInstance;\n let dynamicModel = {\n id: 1,\n contents: 'much dynamicism'\n };\n this.add('route:dynamic', _routing.Route.extend({\n model() {\n return dynamicModel;\n }\n\n }));\n this.addTemplate('parent.index', '{{foo-bar}}');\n this.addTemplate('dynamic', '{{model.contents}}');\n this.addComponent('foo-bar', {\n ComponentClass: _glimmer.Component.extend({\n routerService: (0, _service.inject)('router'),\n\n init() {\n this._super();\n\n componentInstance = this;\n },\n\n actions: {\n transitionToDynamic() {\n (0, _metal.get)(this, 'routerService').transitionTo('dynamic', 1);\n }\n\n }\n }),\n template: \"foo-bar\"\n });\n return this.visit('/').then(() => {\n (0, _runloop.run)(function () {\n componentInstance.send('transitionToDynamic');\n });\n assert.equal(this.routerService.get('currentRouteName'), 'dynamic');\n assert.equal(this.routerService.get('currentURL'), '/dynamic/1');\n this.assertText('much dynamicism');\n });\n }\n\n ['@test RouterService#transitionTo with basic query params does not remove query param defaults'](assert) {\n assert.expect(1);\n this.add('controller:parent.child', _controller.default.extend({\n queryParams: ['sort'],\n sort: 'ASC'\n }));\n let queryParams = this.buildQueryParams({\n sort: 'ASC'\n });\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.child', queryParams);\n }).then(() => {\n assert.equal(this.routerService.get('currentURL'), '/child?sort=ASC');\n });\n }\n\n ['@test RouterService#transitionTo passing only queryParams works'](assert) {\n assert.expect(2);\n this.add('controller:parent.child', _controller.default.extend({\n queryParams: ['sort']\n }));\n let queryParams = this.buildQueryParams({\n sort: 'DESC'\n });\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.child');\n }).then(() => {\n assert.equal(this.routerService.get('currentURL'), '/child');\n }).then(() => {\n return this.routerService.transitionTo(queryParams);\n }).then(() => {\n assert.equal(this.routerService.get('currentURL'), '/child?sort=DESC');\n });\n }\n\n ['@test RouterService#transitionTo with unspecified query params'](assert) {\n assert.expect(1);\n this.add('controller:parent.child', _controller.default.extend({\n queryParams: ['sort', 'page', 'category', 'extra'],\n sort: 'ASC',\n page: null,\n category: undefined\n }));\n let queryParams = this.buildQueryParams({\n sort: 'ASC'\n });\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.child', queryParams);\n }).then(() => {\n assert.equal(this.routerService.get('currentURL'), '/child?sort=ASC');\n });\n }\n\n ['@test RouterService#transitionTo with aliased query params uses the original provided key'](assert) {\n assert.expect(1);\n this.add('controller:parent.child', _controller.default.extend({\n queryParams: {\n cont_sort: 'url_sort'\n },\n cont_sort: 'ASC'\n }));\n let queryParams = this.buildQueryParams({\n url_sort: 'ASC'\n });\n return this.visit('/').then(() => {\n return this.routerService.transitionTo('parent.child', queryParams);\n }).then(() => {\n assert.equal(this.routerService.get('currentURL'), '/child?url_sort=ASC');\n });\n }\n\n ['@test RouterService#transitionTo with aliased query params uses the original provided key when controller property name'](assert) {\n assert.expect(1);\n this.add('controller:parent.child', _controller.default.extend({\n queryParams: {\n cont_sort: 'url_sort'\n },\n cont_sort: 'ASC'\n }));\n let queryParams = this.buildQueryParams({\n cont_sort: 'ASC'\n });\n return this.visit('/').then(() => {\n expectAssertion(() => {\n return this.routerService.transitionTo('parent.child', queryParams);\n }, 'You passed the `cont_sort` query parameter during a transition into parent.child, please update to url_sort');\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/router_service_test/urlFor_test\", [\"@ember/controller\", \"@ember/string\", \"@ember/-internals/routing\", \"@ember/-internals/metal\", \"internal-test-helpers\"], function (_controller, _string, _routing, _metal, _internalTestHelpers) {\n \"use strict\";\n\n function setupController(app, name) {\n let controllerName = (0, _string.capitalize)(name) + \"Controller\";\n Object.defineProperty(app, controllerName, {\n get() {\n throw new Error(\"Generating a URL should not require instantiation of a \" + controllerName + \".\");\n }\n\n });\n }\n\n (0, _internalTestHelpers.moduleFor)('Router Service - urlFor', class extends _internalTestHelpers.RouterTestCase {\n ['@test RouterService#urlFor returns URL for simple route'](assert) {\n assert.expect(1);\n return this.visit('/').then(() => {\n let expectedURL = this.routerService.urlFor('parent.child');\n assert.equal('/child', expectedURL);\n });\n }\n\n ['@test RouterService#urlFor returns URL for simple route with dynamic segments'](assert) {\n assert.expect(1);\n setupController(this.application, 'dynamic');\n let dynamicModel = {\n id: 1,\n contents: 'much dynamicism'\n };\n return this.visit('/').then(() => {\n let expectedURL = this.routerService.urlFor('dynamic', dynamicModel);\n assert.equal('/dynamic/1', expectedURL);\n });\n }\n\n ['@test RouterService#urlFor returns URL for simple route with basic query params'](assert) {\n assert.expect(1);\n let queryParams = this.buildQueryParams({\n foo: 'bar'\n });\n return this.visit('/').then(() => {\n let expectedURL = this.routerService.urlFor('parent.child', queryParams);\n assert.equal('/child?foo=bar', expectedURL);\n });\n }\n\n ['@test RouterService#urlFor returns URL for simple route with basic query params and default value'](assert) {\n assert.expect(1);\n this.add('controller:parent.child', _controller.default.extend({\n queryParams: ['sort'],\n sort: 'ASC'\n }));\n let queryParams = this.buildQueryParams({\n sort: 'ASC'\n });\n return this.visit('/').then(() => {\n let expectedURL = this.routerService.urlFor('parent.child', queryParams);\n assert.equal('/child?sort=ASC', expectedURL);\n });\n }\n\n ['@test RouterService#urlFor returns URL for simple route with basic query params and default value with stickyness'](assert) {\n assert.expect(2);\n this.add('controller:parent.child', _controller.default.extend({\n queryParams: ['sort', 'foo'],\n sort: 'ASC'\n }));\n return this.visit('/child/?sort=DESC').then(() => {\n let controller = this.applicationInstance.lookup('controller:parent.child');\n assert.equal((0, _metal.get)(controller, 'sort'), 'DESC', 'sticky is set');\n let queryParams = this.buildQueryParams({\n foo: 'derp'\n });\n let actual = this.routerService.urlFor('parent.child', queryParams);\n assert.equal(actual, '/child?foo=derp', 'does not use \"stickiness\"');\n });\n }\n\n ['@test RouterService#urlFor returns URL for simple route with array as query params'](assert) {\n assert.expect(1);\n let queryParams = this.buildQueryParams({\n selectedItems: ['a', 'b', 'c']\n });\n return this.visit('/').then(() => {\n let expectedURL = this.routerService.urlFor('parent.child', queryParams);\n assert.equal('/child?selectedItems[]=a&selectedItems[]=b&selectedItems[]=c', expectedURL);\n });\n }\n\n ['@test RouterService#urlFor returns URL for simple route with null query params'](assert) {\n assert.expect(1);\n let queryParams = this.buildQueryParams({\n foo: null\n });\n return this.visit('/').then(() => {\n let expectedURL = this.routerService.urlFor('parent.child', queryParams);\n assert.equal('/child', expectedURL);\n });\n }\n\n ['@test RouterService#urlFor returns URL for simple route with undefined query params'](assert) {\n assert.expect(1);\n let queryParams = this.buildQueryParams({\n foo: undefined\n });\n return this.visit('/').then(() => {\n let expectedURL = this.routerService.urlFor('parent.child', queryParams);\n assert.equal('/child', expectedURL);\n });\n }\n\n ['@test RouterService#urlFor returns URL for simple route with dynamic segments and basic query params'](assert) {\n assert.expect(1);\n let queryParams = this.buildQueryParams({\n foo: 'bar'\n });\n return this.visit('/').then(() => {\n let expectedURL = this.routerService.urlFor('dynamic', {\n id: 1\n }, queryParams);\n assert.equal('/dynamic/1?foo=bar', expectedURL);\n });\n }\n\n ['@test RouterService#urlFor returns URL for simple route with dynamic segments and array as query params'](assert) {\n assert.expect(1);\n let queryParams = this.buildQueryParams({\n selectedItems: ['a', 'b', 'c']\n });\n return this.visit('/').then(() => {\n let expectedURL = this.routerService.urlFor('dynamic', {\n id: 1\n }, queryParams);\n assert.equal('/dynamic/1?selectedItems[]=a&selectedItems[]=b&selectedItems[]=c', expectedURL);\n });\n }\n\n ['@test RouterService#urlFor returns URL for simple route with dynamic segments and null query params'](assert) {\n assert.expect(1);\n let queryParams = this.buildQueryParams({\n foo: null\n });\n return this.visit('/').then(() => {\n let expectedURL = this.routerService.urlFor('dynamic', {\n id: 1\n }, queryParams);\n assert.equal('/dynamic/1', expectedURL);\n });\n }\n\n ['@test RouterService#urlFor returns URL for simple route with dynamic segments and undefined query params'](assert) {\n assert.expect(1);\n let queryParams = this.buildQueryParams({\n foo: undefined\n });\n return this.visit('/').then(() => {\n let expectedURL = this.routerService.urlFor('dynamic', {\n id: 1\n }, queryParams);\n assert.equal('/dynamic/1', expectedURL);\n });\n }\n\n ['@test RouterService#urlFor correctly transitions to route via generated path'](assert) {\n assert.expect(1);\n let expectedURL;\n return this.visit('/').then(() => {\n expectedURL = this.routerService.urlFor('parent.child');\n return this.routerService.transitionTo(expectedURL);\n }).then(() => {\n assert.equal(expectedURL, this.routerService.get('currentURL'));\n });\n }\n\n ['@test RouterService#urlFor correctly transitions to route via generated path with dynamic segments'](assert) {\n assert.expect(1);\n let expectedURL;\n let dynamicModel = {\n id: 1\n };\n this.add('route:dynamic', _routing.Route.extend({\n model() {\n return dynamicModel;\n }\n\n }));\n return this.visit('/').then(() => {\n expectedURL = this.routerService.urlFor('dynamic', dynamicModel);\n return this.routerService.transitionTo(expectedURL);\n }).then(() => {\n assert.equal(expectedURL, this.routerService.get('currentURL'));\n });\n }\n\n ['@test RouterService#urlFor correctly transitions to route via generated path with query params'](assert) {\n assert.expect(1);\n let expectedURL;\n let actualURL;\n let queryParams = this.buildQueryParams({\n foo: 'bar'\n });\n return this.visit('/').then(() => {\n expectedURL = this.routerService.urlFor('parent.child', queryParams);\n return this.routerService.transitionTo(expectedURL);\n }).then(() => {\n actualURL = this.routerService.get('currentURL') + \"?foo=bar\";\n assert.equal(expectedURL, actualURL);\n });\n }\n\n ['@test RouterService#urlFor correctly transitions to route via generated path with dynamic segments and query params'](assert) {\n assert.expect(1);\n let expectedURL;\n let actualURL;\n let queryParams = this.buildQueryParams({\n foo: 'bar'\n });\n let dynamicModel = {\n id: 1\n };\n this.add('route:dynamic', _routing.Route.extend({\n model() {\n return dynamicModel;\n }\n\n }));\n return this.visit('/').then(() => {\n expectedURL = this.routerService.urlFor('dynamic', dynamicModel, queryParams);\n return this.routerService.transitionTo(expectedURL);\n }).then(() => {\n actualURL = this.routerService.get('currentURL') + \"?foo=bar\";\n assert.equal(expectedURL, actualURL);\n });\n }\n\n });\n});","enifed(\"ember/tests/routing/substates_test\", [\"@ember/-internals/runtime\", \"@ember/-internals/routing\", \"internal-test-helpers\"], function (_runtime, _routing, _internalTestHelpers) {\n \"use strict\";\n\n let counter;\n\n function step(assert, expectedValue, description) {\n assert.equal(counter, expectedValue, 'Step ' + expectedValue + ': ' + description);\n counter++;\n }\n\n (0, _internalTestHelpers.moduleFor)('Loading/Error Substates', class extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n super(...arguments);\n counter = 1;\n this.addTemplate('application', \"{{outlet}}
\");\n this.addTemplate('index', 'INDEX');\n }\n\n getController(name) {\n return this.applicationInstance.lookup(\"controller:\" + name);\n }\n\n get currentPath() {\n let currentPath;\n expectDeprecation(() => {\n currentPath = this.getController('application').get('currentPath');\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n return currentPath;\n }\n\n ['@test Slow promise from a child route of application enters nested loading state'](assert) {\n let turtleDeferred = _runtime.RSVP.defer();\n\n this.router.map(function () {\n this.route('turtle');\n });\n this.add('route:application', _routing.Route.extend({\n setupController() {\n step(assert, 2, 'ApplicationRoute#setupController');\n }\n\n }));\n this.add('route:turtle', _routing.Route.extend({\n model() {\n step(assert, 1, 'TurtleRoute#model');\n return turtleDeferred.promise;\n }\n\n }));\n this.addTemplate('turtle', 'TURTLE');\n this.addTemplate('loading', 'LOADING');\n let promise = this.visit('/turtle').then(() => {\n text = this.$('#app').text();\n assert.equal(text, 'TURTLE', \"turtle template has loaded and replaced the loading template\");\n });\n let text = this.$('#app').text();\n assert.equal(text, 'LOADING', \"The Loading template is nested in application template's outlet\");\n turtleDeferred.resolve();\n return promise;\n }\n\n [\"@test Slow promises returned from ApplicationRoute#model don't enter LoadingRoute\"](assert) {\n let appDeferred = _runtime.RSVP.defer();\n\n this.add('route:application', _routing.Route.extend({\n model() {\n return appDeferred.promise;\n }\n\n }));\n this.add('route:loading', _routing.Route.extend({\n setupController() {\n assert.ok(false, \"shouldn't get here\");\n }\n\n }));\n let promise = this.visit('/').then(() => {\n let text = this.$('#app').text();\n assert.equal(text, 'INDEX', \"index template has been rendered\");\n });\n\n if (this.element) {\n assert.equal(this.element.textContent, '');\n }\n\n appDeferred.resolve();\n return promise;\n }\n\n [\"@test Don't enter loading route unless either route or template defined\"](assert) {\n let deferred = _runtime.RSVP.defer();\n\n this.router.map(function () {\n this.route('dummy');\n });\n this.add('route:dummy', _routing.Route.extend({\n model() {\n return deferred.promise;\n }\n\n }));\n this.addTemplate('dummy', 'DUMMY');\n return this.visit('/').then(() => {\n let promise = this.visit('/dummy').then(() => {\n let text = this.$('#app').text();\n assert.equal(text, 'DUMMY', \"dummy template has been rendered\");\n });\n assert.ok(this.currentPath !== 'loading', \"\\n loading state not entered\\n \");\n deferred.resolve();\n return promise;\n });\n }\n\n ['@test Enter loading route only if loadingRoute is defined'](assert) {\n let deferred = _runtime.RSVP.defer();\n\n this.router.map(function () {\n this.route('dummy');\n });\n this.add('route:dummy', _routing.Route.extend({\n model() {\n step(assert, 1, 'DummyRoute#model');\n return deferred.promise;\n }\n\n }));\n this.add('route:loading', _routing.Route.extend({\n setupController() {\n step(assert, 2, 'LoadingRoute#setupController');\n }\n\n }));\n this.addTemplate('dummy', 'DUMMY');\n return this.visit('/').then(() => {\n let promise = this.visit('/dummy').then(() => {\n let text = this.$('#app').text();\n assert.equal(text, 'DUMMY', \"dummy template has been rendered\");\n });\n assert.equal(this.currentPath, 'loading', \"loading state entered\");\n deferred.resolve();\n return promise;\n });\n }\n\n ['@test Slow promises returned from ApplicationRoute#model enter ApplicationLoadingRoute if present'](assert) {\n let appDeferred = _runtime.RSVP.defer();\n\n this.add('route:application', _routing.Route.extend({\n model() {\n return appDeferred.promise;\n }\n\n }));\n let loadingRouteEntered = false;\n this.add('route:application_loading', _routing.Route.extend({\n setupController() {\n loadingRouteEntered = true;\n }\n\n }));\n let promise = this.visit('/').then(() => {\n assert.equal(this.$('#app').text(), 'INDEX', 'index route loaded');\n });\n assert.ok(loadingRouteEntered, 'ApplicationLoadingRoute was entered');\n appDeferred.resolve();\n return promise;\n }\n\n ['@test Slow promises returned from ApplicationRoute#model enter application_loading if template present'](assert) {\n let appDeferred = _runtime.RSVP.defer();\n\n this.addTemplate('application_loading', \"\\n TOPLEVEL LOADING
\\n \");\n this.add('route:application', _routing.Route.extend({\n model() {\n return appDeferred.promise;\n }\n\n }));\n let promise = this.visit('/').then(() => {\n let length = this.$('#toplevel-loading').length;\n text = this.$('#app').text();\n assert.equal(length, 0, \"top-level loading view has been entirely removed from the DOM\");\n assert.equal(text, 'INDEX', 'index has fully rendered');\n });\n let text = this.$('#toplevel-loading').text();\n assert.equal(text, 'TOPLEVEL LOADING', 'still loading the top level');\n appDeferred.resolve();\n return promise;\n }\n\n ['@test Prioritized substate entry works with preserved-namespace nested routes'](assert) {\n let deferred = _runtime.RSVP.defer();\n\n this.addTemplate('foo.bar_loading', 'FOOBAR LOADING');\n this.addTemplate('foo.bar.index', 'YAY');\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar', {\n path: '/bar'\n }, function () {});\n });\n });\n this.add('route:foo.bar', _routing.Route.extend({\n model() {\n return deferred.promise;\n }\n\n }));\n return this.visit('/').then(() => {\n let promise = this.visit('/foo/bar').then(() => {\n text = this.$('#app').text();\n assert.equal(text, 'YAY', 'foo.bar.index fully loaded');\n });\n let text = this.$('#app').text();\n assert.equal(text, 'FOOBAR LOADING', \"foo.bar_loading was entered (as opposed to something like foo/foo/bar_loading)\");\n deferred.resolve();\n return promise;\n });\n }\n\n ['@test Prioritized substate entry works with reset-namespace nested routes'](assert) {\n let deferred = _runtime.RSVP.defer();\n\n this.addTemplate('bar_loading', 'BAR LOADING');\n this.addTemplate('bar.index', 'YAY');\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar', {\n path: '/bar',\n resetNamespace: true\n }, function () {});\n });\n });\n this.add('route:bar', _routing.Route.extend({\n model() {\n return deferred.promise;\n }\n\n }));\n return this.visit('/').then(() => {\n let promise = this.visit('/foo/bar').then(() => {\n text = this.$('#app').text();\n assert.equal(text, 'YAY', 'bar.index fully loaded');\n });\n let text = this.$('#app').text();\n assert.equal(text, 'BAR LOADING', \"foo.bar_loading was entered (as opposed to something likefoo/foo/bar_loading)\");\n deferred.resolve();\n return promise;\n });\n }\n\n ['@test Prioritized loading substate entry works with preserved-namespace nested routes'](assert) {\n let deferred = _runtime.RSVP.defer();\n\n this.addTemplate('foo.bar_loading', 'FOOBAR LOADING');\n this.addTemplate('foo.bar', 'YAY');\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar');\n });\n });\n this.add('route:foo.bar', _routing.Route.extend({\n model() {\n return deferred.promise;\n }\n\n }));\n let promise = this.visit('/foo/bar').then(() => {\n text = this.$('#app').text();\n assert.equal(text, 'YAY', 'foo.bar has rendered');\n });\n let text = this.$('#app').text();\n assert.equal(text, 'FOOBAR LOADING', \"foo.bar_loading was entered (as opposed to something like foo/foo/bar_loading)\");\n deferred.resolve();\n return promise;\n }\n\n ['@test Prioritized error substate entry works with preserved-namespaec nested routes'](assert) {\n this.addTemplate('foo.bar_error', 'FOOBAR ERROR: {{model.msg}}');\n this.addTemplate('foo.bar', 'YAY');\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar');\n });\n });\n this.add('route:foo.bar', _routing.Route.extend({\n model() {\n return _runtime.RSVP.reject({\n msg: 'did it broke?'\n });\n }\n\n }));\n return this.visit('/').then(() => {\n return this.visit('/foo/bar').then(() => {\n let text = this.$('#app').text();\n assert.equal(text, 'FOOBAR ERROR: did it broke?', \"foo.bar_error was entered (as opposed to something like foo/foo/bar_error)\");\n });\n });\n }\n\n ['@test Prioritized loading substate entry works with auto-generated index routes'](assert) {\n let deferred = _runtime.RSVP.defer();\n\n this.addTemplate('foo.index_loading', 'FOO LOADING');\n this.addTemplate('foo.index', 'YAY');\n this.addTemplate('foo', '{{outlet}}');\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar');\n });\n });\n this.add('route:foo.index', _routing.Route.extend({\n model() {\n return deferred.promise;\n }\n\n }));\n this.add('route:foo', _routing.Route.extend({\n model() {\n return true;\n }\n\n }));\n let promise = this.visit('/foo').then(() => {\n text = this.$('#app').text();\n assert.equal(text, 'YAY', 'foo.index was rendered');\n });\n let text = this.$('#app').text();\n assert.equal(text, 'FOO LOADING', 'foo.index_loading was entered');\n deferred.resolve();\n return promise;\n }\n\n ['@test Prioritized error substate entry works with auto-generated index routes'](assert) {\n this.addTemplate('foo.index_error', 'FOO ERROR: {{model.msg}}');\n this.addTemplate('foo.index', 'YAY');\n this.addTemplate('foo', '{{outlet}}');\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar');\n });\n });\n this.add('route:foo.index', _routing.Route.extend({\n model() {\n return _runtime.RSVP.reject({\n msg: 'did it broke?'\n });\n }\n\n }));\n this.add('route:foo', _routing.Route.extend({\n model() {\n return true;\n }\n\n }));\n return this.visit('/').then(() => {\n return this.visit('/foo').then(() => {\n let text = this.$('#app').text();\n assert.equal(text, 'FOO ERROR: did it broke?', 'foo.index_error was entered');\n });\n });\n }\n\n ['@test Rejected promises returned from ApplicationRoute transition into top-level application_error'](assert) {\n let reject = true;\n this.addTemplate('index', 'INDEX
');\n this.add('route:application', _routing.Route.extend({\n init() {\n this._super(...arguments);\n },\n\n model() {\n if (reject) {\n return _runtime.RSVP.reject({\n msg: 'BAD NEWS BEARS'\n });\n } else {\n return {};\n }\n }\n\n }));\n this.addTemplate('application_error', \"\\n TOPLEVEL ERROR: {{model.msg}}
\\n \");\n return this.visit('/').then(() => {\n let text = this.$('#toplevel-error').text();\n assert.equal(text, 'TOPLEVEL ERROR: BAD NEWS BEARS', 'toplevel error rendered');\n reject = false;\n }).then(() => {\n return this.visit('/');\n }).then(() => {\n let text = this.$('#index').text();\n assert.equal(text, 'INDEX', 'the index route resolved');\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Loading/Error Substates - nested routes', class extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n super(...arguments);\n counter = 1;\n this.addTemplate('application', \"{{outlet}}
\");\n this.addTemplate('index', 'INDEX');\n this.addTemplate('grandma', 'GRANDMA {{outlet}}');\n this.addTemplate('mom', 'MOM');\n this.router.map(function () {\n this.route('grandma', function () {\n this.route('mom', {\n resetNamespace: true\n }, function () {\n this.route('sally');\n this.route('this-route-throws');\n });\n this.route('puppies');\n });\n this.route('memere', {\n path: '/memere/:seg'\n }, function () {});\n });\n this.visit('/');\n }\n\n getController(name) {\n return this.applicationInstance.lookup(\"controller:\" + name);\n }\n\n get currentPath() {\n let currentPath;\n expectDeprecation(() => {\n currentPath = this.getController('application').get('currentPath');\n }, 'Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.');\n return currentPath;\n }\n\n ['@test ApplicationRoute#currentPath reflects loading state path'](assert) {\n let momDeferred = _runtime.RSVP.defer();\n\n this.addTemplate('grandma.loading', 'GRANDMALOADING');\n this.add('route:mom', _routing.Route.extend({\n model() {\n return momDeferred.promise;\n }\n\n }));\n let promise = this.visit('/grandma/mom').then(() => {\n text = this.$('#app').text();\n assert.equal(text, 'GRANDMA MOM', \"Grandma.mom loaded text is displayed\");\n assert.equal(this.currentPath, 'grandma.mom.index', \"currentPath reflects final state\");\n });\n let text = this.$('#app').text();\n assert.equal(text, 'GRANDMA GRANDMALOADING', \"Grandma.mom loading text displayed\");\n assert.equal(this.currentPath, 'grandma.loading', \"currentPath reflects loading state\");\n momDeferred.resolve();\n return promise;\n }\n\n [\"@test Loading actions bubble to root but don't enter substates above pivot \"](assert) {\n let sallyDeferred = _runtime.RSVP.defer();\n\n let puppiesDeferred = _runtime.RSVP.defer();\n\n this.add('route:application', _routing.Route.extend({\n actions: {\n loading() {\n assert.ok(true, 'loading action received on ApplicationRoute');\n }\n\n }\n }));\n this.add('route:mom.sally', _routing.Route.extend({\n model() {\n return sallyDeferred.promise;\n }\n\n }));\n this.add('route:grandma.puppies', _routing.Route.extend({\n model() {\n return puppiesDeferred.promise;\n }\n\n }));\n let promise = this.visit('/grandma/mom/sally');\n assert.equal(this.currentPath, 'index', 'Initial route fully loaded');\n sallyDeferred.resolve();\n promise.then(() => {\n assert.equal(this.currentPath, 'grandma.mom.sally', 'transition completed');\n let visit = this.visit('/grandma/puppies');\n assert.equal(this.currentPath, 'grandma.mom.sally', 'still in initial state because the only loading state is above the pivot route');\n return visit;\n }).then(() => {\n (0, _internalTestHelpers.runTask)(() => puppiesDeferred.resolve());\n assert.equal(this.currentPath, 'grandma.puppies', 'Finished transition');\n });\n return promise;\n }\n\n ['@test Default error event moves into nested route'](assert) {\n this.addTemplate('grandma.error', 'ERROR: {{model.msg}}');\n this.add('route:mom.sally', _routing.Route.extend({\n model() {\n step(assert, 1, 'MomSallyRoute#model');\n return _runtime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error() {\n step(assert, 2, 'MomSallyRoute#actions.error');\n return true;\n }\n\n }\n }));\n return this.visit('/grandma/mom/sally').then(() => {\n step(assert, 3, 'App finished loading');\n let text = this.$('#app').text();\n assert.equal(text, 'GRANDMA ERROR: did it broke?', 'error bubbles');\n assert.equal(this.currentPath, 'grandma.error', 'Initial route fully loaded');\n });\n }\n\n [\"@test Non-bubbled errors that re-throw aren't swallowed\"](assert) {\n this.add('route:mom.sally', _routing.Route.extend({\n model() {\n return _runtime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error(err) {\n // returns undefined which is falsey\n throw err;\n }\n\n }\n }));\n assert.throws(() => {\n this.visit('/grandma/mom/sally');\n }, function (err) {\n return err.msg === 'did it broke?';\n }, 'it broke');\n return (0, _internalTestHelpers.runLoopSettled)();\n }\n\n [\"@test Handled errors that re-throw aren't swallowed\"](assert) {\n let handledError;\n this.add('route:mom.sally', _routing.Route.extend({\n model() {\n step(assert, 1, 'MomSallyRoute#model');\n return _runtime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error(err) {\n step(assert, 2, 'MomSallyRoute#actions.error');\n handledError = err;\n this.transitionTo('mom.this-route-throws');\n return false;\n }\n\n }\n }));\n this.add('route:mom.this-route-throws', _routing.Route.extend({\n model() {\n step(assert, 3, 'MomThisRouteThrows#model');\n throw handledError;\n }\n\n }));\n assert.throws(() => {\n this.visit('/grandma/mom/sally');\n }, function (err) {\n return err.msg === 'did it broke?';\n }, \"it broke\");\n return (0, _internalTestHelpers.runLoopSettled)();\n }\n\n ['@test errors that are bubbled are thrown at a higher level if not handled'](assert) {\n this.add('route:mom.sally', _routing.Route.extend({\n model() {\n step(assert, 1, 'MomSallyRoute#model');\n return _runtime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error() {\n step(assert, 2, 'MomSallyRoute#actions.error');\n return true;\n }\n\n }\n }));\n assert.throws(() => {\n this.visit('/grandma/mom/sally');\n }, function (err) {\n return err.msg == 'did it broke?';\n }, 'Correct error was thrown');\n return (0, _internalTestHelpers.runLoopSettled)();\n }\n\n [\"@test Handled errors that are thrown through rejection aren't swallowed\"](assert) {\n let handledError;\n this.add('route:mom.sally', _routing.Route.extend({\n model() {\n step(assert, 1, 'MomSallyRoute#model');\n return _runtime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error(err) {\n step(assert, 2, 'MomSallyRoute#actions.error');\n handledError = err;\n this.transitionTo('mom.this-route-throws');\n return false;\n }\n\n }\n }));\n this.add('route:mom.this-route-throws', _routing.Route.extend({\n model() {\n step(assert, 3, 'MomThisRouteThrows#model');\n return _runtime.RSVP.reject(handledError);\n }\n\n }));\n assert.throws(() => {\n this.visit('/grandma/mom/sally');\n }, function (err) {\n return err.msg === 'did it broke?';\n }, 'it broke');\n return (0, _internalTestHelpers.runLoopSettled)();\n }\n\n ['@test Default error events move into nested route, prioritizing more specifically named error routes - NEW'](assert) {\n this.addTemplate('grandma.error', 'ERROR: {{model.msg}}');\n this.addTemplate('mom_error', 'MOM ERROR: {{model.msg}}');\n this.add('route:mom.sally', _routing.Route.extend({\n model() {\n step(assert, 1, 'MomSallyRoute#model');\n return _runtime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error() {\n step(assert, 2, 'MomSallyRoute#actions.error');\n return true;\n }\n\n }\n }));\n return this.visit('/grandma/mom/sally').then(() => {\n step(assert, 3, 'Application finished booting');\n assert.equal(this.$('#app').text(), 'GRANDMA MOM ERROR: did it broke?', 'the more specifically named mome error substate was entered over the other error route');\n assert.equal(this.currentPath, 'grandma.mom_error', 'Initial route fully loaded');\n });\n }\n\n ['@test Slow promises waterfall on startup'](assert) {\n let grandmaDeferred = _runtime.RSVP.defer();\n\n let sallyDeferred = _runtime.RSVP.defer();\n\n this.addTemplate('loading', 'LOADING');\n this.addTemplate('mom', 'MOM {{outlet}}');\n this.addTemplate('mom.loading', 'MOMLOADING');\n this.addTemplate('mom.sally', 'SALLY');\n this.add('route:grandma', _routing.Route.extend({\n model() {\n step(assert, 1, 'GrandmaRoute#model');\n return grandmaDeferred.promise;\n }\n\n }));\n this.add('route:mom', _routing.Route.extend({\n model() {\n step(assert, 2, 'MomRoute#model');\n return {};\n }\n\n }));\n this.add('route:mom.sally', _routing.Route.extend({\n model() {\n step(assert, 3, 'SallyRoute#model');\n return sallyDeferred.promise;\n },\n\n setupController() {\n step(assert, 4, 'SallyRoute#setupController');\n }\n\n }));\n let promise = this.visit('/grandma/mom/sally').then(() => {\n text = this.$('#app').text();\n assert.equal(text, 'GRANDMA MOM SALLY', \"Sally template displayed\");\n });\n let text = this.$('#app').text();\n assert.equal(text, 'LOADING', \"The loading template is nested in application template's outlet\");\n (0, _internalTestHelpers.runTask)(() => grandmaDeferred.resolve());\n text = this.$('#app').text();\n assert.equal(text, 'GRANDMA MOM MOMLOADING', \"Mom's child loading route is displayed due to sally's slow promise\");\n sallyDeferred.resolve();\n return promise;\n }\n\n ['@test Enter child loading state of pivot route'](assert) {\n let deferred = _runtime.RSVP.defer();\n\n this.addTemplate('grandma.loading', 'GMONEYLOADING');\n this.add('route:mom.sally', _routing.Route.extend({\n setupController() {\n step(assert, 1, 'SallyRoute#setupController');\n }\n\n }));\n this.add('route:grandma.puppies', _routing.Route.extend({\n model() {\n return deferred.promise;\n }\n\n }));\n return this.visit('/grandma/mom/sally').then(() => {\n assert.equal(this.currentPath, 'grandma.mom.sally', 'Initial route fully loaded');\n let promise = this.visit('/grandma/puppies').then(() => {\n assert.equal(this.currentPath, 'grandma.puppies', 'Finished transition');\n });\n assert.equal(this.currentPath, 'grandma.loading', \"in pivot route's child loading state\");\n deferred.resolve();\n return promise;\n });\n }\n\n [\"@test Error events that aren't bubbled don't throw application assertions\"](assert) {\n this.add('route:mom.sally', _routing.Route.extend({\n model() {\n step(assert, 1, 'MomSallyRoute#model');\n return _runtime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error(err) {\n step(assert, 2, 'MomSallyRoute#actions.error');\n assert.equal(err.msg, 'did it broke?', \"it didn't break\");\n return false;\n }\n\n }\n }));\n return this.visit('/grandma/mom/sally');\n }\n\n ['@test Handled errors that bubble can be handled at a higher level'](assert) {\n let handledError;\n this.add('route:mom', _routing.Route.extend({\n actions: {\n error(err) {\n step(assert, 3, 'MomRoute#actions.error');\n assert.equal(err, handledError, \"error handled and rebubbled is handleable at higher route\");\n }\n\n }\n }));\n this.add('route:mom.sally', _routing.Route.extend({\n model() {\n step(assert, 1, 'MomSallyRoute#model');\n return _runtime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error(err) {\n step(assert, 2, 'MomSallyRoute#actions.error');\n handledError = err;\n return true;\n }\n\n }\n }));\n return this.visit('/grandma/mom/sally');\n }\n\n ['@test Setting a query param during a slow transition should work'](assert) {\n let deferred = _runtime.RSVP.defer();\n\n this.addTemplate('memere.loading', 'MMONEYLOADING');\n this.add('route:grandma', _routing.Route.extend({\n beforeModel: function () {\n this.transitionTo('memere', 1);\n }\n }));\n this.add('route:memere', _routing.Route.extend({\n queryParams: {\n test: {\n defaultValue: 1\n }\n }\n }));\n this.add('route:memere.index', _routing.Route.extend({\n model() {\n return deferred.promise;\n }\n\n }));\n let promise = this.visit('/grandma').then(() => {\n assert.equal(this.currentPath, 'memere.index', 'Transition should be complete');\n });\n let memereController = this.getController('memere');\n assert.equal(this.currentPath, 'memere.loading', 'Initial route should be loading');\n memereController.set('test', 3);\n assert.equal(this.currentPath, 'memere.loading', 'Initial route should still be loading');\n assert.equal(memereController.get('test'), 3, 'Controller query param value should have changed');\n deferred.resolve();\n return promise;\n }\n\n });\n});","enifed(\"ember/tests/routing/toplevel_dom_test\", [\"@ember/-internals/environment\", \"internal-test-helpers\"], function (_environment, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Top Level DOM Structure', class extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n super(...arguments);\n this._APPLICATION_TEMPLATE_WRAPPER = _environment.ENV._APPLICATION_TEMPLATE_WRAPPER;\n }\n\n teardown() {\n super.teardown();\n _environment.ENV._APPLICATION_TEMPLATE_WRAPPER = this._APPLICATION_TEMPLATE_WRAPPER;\n }\n\n ['@test topmost template with wrapper']() {\n _environment.ENV._APPLICATION_TEMPLATE_WRAPPER = true;\n this.addTemplate('application', 'hello world');\n return this.visit('/').then(() => {\n this.assertComponentElement(this.element, {\n content: 'hello world'\n });\n });\n }\n\n ['@test topmost template without wrapper']() {\n _environment.ENV._APPLICATION_TEMPLATE_WRAPPER = false;\n this.addTemplate('application', 'hello world');\n return this.visit('/').then(() => {\n this.assertInnerHTML('hello world');\n });\n }\n\n });\n});","enifed(\"ember/tests/service_injection_test\", [\"@ember/-internals/owner\", \"@ember/controller\", \"@ember/service\", \"@ember/-internals/runtime\", \"internal-test-helpers\", \"@ember/-internals/metal\", \"@ember/canary-features\"], function (_owner, _controller, _service, _runtime, _internalTestHelpers, _metal, _canaryFeatures) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('Service Injection', class extends _internalTestHelpers.ApplicationTestCase {\n ['@test Service can be injected and is resolved'](assert) {\n this.add('controller:application', _controller.default.extend({\n myService: (0, _service.inject)('my-service')\n }));\n\n let MyService = _service.default.extend();\n\n this.add('service:my-service', MyService);\n this.addTemplate('application', '');\n this.visit('/').then(() => {\n let controller = this.applicationInstance.lookup('controller:application');\n assert.ok(controller.get('myService') instanceof MyService);\n });\n }\n\n ['@test Service can be an object proxy and access owner in init GH#16484'](assert) {\n let serviceOwner;\n this.add('controller:application', _controller.default.extend({\n myService: (0, _service.inject)('my-service')\n }));\n\n let MyService = _service.default.extend(_runtime._ProxyMixin, {\n init() {\n this._super(...arguments);\n\n serviceOwner = (0, _owner.getOwner)(this);\n }\n\n });\n\n this.add('service:my-service', MyService);\n this.addTemplate('application', '');\n this.visit('/').then(instance => {\n let controller = this.applicationInstance.lookup('controller:application');\n assert.ok(controller.get('myService') instanceof MyService);\n assert.equal(serviceOwner, instance, 'should be able to `getOwner` in init');\n });\n }\n\n });\n (0, _internalTestHelpers.moduleFor)('Service Injection with ES5 Getters', class extends _internalTestHelpers.ApplicationTestCase {\n ['@test Service can be injected and is resolved without calling `get`'](assert) {\n this.add('controller:application', _controller.default.extend({\n myService: (0, _service.inject)('my-service')\n }));\n\n let MyService = _service.default.extend({\n name: (0, _metal.computed)(function () {\n return 'The service name';\n })\n });\n\n this.add('service:my-service', MyService);\n this.addTemplate('application', '');\n this.visit('/').then(() => {\n let controller = this.applicationInstance.lookup('controller:application');\n assert.ok(controller.myService instanceof MyService);\n assert.equal(controller.myService.name, 'The service name', 'service property accessible');\n });\n }\n\n });\n\n if (_canaryFeatures.EMBER_MODULE_UNIFICATION) {\n (0, _internalTestHelpers.moduleFor)('Service Injection (MU)', class extends _internalTestHelpers.ApplicationTestCase {\n ['@test Service can be injected with source and is resolved'](assert) {\n let source = 'controller:src/ui/routes/application/controller';\n this.add('controller:application', _controller.default.extend({\n myService: (0, _service.inject)('my-service', {\n source\n })\n }));\n\n let MyService = _service.default.extend();\n\n this.add({\n specifier: 'service:my-service',\n source\n }, MyService);\n return this.visit('/').then(() => {\n let controller = this.applicationInstance.lookup('controller:application');\n assert.ok(controller.get('myService') instanceof MyService);\n });\n }\n\n ['@test Services can be injected with same name, different source, and resolve different instances'](assert) {\n // This test implies that there is a file src/ui/routes/route-a/-services/my-service\n let routeASource = 'controller:src/ui/routes/route-a/controller'; // This test implies that there is a file src/ui/routes/route-b/-services/my-service\n\n let routeBSource = 'controller:src/ui/routes/route-b/controller';\n this.add('controller:route-a', _controller.default.extend({\n myService: (0, _service.inject)('my-service', {\n source: routeASource\n })\n }));\n this.add('controller:route-b', _controller.default.extend({\n myService: (0, _service.inject)('my-service', {\n source: routeBSource\n })\n }));\n\n let LocalLookupService = _service.default.extend();\n\n this.add({\n specifier: 'service:my-service',\n source: routeASource\n }, LocalLookupService);\n\n let MyService = _service.default.extend();\n\n this.add({\n specifier: 'service:my-service',\n source: routeBSource\n }, MyService);\n return this.visit('/').then(() => {\n let controllerA = this.applicationInstance.lookup('controller:route-a');\n let serviceFromControllerA = controllerA.get('myService');\n assert.ok(serviceFromControllerA instanceof LocalLookupService, 'local lookup service is returned');\n let controllerB = this.applicationInstance.lookup('controller:route-b');\n let serviceFromControllerB = controllerB.get('myService');\n assert.ok(serviceFromControllerB instanceof MyService, 'global service is returned');\n assert.notStrictEqual(serviceFromControllerA, serviceFromControllerB);\n });\n }\n\n ['@test Services can be injected with same name, different source, but same resolution result, and share an instance'](assert) {\n let routeASource = 'controller:src/ui/routes/route-a/controller';\n let routeBSource = 'controller:src/ui/routes/route-b/controller';\n this.add('controller:route-a', _controller.default.extend({\n myService: (0, _service.inject)('my-service', {\n source: routeASource\n })\n }));\n this.add('controller:route-b', _controller.default.extend({\n myService: (0, _service.inject)('my-service', {\n source: routeBSource\n })\n }));\n\n let MyService = _service.default.extend();\n\n this.add({\n specifier: 'service:my-service'\n }, MyService);\n return this.visit('/').then(() => {\n let controllerA = this.applicationInstance.lookup('controller:route-a');\n let serviceFromControllerA = controllerA.get('myService');\n assert.ok(serviceFromControllerA instanceof MyService);\n let controllerB = this.applicationInstance.lookup('controller:route-b');\n assert.strictEqual(serviceFromControllerA, controllerB.get('myService'));\n });\n }\n /*\n * This test demonstrates a failure in the caching system of ember's\n * container around singletons and and local lookup. The local lookup\n * is cached and the global injection is then looked up incorrectly.\n *\n * The paractical rules of Ember's module unification config are such\n * that services cannot be locally looked up, thus this case is really\n * just a demonstration of what could go wrong if we permit arbitrary\n * configuration (such as a singleton type that has local lookup).\n */\n\n\n ['@test Services can be injected with same name, one with source one without, and share an instance'](assert) {\n let routeASource = 'controller:src/ui/routes/route-a/controller';\n this.add('controller:route-a', _controller.default.extend({\n myService: (0, _service.inject)('my-service', {\n source: routeASource\n })\n }));\n this.add('controller:route-b', _controller.default.extend({\n myService: (0, _service.inject)('my-service')\n }));\n\n let MyService = _service.default.extend();\n\n this.add({\n specifier: 'service:my-service'\n }, MyService);\n return this.visit('/').then(() => {\n let controllerA = this.applicationInstance.lookup('controller:route-a');\n let serviceFromControllerA = controllerA.get('myService');\n assert.ok(serviceFromControllerA instanceof MyService, 'global service is returned');\n let controllerB = this.applicationInstance.lookup('controller:route-b');\n let serviceFromControllerB = controllerB.get('myService');\n assert.ok(serviceFromControllerB instanceof MyService, 'global service is returned');\n assert.strictEqual(serviceFromControllerA, serviceFromControllerB);\n });\n }\n\n ['@test Service with namespace can be injected and is resolved'](assert) {\n this.add('controller:application', _controller.default.extend({\n myService: (0, _service.inject)('my-namespace::my-service')\n }));\n\n let MyService = _service.default.extend();\n\n this.add({\n specifier: 'service:my-service',\n namespace: 'my-namespace'\n }, MyService);\n this.visit('/').then(() => {\n let controller = this.applicationInstance.lookup('controller:application');\n assert.ok(controller.get('myService') instanceof MyService);\n });\n }\n\n });\n }\n});","enifed(\"ember/tests/view_instrumentation_test\", [\"@ember/instrumentation\", \"internal-test-helpers\"], function (_instrumentation, _internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('View Instrumentation', class extends _internalTestHelpers.ApplicationTestCase {\n constructor() {\n super();\n this.addTemplate('application', \"{{outlet}}\");\n this.addTemplate('index', \"Index \");\n this.addTemplate('posts', \"Posts \");\n this.router.map(function () {\n this.route('posts');\n });\n }\n\n teardown() {\n (0, _instrumentation.reset)();\n super.teardown();\n }\n\n ['@test Nodes without view instances are instrumented'](assert) {\n let called = false;\n (0, _instrumentation.subscribe)('render', {\n before() {\n called = true;\n },\n\n after() {}\n\n });\n return this.visit('/').then(() => {\n assert.equal(this.textValue(), 'Index', 'It rendered the correct template');\n assert.ok(called, 'Instrumentation called on first render');\n called = false;\n return this.visit('/posts');\n }).then(() => {\n assert.equal(this.textValue(), 'Posts', 'It rendered the correct template');\n assert.ok(called, 'Instrumentation called on transition to non-view backed route');\n });\n }\n\n });\n});","enifed(\"ember/version\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n var _default = \"3.10.0\";\n _exports.default = _default;\n});","enifed(\"handlebars\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.parse = parse;\n _exports.parser = void 0;\n\n // File ignored in coverage tests via setting in .istanbul.yml\n\n /* Jison generated parser */\n var handlebars = function () {\n var parser = {\n trace: function trace() {},\n yy: {},\n symbols_: {\n \"error\": 2,\n \"root\": 3,\n \"program\": 4,\n \"EOF\": 5,\n \"program_repetition0\": 6,\n \"statement\": 7,\n \"mustache\": 8,\n \"block\": 9,\n \"rawBlock\": 10,\n \"partial\": 11,\n \"partialBlock\": 12,\n \"content\": 13,\n \"COMMENT\": 14,\n \"CONTENT\": 15,\n \"openRawBlock\": 16,\n \"rawBlock_repetition_plus0\": 17,\n \"END_RAW_BLOCK\": 18,\n \"OPEN_RAW_BLOCK\": 19,\n \"helperName\": 20,\n \"openRawBlock_repetition0\": 21,\n \"openRawBlock_option0\": 22,\n \"CLOSE_RAW_BLOCK\": 23,\n \"openBlock\": 24,\n \"block_option0\": 25,\n \"closeBlock\": 26,\n \"openInverse\": 27,\n \"block_option1\": 28,\n \"OPEN_BLOCK\": 29,\n \"openBlock_repetition0\": 30,\n \"openBlock_option0\": 31,\n \"openBlock_option1\": 32,\n \"CLOSE\": 33,\n \"OPEN_INVERSE\": 34,\n \"openInverse_repetition0\": 35,\n \"openInverse_option0\": 36,\n \"openInverse_option1\": 37,\n \"openInverseChain\": 38,\n \"OPEN_INVERSE_CHAIN\": 39,\n \"openInverseChain_repetition0\": 40,\n \"openInverseChain_option0\": 41,\n \"openInverseChain_option1\": 42,\n \"inverseAndProgram\": 43,\n \"INVERSE\": 44,\n \"inverseChain\": 45,\n \"inverseChain_option0\": 46,\n \"OPEN_ENDBLOCK\": 47,\n \"OPEN\": 48,\n \"mustache_repetition0\": 49,\n \"mustache_option0\": 50,\n \"OPEN_UNESCAPED\": 51,\n \"mustache_repetition1\": 52,\n \"mustache_option1\": 53,\n \"CLOSE_UNESCAPED\": 54,\n \"OPEN_PARTIAL\": 55,\n \"partialName\": 56,\n \"partial_repetition0\": 57,\n \"partial_option0\": 58,\n \"openPartialBlock\": 59,\n \"OPEN_PARTIAL_BLOCK\": 60,\n \"openPartialBlock_repetition0\": 61,\n \"openPartialBlock_option0\": 62,\n \"param\": 63,\n \"sexpr\": 64,\n \"OPEN_SEXPR\": 65,\n \"sexpr_repetition0\": 66,\n \"sexpr_option0\": 67,\n \"CLOSE_SEXPR\": 68,\n \"hash\": 69,\n \"hash_repetition_plus0\": 70,\n \"hashSegment\": 71,\n \"ID\": 72,\n \"EQUALS\": 73,\n \"blockParams\": 74,\n \"OPEN_BLOCK_PARAMS\": 75,\n \"blockParams_repetition_plus0\": 76,\n \"CLOSE_BLOCK_PARAMS\": 77,\n \"path\": 78,\n \"dataName\": 79,\n \"STRING\": 80,\n \"NUMBER\": 81,\n \"BOOLEAN\": 82,\n \"UNDEFINED\": 83,\n \"NULL\": 84,\n \"DATA\": 85,\n \"pathSegments\": 86,\n \"SEP\": 87,\n \"$accept\": 0,\n \"$end\": 1\n },\n terminals_: {\n 2: \"error\",\n 5: \"EOF\",\n 14: \"COMMENT\",\n 15: \"CONTENT\",\n 18: \"END_RAW_BLOCK\",\n 19: \"OPEN_RAW_BLOCK\",\n 23: \"CLOSE_RAW_BLOCK\",\n 29: \"OPEN_BLOCK\",\n 33: \"CLOSE\",\n 34: \"OPEN_INVERSE\",\n 39: \"OPEN_INVERSE_CHAIN\",\n 44: \"INVERSE\",\n 47: \"OPEN_ENDBLOCK\",\n 48: \"OPEN\",\n 51: \"OPEN_UNESCAPED\",\n 54: \"CLOSE_UNESCAPED\",\n 55: \"OPEN_PARTIAL\",\n 60: \"OPEN_PARTIAL_BLOCK\",\n 65: \"OPEN_SEXPR\",\n 68: \"CLOSE_SEXPR\",\n 72: \"ID\",\n 73: \"EQUALS\",\n 75: \"OPEN_BLOCK_PARAMS\",\n 77: \"CLOSE_BLOCK_PARAMS\",\n 80: \"STRING\",\n 81: \"NUMBER\",\n 82: \"BOOLEAN\",\n 83: \"UNDEFINED\",\n 84: \"NULL\",\n 85: \"DATA\",\n 87: \"SEP\"\n },\n productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 1], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {\n var $0 = $$.length - 1;\n\n switch (yystate) {\n case 1:\n return $$[$0 - 1];\n break;\n\n case 2:\n this.$ = yy.prepareProgram($$[$0]);\n break;\n\n case 3:\n this.$ = $$[$0];\n break;\n\n case 4:\n this.$ = $$[$0];\n break;\n\n case 5:\n this.$ = $$[$0];\n break;\n\n case 6:\n this.$ = $$[$0];\n break;\n\n case 7:\n this.$ = $$[$0];\n break;\n\n case 8:\n this.$ = $$[$0];\n break;\n\n case 9:\n this.$ = {\n type: 'CommentStatement',\n value: yy.stripComment($$[$0]),\n strip: yy.stripFlags($$[$0], $$[$0]),\n loc: yy.locInfo(this._$)\n };\n break;\n\n case 10:\n this.$ = {\n type: 'ContentStatement',\n original: $$[$0],\n value: $$[$0],\n loc: yy.locInfo(this._$)\n };\n break;\n\n case 11:\n this.$ = yy.prepareRawBlock($$[$0 - 2], $$[$0 - 1], $$[$0], this._$);\n break;\n\n case 12:\n this.$ = {\n path: $$[$0 - 3],\n params: $$[$0 - 2],\n hash: $$[$0 - 1]\n };\n break;\n\n case 13:\n this.$ = yy.prepareBlock($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0], false, this._$);\n break;\n\n case 14:\n this.$ = yy.prepareBlock($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0], true, this._$);\n break;\n\n case 15:\n this.$ = {\n open: $$[$0 - 5],\n path: $$[$0 - 4],\n params: $$[$0 - 3],\n hash: $$[$0 - 2],\n blockParams: $$[$0 - 1],\n strip: yy.stripFlags($$[$0 - 5], $$[$0])\n };\n break;\n\n case 16:\n this.$ = {\n path: $$[$0 - 4],\n params: $$[$0 - 3],\n hash: $$[$0 - 2],\n blockParams: $$[$0 - 1],\n strip: yy.stripFlags($$[$0 - 5], $$[$0])\n };\n break;\n\n case 17:\n this.$ = {\n path: $$[$0 - 4],\n params: $$[$0 - 3],\n hash: $$[$0 - 2],\n blockParams: $$[$0 - 1],\n strip: yy.stripFlags($$[$0 - 5], $$[$0])\n };\n break;\n\n case 18:\n this.$ = {\n strip: yy.stripFlags($$[$0 - 1], $$[$0 - 1]),\n program: $$[$0]\n };\n break;\n\n case 19:\n var inverse = yy.prepareBlock($$[$0 - 2], $$[$0 - 1], $$[$0], $$[$0], false, this._$),\n program = yy.prepareProgram([inverse], $$[$0 - 1].loc);\n program.chained = true;\n this.$ = {\n strip: $$[$0 - 2].strip,\n program: program,\n chain: true\n };\n break;\n\n case 20:\n this.$ = $$[$0];\n break;\n\n case 21:\n this.$ = {\n path: $$[$0 - 1],\n strip: yy.stripFlags($$[$0 - 2], $$[$0])\n };\n break;\n\n case 22:\n this.$ = yy.prepareMustache($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0 - 4], yy.stripFlags($$[$0 - 4], $$[$0]), this._$);\n break;\n\n case 23:\n this.$ = yy.prepareMustache($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0 - 4], yy.stripFlags($$[$0 - 4], $$[$0]), this._$);\n break;\n\n case 24:\n this.$ = {\n type: 'PartialStatement',\n name: $$[$0 - 3],\n params: $$[$0 - 2],\n hash: $$[$0 - 1],\n indent: '',\n strip: yy.stripFlags($$[$0 - 4], $$[$0]),\n loc: yy.locInfo(this._$)\n };\n break;\n\n case 25:\n this.$ = yy.preparePartialBlock($$[$0 - 2], $$[$0 - 1], $$[$0], this._$);\n break;\n\n case 26:\n this.$ = {\n path: $$[$0 - 3],\n params: $$[$0 - 2],\n hash: $$[$0 - 1],\n strip: yy.stripFlags($$[$0 - 4], $$[$0])\n };\n break;\n\n case 27:\n this.$ = $$[$0];\n break;\n\n case 28:\n this.$ = $$[$0];\n break;\n\n case 29:\n this.$ = {\n type: 'SubExpression',\n path: $$[$0 - 3],\n params: $$[$0 - 2],\n hash: $$[$0 - 1],\n loc: yy.locInfo(this._$)\n };\n break;\n\n case 30:\n this.$ = {\n type: 'Hash',\n pairs: $$[$0],\n loc: yy.locInfo(this._$)\n };\n break;\n\n case 31:\n this.$ = {\n type: 'HashPair',\n key: yy.id($$[$0 - 2]),\n value: $$[$0],\n loc: yy.locInfo(this._$)\n };\n break;\n\n case 32:\n this.$ = yy.id($$[$0 - 1]);\n break;\n\n case 33:\n this.$ = $$[$0];\n break;\n\n case 34:\n this.$ = $$[$0];\n break;\n\n case 35:\n this.$ = {\n type: 'StringLiteral',\n value: $$[$0],\n original: $$[$0],\n loc: yy.locInfo(this._$)\n };\n break;\n\n case 36:\n this.$ = {\n type: 'NumberLiteral',\n value: Number($$[$0]),\n original: Number($$[$0]),\n loc: yy.locInfo(this._$)\n };\n break;\n\n case 37:\n this.$ = {\n type: 'BooleanLiteral',\n value: $$[$0] === 'true',\n original: $$[$0] === 'true',\n loc: yy.locInfo(this._$)\n };\n break;\n\n case 38:\n this.$ = {\n type: 'UndefinedLiteral',\n original: undefined,\n value: undefined,\n loc: yy.locInfo(this._$)\n };\n break;\n\n case 39:\n this.$ = {\n type: 'NullLiteral',\n original: null,\n value: null,\n loc: yy.locInfo(this._$)\n };\n break;\n\n case 40:\n this.$ = $$[$0];\n break;\n\n case 41:\n this.$ = $$[$0];\n break;\n\n case 42:\n this.$ = yy.preparePath(true, $$[$0], this._$);\n break;\n\n case 43:\n this.$ = yy.preparePath(false, $$[$0], this._$);\n break;\n\n case 44:\n $$[$0 - 2].push({\n part: yy.id($$[$0]),\n original: $$[$0],\n separator: $$[$0 - 1]\n });\n this.$ = $$[$0 - 2];\n break;\n\n case 45:\n this.$ = [{\n part: yy.id($$[$0]),\n original: $$[$0]\n }];\n break;\n\n case 46:\n this.$ = [];\n break;\n\n case 47:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 48:\n this.$ = [$$[$0]];\n break;\n\n case 49:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 50:\n this.$ = [];\n break;\n\n case 51:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 58:\n this.$ = [];\n break;\n\n case 59:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 64:\n this.$ = [];\n break;\n\n case 65:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 70:\n this.$ = [];\n break;\n\n case 71:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 78:\n this.$ = [];\n break;\n\n case 79:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 82:\n this.$ = [];\n break;\n\n case 83:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 86:\n this.$ = [];\n break;\n\n case 87:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 90:\n this.$ = [];\n break;\n\n case 91:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 94:\n this.$ = [];\n break;\n\n case 95:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 98:\n this.$ = [$$[$0]];\n break;\n\n case 99:\n $$[$0 - 1].push($$[$0]);\n break;\n\n case 100:\n this.$ = [$$[$0]];\n break;\n\n case 101:\n $$[$0 - 1].push($$[$0]);\n break;\n }\n },\n table: [{\n 3: 1,\n 4: 2,\n 5: [2, 46],\n 6: 3,\n 14: [2, 46],\n 15: [2, 46],\n 19: [2, 46],\n 29: [2, 46],\n 34: [2, 46],\n 48: [2, 46],\n 51: [2, 46],\n 55: [2, 46],\n 60: [2, 46]\n }, {\n 1: [3]\n }, {\n 5: [1, 4]\n }, {\n 5: [2, 2],\n 7: 5,\n 8: 6,\n 9: 7,\n 10: 8,\n 11: 9,\n 12: 10,\n 13: 11,\n 14: [1, 12],\n 15: [1, 20],\n 16: 17,\n 19: [1, 23],\n 24: 15,\n 27: 16,\n 29: [1, 21],\n 34: [1, 22],\n 39: [2, 2],\n 44: [2, 2],\n 47: [2, 2],\n 48: [1, 13],\n 51: [1, 14],\n 55: [1, 18],\n 59: 19,\n 60: [1, 24]\n }, {\n 1: [2, 1]\n }, {\n 5: [2, 47],\n 14: [2, 47],\n 15: [2, 47],\n 19: [2, 47],\n 29: [2, 47],\n 34: [2, 47],\n 39: [2, 47],\n 44: [2, 47],\n 47: [2, 47],\n 48: [2, 47],\n 51: [2, 47],\n 55: [2, 47],\n 60: [2, 47]\n }, {\n 5: [2, 3],\n 14: [2, 3],\n 15: [2, 3],\n 19: [2, 3],\n 29: [2, 3],\n 34: [2, 3],\n 39: [2, 3],\n 44: [2, 3],\n 47: [2, 3],\n 48: [2, 3],\n 51: [2, 3],\n 55: [2, 3],\n 60: [2, 3]\n }, {\n 5: [2, 4],\n 14: [2, 4],\n 15: [2, 4],\n 19: [2, 4],\n 29: [2, 4],\n 34: [2, 4],\n 39: [2, 4],\n 44: [2, 4],\n 47: [2, 4],\n 48: [2, 4],\n 51: [2, 4],\n 55: [2, 4],\n 60: [2, 4]\n }, {\n 5: [2, 5],\n 14: [2, 5],\n 15: [2, 5],\n 19: [2, 5],\n 29: [2, 5],\n 34: [2, 5],\n 39: [2, 5],\n 44: [2, 5],\n 47: [2, 5],\n 48: [2, 5],\n 51: [2, 5],\n 55: [2, 5],\n 60: [2, 5]\n }, {\n 5: [2, 6],\n 14: [2, 6],\n 15: [2, 6],\n 19: [2, 6],\n 29: [2, 6],\n 34: [2, 6],\n 39: [2, 6],\n 44: [2, 6],\n 47: [2, 6],\n 48: [2, 6],\n 51: [2, 6],\n 55: [2, 6],\n 60: [2, 6]\n }, {\n 5: [2, 7],\n 14: [2, 7],\n 15: [2, 7],\n 19: [2, 7],\n 29: [2, 7],\n 34: [2, 7],\n 39: [2, 7],\n 44: [2, 7],\n 47: [2, 7],\n 48: [2, 7],\n 51: [2, 7],\n 55: [2, 7],\n 60: [2, 7]\n }, {\n 5: [2, 8],\n 14: [2, 8],\n 15: [2, 8],\n 19: [2, 8],\n 29: [2, 8],\n 34: [2, 8],\n 39: [2, 8],\n 44: [2, 8],\n 47: [2, 8],\n 48: [2, 8],\n 51: [2, 8],\n 55: [2, 8],\n 60: [2, 8]\n }, {\n 5: [2, 9],\n 14: [2, 9],\n 15: [2, 9],\n 19: [2, 9],\n 29: [2, 9],\n 34: [2, 9],\n 39: [2, 9],\n 44: [2, 9],\n 47: [2, 9],\n 48: [2, 9],\n 51: [2, 9],\n 55: [2, 9],\n 60: [2, 9]\n }, {\n 20: 25,\n 72: [1, 35],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 20: 36,\n 72: [1, 35],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 4: 37,\n 6: 3,\n 14: [2, 46],\n 15: [2, 46],\n 19: [2, 46],\n 29: [2, 46],\n 34: [2, 46],\n 39: [2, 46],\n 44: [2, 46],\n 47: [2, 46],\n 48: [2, 46],\n 51: [2, 46],\n 55: [2, 46],\n 60: [2, 46]\n }, {\n 4: 38,\n 6: 3,\n 14: [2, 46],\n 15: [2, 46],\n 19: [2, 46],\n 29: [2, 46],\n 34: [2, 46],\n 44: [2, 46],\n 47: [2, 46],\n 48: [2, 46],\n 51: [2, 46],\n 55: [2, 46],\n 60: [2, 46]\n }, {\n 13: 40,\n 15: [1, 20],\n 17: 39\n }, {\n 20: 42,\n 56: 41,\n 64: 43,\n 65: [1, 44],\n 72: [1, 35],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 4: 45,\n 6: 3,\n 14: [2, 46],\n 15: [2, 46],\n 19: [2, 46],\n 29: [2, 46],\n 34: [2, 46],\n 47: [2, 46],\n 48: [2, 46],\n 51: [2, 46],\n 55: [2, 46],\n 60: [2, 46]\n }, {\n 5: [2, 10],\n 14: [2, 10],\n 15: [2, 10],\n 18: [2, 10],\n 19: [2, 10],\n 29: [2, 10],\n 34: [2, 10],\n 39: [2, 10],\n 44: [2, 10],\n 47: [2, 10],\n 48: [2, 10],\n 51: [2, 10],\n 55: [2, 10],\n 60: [2, 10]\n }, {\n 20: 46,\n 72: [1, 35],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 20: 47,\n 72: [1, 35],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 20: 48,\n 72: [1, 35],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 20: 42,\n 56: 49,\n 64: 43,\n 65: [1, 44],\n 72: [1, 35],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 33: [2, 78],\n 49: 50,\n 65: [2, 78],\n 72: [2, 78],\n 80: [2, 78],\n 81: [2, 78],\n 82: [2, 78],\n 83: [2, 78],\n 84: [2, 78],\n 85: [2, 78]\n }, {\n 23: [2, 33],\n 33: [2, 33],\n 54: [2, 33],\n 65: [2, 33],\n 68: [2, 33],\n 72: [2, 33],\n 75: [2, 33],\n 80: [2, 33],\n 81: [2, 33],\n 82: [2, 33],\n 83: [2, 33],\n 84: [2, 33],\n 85: [2, 33]\n }, {\n 23: [2, 34],\n 33: [2, 34],\n 54: [2, 34],\n 65: [2, 34],\n 68: [2, 34],\n 72: [2, 34],\n 75: [2, 34],\n 80: [2, 34],\n 81: [2, 34],\n 82: [2, 34],\n 83: [2, 34],\n 84: [2, 34],\n 85: [2, 34]\n }, {\n 23: [2, 35],\n 33: [2, 35],\n 54: [2, 35],\n 65: [2, 35],\n 68: [2, 35],\n 72: [2, 35],\n 75: [2, 35],\n 80: [2, 35],\n 81: [2, 35],\n 82: [2, 35],\n 83: [2, 35],\n 84: [2, 35],\n 85: [2, 35]\n }, {\n 23: [2, 36],\n 33: [2, 36],\n 54: [2, 36],\n 65: [2, 36],\n 68: [2, 36],\n 72: [2, 36],\n 75: [2, 36],\n 80: [2, 36],\n 81: [2, 36],\n 82: [2, 36],\n 83: [2, 36],\n 84: [2, 36],\n 85: [2, 36]\n }, {\n 23: [2, 37],\n 33: [2, 37],\n 54: [2, 37],\n 65: [2, 37],\n 68: [2, 37],\n 72: [2, 37],\n 75: [2, 37],\n 80: [2, 37],\n 81: [2, 37],\n 82: [2, 37],\n 83: [2, 37],\n 84: [2, 37],\n 85: [2, 37]\n }, {\n 23: [2, 38],\n 33: [2, 38],\n 54: [2, 38],\n 65: [2, 38],\n 68: [2, 38],\n 72: [2, 38],\n 75: [2, 38],\n 80: [2, 38],\n 81: [2, 38],\n 82: [2, 38],\n 83: [2, 38],\n 84: [2, 38],\n 85: [2, 38]\n }, {\n 23: [2, 39],\n 33: [2, 39],\n 54: [2, 39],\n 65: [2, 39],\n 68: [2, 39],\n 72: [2, 39],\n 75: [2, 39],\n 80: [2, 39],\n 81: [2, 39],\n 82: [2, 39],\n 83: [2, 39],\n 84: [2, 39],\n 85: [2, 39]\n }, {\n 23: [2, 43],\n 33: [2, 43],\n 54: [2, 43],\n 65: [2, 43],\n 68: [2, 43],\n 72: [2, 43],\n 75: [2, 43],\n 80: [2, 43],\n 81: [2, 43],\n 82: [2, 43],\n 83: [2, 43],\n 84: [2, 43],\n 85: [2, 43],\n 87: [1, 51]\n }, {\n 72: [1, 35],\n 86: 52\n }, {\n 23: [2, 45],\n 33: [2, 45],\n 54: [2, 45],\n 65: [2, 45],\n 68: [2, 45],\n 72: [2, 45],\n 75: [2, 45],\n 80: [2, 45],\n 81: [2, 45],\n 82: [2, 45],\n 83: [2, 45],\n 84: [2, 45],\n 85: [2, 45],\n 87: [2, 45]\n }, {\n 52: 53,\n 54: [2, 82],\n 65: [2, 82],\n 72: [2, 82],\n 80: [2, 82],\n 81: [2, 82],\n 82: [2, 82],\n 83: [2, 82],\n 84: [2, 82],\n 85: [2, 82]\n }, {\n 25: 54,\n 38: 56,\n 39: [1, 58],\n 43: 57,\n 44: [1, 59],\n 45: 55,\n 47: [2, 54]\n }, {\n 28: 60,\n 43: 61,\n 44: [1, 59],\n 47: [2, 56]\n }, {\n 13: 63,\n 15: [1, 20],\n 18: [1, 62]\n }, {\n 15: [2, 48],\n 18: [2, 48]\n }, {\n 33: [2, 86],\n 57: 64,\n 65: [2, 86],\n 72: [2, 86],\n 80: [2, 86],\n 81: [2, 86],\n 82: [2, 86],\n 83: [2, 86],\n 84: [2, 86],\n 85: [2, 86]\n }, {\n 33: [2, 40],\n 65: [2, 40],\n 72: [2, 40],\n 80: [2, 40],\n 81: [2, 40],\n 82: [2, 40],\n 83: [2, 40],\n 84: [2, 40],\n 85: [2, 40]\n }, {\n 33: [2, 41],\n 65: [2, 41],\n 72: [2, 41],\n 80: [2, 41],\n 81: [2, 41],\n 82: [2, 41],\n 83: [2, 41],\n 84: [2, 41],\n 85: [2, 41]\n }, {\n 20: 65,\n 72: [1, 35],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 26: 66,\n 47: [1, 67]\n }, {\n 30: 68,\n 33: [2, 58],\n 65: [2, 58],\n 72: [2, 58],\n 75: [2, 58],\n 80: [2, 58],\n 81: [2, 58],\n 82: [2, 58],\n 83: [2, 58],\n 84: [2, 58],\n 85: [2, 58]\n }, {\n 33: [2, 64],\n 35: 69,\n 65: [2, 64],\n 72: [2, 64],\n 75: [2, 64],\n 80: [2, 64],\n 81: [2, 64],\n 82: [2, 64],\n 83: [2, 64],\n 84: [2, 64],\n 85: [2, 64]\n }, {\n 21: 70,\n 23: [2, 50],\n 65: [2, 50],\n 72: [2, 50],\n 80: [2, 50],\n 81: [2, 50],\n 82: [2, 50],\n 83: [2, 50],\n 84: [2, 50],\n 85: [2, 50]\n }, {\n 33: [2, 90],\n 61: 71,\n 65: [2, 90],\n 72: [2, 90],\n 80: [2, 90],\n 81: [2, 90],\n 82: [2, 90],\n 83: [2, 90],\n 84: [2, 90],\n 85: [2, 90]\n }, {\n 20: 75,\n 33: [2, 80],\n 50: 72,\n 63: 73,\n 64: 76,\n 65: [1, 44],\n 69: 74,\n 70: 77,\n 71: 78,\n 72: [1, 79],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 72: [1, 80]\n }, {\n 23: [2, 42],\n 33: [2, 42],\n 54: [2, 42],\n 65: [2, 42],\n 68: [2, 42],\n 72: [2, 42],\n 75: [2, 42],\n 80: [2, 42],\n 81: [2, 42],\n 82: [2, 42],\n 83: [2, 42],\n 84: [2, 42],\n 85: [2, 42],\n 87: [1, 51]\n }, {\n 20: 75,\n 53: 81,\n 54: [2, 84],\n 63: 82,\n 64: 76,\n 65: [1, 44],\n 69: 83,\n 70: 77,\n 71: 78,\n 72: [1, 79],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 26: 84,\n 47: [1, 67]\n }, {\n 47: [2, 55]\n }, {\n 4: 85,\n 6: 3,\n 14: [2, 46],\n 15: [2, 46],\n 19: [2, 46],\n 29: [2, 46],\n 34: [2, 46],\n 39: [2, 46],\n 44: [2, 46],\n 47: [2, 46],\n 48: [2, 46],\n 51: [2, 46],\n 55: [2, 46],\n 60: [2, 46]\n }, {\n 47: [2, 20]\n }, {\n 20: 86,\n 72: [1, 35],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 4: 87,\n 6: 3,\n 14: [2, 46],\n 15: [2, 46],\n 19: [2, 46],\n 29: [2, 46],\n 34: [2, 46],\n 47: [2, 46],\n 48: [2, 46],\n 51: [2, 46],\n 55: [2, 46],\n 60: [2, 46]\n }, {\n 26: 88,\n 47: [1, 67]\n }, {\n 47: [2, 57]\n }, {\n 5: [2, 11],\n 14: [2, 11],\n 15: [2, 11],\n 19: [2, 11],\n 29: [2, 11],\n 34: [2, 11],\n 39: [2, 11],\n 44: [2, 11],\n 47: [2, 11],\n 48: [2, 11],\n 51: [2, 11],\n 55: [2, 11],\n 60: [2, 11]\n }, {\n 15: [2, 49],\n 18: [2, 49]\n }, {\n 20: 75,\n 33: [2, 88],\n 58: 89,\n 63: 90,\n 64: 76,\n 65: [1, 44],\n 69: 91,\n 70: 77,\n 71: 78,\n 72: [1, 79],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 65: [2, 94],\n 66: 92,\n 68: [2, 94],\n 72: [2, 94],\n 80: [2, 94],\n 81: [2, 94],\n 82: [2, 94],\n 83: [2, 94],\n 84: [2, 94],\n 85: [2, 94]\n }, {\n 5: [2, 25],\n 14: [2, 25],\n 15: [2, 25],\n 19: [2, 25],\n 29: [2, 25],\n 34: [2, 25],\n 39: [2, 25],\n 44: [2, 25],\n 47: [2, 25],\n 48: [2, 25],\n 51: [2, 25],\n 55: [2, 25],\n 60: [2, 25]\n }, {\n 20: 93,\n 72: [1, 35],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 20: 75,\n 31: 94,\n 33: [2, 60],\n 63: 95,\n 64: 76,\n 65: [1, 44],\n 69: 96,\n 70: 77,\n 71: 78,\n 72: [1, 79],\n 75: [2, 60],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 20: 75,\n 33: [2, 66],\n 36: 97,\n 63: 98,\n 64: 76,\n 65: [1, 44],\n 69: 99,\n 70: 77,\n 71: 78,\n 72: [1, 79],\n 75: [2, 66],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 20: 75,\n 22: 100,\n 23: [2, 52],\n 63: 101,\n 64: 76,\n 65: [1, 44],\n 69: 102,\n 70: 77,\n 71: 78,\n 72: [1, 79],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 20: 75,\n 33: [2, 92],\n 62: 103,\n 63: 104,\n 64: 76,\n 65: [1, 44],\n 69: 105,\n 70: 77,\n 71: 78,\n 72: [1, 79],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 33: [1, 106]\n }, {\n 33: [2, 79],\n 65: [2, 79],\n 72: [2, 79],\n 80: [2, 79],\n 81: [2, 79],\n 82: [2, 79],\n 83: [2, 79],\n 84: [2, 79],\n 85: [2, 79]\n }, {\n 33: [2, 81]\n }, {\n 23: [2, 27],\n 33: [2, 27],\n 54: [2, 27],\n 65: [2, 27],\n 68: [2, 27],\n 72: [2, 27],\n 75: [2, 27],\n 80: [2, 27],\n 81: [2, 27],\n 82: [2, 27],\n 83: [2, 27],\n 84: [2, 27],\n 85: [2, 27]\n }, {\n 23: [2, 28],\n 33: [2, 28],\n 54: [2, 28],\n 65: [2, 28],\n 68: [2, 28],\n 72: [2, 28],\n 75: [2, 28],\n 80: [2, 28],\n 81: [2, 28],\n 82: [2, 28],\n 83: [2, 28],\n 84: [2, 28],\n 85: [2, 28]\n }, {\n 23: [2, 30],\n 33: [2, 30],\n 54: [2, 30],\n 68: [2, 30],\n 71: 107,\n 72: [1, 108],\n 75: [2, 30]\n }, {\n 23: [2, 98],\n 33: [2, 98],\n 54: [2, 98],\n 68: [2, 98],\n 72: [2, 98],\n 75: [2, 98]\n }, {\n 23: [2, 45],\n 33: [2, 45],\n 54: [2, 45],\n 65: [2, 45],\n 68: [2, 45],\n 72: [2, 45],\n 73: [1, 109],\n 75: [2, 45],\n 80: [2, 45],\n 81: [2, 45],\n 82: [2, 45],\n 83: [2, 45],\n 84: [2, 45],\n 85: [2, 45],\n 87: [2, 45]\n }, {\n 23: [2, 44],\n 33: [2, 44],\n 54: [2, 44],\n 65: [2, 44],\n 68: [2, 44],\n 72: [2, 44],\n 75: [2, 44],\n 80: [2, 44],\n 81: [2, 44],\n 82: [2, 44],\n 83: [2, 44],\n 84: [2, 44],\n 85: [2, 44],\n 87: [2, 44]\n }, {\n 54: [1, 110]\n }, {\n 54: [2, 83],\n 65: [2, 83],\n 72: [2, 83],\n 80: [2, 83],\n 81: [2, 83],\n 82: [2, 83],\n 83: [2, 83],\n 84: [2, 83],\n 85: [2, 83]\n }, {\n 54: [2, 85]\n }, {\n 5: [2, 13],\n 14: [2, 13],\n 15: [2, 13],\n 19: [2, 13],\n 29: [2, 13],\n 34: [2, 13],\n 39: [2, 13],\n 44: [2, 13],\n 47: [2, 13],\n 48: [2, 13],\n 51: [2, 13],\n 55: [2, 13],\n 60: [2, 13]\n }, {\n 38: 56,\n 39: [1, 58],\n 43: 57,\n 44: [1, 59],\n 45: 112,\n 46: 111,\n 47: [2, 76]\n }, {\n 33: [2, 70],\n 40: 113,\n 65: [2, 70],\n 72: [2, 70],\n 75: [2, 70],\n 80: [2, 70],\n 81: [2, 70],\n 82: [2, 70],\n 83: [2, 70],\n 84: [2, 70],\n 85: [2, 70]\n }, {\n 47: [2, 18]\n }, {\n 5: [2, 14],\n 14: [2, 14],\n 15: [2, 14],\n 19: [2, 14],\n 29: [2, 14],\n 34: [2, 14],\n 39: [2, 14],\n 44: [2, 14],\n 47: [2, 14],\n 48: [2, 14],\n 51: [2, 14],\n 55: [2, 14],\n 60: [2, 14]\n }, {\n 33: [1, 114]\n }, {\n 33: [2, 87],\n 65: [2, 87],\n 72: [2, 87],\n 80: [2, 87],\n 81: [2, 87],\n 82: [2, 87],\n 83: [2, 87],\n 84: [2, 87],\n 85: [2, 87]\n }, {\n 33: [2, 89]\n }, {\n 20: 75,\n 63: 116,\n 64: 76,\n 65: [1, 44],\n 67: 115,\n 68: [2, 96],\n 69: 117,\n 70: 77,\n 71: 78,\n 72: [1, 79],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 33: [1, 118]\n }, {\n 32: 119,\n 33: [2, 62],\n 74: 120,\n 75: [1, 121]\n }, {\n 33: [2, 59],\n 65: [2, 59],\n 72: [2, 59],\n 75: [2, 59],\n 80: [2, 59],\n 81: [2, 59],\n 82: [2, 59],\n 83: [2, 59],\n 84: [2, 59],\n 85: [2, 59]\n }, {\n 33: [2, 61],\n 75: [2, 61]\n }, {\n 33: [2, 68],\n 37: 122,\n 74: 123,\n 75: [1, 121]\n }, {\n 33: [2, 65],\n 65: [2, 65],\n 72: [2, 65],\n 75: [2, 65],\n 80: [2, 65],\n 81: [2, 65],\n 82: [2, 65],\n 83: [2, 65],\n 84: [2, 65],\n 85: [2, 65]\n }, {\n 33: [2, 67],\n 75: [2, 67]\n }, {\n 23: [1, 124]\n }, {\n 23: [2, 51],\n 65: [2, 51],\n 72: [2, 51],\n 80: [2, 51],\n 81: [2, 51],\n 82: [2, 51],\n 83: [2, 51],\n 84: [2, 51],\n 85: [2, 51]\n }, {\n 23: [2, 53]\n }, {\n 33: [1, 125]\n }, {\n 33: [2, 91],\n 65: [2, 91],\n 72: [2, 91],\n 80: [2, 91],\n 81: [2, 91],\n 82: [2, 91],\n 83: [2, 91],\n 84: [2, 91],\n 85: [2, 91]\n }, {\n 33: [2, 93]\n }, {\n 5: [2, 22],\n 14: [2, 22],\n 15: [2, 22],\n 19: [2, 22],\n 29: [2, 22],\n 34: [2, 22],\n 39: [2, 22],\n 44: [2, 22],\n 47: [2, 22],\n 48: [2, 22],\n 51: [2, 22],\n 55: [2, 22],\n 60: [2, 22]\n }, {\n 23: [2, 99],\n 33: [2, 99],\n 54: [2, 99],\n 68: [2, 99],\n 72: [2, 99],\n 75: [2, 99]\n }, {\n 73: [1, 109]\n }, {\n 20: 75,\n 63: 126,\n 64: 76,\n 65: [1, 44],\n 72: [1, 35],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 5: [2, 23],\n 14: [2, 23],\n 15: [2, 23],\n 19: [2, 23],\n 29: [2, 23],\n 34: [2, 23],\n 39: [2, 23],\n 44: [2, 23],\n 47: [2, 23],\n 48: [2, 23],\n 51: [2, 23],\n 55: [2, 23],\n 60: [2, 23]\n }, {\n 47: [2, 19]\n }, {\n 47: [2, 77]\n }, {\n 20: 75,\n 33: [2, 72],\n 41: 127,\n 63: 128,\n 64: 76,\n 65: [1, 44],\n 69: 129,\n 70: 77,\n 71: 78,\n 72: [1, 79],\n 75: [2, 72],\n 78: 26,\n 79: 27,\n 80: [1, 28],\n 81: [1, 29],\n 82: [1, 30],\n 83: [1, 31],\n 84: [1, 32],\n 85: [1, 34],\n 86: 33\n }, {\n 5: [2, 24],\n 14: [2, 24],\n 15: [2, 24],\n 19: [2, 24],\n 29: [2, 24],\n 34: [2, 24],\n 39: [2, 24],\n 44: [2, 24],\n 47: [2, 24],\n 48: [2, 24],\n 51: [2, 24],\n 55: [2, 24],\n 60: [2, 24]\n }, {\n 68: [1, 130]\n }, {\n 65: [2, 95],\n 68: [2, 95],\n 72: [2, 95],\n 80: [2, 95],\n 81: [2, 95],\n 82: [2, 95],\n 83: [2, 95],\n 84: [2, 95],\n 85: [2, 95]\n }, {\n 68: [2, 97]\n }, {\n 5: [2, 21],\n 14: [2, 21],\n 15: [2, 21],\n 19: [2, 21],\n 29: [2, 21],\n 34: [2, 21],\n 39: [2, 21],\n 44: [2, 21],\n 47: [2, 21],\n 48: [2, 21],\n 51: [2, 21],\n 55: [2, 21],\n 60: [2, 21]\n }, {\n 33: [1, 131]\n }, {\n 33: [2, 63]\n }, {\n 72: [1, 133],\n 76: 132\n }, {\n 33: [1, 134]\n }, {\n 33: [2, 69]\n }, {\n 15: [2, 12]\n }, {\n 14: [2, 26],\n 15: [2, 26],\n 19: [2, 26],\n 29: [2, 26],\n 34: [2, 26],\n 47: [2, 26],\n 48: [2, 26],\n 51: [2, 26],\n 55: [2, 26],\n 60: [2, 26]\n }, {\n 23: [2, 31],\n 33: [2, 31],\n 54: [2, 31],\n 68: [2, 31],\n 72: [2, 31],\n 75: [2, 31]\n }, {\n 33: [2, 74],\n 42: 135,\n 74: 136,\n 75: [1, 121]\n }, {\n 33: [2, 71],\n 65: [2, 71],\n 72: [2, 71],\n 75: [2, 71],\n 80: [2, 71],\n 81: [2, 71],\n 82: [2, 71],\n 83: [2, 71],\n 84: [2, 71],\n 85: [2, 71]\n }, {\n 33: [2, 73],\n 75: [2, 73]\n }, {\n 23: [2, 29],\n 33: [2, 29],\n 54: [2, 29],\n 65: [2, 29],\n 68: [2, 29],\n 72: [2, 29],\n 75: [2, 29],\n 80: [2, 29],\n 81: [2, 29],\n 82: [2, 29],\n 83: [2, 29],\n 84: [2, 29],\n 85: [2, 29]\n }, {\n 14: [2, 15],\n 15: [2, 15],\n 19: [2, 15],\n 29: [2, 15],\n 34: [2, 15],\n 39: [2, 15],\n 44: [2, 15],\n 47: [2, 15],\n 48: [2, 15],\n 51: [2, 15],\n 55: [2, 15],\n 60: [2, 15]\n }, {\n 72: [1, 138],\n 77: [1, 137]\n }, {\n 72: [2, 100],\n 77: [2, 100]\n }, {\n 14: [2, 16],\n 15: [2, 16],\n 19: [2, 16],\n 29: [2, 16],\n 34: [2, 16],\n 44: [2, 16],\n 47: [2, 16],\n 48: [2, 16],\n 51: [2, 16],\n 55: [2, 16],\n 60: [2, 16]\n }, {\n 33: [1, 139]\n }, {\n 33: [2, 75]\n }, {\n 33: [2, 32]\n }, {\n 72: [2, 101],\n 77: [2, 101]\n }, {\n 14: [2, 17],\n 15: [2, 17],\n 19: [2, 17],\n 29: [2, 17],\n 34: [2, 17],\n 39: [2, 17],\n 44: [2, 17],\n 47: [2, 17],\n 48: [2, 17],\n 51: [2, 17],\n 55: [2, 17],\n 60: [2, 17]\n }],\n defaultActions: {\n 4: [2, 1],\n 55: [2, 55],\n 57: [2, 20],\n 61: [2, 57],\n 74: [2, 81],\n 83: [2, 85],\n 87: [2, 18],\n 91: [2, 89],\n 102: [2, 53],\n 105: [2, 93],\n 111: [2, 19],\n 112: [2, 77],\n 117: [2, 97],\n 120: [2, 63],\n 123: [2, 69],\n 124: [2, 12],\n 136: [2, 75],\n 137: [2, 32]\n },\n parseError: function parseError(str, hash) {\n throw new Error(str);\n },\n parse: function parse(input) {\n var self = this,\n stack = [0],\n vstack = [null],\n lstack = [],\n table = this.table,\n yytext = \"\",\n yylineno = 0,\n yyleng = 0,\n recovering = 0;\n this.lexer.setInput(input);\n this.lexer.yy = this.yy;\n this.yy.lexer = this.lexer;\n this.yy.parser = this;\n if (typeof this.lexer.yylloc == \"undefined\") this.lexer.yylloc = {};\n var yyloc = this.lexer.yylloc;\n lstack.push(yyloc);\n var ranges = this.lexer.options && this.lexer.options.ranges;\n if (typeof this.yy.parseError === \"function\") this.parseError = this.yy.parseError;\n\n function lex() {\n var token;\n token = self.lexer.lex() || 1;\n\n if (typeof token !== \"number\") {\n token = self.symbols_[token] || token;\n }\n\n return token;\n }\n\n var symbol,\n preErrorSymbol,\n state,\n action,\n r,\n yyval = {},\n p,\n len,\n newState,\n expected;\n\n while (true) {\n state = stack[stack.length - 1];\n\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == \"undefined\") {\n symbol = lex();\n }\n\n action = table[state] && table[state][symbol];\n }\n\n if (typeof action === \"undefined\" || !action.length || !action[0]) {\n var errStr = \"\";\n\n if (!recovering) {\n expected = [];\n\n for (p in table[state]) if (this.terminals_[p] && p > 2) {\n expected.push(\"'\" + this.terminals_[p] + \"'\");\n }\n\n if (this.lexer.showPosition) {\n errStr = \"Parse error on line \" + (yylineno + 1) + \":\\n\" + this.lexer.showPosition() + \"\\nExpecting \" + expected.join(\", \") + \", got '\" + (this.terminals_[symbol] || symbol) + \"'\";\n } else {\n errStr = \"Parse error on line \" + (yylineno + 1) + \": Unexpected \" + (symbol == 1 ? \"end of input\" : \"'\" + (this.terminals_[symbol] || symbol) + \"'\");\n }\n\n this.parseError(errStr, {\n text: this.lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: this.lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n }\n\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error(\"Parse Error: multiple actions possible at state: \" + state + \", token: \" + symbol);\n }\n\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(this.lexer.yytext);\n lstack.push(this.lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n\n if (!preErrorSymbol) {\n yyleng = this.lexer.yyleng;\n yytext = this.lexer.yytext;\n yylineno = this.lexer.yylineno;\n yyloc = this.lexer.yylloc;\n if (recovering > 0) recovering--;\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n\n break;\n\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n\n if (ranges) {\n yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];\n }\n\n r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);\n\n if (typeof r !== \"undefined\") {\n return r;\n }\n\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n\n case 3:\n return true;\n }\n }\n\n return true;\n }\n };\n /* Jison generated lexer */\n\n var lexer = function () {\n var lexer = {\n EOF: 1,\n parseError: function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n setInput: function (input) {\n this._input = input;\n this._more = this._less = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) this.yylloc.range = [0, 0];\n this.offset = 0;\n return this;\n },\n input: function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n\n if (this.options.ranges) this.yylloc.range[1]++;\n this._input = this._input.slice(1);\n return ch;\n },\n unput: function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len - 1); //this.yyleng -= len;\n\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n if (lines.length - 1) this.yylineno -= lines.length - 1;\n var r = this.yylloc.range;\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n\n return this;\n },\n more: function () {\n this._more = true;\n return this;\n },\n less: function (n) {\n this.unput(this.match.slice(n));\n },\n pastInput: function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...' : '') + past.substr(-20).replace(/\\n/g, \"\");\n },\n upcomingInput: function () {\n var next = this.match;\n\n if (next.length < 20) {\n next += this._input.substr(0, 20 - next.length);\n }\n\n return (next.substr(0, 20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n showPosition: function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n next: function () {\n if (this.done) {\n return this.EOF;\n }\n\n if (!this._input) this.done = true;\n var token, match, tempMatch, index, lines;\n\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n\n var rules = this._currentRules();\n\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (!this.options.flex) break;\n }\n }\n\n if (match) {\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) this.yylineno += lines.length;\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length : this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n\n this._more = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, rules[index], this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) this.done = false;\n if (token) return token;else return;\n }\n\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n lex: function lex() {\n var r = this.next();\n\n if (typeof r !== 'undefined') {\n return r;\n } else {\n return this.lex();\n }\n },\n begin: function begin(condition) {\n this.conditionStack.push(condition);\n },\n popState: function popState() {\n return this.conditionStack.pop();\n },\n _currentRules: function _currentRules() {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n },\n topState: function () {\n return this.conditionStack[this.conditionStack.length - 2];\n },\n pushState: function begin(condition) {\n this.begin(condition);\n }\n };\n lexer.options = {};\n\n lexer.performAction = function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {\n function strip(start, end) {\n return yy_.yytext = yy_.yytext.substr(start, yy_.yyleng - end);\n }\n\n switch ($avoiding_name_collisions) {\n case 0:\n if (yy_.yytext.slice(-2) === \"\\\\\\\\\") {\n strip(0, 1);\n this.begin(\"mu\");\n } else if (yy_.yytext.slice(-1) === \"\\\\\") {\n strip(0, 1);\n this.begin(\"emu\");\n } else {\n this.begin(\"mu\");\n }\n\n if (yy_.yytext) return 15;\n break;\n\n case 1:\n return 15;\n break;\n\n case 2:\n this.popState();\n return 15;\n break;\n\n case 3:\n this.begin('raw');\n return 15;\n break;\n\n case 4:\n this.popState(); // Should be using `this.topState()` below, but it currently\n // returns the second top instead of the first top. Opened an\n // issue about it at https://github.com/zaach/jison/issues/291\n\n if (this.conditionStack[this.conditionStack.length - 1] === 'raw') {\n return 15;\n } else {\n yy_.yytext = yy_.yytext.substr(5, yy_.yyleng - 9);\n return 'END_RAW_BLOCK';\n }\n\n break;\n\n case 5:\n return 15;\n break;\n\n case 6:\n this.popState();\n return 14;\n break;\n\n case 7:\n return 65;\n break;\n\n case 8:\n return 68;\n break;\n\n case 9:\n return 19;\n break;\n\n case 10:\n this.popState();\n this.begin('raw');\n return 23;\n break;\n\n case 11:\n return 55;\n break;\n\n case 12:\n return 60;\n break;\n\n case 13:\n return 29;\n break;\n\n case 14:\n return 47;\n break;\n\n case 15:\n this.popState();\n return 44;\n break;\n\n case 16:\n this.popState();\n return 44;\n break;\n\n case 17:\n return 34;\n break;\n\n case 18:\n return 39;\n break;\n\n case 19:\n return 51;\n break;\n\n case 20:\n return 48;\n break;\n\n case 21:\n this.unput(yy_.yytext);\n this.popState();\n this.begin('com');\n break;\n\n case 22:\n this.popState();\n return 14;\n break;\n\n case 23:\n return 48;\n break;\n\n case 24:\n return 73;\n break;\n\n case 25:\n return 72;\n break;\n\n case 26:\n return 72;\n break;\n\n case 27:\n return 87;\n break;\n\n case 28:\n // ignore whitespace\n break;\n\n case 29:\n this.popState();\n return 54;\n break;\n\n case 30:\n this.popState();\n return 33;\n break;\n\n case 31:\n yy_.yytext = strip(1, 2).replace(/\\\\\"/g, '\"');\n return 80;\n break;\n\n case 32:\n yy_.yytext = strip(1, 2).replace(/\\\\'/g, \"'\");\n return 80;\n break;\n\n case 33:\n return 85;\n break;\n\n case 34:\n return 82;\n break;\n\n case 35:\n return 82;\n break;\n\n case 36:\n return 83;\n break;\n\n case 37:\n return 84;\n break;\n\n case 38:\n return 81;\n break;\n\n case 39:\n return 75;\n break;\n\n case 40:\n return 77;\n break;\n\n case 41:\n return 72;\n break;\n\n case 42:\n yy_.yytext = yy_.yytext.replace(/\\\\([\\\\\\]])/g, '$1');\n return 72;\n break;\n\n case 43:\n return 'INVALID';\n break;\n\n case 44:\n return 5;\n break;\n }\n };\n\n lexer.rules = [/^(?:[^\\x00]*?(?=(\\{\\{)))/, /^(?:[^\\x00]+)/, /^(?:[^\\x00]{2,}?(?=(\\{\\{|\\\\\\{\\{|\\\\\\\\\\{\\{|$)))/, /^(?:\\{\\{\\{\\{(?=[^\\/]))/, /^(?:\\{\\{\\{\\{\\/[^\\s!\"#%-,\\.\\/;->@\\[-\\^`\\{-~]+(?=[=}\\s\\/.])\\}\\}\\}\\})/, /^(?:[^\\x00]*?(?=(\\{\\{\\{\\{)))/, /^(?:[\\s\\S]*?--(~)?\\}\\})/, /^(?:\\()/, /^(?:\\))/, /^(?:\\{\\{\\{\\{)/, /^(?:\\}\\}\\}\\})/, /^(?:\\{\\{(~)?>)/, /^(?:\\{\\{(~)?#>)/, /^(?:\\{\\{(~)?#\\*?)/, /^(?:\\{\\{(~)?\\/)/, /^(?:\\{\\{(~)?\\^\\s*(~)?\\}\\})/, /^(?:\\{\\{(~)?\\s*else\\s*(~)?\\}\\})/, /^(?:\\{\\{(~)?\\^)/, /^(?:\\{\\{(~)?\\s*else\\b)/, /^(?:\\{\\{(~)?\\{)/, /^(?:\\{\\{(~)?&)/, /^(?:\\{\\{(~)?!--)/, /^(?:\\{\\{(~)?![\\s\\S]*?\\}\\})/, /^(?:\\{\\{(~)?\\*?)/, /^(?:=)/, /^(?:\\.\\.)/, /^(?:\\.(?=([=~}\\s\\/.)|])))/, /^(?:[\\/.])/, /^(?:\\s+)/, /^(?:\\}(~)?\\}\\})/, /^(?:(~)?\\}\\})/, /^(?:\"(\\\\[\"]|[^\"])*\")/, /^(?:'(\\\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\\s)])))/, /^(?:false(?=([~}\\s)])))/, /^(?:undefined(?=([~}\\s)])))/, /^(?:null(?=([~}\\s)])))/, /^(?:-?[0-9]+(?:\\.[0-9]+)?(?=([~}\\s)])))/, /^(?:as\\s+\\|)/, /^(?:\\|)/, /^(?:([^\\s!\"#%-,\\.\\/;->@\\[-\\^`\\{-~]+(?=([=~}\\s\\/.)|]))))/, /^(?:\\[(\\\\\\]|[^\\]])*\\])/, /^(?:.)/, /^(?:$)/];\n lexer.conditions = {\n \"mu\": {\n \"rules\": [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44],\n \"inclusive\": false\n },\n \"emu\": {\n \"rules\": [2],\n \"inclusive\": false\n },\n \"com\": {\n \"rules\": [6],\n \"inclusive\": false\n },\n \"raw\": {\n \"rules\": [3, 4, 5],\n \"inclusive\": false\n },\n \"INITIAL\": {\n \"rules\": [0, 1, 44],\n \"inclusive\": true\n }\n };\n return lexer;\n }();\n\n parser.lexer = lexer;\n\n function Parser() {\n this.yy = {};\n }\n\n Parser.prototype = parser;\n parser.Parser = Parser;\n return new Parser();\n }();\n\n _exports.parser = handlebars;\n const errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];\n\n function Exception(message, node) {\n let loc = node && node.loc,\n line,\n column;\n\n if (loc) {\n line = loc.start.line;\n column = loc.start.column;\n message += ' - ' + line + ':' + column;\n }\n\n let tmp = Error.prototype.constructor.call(this, message); // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n\n for (let idx = 0; idx < errorProps.length; idx++) {\n this[errorProps[idx]] = tmp[errorProps[idx]];\n }\n /* istanbul ignore else */\n\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, Exception);\n }\n\n try {\n if (loc) {\n this.lineNumber = line; // Work around issue under safari where we can't directly set the column value\n\n /* istanbul ignore next */\n\n if (Object.defineProperty) {\n Object.defineProperty(this, 'column', {\n value: column,\n enumerable: true\n });\n } else {\n this.column = column;\n }\n }\n } catch (nop) {\n /* Ignore if the browser is very particular */\n }\n }\n\n Exception.prototype = new Error();\n\n function Visitor() {\n this.parents = [];\n }\n\n Visitor.prototype = {\n constructor: Visitor,\n mutating: false,\n // Visits a given value. If mutating, will replace the value if necessary.\n acceptKey: function (node, name) {\n let value = this.accept(node[name]);\n\n if (this.mutating) {\n // Hacky sanity check: This may have a few false positives for type for the helper\n // methods but will generally do the right thing without a lot of overhead.\n if (value && !Visitor.prototype[value.type]) {\n throw new Exception('Unexpected node type \"' + value.type + '\" found when accepting ' + name + ' on ' + node.type);\n }\n\n node[name] = value;\n }\n },\n // Performs an accept operation with added sanity check to ensure\n // required keys are not removed.\n acceptRequired: function (node, name) {\n this.acceptKey(node, name);\n\n if (!node[name]) {\n throw new Exception(node.type + ' requires ' + name);\n }\n },\n // Traverses a given array. If mutating, empty respnses will be removed\n // for child elements.\n acceptArray: function (array) {\n for (let i = 0, l = array.length; i < l; i++) {\n this.acceptKey(array, i);\n\n if (!array[i]) {\n array.splice(i, 1);\n i--;\n l--;\n }\n }\n },\n accept: function (object) {\n if (!object) {\n return;\n }\n /* istanbul ignore next: Sanity code */\n\n\n if (!this[object.type]) {\n throw new Exception('Unknown type: ' + object.type, object);\n }\n\n if (this.current) {\n this.parents.unshift(this.current);\n }\n\n this.current = object;\n let ret = this[object.type](object);\n this.current = this.parents.shift();\n\n if (!this.mutating || ret) {\n return ret;\n } else if (ret !== false) {\n return object;\n }\n },\n Program: function (program) {\n this.acceptArray(program.body);\n },\n MustacheStatement: visitSubExpression,\n Decorator: visitSubExpression,\n BlockStatement: visitBlock,\n DecoratorBlock: visitBlock,\n PartialStatement: visitPartial,\n PartialBlockStatement: function (partial) {\n visitPartial.call(this, partial);\n this.acceptKey(partial, 'program');\n },\n ContentStatement: function ()\n /* content */\n {},\n CommentStatement: function ()\n /* comment */\n {},\n SubExpression: visitSubExpression,\n PathExpression: function ()\n /* path */\n {},\n StringLiteral: function ()\n /* string */\n {},\n NumberLiteral: function ()\n /* number */\n {},\n BooleanLiteral: function ()\n /* bool */\n {},\n UndefinedLiteral: function ()\n /* literal */\n {},\n NullLiteral: function ()\n /* literal */\n {},\n Hash: function (hash) {\n this.acceptArray(hash.pairs);\n },\n HashPair: function (pair) {\n this.acceptRequired(pair, 'value');\n }\n };\n\n function visitSubExpression(mustache) {\n this.acceptRequired(mustache, 'path');\n this.acceptArray(mustache.params);\n this.acceptKey(mustache, 'hash');\n }\n\n function visitBlock(block) {\n visitSubExpression.call(this, block);\n this.acceptKey(block, 'program');\n this.acceptKey(block, 'inverse');\n }\n\n function visitPartial(partial) {\n this.acceptRequired(partial, 'name');\n this.acceptArray(partial.params);\n this.acceptKey(partial, 'hash');\n }\n\n function WhitespaceControl(options = {}) {\n this.options = options;\n }\n\n WhitespaceControl.prototype = new Visitor();\n\n WhitespaceControl.prototype.Program = function (program) {\n const doStandalone = !this.options.ignoreStandalone;\n let isRoot = !this.isRootSeen;\n this.isRootSeen = true;\n let body = program.body;\n\n for (let i = 0, l = body.length; i < l; i++) {\n let current = body[i],\n strip = this.accept(current);\n\n if (!strip) {\n continue;\n }\n\n let _isPrevWhitespace = isPrevWhitespace(body, i, isRoot),\n _isNextWhitespace = isNextWhitespace(body, i, isRoot),\n openStandalone = strip.openStandalone && _isPrevWhitespace,\n closeStandalone = strip.closeStandalone && _isNextWhitespace,\n inlineStandalone = strip.inlineStandalone && _isPrevWhitespace && _isNextWhitespace;\n\n if (strip.close) {\n omitRight(body, i, true);\n }\n\n if (strip.open) {\n omitLeft(body, i, true);\n }\n\n if (doStandalone && inlineStandalone) {\n omitRight(body, i);\n\n if (omitLeft(body, i)) {\n // If we are on a standalone node, save the indent info for partials\n if (current.type === 'PartialStatement') {\n // Pull out the whitespace from the final line\n current.indent = /([ \\t]+$)/.exec(body[i - 1].original)[1];\n }\n }\n }\n\n if (doStandalone && openStandalone) {\n omitRight((current.program || current.inverse).body); // Strip out the previous content node if it's whitespace only\n\n omitLeft(body, i);\n }\n\n if (doStandalone && closeStandalone) {\n // Always strip the next node\n omitRight(body, i);\n omitLeft((current.inverse || current.program).body);\n }\n }\n\n return program;\n };\n\n WhitespaceControl.prototype.BlockStatement = WhitespaceControl.prototype.DecoratorBlock = WhitespaceControl.prototype.PartialBlockStatement = function (block) {\n this.accept(block.program);\n this.accept(block.inverse); // Find the inverse program that is involed with whitespace stripping.\n\n let program = block.program || block.inverse,\n inverse = block.program && block.inverse,\n firstInverse = inverse,\n lastInverse = inverse;\n\n if (inverse && inverse.chained) {\n firstInverse = inverse.body[0].program; // Walk the inverse chain to find the last inverse that is actually in the chain.\n\n while (lastInverse.chained) {\n lastInverse = lastInverse.body[lastInverse.body.length - 1].program;\n }\n }\n\n let strip = {\n open: block.openStrip.open,\n close: block.closeStrip.close,\n // Determine the standalone candiacy. Basically flag our content as being possibly standalone\n // so our parent can determine if we actually are standalone\n openStandalone: isNextWhitespace(program.body),\n closeStandalone: isPrevWhitespace((firstInverse || program).body)\n };\n\n if (block.openStrip.close) {\n omitRight(program.body, null, true);\n }\n\n if (inverse) {\n let inverseStrip = block.inverseStrip;\n\n if (inverseStrip.open) {\n omitLeft(program.body, null, true);\n }\n\n if (inverseStrip.close) {\n omitRight(firstInverse.body, null, true);\n }\n\n if (block.closeStrip.open) {\n omitLeft(lastInverse.body, null, true);\n } // Find standalone else statments\n\n\n if (!this.options.ignoreStandalone && isPrevWhitespace(program.body) && isNextWhitespace(firstInverse.body)) {\n omitLeft(program.body);\n omitRight(firstInverse.body);\n }\n } else if (block.closeStrip.open) {\n omitLeft(program.body, null, true);\n }\n\n return strip;\n };\n\n WhitespaceControl.prototype.Decorator = WhitespaceControl.prototype.MustacheStatement = function (mustache) {\n return mustache.strip;\n };\n\n WhitespaceControl.prototype.PartialStatement = WhitespaceControl.prototype.CommentStatement = function (node) {\n /* istanbul ignore next */\n let strip = node.strip || {};\n return {\n inlineStandalone: true,\n open: strip.open,\n close: strip.close\n };\n };\n\n function isPrevWhitespace(body, i, isRoot) {\n if (i === undefined) {\n i = body.length;\n } // Nodes that end with newlines are considered whitespace (but are special\n // cased for strip operations)\n\n\n let prev = body[i - 1],\n sibling = body[i - 2];\n\n if (!prev) {\n return isRoot;\n }\n\n if (prev.type === 'ContentStatement') {\n return (sibling || !isRoot ? /\\r?\\n\\s*?$/ : /(^|\\r?\\n)\\s*?$/).test(prev.original);\n }\n }\n\n function isNextWhitespace(body, i, isRoot) {\n if (i === undefined) {\n i = -1;\n }\n\n let next = body[i + 1],\n sibling = body[i + 2];\n\n if (!next) {\n return isRoot;\n }\n\n if (next.type === 'ContentStatement') {\n return (sibling || !isRoot ? /^\\s*?\\r?\\n/ : /^\\s*?(\\r?\\n|$)/).test(next.original);\n }\n } // Marks the node to the right of the position as omitted.\n // I.e. {{foo}}' ' will mark the ' ' node as omitted.\n //\n // If i is undefined, then the first child will be marked as such.\n //\n // If mulitple is truthy then all whitespace will be stripped out until non-whitespace\n // content is met.\n\n\n function omitRight(body, i, multiple) {\n let current = body[i == null ? 0 : i + 1];\n\n if (!current || current.type !== 'ContentStatement' || !multiple && current.rightStripped) {\n return;\n }\n\n let original = current.value;\n current.value = current.value.replace(multiple ? /^\\s+/ : /^[ \\t]*\\r?\\n?/, '');\n current.rightStripped = current.value !== original;\n } // Marks the node to the left of the position as omitted.\n // I.e. ' '{{foo}} will mark the ' ' node as omitted.\n //\n // If i is undefined then the last child will be marked as such.\n //\n // If mulitple is truthy then all whitespace will be stripped out until non-whitespace\n // content is met.\n\n\n function omitLeft(body, i, multiple) {\n let current = body[i == null ? body.length - 1 : i - 1];\n\n if (!current || current.type !== 'ContentStatement' || !multiple && current.leftStripped) {\n return;\n } // We omit the last node if it's whitespace only and not preceeded by a non-content node.\n\n\n let original = current.value;\n current.value = current.value.replace(multiple ? /\\s+$/ : /[ \\t]+$/, '');\n current.leftStripped = current.value !== original;\n return current.leftStripped;\n }\n\n function validateClose(open, close) {\n close = close.path ? close.path.original : close;\n\n if (open.path.original !== close) {\n let errorNode = {\n loc: open.path.loc\n };\n throw new Exception(open.path.original + \" doesn't match \" + close, errorNode);\n }\n }\n\n function SourceLocation(source, locInfo) {\n this.source = source;\n this.start = {\n line: locInfo.first_line,\n column: locInfo.first_column\n };\n this.end = {\n line: locInfo.last_line,\n column: locInfo.last_column\n };\n }\n\n function id(token) {\n if (/^\\[.*\\]$/.test(token)) {\n return token.substr(1, token.length - 2);\n } else {\n return token;\n }\n }\n\n function stripFlags(open, close) {\n return {\n open: open.charAt(2) === '~',\n close: close.charAt(close.length - 3) === '~'\n };\n }\n\n function stripComment(comment) {\n return comment.replace(/^\\{\\{~?!-?-?/, '').replace(/-?-?~?\\}\\}$/, '');\n }\n\n function preparePath(data, parts, loc) {\n loc = this.locInfo(loc);\n let original = data ? '@' : '',\n dig = [],\n depth = 0;\n\n for (let i = 0, l = parts.length; i < l; i++) {\n let part = parts[i].part,\n // If we have [] syntax then we do not treat path references as operators,\n // i.e. foo.[this] resolves to approximately context.foo['this']\n isLiteral = parts[i].original !== part;\n original += (parts[i].separator || '') + part;\n\n if (!isLiteral && (part === '..' || part === '.' || part === 'this')) {\n if (dig.length > 0) {\n throw new Exception('Invalid path: ' + original, {\n loc\n });\n } else if (part === '..') {\n depth++;\n }\n } else {\n dig.push(part);\n }\n }\n\n return {\n type: 'PathExpression',\n data,\n depth,\n parts: dig,\n original,\n loc\n };\n }\n\n function prepareMustache(path, params, hash, open, strip, locInfo) {\n // Must use charAt to support IE pre-10\n let escapeFlag = open.charAt(3) || open.charAt(2),\n escaped = escapeFlag !== '{' && escapeFlag !== '&';\n let decorator = /\\*/.test(open);\n return {\n type: decorator ? 'Decorator' : 'MustacheStatement',\n path,\n params,\n hash,\n escaped,\n strip,\n loc: this.locInfo(locInfo)\n };\n }\n\n function prepareRawBlock(openRawBlock, contents, close, locInfo) {\n validateClose(openRawBlock, close);\n locInfo = this.locInfo(locInfo);\n let program = {\n type: 'Program',\n body: contents,\n strip: {},\n loc: locInfo\n };\n return {\n type: 'BlockStatement',\n path: openRawBlock.path,\n params: openRawBlock.params,\n hash: openRawBlock.hash,\n program,\n openStrip: {},\n inverseStrip: {},\n closeStrip: {},\n loc: locInfo\n };\n }\n\n function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) {\n if (close && close.path) {\n validateClose(openBlock, close);\n }\n\n let decorator = /\\*/.test(openBlock.open);\n program.blockParams = openBlock.blockParams;\n let inverse, inverseStrip;\n\n if (inverseAndProgram) {\n if (decorator) {\n throw new Exception('Unexpected inverse block on decorator', inverseAndProgram);\n }\n\n if (inverseAndProgram.chain) {\n inverseAndProgram.program.body[0].closeStrip = close.strip;\n }\n\n inverseStrip = inverseAndProgram.strip;\n inverse = inverseAndProgram.program;\n }\n\n if (inverted) {\n inverted = inverse;\n inverse = program;\n program = inverted;\n }\n\n return {\n type: decorator ? 'DecoratorBlock' : 'BlockStatement',\n path: openBlock.path,\n params: openBlock.params,\n hash: openBlock.hash,\n program,\n inverse,\n openStrip: openBlock.strip,\n inverseStrip,\n closeStrip: close && close.strip,\n loc: this.locInfo(locInfo)\n };\n }\n\n function prepareProgram(statements, loc) {\n if (!loc && statements.length) {\n const firstLoc = statements[0].loc,\n lastLoc = statements[statements.length - 1].loc;\n /* istanbul ignore else */\n\n if (firstLoc && lastLoc) {\n loc = {\n source: firstLoc.source,\n start: {\n line: firstLoc.start.line,\n column: firstLoc.start.column\n },\n end: {\n line: lastLoc.end.line,\n column: lastLoc.end.column\n }\n };\n }\n }\n\n return {\n type: 'Program',\n body: statements,\n strip: {},\n loc: loc\n };\n }\n\n function preparePartialBlock(open, program, close, locInfo) {\n validateClose(open, close);\n return {\n type: 'PartialBlockStatement',\n name: open.path,\n params: open.params,\n hash: open.hash,\n program,\n openStrip: open.strip,\n closeStrip: close && close.strip,\n loc: this.locInfo(locInfo)\n };\n }\n\n var Helpers =\n /*#__PURE__*/\n Object.freeze({\n SourceLocation: SourceLocation,\n id: id,\n stripFlags: stripFlags,\n stripComment: stripComment,\n preparePath: preparePath,\n prepareMustache: prepareMustache,\n prepareRawBlock: prepareRawBlock,\n prepareBlock: prepareBlock,\n prepareProgram: prepareProgram,\n preparePartialBlock: preparePartialBlock\n });\n\n function extend(obj\n /* , ...source */\n ) {\n for (let i = 1; i < arguments.length; i++) {\n for (let key in arguments[i]) {\n if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n obj[key] = arguments[i][key];\n }\n }\n }\n\n return obj;\n }\n\n let toString = Object.prototype.toString; // Sourced from lodash\n // https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\n\n /* eslint-disable func-style */\n\n let isFunction = function (value) {\n return typeof value === 'function';\n }; // fallback for older versions of Chrome and Safari\n\n /* istanbul ignore next */\n\n\n if (isFunction(/x/)) {\n isFunction = function (value) {\n return typeof value === 'function' && toString.call(value) === '[object Function]';\n };\n }\n\n let yy = {};\n extend(yy, Helpers);\n\n function parse(input, options) {\n // Just return if an already-compiled AST was passed in.\n if (input.type === 'Program') {\n return input;\n }\n\n handlebars.yy = yy; // Altering the shared object here, but this is ok as parser is a sync operation\n\n yy.locInfo = function (locInfo) {\n return new yy.SourceLocation(options && options.srcName, locInfo);\n };\n\n let strip = new WhitespaceControl(options);\n return strip.accept(handlebars.parse(input));\n }\n});","enifed(\"internal-test-helpers/index\", [\"exports\", \"internal-test-helpers/lib/factory\", \"internal-test-helpers/lib/build-owner\", \"internal-test-helpers/lib/confirm-export\", \"internal-test-helpers/lib/equal-inner-html\", \"internal-test-helpers/lib/equal-tokens\", \"internal-test-helpers/lib/module-for\", \"internal-test-helpers/lib/strip\", \"internal-test-helpers/lib/apply-mixins\", \"internal-test-helpers/lib/get-text-of\", \"internal-test-helpers/lib/matchers\", \"internal-test-helpers/lib/run\", \"internal-test-helpers/lib/test-context\", \"internal-test-helpers/lib/test-cases/abstract\", \"internal-test-helpers/lib/test-cases/abstract-application\", \"internal-test-helpers/lib/test-cases/application\", \"internal-test-helpers/lib/test-cases/query-param\", \"internal-test-helpers/lib/test-cases/abstract-rendering\", \"internal-test-helpers/lib/test-cases/rendering\", \"internal-test-helpers/lib/test-cases/router\", \"internal-test-helpers/lib/test-cases/autoboot-application\", \"internal-test-helpers/lib/test-cases/default-resolver-application\", \"internal-test-helpers/lib/test-resolver\", \"internal-test-helpers/lib/browser-detect\", \"internal-test-helpers/lib/registry-check\"], function (_exports, _factory, _buildOwner, _confirmExport, _equalInnerHtml, _equalTokens, _moduleFor, _strip, _applyMixins, _getTextOf, _matchers, _run, _testContext, _abstract, _abstractApplication, _application, _queryParam, _abstractRendering, _rendering, _router, _autobootApplication, _defaultResolverApplication, _testResolver, _browserDetect, _registryCheck) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.verifyRegistration = _exports.verifyInjection = _exports.isEdge = _exports.isIE11 = _exports.ModuleBasedTestResolver = _exports.unsetContext = _exports.setContext = _exports.getContext = _exports.runLoopSettled = _exports.runTaskNext = _exports.runTask = _exports.runDestroy = _exports.runAppend = _exports.regex = _exports.styles = _exports.classes = _exports.equalsElement = _exports.setupTestClass = _exports.TestResolver = _exports.DefaultResolverApplicationTestCase = _exports.AutobootApplicationTestCase = _exports.RouterTestCase = _exports.RenderingTestCase = _exports.AbstractRenderingTestCase = _exports.QueryParamTestCase = _exports.ApplicationTestCase = _exports.AbstractApplicationTestCase = _exports.AbstractTestCase = _exports.getTextOf = _exports.applyMixins = _exports.strip = _exports.moduleFor = _exports.equalTokens = _exports.equalInnerHTML = _exports.confirmExport = _exports.buildOwner = _exports.factory = void 0;\n _exports.factory = _factory.default;\n _exports.buildOwner = _buildOwner.default;\n _exports.confirmExport = _confirmExport.default;\n _exports.equalInnerHTML = _equalInnerHtml.default;\n _exports.equalTokens = _equalTokens.default;\n _exports.moduleFor = _moduleFor.default;\n _exports.setupTestClass = _moduleFor.setupTestClass;\n _exports.strip = _strip.default;\n _exports.applyMixins = _applyMixins.default;\n _exports.getTextOf = _getTextOf.default;\n _exports.equalsElement = _matchers.equalsElement;\n _exports.classes = _matchers.classes;\n _exports.styles = _matchers.styles;\n _exports.regex = _matchers.regex;\n _exports.runAppend = _run.runAppend;\n _exports.runDestroy = _run.runDestroy;\n _exports.runTask = _run.runTask;\n _exports.runTaskNext = _run.runTaskNext;\n _exports.runLoopSettled = _run.runLoopSettled;\n _exports.getContext = _testContext.getContext;\n _exports.setContext = _testContext.setContext;\n _exports.unsetContext = _testContext.unsetContext;\n _exports.AbstractTestCase = _abstract.default;\n _exports.AbstractApplicationTestCase = _abstractApplication.default;\n _exports.ApplicationTestCase = _application.default;\n _exports.QueryParamTestCase = _queryParam.default;\n _exports.AbstractRenderingTestCase = _abstractRendering.default;\n _exports.RenderingTestCase = _rendering.default;\n _exports.RouterTestCase = _router.default;\n _exports.AutobootApplicationTestCase = _autobootApplication.default;\n _exports.DefaultResolverApplicationTestCase = _defaultResolverApplication.default;\n _exports.TestResolver = _testResolver.default;\n _exports.ModuleBasedTestResolver = _testResolver.ModuleBasedResolver;\n _exports.isIE11 = _browserDetect.isIE11;\n _exports.isEdge = _browserDetect.isEdge;\n _exports.verifyInjection = _registryCheck.verifyInjection;\n _exports.verifyRegistration = _registryCheck.verifyRegistration;\n});","enifed(\"internal-test-helpers/lib/apply-mixins\", [\"exports\", \"@ember/polyfills\", \"internal-test-helpers/lib/get-all-property-names\"], function (_exports, _polyfills, _getAllPropertyNames) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = applyMixins;\n\n function isGenerator(mixin) {\n return Array.isArray(mixin.cases) && typeof mixin.generate === 'function';\n }\n\n function applyMixins(TestClass, ...mixins) {\n mixins.forEach(mixinOrGenerator => {\n let mixin;\n\n if (isGenerator(mixinOrGenerator)) {\n let generator = mixinOrGenerator;\n mixin = {};\n generator.cases.forEach((value, idx) => {\n (0, _polyfills.assign)(mixin, generator.generate(value, idx));\n });\n (0, _polyfills.assign)(TestClass.prototype, mixin);\n } else if (typeof mixinOrGenerator === 'function') {\n let properties = (0, _getAllPropertyNames.default)(mixinOrGenerator);\n mixin = new mixinOrGenerator();\n properties.forEach(name => {\n TestClass.prototype[name] = function () {\n return mixin[name].apply(mixin, arguments);\n };\n });\n } else {\n mixin = mixinOrGenerator;\n (0, _polyfills.assign)(TestClass.prototype, mixin);\n }\n });\n return TestClass;\n }\n});","enifed(\"internal-test-helpers/lib/browser-detect\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.isEdge = _exports.isIE11 = void 0;\n // `window.ActiveXObject` is \"falsey\" in IE11 (but not `undefined` or `false`)\n // `\"ActiveXObject\" in window` returns `true` in all IE versions\n // only IE11 will pass _both_ of these conditions\n const isIE11 = !window.ActiveXObject && 'ActiveXObject' in window;\n _exports.isIE11 = isIE11;\n const isEdge = /Edge/.test(navigator.userAgent);\n _exports.isEdge = isEdge;\n});","enifed(\"internal-test-helpers/lib/build-owner\", [\"exports\", \"@ember/-internals/container\", \"@ember/-internals/routing\", \"@ember/application/instance\", \"@ember/application\", \"@ember/-internals/runtime\"], function (_exports, _container, _routing, _instance, _application, _runtime) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = buildOwner;\n\n class ResolverWrapper {\n constructor(resolver) {\n this.resolver = resolver;\n }\n\n create() {\n return this.resolver;\n }\n\n }\n\n function buildOwner(options = {}) {\n let ownerOptions = options.ownerOptions || {};\n let resolver = options.resolver;\n let bootOptions = options.bootOptions || {};\n\n let Owner = _runtime.Object.extend(_runtime.RegistryProxyMixin, _runtime.ContainerProxyMixin);\n\n let namespace = _runtime.Object.create({\n Resolver: new ResolverWrapper(resolver)\n });\n\n let fallbackRegistry = _application.default.buildRegistry(namespace);\n\n fallbackRegistry.register('router:main', _routing.Router);\n let registry = new _container.Registry({\n fallback: fallbackRegistry\n });\n\n _instance.default.setupRegistry(registry, bootOptions);\n\n let owner = Owner.create({\n __registry__: registry,\n __container__: null\n }, ownerOptions);\n let container = registry.container({\n owner\n });\n owner.__container__ = container;\n return owner;\n }\n});","enifed(\"internal-test-helpers/lib/confirm-export\", [\"exports\", \"require\"], function (_exports, _require) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = confirmExport;\n\n function getDescriptor(obj, path) {\n let parts = path.split('.');\n let value = obj;\n\n for (let i = 0; i < parts.length - 1; i++) {\n let part = parts[i];\n value = value[part];\n\n if (!value) {\n return undefined;\n }\n }\n\n let last = parts[parts.length - 1];\n return Object.getOwnPropertyDescriptor(value, last);\n }\n\n function confirmExport(Ember, assert, path, moduleId, exportName) {\n try {\n let desc = getDescriptor(Ember, path);\n assert.ok(desc, \"the \" + path + \" property exists on the Ember global\");\n\n if (typeof exportName === 'string') {\n let mod = (0, _require.default)(moduleId);\n assert.equal(desc.value, mod[exportName], \"Ember.\" + path + \" is exported correctly\");\n assert.notEqual(mod[exportName], undefined, \"Ember.\" + path + \" is not `undefined`\");\n } else if ('value' in desc) {\n assert.equal(desc.value, exportName.value, \"Ember.\" + path + \" is exported correctly\");\n } else {\n let mod = (0, _require.default)(moduleId);\n assert.equal(desc.get, mod[exportName.get], \"Ember.\" + path + \" getter is exported correctly\");\n assert.notEqual(desc.get, undefined, \"Ember.\" + path + \" getter is not undefined\");\n\n if (exportName.set) {\n assert.equal(desc.set, mod[exportName.set], \"Ember.\" + path + \" setter is exported correctly\");\n assert.notEqual(desc.set, undefined, \"Ember.\" + path + \" setter is not undefined\");\n }\n }\n } catch (error) {\n assert.pushResult({\n result: false,\n message: \"An error occured while testing \" + path + \" is exported from \" + moduleId + \".\",\n source: error\n });\n }\n }\n});","enifed(\"internal-test-helpers/lib/element-helpers\", [\"exports\", \"internal-test-helpers/lib/test-context\"], function (_exports, _testContext) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.getElement = getElement;\n\n function getElement() {\n let context = (0, _testContext.getContext)();\n\n if (!context) {\n throw new Error('Test context is not set up.');\n }\n\n let element = context.element;\n\n if (!element) {\n throw new Error('`element` property on test context is not set up.');\n }\n\n return element;\n }\n});","enifed(\"internal-test-helpers/lib/ember-dev/assertion\", [\"exports\", \"internal-test-helpers/lib/ember-dev/utils\"], function (_exports, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setupAssertionHelpers = setupAssertionHelpers;\n const BREAK = {};\n /*\n This assertion helper is used to test assertions made using Ember.assert.\n It injects two helpers onto `window`:\n \n - expectAssertion(func: Function, [expectedMessage: String | RegExp])\n \n This function calls `func` and asserts that `Ember.assert` is invoked during\n the execution. Moreover, it takes a String or a RegExp as a second optional\n argument that can be used to test if a specific assertion message was\n generated.\n \n - ignoreAssertion(func: Function)\n \n This function calls `func` and disables `Ember.assert` during the execution.\n In particular, this prevents `Ember.assert` from throw errors that would\n disrupt the control flow.\n */\n\n function setupAssertionHelpers(hooks, env) {\n hooks.beforeEach(function (assert) {\n let expectAssertion = (func, expectedMessage) => {\n if (env.runningProdBuild) {\n assert.ok(true, 'Assertions disabled in production builds.');\n return;\n }\n\n let sawCall = false;\n let actualMessage = undefined; // The try-catch statement is used to \"exit\" `func` as soon as\n // the first useful assertion has been produced.\n\n try {\n (0, _utils.callWithStub)(env, 'assert', func, (message, test) => {\n sawCall = true;\n\n if ((0, _utils.checkTest)(test)) {\n return;\n }\n\n actualMessage = message;\n throw BREAK;\n });\n } catch (e) {\n if (e !== BREAK) {\n throw e;\n }\n }\n\n check(assert, sawCall, actualMessage, expectedMessage);\n };\n\n let ignoreAssertion = func => {\n (0, _utils.callWithStub)(env, 'assert', func);\n };\n\n window.expectAssertion = expectAssertion;\n window.ignoreAssertion = ignoreAssertion;\n });\n hooks.afterEach(function () {\n window.expectAssertion = null;\n window.ignoreAssertion = null;\n });\n }\n\n function check(assert, sawCall, actualMessage, expectedMessage) {\n // Run assertions in an order that is useful when debugging a test failure.\n if (!sawCall) {\n assert.ok(false, \"Expected Ember.assert to be called (Not called with any value).\");\n } else if (!actualMessage) {\n assert.ok(false, \"Expected a failing Ember.assert (Ember.assert called, but without a failing test).\");\n } else {\n if (expectedMessage) {\n if (expectedMessage instanceof RegExp) {\n assert.ok(expectedMessage.test(actualMessage), \"Expected failing Ember.assert: '\" + expectedMessage + \"', but got '\" + actualMessage + \"'.\");\n } else {\n assert.equal(actualMessage, expectedMessage, \"Expected failing Ember.assert: '\" + expectedMessage + \"', but got '\" + actualMessage + \"'.\");\n }\n } else {\n // Positive assertion that assert was called\n assert.ok(true, 'Expected a failing Ember.assert.');\n }\n }\n }\n});","enifed(\"internal-test-helpers/lib/ember-dev/containers\", [\"exports\", \"@ember/-internals/container\"], function (_exports, _container) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setupContainersCheck = setupContainersCheck;\n const {\n _leakTracking: containerLeakTracking\n } = _container.Container;\n\n function setupContainersCheck(hooks) {\n hooks.afterEach(function () {\n if (containerLeakTracking === undefined) return;\n let {\n config\n } = QUnit;\n let {\n testName,\n testId,\n module: {\n name: moduleName\n },\n finish: originalFinish\n } = config.current;\n\n config.current.finish = function () {\n originalFinish.call(this);\n originalFinish = undefined;\n config.queue.unshift(function () {\n if (containerLeakTracking.hasContainers()) {\n containerLeakTracking.reset(); // eslint-disable-next-line no-console\n\n console.assert(false, \"Leaked container after test \" + moduleName + \": \" + testName + \" testId=\" + testId);\n }\n });\n };\n });\n }\n});","enifed(\"internal-test-helpers/lib/ember-dev/debug\", [\"exports\", \"internal-test-helpers/lib/ember-dev/method-call-tracker\"], function (_exports, _methodCallTracker) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class DebugAssert {\n constructor(methodName, env) {\n this.methodName = methodName;\n this.env = env;\n this.tracker = null;\n }\n\n inject() {}\n\n restore() {\n this.reset();\n }\n\n reset() {\n if (this.tracker) {\n this.tracker.restoreMethod();\n }\n\n this.tracker = null;\n }\n\n assert() {\n if (this.tracker) {\n this.tracker.assert();\n }\n } // Run an expectation callback within the context of a new tracker, optionally\n // accepting a function to run, which asserts immediately\n\n\n runExpectation(func, callback) {\n let originalTracker = null; // When helpers are passed a callback, they get a new tracker context\n\n if (func) {\n originalTracker = this.tracker;\n this.tracker = null;\n }\n\n if (!this.tracker) {\n this.tracker = new _methodCallTracker.default(this.env, this.methodName);\n } // Yield to caller with tracker instance\n\n\n callback(this.tracker); // Once the given callback is invoked, the pending assertions should be\n // flushed immediately\n\n if (func) {\n func();\n this.assert();\n this.reset();\n this.tracker = originalTracker;\n }\n }\n\n }\n\n var _default = DebugAssert;\n _exports.default = _default;\n});","enifed(\"internal-test-helpers/lib/ember-dev/deprecation\", [\"exports\", \"internal-test-helpers/lib/ember-dev/debug\", \"internal-test-helpers/lib/ember-dev/utils\"], function (_exports, _debug, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setupDeprecationHelpers = setupDeprecationHelpers;\n _exports.default = void 0;\n\n function setupDeprecationHelpers(hooks, env) {\n let assertion = new DeprecationAssert(env);\n hooks.beforeEach(function () {\n assertion.reset();\n assertion.inject();\n });\n hooks.afterEach(function () {\n assertion.assert();\n assertion.restore();\n });\n }\n\n class DeprecationAssert extends _debug.default {\n constructor(env) {\n super('deprecate', env);\n }\n\n inject() {\n // Expects no deprecation to happen within a function, or if no function is\n // passed, from the time of calling until the end of the test.\n //\n // expectNoDeprecation(function() {\n // fancyNewThing();\n // });\n //\n // expectNoDeprecation();\n // Ember.deprecate(\"Old And Busted\");\n //\n let expectNoDeprecation = func => {\n if (typeof func !== 'function') {\n func = undefined;\n }\n\n this.runExpectation(func, tracker => {\n if (tracker.isExpectingCalls()) {\n throw new Error('expectNoDeprecation was called after expectDeprecation was called!');\n }\n\n tracker.expectNoCalls();\n });\n }; // Expect a deprecation to happen within a function, or if no function\n // is pass, from the time of calling until the end of the test. Can be called\n // multiple times to assert deprecations with different specific messages\n // were fired.\n //\n // expectDeprecation(function() {\n // Ember.deprecate(\"Old And Busted\");\n // }, /* optionalStringOrRegex */);\n //\n // expectDeprecation(/* optionalStringOrRegex */);\n // Ember.deprecate(\"Old And Busted\");\n //\n\n\n let expectDeprecation = (func, message) => {\n let actualFunc;\n\n if (typeof func !== 'function') {\n message = func;\n actualFunc = undefined;\n } else {\n actualFunc = func;\n }\n\n this.runExpectation(actualFunc, tracker => {\n if (tracker.isExpectingNoCalls()) {\n throw new Error('expectDeprecation was called after expectNoDeprecation was called!');\n }\n\n tracker.expectCall(message, ['id', 'until']);\n });\n };\n\n let ignoreDeprecation = func => {\n (0, _utils.callWithStub)(this.env, 'deprecate', func);\n };\n\n window.expectNoDeprecation = expectNoDeprecation;\n window.expectDeprecation = expectDeprecation;\n window.ignoreDeprecation = ignoreDeprecation;\n }\n\n restore() {\n super.restore();\n window.expectDeprecation = null;\n window.expectNoDeprecation = null;\n window.ignoreDeprecation = null;\n }\n\n }\n\n var _default = DeprecationAssert;\n _exports.default = _default;\n});","enifed(\"internal-test-helpers/lib/ember-dev/method-call-tracker\", [\"exports\", \"internal-test-helpers/lib/ember-dev/utils\"], function (_exports, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class MethodCallTracker {\n constructor(env, methodName) {\n this._env = env;\n this._methodName = methodName;\n this._isExpectingNoCalls = false;\n this._expectedMessages = [];\n this._expectedOptionLists = [];\n this._actuals = [];\n this._originalMethod = undefined;\n }\n\n stubMethod() {\n if (this._originalMethod) {\n // Method is already stubbed\n return;\n }\n\n let env = this._env;\n let methodName = this._methodName;\n this._originalMethod = env.getDebugFunction(methodName);\n env.setDebugFunction(methodName, (message, test, options) => {\n let resultOfTest = (0, _utils.checkTest)(test);\n\n this._actuals.push([message, resultOfTest, options]);\n });\n }\n\n restoreMethod() {\n if (this._originalMethod) {\n this._env.setDebugFunction(this._methodName, this._originalMethod);\n }\n }\n\n expectCall(message, options) {\n this.stubMethod();\n\n this._expectedMessages.push(message || /.*/);\n\n this._expectedOptionLists.push(options);\n }\n\n expectNoCalls() {\n this.stubMethod();\n this._isExpectingNoCalls = true;\n }\n\n isExpectingNoCalls() {\n return this._isExpectingNoCalls;\n }\n\n isExpectingCalls() {\n return !this._isExpectingNoCalls && this._expectedMessages.length;\n }\n\n assert() {\n let {\n assert\n } = QUnit.config.current;\n let env = this._env;\n let methodName = this._methodName;\n let isExpectingNoCalls = this._isExpectingNoCalls;\n let expectedMessages = this._expectedMessages;\n let expectedOptionLists = this._expectedOptionLists;\n let actuals = this._actuals;\n let o, i, j;\n\n if (!isExpectingNoCalls && expectedMessages.length === 0 && actuals.length === 0) {\n return;\n }\n\n if (env.runningProdBuild) {\n assert.ok(true, \"calls to Ember.\" + methodName + \" disabled in production builds.\");\n return;\n }\n\n if (isExpectingNoCalls) {\n let actualMessages = [];\n\n for (i = 0; i < actuals.length; i++) {\n if (!actuals[i][1]) {\n actualMessages.push(actuals[i][0]);\n }\n }\n\n assert.ok(actualMessages.length === 0, \"Expected no Ember.\" + methodName + \" calls, got \" + actuals.length + \": \" + actualMessages.join(', '));\n return;\n }\n\n let actual;\n let match = undefined;\n\n for (o = 0; o < expectedMessages.length; o++) {\n const expectedMessage = expectedMessages[o];\n const expectedOptionList = expectedOptionLists[o];\n\n for (i = 0; i < actuals.length; i++) {\n let matchesMessage = false;\n let matchesOptionList = false;\n actual = actuals[i];\n\n if (actual[1] === true) {\n continue;\n }\n\n if (expectedMessage instanceof RegExp && expectedMessage.test(actual[0])) {\n matchesMessage = true;\n } else if (expectedMessage === actual[0]) {\n matchesMessage = true;\n }\n\n if (expectedOptionList === undefined) {\n matchesOptionList = true;\n } else if (actual[2]) {\n matchesOptionList = true;\n\n for (j = 0; j < expectedOptionList.length; j++) {\n matchesOptionList = matchesOptionList && actual[2].hasOwnProperty(expectedOptionList[j]);\n }\n }\n\n if (matchesMessage && matchesOptionList) {\n match = actual;\n break;\n }\n }\n\n const expectedOptionsMessage = expectedOptionList ? \"and options: { \" + expectedOptionList.join(', ') + \" }\" : 'and no options';\n const actualOptionsMessage = actual && actual[2] ? \"and options: { \" + Object.keys(actual[2]).join(', ') + \" }\" : 'and no options';\n\n if (!actual) {\n assert.ok(false, \"Received no Ember.\" + methodName + \" calls at all, expecting: \" + expectedMessage);\n } else if (match && !match[1]) {\n assert.ok(true, \"Received failing Ember.\" + methodName + \" call with message: \" + match[0]);\n } else if (match && match[1]) {\n assert.ok(false, \"Expected failing Ember.\" + methodName + \" call, got succeeding with message: \" + match[0]);\n } else if (actual[1]) {\n assert.ok(false, \"Did not receive failing Ember.\" + methodName + \" call matching '\" + expectedMessage + \"' \" + expectedOptionsMessage + \", last was success with '\" + actual[0] + \"' \" + actualOptionsMessage);\n } else if (!actual[1]) {\n assert.ok(false, \"Did not receive failing Ember.\" + methodName + \" call matching '\" + expectedMessage + \"' \" + expectedOptionsMessage + \", last was failure with '\" + actual[0] + \"' \" + actualOptionsMessage);\n }\n }\n }\n\n }\n\n _exports.default = MethodCallTracker;\n});","enifed(\"internal-test-helpers/lib/ember-dev/namespaces\", [\"exports\", \"@ember/-internals/metal\", \"@ember/runloop\"], function (_exports, _metal, _runloop) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setupNamespacesCheck = setupNamespacesCheck;\n\n function setupNamespacesCheck(hooks) {\n hooks.afterEach(function () {\n let {\n assert\n } = QUnit.config.current;\n\n if (_metal.NAMESPACES.length > 0) {\n assert.ok(false, 'Should not have any NAMESPACES after tests');\n (0, _runloop.run)(() => {\n let namespaces = _metal.NAMESPACES.slice();\n\n for (let i = 0; i < namespaces.length; i++) {\n namespaces[i].destroy();\n }\n });\n }\n\n let keys = Object.keys(_metal.NAMESPACES_BY_ID);\n\n if (keys.length > 0) {\n assert.ok(false, 'Should not have any NAMESPACES_BY_ID after tests');\n\n for (let i = 0; i < keys.length; i++) {\n delete _metal.NAMESPACES_BY_ID[keys[i]];\n }\n }\n });\n }\n});","enifed(\"internal-test-helpers/lib/ember-dev/run-loop\", [\"exports\", \"@ember/runloop\"], function (_exports, _runloop) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setupRunLoopCheck = setupRunLoopCheck;\n\n // @ts-ignore\n function setupRunLoopCheck(hooks) {\n hooks.afterEach(function (assert) {\n if ((0, _runloop.getCurrentRunLoop)() || (0, _runloop.hasScheduledTimers)()) {\n let done = assert.async(); // use a setTimeout to allow the current run loop to flush via autorun\n\n setTimeout(() => {\n // increment expected assertion count for the assertions just below\n if (assert['test'].expected !== null) {\n assert['test'].expected += 2;\n } // if it is _still_ not completed, we have a problem and the test should be fixed\n\n\n assert.ok(!(0, _runloop.hasScheduledTimers)(), 'Ember run should not have scheduled timers at end of test');\n assert.ok(!(0, _runloop.getCurrentRunLoop)(), 'Should not be in a run loop at end of test'); // attempt to recover so the rest of the tests can run\n\n while ((0, _runloop.getCurrentRunLoop)()) {\n (0, _runloop.end)();\n }\n\n (0, _runloop.cancelTimers)();\n done();\n }, 0);\n }\n });\n }\n});","enifed(\"internal-test-helpers/lib/ember-dev/setup-qunit\", [\"exports\", \"@ember/debug\", \"internal-test-helpers/lib/ember-dev/assertion\", \"internal-test-helpers/lib/ember-dev/containers\", \"internal-test-helpers/lib/ember-dev/deprecation\", \"internal-test-helpers/lib/ember-dev/namespaces\", \"internal-test-helpers/lib/ember-dev/run-loop\", \"internal-test-helpers/lib/ember-dev/warning\"], function (_exports, _debug, _assertion, _containers, _deprecation, _namespaces, _runLoop, _warning) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = setupQUnit;\n\n function setupQUnit({\n runningProdBuild\n }) {\n let env = {\n runningProdBuild,\n getDebugFunction: _debug.getDebugFunction,\n setDebugFunction: _debug.setDebugFunction\n };\n let originalModule = QUnit.module;\n\n QUnit.module = function (name, callback) {\n return originalModule(name, function (hooks) {\n (0, _containers.setupContainersCheck)(hooks);\n (0, _namespaces.setupNamespacesCheck)(hooks);\n (0, _runLoop.setupRunLoopCheck)(hooks);\n (0, _assertion.setupAssertionHelpers)(hooks, env);\n (0, _deprecation.setupDeprecationHelpers)(hooks, env);\n (0, _warning.setupWarningHelpers)(hooks, env);\n callback(hooks);\n });\n };\n }\n});","enifed(\"internal-test-helpers/lib/ember-dev/utils\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.callWithStub = callWithStub;\n _exports.checkTest = checkTest;\n\n function noop() {}\n\n function callWithStub(env, name, func, debugStub = noop) {\n let originalFunc = env.getDebugFunction(name);\n\n try {\n env.setDebugFunction(name, debugStub);\n func();\n } finally {\n env.setDebugFunction(name, originalFunc);\n }\n }\n\n function checkTest(test) {\n return typeof test === 'function' ? test() : test;\n }\n});","enifed(\"internal-test-helpers/lib/ember-dev/warning\", [\"exports\", \"internal-test-helpers/lib/ember-dev/debug\", \"internal-test-helpers/lib/ember-dev/utils\"], function (_exports, _debug, _utils) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setupWarningHelpers = setupWarningHelpers;\n _exports.default = void 0;\n\n function setupWarningHelpers(hooks, env) {\n let assertion = new WarningAssert(env);\n hooks.beforeEach(function () {\n assertion.reset();\n assertion.inject();\n });\n hooks.afterEach(function () {\n assertion.assert();\n assertion.restore();\n });\n }\n\n class WarningAssert extends _debug.default {\n constructor(env) {\n super('warn', env);\n }\n\n inject() {\n // Expects no warning to happen within a function, or if no function is\n // passed, from the time of calling until the end of the test.\n //\n // expectNoWarning(function() {\n // fancyNewThing();\n // });\n //\n // expectNoWarning();\n // Ember.warn(\"Oh snap, didn't expect that\");\n //\n let expectNoWarning = func => {\n if (typeof func !== 'function') {\n func = undefined;\n }\n\n this.runExpectation(func, tracker => {\n if (tracker.isExpectingCalls()) {\n throw new Error('expectNoWarning was called after expectWarning was called!');\n }\n\n tracker.expectNoCalls();\n });\n }; // Expect a warning to happen within a function, or if no function is\n // passed, from the time of calling until the end of the test. Can be called\n // multiple times to assert warnings with different specific messages\n // happened.\n //\n // expectWarning(function() {\n // Ember.warn(\"Times they are a-changin'\");\n // }, /* optionalStringOrRegex */);\n //\n // expectWarning(/* optionalStringOrRegex */);\n // Ember.warn(\"Times definitely be changin'\");\n //\n\n\n let expectWarning = (func, message) => {\n let actualFunc;\n\n if (typeof func !== 'function') {\n message = func;\n actualFunc = undefined;\n } else {\n actualFunc = func;\n }\n\n this.runExpectation(actualFunc, tracker => {\n if (tracker.isExpectingNoCalls()) {\n throw new Error('expectWarning was called after expectNoWarning was called!');\n }\n\n tracker.expectCall(message);\n });\n };\n\n let ignoreWarning = func => {\n (0, _utils.callWithStub)(this.env, 'warn', func);\n };\n\n window.expectNoWarning = expectNoWarning;\n window.expectWarning = expectWarning;\n window.ignoreWarning = ignoreWarning;\n }\n\n restore() {\n super.restore();\n window.expectWarning = null;\n window.expectNoWarning = null;\n window.ignoreWarning = null;\n }\n\n }\n\n var _default = WarningAssert;\n _exports.default = _default;\n});","enifed(\"internal-test-helpers/lib/equal-inner-html\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = equalInnerHTML;\n\n // detect side-effects of cloning svg elements in IE9-11\n let ieSVGInnerHTML = (() => {\n if (!document.createElementNS) {\n return false;\n }\n\n let div = document.createElement('div');\n let node = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n div.appendChild(node);\n let clone = div.cloneNode(true);\n return clone.innerHTML === ' ';\n })();\n\n function normalizeInnerHTML(actualHTML) {\n if (ieSVGInnerHTML) {\n // Replace ` ` with ` `, etc.\n // drop namespace attribute\n // replace self-closing elements\n actualHTML = actualHTML.replace(/ xmlns=\"[^\"]+\"/, '').replace(/<([^ >]+) [^\\/>]*\\/>/gi, (tag, tagName) => tag.slice(0, tag.length - 3) + \">\" + tagName + \">\");\n }\n\n return actualHTML;\n }\n\n function equalInnerHTML(assert, fragment, html) {\n let actualHTML = normalizeInnerHTML(fragment.innerHTML);\n assert.pushResult({\n result: actualHTML === html,\n actual: actualHTML,\n expected: html\n });\n }\n});","enifed(\"internal-test-helpers/lib/equal-tokens\", [\"exports\", \"simple-html-tokenizer\"], function (_exports, _simpleHtmlTokenizer) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = equalTokens;\n\n function generateTokens(containerOrHTML) {\n if (typeof containerOrHTML === 'string') {\n return {\n tokens: (0, _simpleHtmlTokenizer.tokenize)(containerOrHTML),\n html: containerOrHTML\n };\n } else {\n return {\n tokens: (0, _simpleHtmlTokenizer.tokenize)(containerOrHTML.innerHTML),\n html: containerOrHTML.innerHTML\n };\n }\n }\n\n function normalizeTokens(tokens) {\n tokens.forEach(token => {\n if (token.type === 'StartTag') {\n token.attributes = token.attributes.sort((a, b) => {\n if (a[0] > b[0]) {\n return 1;\n }\n\n if (a[0] < b[0]) {\n return -1;\n }\n\n return 0;\n });\n }\n });\n }\n\n function equalTokens(actualContainer, expectedHTML, message = null) {\n let actual = generateTokens(actualContainer);\n let expected = generateTokens(expectedHTML);\n normalizeTokens(actual.tokens);\n normalizeTokens(expected.tokens);\n let {\n assert\n } = QUnit.config.current;\n let equiv = QUnit.equiv(actual.tokens, expected.tokens);\n\n if (equiv && expected.html !== actual.html) {\n assert.deepEqual(actual.tokens, expected.tokens, message);\n } else {\n assert.pushResult({\n result: QUnit.equiv(actual.tokens, expected.tokens),\n actual: actual.html,\n expected: expected.html,\n message\n });\n }\n }\n});","enifed(\"internal-test-helpers/lib/factory\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = factory;\n\n function setProperties(object, properties) {\n for (let key in properties) {\n if (properties.hasOwnProperty(key)) {\n object[key] = properties[key];\n }\n }\n }\n\n let guids = 0;\n\n function factory() {\n function Klass(options) {\n setProperties(this, options);\n this._guid = guids++;\n this.isDestroyed = false;\n }\n\n Klass.prototype.constructor = Klass;\n\n Klass.prototype.destroy = function () {\n this.isDestroyed = true;\n };\n\n Klass.prototype.toString = function () {\n return '';\n };\n\n Klass.create = create;\n Klass.extend = extend;\n Klass.reopen = extend;\n Klass.reopenClass = reopenClass;\n return Klass;\n\n function create(options) {\n return new this.prototype.constructor(options);\n }\n\n function reopenClass(options) {\n setProperties(this, options);\n }\n\n function extend(options) {\n function Child(options) {\n Klass.call(this, options);\n }\n\n let Parent = this;\n Child.prototype = new Parent();\n Child.prototype.constructor = Child;\n setProperties(Child, Klass);\n setProperties(Child.prototype, options);\n Child.create = create;\n Child.extend = extend;\n Child.reopen = extend;\n Child.reopenClass = reopenClass;\n return Child;\n }\n }\n});","enifed(\"internal-test-helpers/lib/get-all-property-names\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = getAllPropertyNames;\n\n function getAllPropertyNames(Klass) {\n let proto = Klass.prototype;\n let properties = new Set();\n\n while (proto !== Object.prototype) {\n let names = Object.getOwnPropertyNames(proto);\n names.forEach(name => properties.add(name));\n proto = Object.getPrototypeOf(proto);\n }\n\n return properties;\n }\n});","enifed(\"internal-test-helpers/lib/get-text-of\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = getTextOf;\n\n function getTextOf(elem) {\n return elem.textContent.trim();\n }\n});","enifed(\"internal-test-helpers/lib/matchers\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.regex = regex;\n _exports.classes = classes;\n _exports.styles = styles;\n _exports.equalsElement = equalsElement;\n const HTMLElement = window.HTMLElement;\n const MATCHER_BRAND = '3d4ef194-13be-4ccf-8dc7-862eea02c93e';\n\n function isMatcher(obj) {\n return typeof obj === 'object' && obj !== null && MATCHER_BRAND in obj;\n }\n\n function equalsAttr(expected) {\n return {\n [MATCHER_BRAND]: true,\n\n match(actual) {\n return expected === actual;\n },\n\n expected() {\n return expected;\n },\n\n message() {\n return \"should equal \" + this.expected();\n }\n\n };\n }\n\n function regex(r) {\n return {\n [MATCHER_BRAND]: true,\n\n match(v) {\n return r.test(v);\n },\n\n expected() {\n return r.toString();\n },\n\n message() {\n return \"should match \" + this.expected();\n }\n\n };\n }\n\n function classes(expected) {\n return {\n [MATCHER_BRAND]: true,\n\n match(actual) {\n actual = actual.trim();\n return actual && expected.split(/\\s+/).sort().join(' ') === actual.trim().split(/\\s+/).sort().join(' ');\n },\n\n expected() {\n return expected;\n },\n\n message() {\n return \"should match \" + this.expected();\n }\n\n };\n }\n\n function styles(expected) {\n return {\n [MATCHER_BRAND]: true,\n\n match(actual) {\n // coerce `null` or `undefined` to an empty string\n // needed for matching empty styles on IE9 - IE11\n actual = actual || '';\n actual = actual.trim();\n return expected.split(';').map(s => s.trim()).filter(s => s).sort().join('; ') === actual.split(';').map(s => s.trim()).filter(s => s).sort().join('; ');\n },\n\n expected() {\n return expected;\n },\n\n message() {\n return \"should match \" + this.expected();\n }\n\n };\n }\n\n function equalsElement(assert, element, tagName, attributes, content) {\n assert.pushResult({\n result: element.tagName === tagName.toUpperCase(),\n actual: element.tagName.toLowerCase(),\n expected: tagName,\n message: \"expect tagName to be \" + tagName\n });\n let expectedAttrs = {};\n let expectedCount = 0;\n\n for (let name in attributes) {\n let expected = attributes[name];\n\n if (expected !== null) {\n expectedCount++;\n }\n\n let matcher = isMatcher(expected) ? expected : equalsAttr(expected);\n expectedAttrs[name] = matcher;\n assert.pushResult({\n result: expectedAttrs[name].match(element.getAttribute(name)),\n actual: element.getAttribute(name),\n expected: matcher.expected(),\n message: \"Element's \" + name + \" attribute \" + matcher.message()\n });\n }\n\n let actualAttributes = {};\n\n for (let i = 0, l = element.attributes.length; i < l; i++) {\n actualAttributes[element.attributes[i].name] = element.attributes[i].value;\n }\n\n if (!(element instanceof HTMLElement)) {\n assert.pushResult({\n result: element instanceof HTMLElement,\n message: 'Element must be an HTML Element, not an SVG Element'\n });\n } else {\n assert.pushResult({\n result: element.attributes.length === expectedCount || !attributes,\n actual: element.attributes.length,\n expected: expectedCount,\n message: \"Expected \" + expectedCount + \" attributes; got \" + element.outerHTML\n });\n\n if (content !== null) {\n assert.pushResult({\n result: element.innerHTML === content,\n actual: element.innerHTML,\n expected: content,\n message: \"The element had '\" + content + \"' as its content\"\n });\n }\n }\n }\n});","enifed(\"internal-test-helpers/lib/module-for\", [\"exports\", \"@ember/canary-features\", \"internal-test-helpers/lib/apply-mixins\", \"internal-test-helpers/lib/get-all-property-names\", \"internal-test-helpers/lib/test-context\", \"rsvp\"], function (_exports, _canaryFeatures, _applyMixins, _getAllPropertyNames, _testContext, _rsvp) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = moduleFor;\n _exports.setupTestClass = setupTestClass;\n\n function moduleFor(description, TestClass, ...mixins) {\n QUnit.module(description, function (hooks) {\n setupTestClass(hooks, TestClass, ...mixins);\n });\n }\n\n function setupTestClass(hooks, TestClass, ...mixins) {\n hooks.beforeEach(function (assert) {\n let instance = new TestClass(assert);\n this.instance = instance;\n (0, _testContext.setContext)(instance);\n\n if (instance.beforeEach) {\n return instance.beforeEach(assert);\n }\n });\n hooks.afterEach(function () {\n let promises = [];\n let instance = this.instance;\n this.instance = null;\n\n if (instance.teardown) {\n promises.push(instance.teardown());\n }\n\n if (instance.afterEach) {\n promises.push(instance.afterEach());\n } // this seems odd, but actually saves significant time\n // in the test suite\n //\n // returning a promise from a QUnit test always adds a 13ms\n // delay to the test, this filtering prevents returning a\n // promise when it is not needed\n\n\n let filteredPromises = promises.filter(Boolean);\n\n if (filteredPromises.length > 0) {\n return (0, _rsvp.all)(filteredPromises).finally(() => (0, _testContext.unsetContext)());\n }\n\n (0, _testContext.unsetContext)();\n });\n\n if (mixins.length > 0) {\n (0, _applyMixins.default)(TestClass, ...mixins);\n }\n\n let properties = (0, _getAllPropertyNames.default)(TestClass);\n properties.forEach(generateTest);\n\n function shouldTest(features) {\n return features.every(feature => {\n if (feature[0] === '!' && (0, _canaryFeatures.isEnabled)(feature.slice(1))) {\n return false;\n } else if (!(0, _canaryFeatures.isEnabled)(feature)) {\n return false;\n } else {\n return true;\n }\n });\n }\n\n function generateTest(name) {\n if (name.indexOf('@test ') === 0) {\n QUnit.test(name.slice(5), function (assert) {\n return this.instance[name](assert);\n });\n } else if (name.indexOf('@only ') === 0) {\n // eslint-disable-next-line qunit/no-only\n QUnit.only(name.slice(5), function (assert) {\n return this.instance[name](assert);\n });\n } else if (name.indexOf('@skip ') === 0) {\n QUnit.skip(name.slice(5), function (assert) {\n return this.instance[name](assert);\n });\n } else {\n let match = /^@feature\\(([A-Z_a-z-!]+)\\) /.exec(name);\n\n if (match) {\n let features = match[1].replace(/ /g, '').split(',');\n\n if (shouldTest(features)) {\n QUnit.test(name.slice(match[0].length), function (assert) {\n return this.instance[name](assert);\n });\n }\n }\n }\n }\n }\n});","enifed(\"internal-test-helpers/lib/node-query\", [\"exports\", \"@ember/debug\", \"internal-test-helpers/lib/system/synthetic-events\"], function (_exports, _debug, _syntheticEvents) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /* global Node */\n class NodeQuery {\n static query(selector, context = document) {\n (0, _debug.assert)(\"Invalid second parameter to NodeQuery.query\", context && context instanceof Node);\n return new NodeQuery(toArray(context.querySelectorAll(selector)));\n }\n\n static element(element) {\n return new NodeQuery([element]);\n }\n\n constructor(nodes) {\n (0, _debug.assert)('NodeQuery must be initialized with a literal array', Array.isArray(nodes));\n this.nodes = nodes;\n\n for (let i = 0; i < nodes.length; i++) {\n this[i] = nodes[i];\n }\n\n this.length = nodes.length;\n Object.freeze(this);\n }\n\n find(selector) {\n assertSingle(this);\n return this[0].querySelector(selector);\n }\n\n findAll(selector) {\n let nodes = [];\n this.nodes.forEach(node => {\n nodes.push(...node.querySelectorAll(selector));\n });\n return new NodeQuery(nodes);\n }\n\n trigger(eventName, options) {\n return this.nodes.map(node => (0, _syntheticEvents.fireEvent)(node, eventName, options));\n }\n\n click() {\n return this.trigger('click');\n }\n\n focus() {\n this.nodes.forEach(_syntheticEvents.focus);\n }\n\n text() {\n return this.nodes.map(node => node.textContent).join('');\n }\n\n attr(name) {\n if (arguments.length !== 1) {\n throw new Error('not implemented');\n }\n\n assertSingle(this);\n return this.nodes[0].getAttribute(name);\n }\n\n prop(name, value) {\n if (arguments.length > 1) {\n return this.setProp(name, value);\n }\n\n assertSingle(this);\n return this.nodes[0][name];\n }\n\n setProp(name, value) {\n this.nodes.forEach(node => node[name] = value);\n return this;\n }\n\n val(value) {\n if (arguments.length === 1) {\n return this.setProp('value', value);\n }\n\n return this.prop('value');\n }\n\n is(selector) {\n return this.nodes.every(node => (0, _syntheticEvents.matches)(node, selector));\n }\n\n hasClass(className) {\n return this.is(\".\" + className);\n }\n\n }\n\n _exports.default = NodeQuery;\n\n function assertSingle(nodeQuery) {\n if (nodeQuery.length !== 1) {\n throw new Error(\"attr(name) called on a NodeQuery with \" + this.nodes.length + \" elements. Expected one element.\");\n }\n }\n\n function toArray(nodes) {\n let out = [];\n\n for (let i = 0; i < nodes.length; i++) {\n out.push(nodes[i]);\n }\n\n return out;\n }\n});","enifed(\"internal-test-helpers/lib/registry-check\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.verifyRegistration = verifyRegistration;\n _exports.verifyInjection = verifyInjection;\n\n function verifyRegistration(assert, owner, fullName) {\n assert.ok(owner.resolveRegistration(fullName), \"has registration: \" + fullName);\n }\n\n function verifyInjection(assert, owner, fullName, property, injectionName) {\n let registry = owner.__registry__;\n let injections;\n\n if (fullName.indexOf(':') === -1) {\n injections = registry.getTypeInjections(fullName);\n } else {\n injections = registry.getInjections(registry.normalize(fullName));\n }\n\n let normalizedName = registry.normalize(injectionName);\n let hasInjection = false;\n let injection;\n\n for (let i = 0, l = injections.length; i < l; i++) {\n injection = injections[i];\n\n if (injection.property === property && injection.specifier === normalizedName) {\n hasInjection = true;\n break;\n }\n }\n\n assert.ok(hasInjection, \"has injection: \" + fullName + \".\" + property + \" = \" + injectionName);\n }\n});","enifed(\"internal-test-helpers/lib/run\", [\"exports\", \"@ember/runloop\", \"rsvp\"], function (_exports, _runloop, _rsvp) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.runAppend = runAppend;\n _exports.runDestroy = runDestroy;\n _exports.runTask = runTask;\n _exports.runTaskNext = runTaskNext;\n _exports.runLoopSettled = runLoopSettled;\n\n function runAppend(view) {\n (0, _runloop.run)(view, 'appendTo', document.getElementById('qunit-fixture'));\n }\n\n function runDestroy(toDestroy) {\n if (toDestroy) {\n (0, _runloop.run)(toDestroy, 'destroy');\n }\n }\n\n function runTask(callback) {\n return (0, _runloop.run)(callback);\n }\n\n function runTaskNext() {\n return new _rsvp.Promise(resolve => {\n return (0, _runloop.next)(resolve);\n });\n } // TODO: Find a better name 😎\n\n\n function runLoopSettled(event) {\n return new _rsvp.Promise(function (resolve) {\n // Every 5ms, poll for the async thing to have finished\n let watcher = setInterval(() => {\n // If there are scheduled timers or we are inside of a run loop, keep polling\n if ((0, _runloop.hasScheduledTimers)() || (0, _runloop.getCurrentRunLoop)()) {\n return;\n } // Stop polling\n\n\n clearInterval(watcher); // Synchronously resolve the promise\n\n resolve(event);\n }, 5);\n });\n }\n});","enifed(\"internal-test-helpers/lib/strip\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = strip;\n\n function strip([...strings], ...values) {\n let str = strings.map((string, index) => {\n let interpolated = values[index];\n return string + (interpolated !== undefined ? interpolated : '');\n }).join('');\n return str.split('\\n').map(s => s.trim()).join('');\n }\n});","enifed(\"internal-test-helpers/lib/system/synthetic-events\", [\"exports\", \"@ember/runloop\", \"@ember/polyfills\"], function (_exports, _runloop, _polyfills) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.matches = matches;\n _exports.click = click;\n _exports.focus = focus;\n _exports.blur = blur;\n _exports.fireEvent = fireEvent;\n _exports.elMatches = void 0;\n\n /* globals Element */\n const DEFAULT_EVENT_OPTIONS = {\n canBubble: true,\n cancelable: true\n };\n const KEYBOARD_EVENT_TYPES = ['keydown', 'keypress', 'keyup'];\n const MOUSE_EVENT_TYPES = ['click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover'];\n const elMatches = typeof Element !== 'undefined' && (Element.prototype.matches || Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector);\n _exports.elMatches = elMatches;\n\n function matches(el, selector) {\n return elMatches.call(el, selector);\n }\n\n function isFocusable(el) {\n let focusableTags = ['INPUT', 'BUTTON', 'LINK', 'SELECT', 'A', 'TEXTAREA'];\n let {\n tagName,\n type\n } = el;\n\n if (type === 'hidden') {\n return false;\n }\n\n return focusableTags.indexOf(tagName) > -1 || el.contentEditable === 'true';\n }\n\n function click(el, options = {}) {\n (0, _runloop.run)(() => fireEvent(el, 'mousedown', options));\n focus(el);\n (0, _runloop.run)(() => fireEvent(el, 'mouseup', options));\n (0, _runloop.run)(() => fireEvent(el, 'click', options));\n }\n\n function focus(el) {\n if (!el) {\n return;\n }\n\n if (isFocusable(el)) {\n (0, _runloop.run)(null, function () {\n let browserIsNotFocused = document.hasFocus && !document.hasFocus(); // Firefox does not trigger the `focusin` event if the window\n // does not have focus. If the document doesn't have focus just\n // use trigger('focusin') instead.\n\n if (browserIsNotFocused) {\n fireEvent(el, 'focusin');\n } // makes `document.activeElement` be `el`. If the browser is focused, it also fires a focus event\n\n\n el.focus(); // if the browser is not focused the previous `el.focus()` didn't fire an event, so we simulate it\n\n if (browserIsNotFocused) {\n fireEvent(el, 'focus');\n }\n });\n }\n }\n\n function blur(el) {\n if (isFocusable(el)) {\n (0, _runloop.run)(null, function () {\n let browserIsNotFocused = document.hasFocus && !document.hasFocus();\n fireEvent(el, 'focusout'); // makes `document.activeElement` be `body`.\n // If the browser is focused, it also fires a blur event\n\n el.blur(); // Chrome/Firefox does not trigger the `blur` event if the window\n // does not have focus. If the document does not have focus then\n // fire `blur` event via native event.\n\n if (browserIsNotFocused) {\n fireEvent(el, 'blur');\n }\n });\n }\n }\n\n function fireEvent(element, type, options = {}) {\n if (!element) {\n return;\n }\n\n let event;\n\n if (KEYBOARD_EVENT_TYPES.indexOf(type) > -1) {\n event = buildKeyboardEvent(type, options);\n } else if (MOUSE_EVENT_TYPES.indexOf(type) > -1) {\n let rect = element.getBoundingClientRect();\n let x = rect.left + 1;\n let y = rect.top + 1;\n let simulatedCoordinates = {\n screenX: x + 5,\n screenY: y + 95,\n clientX: x,\n clientY: y\n };\n event = buildMouseEvent(type, (0, _polyfills.assign)(simulatedCoordinates, options));\n } else {\n event = buildBasicEvent(type, options);\n }\n\n element.dispatchEvent(event);\n return event;\n }\n\n function buildBasicEvent(type, options = {}) {\n let event = document.createEvent('Events');\n event.initEvent(type, true, true);\n (0, _polyfills.assign)(event, options);\n return event;\n }\n\n function buildMouseEvent(type, options = {}) {\n let event;\n\n try {\n event = document.createEvent('MouseEvents');\n let eventOpts = (0, _polyfills.assign)({}, DEFAULT_EVENT_OPTIONS, options);\n event.initMouseEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.detail, eventOpts.screenX, eventOpts.screenY, eventOpts.clientX, eventOpts.clientY, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.button, eventOpts.relatedTarget);\n } catch (e) {\n event = buildBasicEvent(type, options);\n }\n\n return event;\n }\n\n function buildKeyboardEvent(type, options = {}) {\n let event;\n\n try {\n event = document.createEvent('KeyEvents');\n let eventOpts = (0, _polyfills.assign)({}, DEFAULT_EVENT_OPTIONS, options);\n event.initKeyEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.keyCode, eventOpts.charCode);\n } catch (e) {\n event = buildBasicEvent(type, options);\n }\n\n return event;\n }\n});","enifed(\"internal-test-helpers/lib/test-cases/abstract-application\", [\"exports\", \"ember-template-compiler\", \"@ember/-internals/environment\", \"internal-test-helpers/lib/test-cases/abstract\", \"internal-test-helpers/lib/run\"], function (_exports, _emberTemplateCompiler, _environment, _abstract, _run) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class AbstractApplicationTestCase extends _abstract.default {\n _ensureInstance(bootOptions) {\n if (this._applicationInstancePromise) {\n return this._applicationInstancePromise;\n }\n\n return this._applicationInstancePromise = (0, _run.runTask)(() => this.application.boot()).then(app => {\n this.applicationInstance = app.buildInstance();\n return this.applicationInstance.boot(bootOptions);\n });\n }\n\n visit(url, options) {\n // TODO: THIS IS HORRIBLE\n // the promise returned by `ApplicationInstance.protoype.visit` does **not**\n // currently guarantee rendering is completed\n return (0, _run.runTask)(() => {\n return this._ensureInstance(options).then(instance => instance.visit(url));\n });\n }\n\n get element() {\n if (this._element) {\n return this._element;\n } else if (_environment.ENV._APPLICATION_TEMPLATE_WRAPPER) {\n return this._element = document.querySelector('#qunit-fixture > div.ember-view');\n } else {\n return this._element = document.querySelector('#qunit-fixture');\n }\n }\n\n set element(element) {\n this._element = element;\n }\n\n afterEach() {\n (0, _run.runDestroy)(this.applicationInstance);\n (0, _run.runDestroy)(this.application);\n super.teardown();\n }\n\n get applicationOptions() {\n return {\n rootElement: '#qunit-fixture'\n };\n }\n\n get routerOptions() {\n return {\n location: 'none'\n };\n }\n\n get router() {\n return this.application.resolveRegistration('router:main');\n }\n\n compile()\n /* string, options */\n {\n return (0, _emberTemplateCompiler.compile)(...arguments);\n }\n\n }\n\n _exports.default = AbstractApplicationTestCase;\n});","enifed(\"internal-test-helpers/lib/test-cases/abstract-rendering\", [\"exports\", \"@ember/polyfills\", \"ember-template-compiler\", \"@ember/-internals/views\", \"@ember/-internals/glimmer\", \"internal-test-helpers/lib/test-resolver\", \"internal-test-helpers/lib/test-cases/abstract\", \"internal-test-helpers/lib/build-owner\", \"internal-test-helpers/lib/run\"], function (_exports, _polyfills, _emberTemplateCompiler, _views, _glimmer, _testResolver, _abstract, _buildOwner, _run) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n const TextNode = window.Text;\n\n class AbstractRenderingTestCase extends _abstract.default {\n constructor() {\n super(...arguments);\n let bootOptions = this.getBootOptions();\n let owner = this.owner = (0, _buildOwner.default)({\n ownerOptions: this.getOwnerOptions(),\n resolver: this.getResolver(),\n bootOptions\n });\n owner.register('-view-registry:main', Object.create(null), {\n instantiate: false\n });\n owner.register('event_dispatcher:main', _views.EventDispatcher); // TODO: why didn't buildOwner do this for us?\n\n owner.inject('view', '_viewRegistry', '-view-registry:main');\n owner.inject('renderer', '_viewRegistry', '-view-registry:main');\n this.renderer = this.owner.lookup('renderer:-dom');\n this.element = document.querySelector('#qunit-fixture');\n this.component = null;\n\n if (!bootOptions || bootOptions.isInteractive !== false) {\n owner.lookup('event_dispatcher:main').setup(this.getCustomDispatcherEvents(), this.element);\n }\n }\n\n compile() {\n return (0, _emberTemplateCompiler.compile)(...arguments);\n }\n\n getCustomDispatcherEvents() {\n return {};\n }\n\n getOwnerOptions() {}\n\n getBootOptions() {}\n\n get resolver() {\n return this.owner.__registry__.fallback.resolver;\n }\n\n getResolver() {\n return new _testResolver.ModuleBasedResolver();\n }\n\n add(specifier, factory) {\n this.resolver.add(specifier, factory);\n }\n\n addTemplate(templateName, templateString) {\n if (typeof templateName === 'string') {\n this.resolver.add(\"template:\" + templateName, this.compile(templateString, {\n moduleName: templateName\n }));\n } else {\n this.resolver.add(templateName, this.compile(templateString, {\n moduleName: templateName.moduleName\n }));\n }\n }\n\n addComponent(name, {\n ComponentClass = null,\n template = null\n }) {\n if (ComponentClass) {\n this.resolver.add(\"component:\" + name, ComponentClass);\n }\n\n if (typeof template === 'string') {\n this.resolver.add(\"template:components/\" + name, this.compile(template, {\n moduleName: \"components/\" + name\n }));\n }\n }\n\n afterEach() {\n try {\n if (this.component) {\n (0, _run.runDestroy)(this.component);\n }\n\n if (this.owner) {\n (0, _run.runDestroy)(this.owner);\n }\n } finally {\n (0, _glimmer._resetRenderers)();\n }\n }\n\n get context() {\n return this.component;\n }\n\n render(templateStr, context = {}) {\n let {\n owner\n } = this;\n owner.register('template:-top-level', this.compile(templateStr, {\n moduleName: '-top-level'\n }));\n let attrs = (0, _polyfills.assign)({}, context, {\n tagName: '',\n layoutName: '-top-level'\n });\n owner.register('component:-top-level', _glimmer.Component.extend(attrs));\n this.component = owner.lookup('component:-top-level');\n (0, _run.runAppend)(this.component);\n }\n\n rerender() {\n this.component.rerender();\n }\n\n registerHelper(name, funcOrClassBody) {\n let type = typeof funcOrClassBody;\n\n if (type === 'function') {\n this.owner.register(\"helper:\" + name, (0, _glimmer.helper)(funcOrClassBody));\n } else if (type === 'object' && type !== null) {\n this.owner.register(\"helper:\" + name, _glimmer.Helper.extend(funcOrClassBody));\n } else {\n throw new Error(\"Cannot register \" + funcOrClassBody + \" as a helper\");\n }\n }\n\n registerPartial(name, template) {\n let owner = this.env.owner || this.owner;\n\n if (typeof template === 'string') {\n owner.register(\"template:\" + name, this.compile(template, {\n moduleName: \"my-app/templates/-\" + name + \".hbs\"\n }));\n }\n }\n\n registerComponent(name, {\n ComponentClass = _glimmer.Component,\n template = null\n }) {\n let {\n owner\n } = this;\n\n if (ComponentClass) {\n owner.register(\"component:\" + name, ComponentClass);\n }\n\n if (typeof template === 'string') {\n owner.register(\"template:components/\" + name, this.compile(template, {\n moduleName: \"my-app/templates/components/\" + name + \".hbs\"\n }));\n }\n }\n\n registerModifier(name, ModifierClass) {\n let {\n owner\n } = this;\n owner.register(\"modifier:\" + name, ModifierClass);\n }\n\n registerComponentManager(name, manager) {\n let owner = this.env.owner || this.owner;\n owner.register(\"component-manager:\" + name, manager);\n }\n\n registerTemplate(name, template) {\n let {\n owner\n } = this;\n\n if (typeof template === 'string') {\n owner.register(\"template:\" + name, this.compile(template, {\n moduleName: \"my-app/templates/\" + name + \".hbs\"\n }));\n } else {\n throw new Error(\"Registered template \\\"\" + name + \"\\\" must be a string\");\n }\n }\n\n registerService(name, klass) {\n this.owner.register(\"service:\" + name, klass);\n }\n\n assertTextNode(node, text) {\n if (!(node instanceof TextNode)) {\n throw new Error(\"Expecting a text node, but got \" + node);\n }\n\n this.assert.strictEqual(node.textContent, text, 'node.textContent');\n }\n\n }\n\n _exports.default = AbstractRenderingTestCase;\n});","enifed(\"internal-test-helpers/lib/test-cases/abstract\", [\"exports\", \"@ember/polyfills\", \"internal-test-helpers/lib/node-query\", \"internal-test-helpers/lib/equal-inner-html\", \"internal-test-helpers/lib/equal-tokens\", \"internal-test-helpers/lib/element-helpers\", \"internal-test-helpers/lib/matchers\", \"internal-test-helpers/lib/run\"], function (_exports, _polyfills, _nodeQuery, _equalInnerHtml, _equalTokens, _elementHelpers, _matchers, _run) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n /* global Element */\n const TextNode = window.Text;\n const HTMLElement = window.HTMLElement;\n const Comment = window.Comment;\n\n function isMarker(node) {\n if (node instanceof Comment && node.textContent === '') {\n return true;\n }\n\n if (node instanceof TextNode && node.textContent === '') {\n return true;\n }\n\n return false;\n }\n\n class AbstractTestCase {\n constructor(assert) {\n this.element = null;\n this.snapshot = null;\n this.assert = assert;\n let {\n fixture\n } = this;\n\n if (fixture) {\n this.setupFixture(fixture);\n }\n }\n\n teardown() {}\n\n afterEach() {}\n\n setupFixture(innerHTML) {\n let fixture = document.getElementById('qunit-fixture');\n fixture.innerHTML = innerHTML;\n } // The following methods require `this.element` to work\n\n\n get firstChild() {\n return this.nthChild(0);\n }\n\n nthChild(n) {\n let i = 0;\n let node = (0, _elementHelpers.getElement)().firstChild;\n\n while (node) {\n if (!isMarker(node)) {\n i++;\n }\n\n if (i > n) {\n break;\n } else {\n node = node.nextSibling;\n }\n }\n\n return node;\n }\n\n get nodesCount() {\n let count = 0;\n let node = (0, _elementHelpers.getElement)().firstChild;\n\n while (node) {\n if (!isMarker(node)) {\n count++;\n }\n\n node = node.nextSibling;\n }\n\n return count;\n }\n\n $(sel) {\n if (sel instanceof Element) {\n return _nodeQuery.default.element(sel);\n } else if (typeof sel === 'string') {\n return _nodeQuery.default.query(sel, (0, _elementHelpers.getElement)());\n } else if (sel !== undefined) {\n throw new Error(\"Invalid this.$(\" + sel + \")\");\n } else {\n return _nodeQuery.default.element((0, _elementHelpers.getElement)());\n }\n }\n\n wrap(element) {\n return _nodeQuery.default.element(element);\n }\n\n click(selector) {\n let element;\n\n if (typeof selector === 'string') {\n element = (0, _elementHelpers.getElement)().querySelector(selector);\n } else {\n element = selector;\n }\n\n let event = element.click();\n return (0, _run.runLoopSettled)(event);\n }\n\n textValue() {\n return (0, _elementHelpers.getElement)().textContent;\n }\n\n takeSnapshot() {\n let snapshot = this.snapshot = [];\n let node = (0, _elementHelpers.getElement)().firstChild;\n\n while (node) {\n if (!isMarker(node)) {\n snapshot.push(node);\n }\n\n node = node.nextSibling;\n }\n\n return snapshot;\n }\n\n assertText(text) {\n this.assert.strictEqual(this.textValue(), text, \"#qunit-fixture content should be: `\" + text + \"`\");\n }\n\n assertInnerHTML(html) {\n (0, _equalInnerHtml.default)(this.assert, (0, _elementHelpers.getElement)(), html);\n }\n\n assertHTML(html) {\n (0, _equalTokens.default)((0, _elementHelpers.getElement)(), html, \"#qunit-fixture content should be: `\" + html + \"`\");\n }\n\n assertElement(node, {\n ElementType = HTMLElement,\n tagName,\n attrs = null,\n content = null\n }) {\n if (!(node instanceof ElementType)) {\n throw new Error(\"Expecting a \" + ElementType.name + \", but got \" + node);\n }\n\n (0, _matchers.equalsElement)(this.assert, node, tagName, attrs, content);\n }\n\n assertComponentElement(node, {\n ElementType = HTMLElement,\n tagName = 'div',\n attrs = null,\n content = null\n }) {\n attrs = (0, _polyfills.assign)({}, {\n id: (0, _matchers.regex)(/^ember\\d*$/),\n class: (0, _matchers.classes)('ember-view')\n }, attrs || {});\n this.assertElement(node, {\n ElementType,\n tagName,\n attrs,\n content\n });\n }\n\n assertSameNode(actual, expected) {\n this.assert.strictEqual(actual, expected, 'DOM node stability');\n }\n\n assertInvariants(oldSnapshot, newSnapshot) {\n oldSnapshot = oldSnapshot || this.snapshot;\n newSnapshot = newSnapshot || this.takeSnapshot();\n this.assert.strictEqual(newSnapshot.length, oldSnapshot.length, 'Same number of nodes');\n\n for (let i = 0; i < oldSnapshot.length; i++) {\n this.assertSameNode(newSnapshot[i], oldSnapshot[i]);\n }\n }\n\n assertPartialInvariants(start, end) {\n this.assertInvariants(this.snapshot, this.takeSnapshot().slice(start, end));\n }\n\n assertStableRerender() {\n this.takeSnapshot();\n (0, _run.runTask)(() => this.rerender());\n this.assertInvariants();\n }\n\n }\n\n _exports.default = AbstractTestCase;\n});","enifed(\"internal-test-helpers/lib/test-cases/application\", [\"exports\", \"internal-test-helpers/lib/test-cases/test-resolver-application\", \"@ember/application\", \"@ember/-internals/routing\", \"@ember/polyfills\", \"internal-test-helpers/lib/run\"], function (_exports, _testResolverApplication, _application, _routing, _polyfills, _run) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class ApplicationTestCase extends _testResolverApplication.default {\n constructor() {\n super(...arguments);\n let {\n applicationOptions\n } = this;\n this.application = (0, _run.runTask)(this.createApplication.bind(this, applicationOptions));\n this.resolver = this.application.__registry__.resolver;\n\n if (this.resolver) {\n this.resolver.add('router:main', _routing.Router.extend(this.routerOptions));\n }\n }\n\n createApplication(myOptions = {}, MyApplication = _application.default) {\n return MyApplication.create(myOptions);\n }\n\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n autoboot: false\n });\n }\n\n get appRouter() {\n return this.applicationInstance.lookup('router:main');\n }\n\n transitionTo() {\n return (0, _run.runTask)(() => {\n return this.appRouter.transitionTo(...arguments);\n });\n }\n\n }\n\n _exports.default = ApplicationTestCase;\n});","enifed(\"internal-test-helpers/lib/test-cases/autoboot-application\", [\"exports\", \"internal-test-helpers/lib/test-cases/test-resolver-application\", \"@ember/application\", \"@ember/polyfills\", \"@ember/-internals/routing\"], function (_exports, _testResolverApplication, _application, _polyfills, _routing) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class AutobootApplicationTestCase extends _testResolverApplication.default {\n createApplication(options, MyApplication = _application.default) {\n let myOptions = (0, _polyfills.assign)(this.applicationOptions, options);\n let application = this.application = MyApplication.create(myOptions);\n this.resolver = application.__registry__.resolver;\n\n if (this.resolver) {\n this.resolver.add('router:main', _routing.Router.extend(this.routerOptions));\n }\n\n return application;\n }\n\n visit(url) {\n return this.application.boot().then(() => {\n return this.applicationInstance.visit(url);\n });\n }\n\n get applicationInstance() {\n let {\n application\n } = this;\n\n if (!application) {\n return undefined;\n }\n\n return application.__deprecatedInstance__;\n }\n\n }\n\n _exports.default = AutobootApplicationTestCase;\n});","enifed(\"internal-test-helpers/lib/test-cases/default-resolver-application\", [\"exports\", \"internal-test-helpers/lib/test-cases/abstract-application\", \"@ember/application/globals-resolver\", \"@ember/application\", \"@ember/-internals/glimmer\", \"@ember/polyfills\", \"@ember/-internals/routing\", \"internal-test-helpers/lib/run\"], function (_exports, _abstractApplication, _globalsResolver, _application, _glimmer, _polyfills, _routing, _run) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class DefaultResolverApplicationTestCase extends _abstractApplication.default {\n createApplication() {\n let application = this.application = _application.default.create(this.applicationOptions);\n\n application.Router = _routing.Router.extend(this.routerOptions);\n return application;\n }\n\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n name: 'TestApp',\n autoboot: false,\n Resolver: _globalsResolver.default\n });\n }\n\n afterEach() {\n (0, _glimmer.setTemplates)({});\n return super.afterEach();\n }\n\n get appRouter() {\n return this.applicationInstance.lookup('router:main');\n }\n\n transitionTo() {\n return (0, _run.runTask)(() => {\n return this.appRouter.transitionTo(...arguments);\n });\n }\n\n addTemplate(name, templateString) {\n let compiled = this.compile(templateString);\n (0, _glimmer.setTemplate)(name, compiled);\n return compiled;\n }\n\n }\n\n _exports.default = DefaultResolverApplicationTestCase;\n});","enifed(\"internal-test-helpers/lib/test-cases/query-param\", [\"exports\", \"@ember/controller\", \"@ember/-internals/routing\", \"@ember/runloop\", \"internal-test-helpers/lib/test-cases/application\"], function (_exports, _controller, _routing, _runloop, _application) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class QueryParamTestCase extends _application.default {\n constructor() {\n super(...arguments);\n let testCase = this;\n testCase.expectedPushURL = null;\n testCase.expectedReplaceURL = null;\n this.add('location:test', _routing.NoneLocation.extend({\n setURL(path) {\n if (testCase.expectedReplaceURL) {\n testCase.assert.ok(false, 'pushState occurred but a replaceState was expected');\n }\n\n if (testCase.expectedPushURL) {\n testCase.assert.equal(path, testCase.expectedPushURL, 'an expected pushState occurred');\n testCase.expectedPushURL = null;\n }\n\n this.set('path', path);\n },\n\n replaceURL(path) {\n if (testCase.expectedPushURL) {\n testCase.assert.ok(false, 'replaceState occurred but a pushState was expected');\n }\n\n if (testCase.expectedReplaceURL) {\n testCase.assert.equal(path, testCase.expectedReplaceURL, 'an expected replaceState occurred');\n testCase.expectedReplaceURL = null;\n }\n\n this.set('path', path);\n }\n\n }));\n }\n\n visitAndAssert(path) {\n return this.visit(...arguments).then(() => {\n this.assertCurrentPath(path);\n });\n }\n\n getController(name) {\n return this.applicationInstance.lookup(\"controller:\" + name);\n }\n\n getRoute(name) {\n return this.applicationInstance.lookup(\"route:\" + name);\n }\n\n get routerOptions() {\n return {\n location: 'test'\n };\n }\n\n setAndFlush(obj, prop, value) {\n return (0, _runloop.run)(obj, 'set', prop, value);\n }\n\n assertCurrentPath(path, message = \"current path equals '\" + path + \"'\") {\n this.assert.equal(this.appRouter.get('location.path'), path, message);\n }\n /**\n Sets up a Controller for a given route with a single query param and default\n value. Can optionally extend the controller with an object.\n @public\n @method setSingleQPController\n */\n\n\n setSingleQPController(routeName, param = 'foo', defaultValue = 'bar', options = {}) {\n this.add(\"controller:\" + routeName, _controller.default.extend({\n queryParams: [param],\n [param]: defaultValue\n }, options));\n }\n /**\n Sets up a Controller for a given route with a custom property/url key mapping.\n @public\n @method setMappedQPController\n */\n\n\n setMappedQPController(routeName, prop = 'page', urlKey = 'parentPage', defaultValue = 1, options = {}) {\n this.add(\"controller:\" + routeName, _controller.default.extend({\n queryParams: {\n [prop]: urlKey\n },\n [prop]: defaultValue\n }, options));\n }\n\n }\n\n _exports.default = QueryParamTestCase;\n});","enifed(\"internal-test-helpers/lib/test-cases/rendering\", [\"exports\", \"internal-test-helpers/lib/test-cases/abstract-rendering\", \"@ember/-internals/container\"], function (_exports, _abstractRendering, _container) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n function _templateObject() {\n const data = _taggedTemplateLiteralLoose([\"template-compiler:main\"]);\n\n _templateObject = function () {\n return data;\n };\n\n return data;\n }\n\n function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }\n\n class RenderingTestCase extends _abstractRendering.default {\n constructor() {\n super(...arguments);\n let {\n owner\n } = this;\n this.env = owner.lookup('service:-glimmer-environment');\n this.templateOptions = owner.lookup((0, _container.privatize)(_templateObject()));\n this.compileTimeLookup = this.templateOptions.resolver;\n this.runtimeResolver = this.compileTimeLookup.resolver;\n }\n\n }\n\n _exports.default = RenderingTestCase;\n});","enifed(\"internal-test-helpers/lib/test-cases/router\", [\"exports\", \"internal-test-helpers/lib/test-cases/application\"], function (_exports, _application) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class RouterTestCase extends _application.default {\n constructor() {\n super(...arguments);\n this.router.map(function () {\n this.route('parent', {\n path: '/'\n }, function () {\n this.route('child');\n this.route('sister');\n this.route('brother');\n });\n this.route('dynamic', {\n path: '/dynamic/:dynamic_id'\n });\n this.route('dynamicWithChild', {\n path: '/dynamic-with-child/:dynamic_id'\n }, function () {\n this.route('child', {\n path: '/:child_id'\n });\n });\n });\n }\n\n get routerService() {\n return this.applicationInstance.lookup('service:router');\n }\n\n buildQueryParams(queryParams) {\n return {\n queryParams\n };\n }\n\n }\n\n _exports.default = RouterTestCase;\n});","enifed(\"internal-test-helpers/lib/test-cases/test-resolver-application\", [\"exports\", \"internal-test-helpers/lib/test-cases/abstract-application\", \"internal-test-helpers/lib/test-resolver\", \"@ember/-internals/glimmer\", \"@ember/polyfills\"], function (_exports, _abstractApplication, _testResolver, _glimmer, _polyfills) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n\n class TestResolverApplicationTestCase extends _abstractApplication.default {\n get applicationOptions() {\n return (0, _polyfills.assign)(super.applicationOptions, {\n Resolver: _testResolver.ModuleBasedResolver\n });\n }\n\n add(specifier, factory) {\n this.resolver.add(specifier, factory);\n }\n\n addTemplate(templateName, templateString) {\n this.resolver.add(\"template:\" + templateName, this.compile(templateString, {\n moduleName: \"my-app/templates/\" + templateName + \".hbs\"\n }));\n }\n\n addComponent(name, {\n ComponentClass = _glimmer.Component,\n template = null\n }) {\n if (ComponentClass) {\n this.resolver.add(\"component:\" + name, ComponentClass);\n }\n\n if (typeof template === 'string') {\n this.resolver.add(\"template:components/\" + name, this.compile(template, {\n moduleName: \"my-app/templates/components/\" + name + \".hbs\"\n }));\n }\n }\n\n }\n\n _exports.default = TestResolverApplicationTestCase;\n});","enifed(\"internal-test-helpers/lib/test-context\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.setContext = setContext;\n _exports.getContext = getContext;\n _exports.unsetContext = unsetContext;\n\n let __test_context__;\n /**\n * Stores the provided context as the \"global testing context\".\n *\n * @param {Object} context the context to use\n */\n\n\n function setContext(context) {\n __test_context__ = context;\n }\n /**\n * Retrive the \"global testing context\" as stored by `setContext`.\n *\n * @returns {Object} the previously stored testing context\n */\n\n\n function getContext() {\n return __test_context__;\n }\n /**\n * Clear the \"global testing context\".\n */\n\n\n function unsetContext() {\n __test_context__ = undefined;\n }\n});","enifed(\"internal-test-helpers/lib/test-resolver\", [\"exports\", \"ember-template-compiler\"], function (_exports, _emberTemplateCompiler) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.ModuleBasedResolver = _exports.default = void 0;\n const DELIMITER = '%';\n\n function serializeKey(specifier, source, namespace) {\n let [type, name] = specifier.split(':');\n return type + \"://\" + [name, namespace ? '[source invalid due to namespace]' : source, namespace].join(DELIMITER);\n }\n\n class Resolver {\n constructor() {\n this._registered = {};\n }\n\n resolve(specifier) {\n return this._registered[specifier] || this._registered[serializeKey(specifier)];\n }\n\n expandLocalLookup(specifier, source, namespace) {\n if (specifier.indexOf('://') !== -1) {\n return specifier; // an already expanded specifier\n }\n\n if (source || namespace) {\n let key = serializeKey(specifier, source, namespace);\n\n if (this._registered[key]) {\n return key; // like local lookup\n }\n\n key = serializeKey(specifier);\n\n if (this._registered[key]) {\n return specifier; // top level resolution despite source/namespace\n }\n }\n\n return specifier; // didn't know how to expand it\n }\n\n add(lookup, factory) {\n let key;\n\n switch (typeof lookup) {\n case 'string':\n if (lookup.indexOf(':') === -1) {\n throw new Error('Specifiers added to the resolver must be in the format of type:name');\n }\n\n key = serializeKey(lookup);\n break;\n\n case 'object':\n key = serializeKey(lookup.specifier, lookup.source, lookup.namespace);\n break;\n\n default:\n throw new Error('Specifier string has an unknown type');\n }\n\n return this._registered[key] = factory;\n }\n\n addTemplate(templateName, template) {\n let templateType = typeof template;\n\n if (templateType !== 'string') {\n throw new Error(\"You called addTemplate for \\\"\" + templateName + \"\\\" with a template argument of type of '\" + templateType + \"'. addTemplate expects an argument of an uncompiled template as a string.\");\n }\n\n return this._registered[serializeKey(\"template:\" + templateName)] = (0, _emberTemplateCompiler.compile)(template, {\n moduleName: \"my-app/templates/\" + templateName + \".hbs\"\n });\n }\n\n static create() {\n return new this();\n }\n\n }\n\n var _default = Resolver;\n /*\n * A resolver with moduleBasedResolver = true handles error and loading\n * substates differently than a standard resolver.\n */\n\n _exports.default = _default;\n\n class ModuleBasedResolver extends Resolver {\n get moduleBasedResolver() {\n return true;\n }\n\n }\n\n _exports.ModuleBasedResolver = ModuleBasedResolver;\n});","enifed(\"internal-test-helpers/tests/index-test\", [\"internal-test-helpers\"], function (_internalTestHelpers) {\n \"use strict\";\n\n (0, _internalTestHelpers.moduleFor)('internal-test-helpers', class extends _internalTestHelpers.AbstractTestCase {\n ['@test module present'](assert) {\n assert.ok(true, 'each package needs at least one test to be able to run through `npm test`');\n }\n\n });\n});","/*global enifed, module */\nenifed('node-module', ['exports'], function(_exports) {\n var IS_NODE = typeof module === 'object' && typeof module.require === 'function';\n if (IS_NODE) {\n _exports.require = module.require;\n _exports.module = module;\n _exports.IS_NODE = IS_NODE;\n } else {\n _exports.require = null;\n _exports.module = null;\n _exports.IS_NODE = IS_NODE;\n }\n});\n","enifed(\"route-recognizer\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.default = void 0;\n var createObject = Object.create;\n\n function createMap() {\n var map = createObject(null);\n map[\"__\"] = undefined;\n delete map[\"__\"];\n return map;\n }\n\n var Target = function Target(path, matcher, delegate) {\n this.path = path;\n this.matcher = matcher;\n this.delegate = delegate;\n };\n\n Target.prototype.to = function to(target, callback) {\n var delegate = this.delegate;\n\n if (delegate && delegate.willAddRoute) {\n target = delegate.willAddRoute(this.matcher.target, target);\n }\n\n this.matcher.add(this.path, target);\n\n if (callback) {\n if (callback.length === 0) {\n throw new Error(\"You must have an argument in the function passed to `to`\");\n }\n\n this.matcher.addChild(this.path, target, callback, this.delegate);\n }\n };\n\n var Matcher = function Matcher(target) {\n this.routes = createMap();\n this.children = createMap();\n this.target = target;\n };\n\n Matcher.prototype.add = function add(path, target) {\n this.routes[path] = target;\n };\n\n Matcher.prototype.addChild = function addChild(path, target, callback, delegate) {\n var matcher = new Matcher(target);\n this.children[path] = matcher;\n var match = generateMatch(path, matcher, delegate);\n\n if (delegate && delegate.contextEntered) {\n delegate.contextEntered(target, match);\n }\n\n callback(match);\n };\n\n function generateMatch(startingPath, matcher, delegate) {\n function match(path, callback) {\n var fullPath = startingPath + path;\n\n if (callback) {\n callback(generateMatch(fullPath, matcher, delegate));\n } else {\n return new Target(fullPath, matcher, delegate);\n }\n }\n\n return match;\n }\n\n function addRoute(routeArray, path, handler) {\n var len = 0;\n\n for (var i = 0; i < routeArray.length; i++) {\n len += routeArray[i].path.length;\n }\n\n path = path.substr(len);\n var route = {\n path: path,\n handler: handler\n };\n routeArray.push(route);\n }\n\n function eachRoute(baseRoute, matcher, callback, binding) {\n var routes = matcher.routes;\n var paths = Object.keys(routes);\n\n for (var i = 0; i < paths.length; i++) {\n var path = paths[i];\n var routeArray = baseRoute.slice();\n addRoute(routeArray, path, routes[path]);\n var nested = matcher.children[path];\n\n if (nested) {\n eachRoute(routeArray, nested, callback, binding);\n } else {\n callback.call(binding, routeArray);\n }\n }\n }\n\n var map = function (callback, addRouteCallback) {\n var matcher = new Matcher();\n callback(generateMatch(\"\", matcher, this.delegate));\n eachRoute([], matcher, function (routes) {\n if (addRouteCallback) {\n addRouteCallback(this, routes);\n } else {\n this.add(routes);\n }\n }, this);\n }; // Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\n // values that are not reserved (i.e., unicode characters, emoji, etc). The reserved\n // chars are \"/\" and \"%\".\n // Safe to call multiple times on the same path.\n // Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\n\n\n function normalizePath(path) {\n return path.split(\"/\").map(normalizeSegment).join(\"/\");\n } // We want to ensure the characters \"%\" and \"/\" remain in percent-encoded\n // form when normalizing paths, so replace them with their encoded form after\n // decoding the rest of the path\n\n\n var SEGMENT_RESERVED_CHARS = /%|\\//g;\n\n function normalizeSegment(segment) {\n if (segment.length < 3 || segment.indexOf(\"%\") === -1) {\n return segment;\n }\n\n return decodeURIComponent(segment).replace(SEGMENT_RESERVED_CHARS, encodeURIComponent);\n } // We do not want to encode these characters when generating dynamic path segments\n // See https://tools.ietf.org/html/rfc3986#section-3.3\n // sub-delims: \"!\", \"$\", \"&\", \"'\", \"(\", \")\", \"*\", \"+\", \",\", \";\", \"=\"\n // others allowed by RFC 3986: \":\", \"@\"\n //\n // First encode the entire path segment, then decode any of the encoded special chars.\n //\n // The chars \"!\", \"'\", \"(\", \")\", \"*\" do not get changed by `encodeURIComponent`,\n // so the possible encoded chars are:\n // ['%24', '%26', '%2B', '%2C', '%3B', '%3D', '%3A', '%40'].\n\n\n var PATH_SEGMENT_ENCODINGS = /%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g;\n\n function encodePathSegment(str) {\n return encodeURIComponent(str).replace(PATH_SEGMENT_ENCODINGS, decodeURIComponent);\n }\n\n var escapeRegex = /(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)/g;\n var isArray = Array.isArray;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n\n function getParam(params, key) {\n if (typeof params !== \"object\" || params === null) {\n throw new Error(\"You must pass an object as the second argument to `generate`.\");\n }\n\n if (!hasOwnProperty.call(params, key)) {\n throw new Error(\"You must provide param `\" + key + \"` to `generate`.\");\n }\n\n var value = params[key];\n var str = typeof value === \"string\" ? value : \"\" + value;\n\n if (str.length === 0) {\n throw new Error(\"You must provide a param `\" + key + \"`.\");\n }\n\n return str;\n }\n\n var eachChar = [];\n\n eachChar[0\n /* Static */\n ] = function (segment, currentState) {\n var state = currentState;\n var value = segment.value;\n\n for (var i = 0; i < value.length; i++) {\n var ch = value.charCodeAt(i);\n state = state.put(ch, false, false);\n }\n\n return state;\n };\n\n eachChar[1\n /* Dynamic */\n ] = function (_, currentState) {\n return currentState.put(47\n /* SLASH */\n , true, true);\n };\n\n eachChar[2\n /* Star */\n ] = function (_, currentState) {\n return currentState.put(-1\n /* ANY */\n , false, true);\n };\n\n eachChar[4\n /* Epsilon */\n ] = function (_, currentState) {\n return currentState;\n };\n\n var regex = [];\n\n regex[0\n /* Static */\n ] = function (segment) {\n return segment.value.replace(escapeRegex, \"\\\\$1\");\n };\n\n regex[1\n /* Dynamic */\n ] = function () {\n return \"([^/]+)\";\n };\n\n regex[2\n /* Star */\n ] = function () {\n return \"(.+)\";\n };\n\n regex[4\n /* Epsilon */\n ] = function () {\n return \"\";\n };\n\n var generate = [];\n\n generate[0\n /* Static */\n ] = function (segment) {\n return segment.value;\n };\n\n generate[1\n /* Dynamic */\n ] = function (segment, params) {\n var value = getParam(params, segment.value);\n\n if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n return encodePathSegment(value);\n } else {\n return value;\n }\n };\n\n generate[2\n /* Star */\n ] = function (segment, params) {\n return getParam(params, segment.value);\n };\n\n generate[4\n /* Epsilon */\n ] = function () {\n return \"\";\n };\n\n var EmptyObject = Object.freeze({});\n var EmptyArray = Object.freeze([]); // The `names` will be populated with the paramter name for each dynamic/star\n // segment. `shouldDecodes` will be populated with a boolean for each dyanamic/star\n // segment, indicating whether it should be decoded during recognition.\n\n function parse(segments, route, types) {\n // normalize route as not starting with a \"/\". Recognition will\n // also normalize.\n if (route.length > 0 && route.charCodeAt(0) === 47\n /* SLASH */\n ) {\n route = route.substr(1);\n }\n\n var parts = route.split(\"/\");\n var names = undefined;\n var shouldDecodes = undefined;\n\n for (var i = 0; i < parts.length; i++) {\n var part = parts[i];\n var flags = 0;\n var type = 0;\n\n if (part === \"\") {\n type = 4\n /* Epsilon */\n ;\n } else if (part.charCodeAt(0) === 58\n /* COLON */\n ) {\n type = 1\n /* Dynamic */\n ;\n } else if (part.charCodeAt(0) === 42\n /* STAR */\n ) {\n type = 2\n /* Star */\n ;\n } else {\n type = 0\n /* Static */\n ;\n }\n\n flags = 2 << type;\n\n if (flags & 12\n /* Named */\n ) {\n part = part.slice(1);\n names = names || [];\n names.push(part);\n shouldDecodes = shouldDecodes || [];\n shouldDecodes.push((flags & 4\n /* Decoded */\n ) !== 0);\n }\n\n if (flags & 14\n /* Counted */\n ) {\n types[type]++;\n }\n\n segments.push({\n type: type,\n value: normalizeSegment(part)\n });\n }\n\n return {\n names: names || EmptyArray,\n shouldDecodes: shouldDecodes || EmptyArray\n };\n }\n\n function isEqualCharSpec(spec, char, negate) {\n return spec.char === char && spec.negate === negate;\n } // A State has a character specification and (`charSpec`) and a list of possible\n // subsequent states (`nextStates`).\n //\n // If a State is an accepting state, it will also have several additional\n // properties:\n //\n // * `regex`: A regular expression that is used to extract parameters from paths\n // that reached this accepting state.\n // * `handlers`: Information on how to convert the list of captures into calls\n // to registered handlers with the specified parameters\n // * `types`: How many static, dynamic or star segments in this route. Used to\n // decide which route to use if multiple registered routes match a path.\n //\n // Currently, State is implemented naively by looping over `nextStates` and\n // comparing a character specification against a character. A more efficient\n // implementation would use a hash of keys pointing at one or more next states.\n\n\n var State = function State(states, id, char, negate, repeat) {\n this.states = states;\n this.id = id;\n this.char = char;\n this.negate = negate;\n this.nextStates = repeat ? id : null;\n this.pattern = \"\";\n this._regex = undefined;\n this.handlers = undefined;\n this.types = undefined;\n };\n\n State.prototype.regex = function regex$1() {\n if (!this._regex) {\n this._regex = new RegExp(this.pattern);\n }\n\n return this._regex;\n };\n\n State.prototype.get = function get(char, negate) {\n var this$1 = this;\n var nextStates = this.nextStates;\n\n if (nextStates === null) {\n return;\n }\n\n if (isArray(nextStates)) {\n for (var i = 0; i < nextStates.length; i++) {\n var child = this$1.states[nextStates[i]];\n\n if (isEqualCharSpec(child, char, negate)) {\n return child;\n }\n }\n } else {\n var child$1 = this.states[nextStates];\n\n if (isEqualCharSpec(child$1, char, negate)) {\n return child$1;\n }\n }\n };\n\n State.prototype.put = function put(char, negate, repeat) {\n var state; // If the character specification already exists in a child of the current\n // state, just return that state.\n\n if (state = this.get(char, negate)) {\n return state;\n } // Make a new state for the character spec\n\n\n var states = this.states;\n state = new State(states, states.length, char, negate, repeat);\n states[states.length] = state; // Insert the new state as a child of the current state\n\n if (this.nextStates == null) {\n this.nextStates = state.id;\n } else if (isArray(this.nextStates)) {\n this.nextStates.push(state.id);\n } else {\n this.nextStates = [this.nextStates, state.id];\n } // Return the new state\n\n\n return state;\n }; // Find a list of child states matching the next character\n\n\n State.prototype.match = function match(ch) {\n var this$1 = this;\n var nextStates = this.nextStates;\n\n if (!nextStates) {\n return [];\n }\n\n var returned = [];\n\n if (isArray(nextStates)) {\n for (var i = 0; i < nextStates.length; i++) {\n var child = this$1.states[nextStates[i]];\n\n if (isMatch(child, ch)) {\n returned.push(child);\n }\n }\n } else {\n var child$1 = this.states[nextStates];\n\n if (isMatch(child$1, ch)) {\n returned.push(child$1);\n }\n }\n\n return returned;\n };\n\n function isMatch(spec, char) {\n return spec.negate ? spec.char !== char && spec.char !== -1\n /* ANY */\n : spec.char === char || spec.char === -1\n /* ANY */\n ;\n } // This is a somewhat naive strategy, but should work in a lot of cases\n // A better strategy would properly resolve /posts/:id/new and /posts/edit/:id.\n //\n // This strategy generally prefers more static and less dynamic matching.\n // Specifically, it\n //\n // * prefers fewer stars to more, then\n // * prefers using stars for less of the match to more, then\n // * prefers fewer dynamic segments to more, then\n // * prefers more static segments to more\n\n\n function sortSolutions(states) {\n return states.sort(function (a, b) {\n var ref = a.types || [0, 0, 0];\n var astatics = ref[0];\n var adynamics = ref[1];\n var astars = ref[2];\n var ref$1 = b.types || [0, 0, 0];\n var bstatics = ref$1[0];\n var bdynamics = ref$1[1];\n var bstars = ref$1[2];\n\n if (astars !== bstars) {\n return astars - bstars;\n }\n\n if (astars) {\n if (astatics !== bstatics) {\n return bstatics - astatics;\n }\n\n if (adynamics !== bdynamics) {\n return bdynamics - adynamics;\n }\n }\n\n if (adynamics !== bdynamics) {\n return adynamics - bdynamics;\n }\n\n if (astatics !== bstatics) {\n return bstatics - astatics;\n }\n\n return 0;\n });\n }\n\n function recognizeChar(states, ch) {\n var nextStates = [];\n\n for (var i = 0, l = states.length; i < l; i++) {\n var state = states[i];\n nextStates = nextStates.concat(state.match(ch));\n }\n\n return nextStates;\n }\n\n var RecognizeResults = function RecognizeResults(queryParams) {\n this.length = 0;\n this.queryParams = queryParams || {};\n };\n\n RecognizeResults.prototype.splice = Array.prototype.splice;\n RecognizeResults.prototype.slice = Array.prototype.slice;\n RecognizeResults.prototype.push = Array.prototype.push;\n\n function findHandler(state, originalPath, queryParams) {\n var handlers = state.handlers;\n var regex = state.regex();\n\n if (!regex || !handlers) {\n throw new Error(\"state not initialized\");\n }\n\n var captures = originalPath.match(regex);\n var currentCapture = 1;\n var result = new RecognizeResults(queryParams);\n result.length = handlers.length;\n\n for (var i = 0; i < handlers.length; i++) {\n var handler = handlers[i];\n var names = handler.names;\n var shouldDecodes = handler.shouldDecodes;\n var params = EmptyObject;\n var isDynamic = false;\n\n if (names !== EmptyArray && shouldDecodes !== EmptyArray) {\n for (var j = 0; j < names.length; j++) {\n isDynamic = true;\n var name = names[j];\n var capture = captures && captures[currentCapture++];\n\n if (params === EmptyObject) {\n params = {};\n }\n\n if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS && shouldDecodes[j]) {\n params[name] = capture && decodeURIComponent(capture);\n } else {\n params[name] = capture;\n }\n }\n }\n\n result[i] = {\n handler: handler.handler,\n params: params,\n isDynamic: isDynamic\n };\n }\n\n return result;\n }\n\n function decodeQueryParamPart(part) {\n // http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1\n part = part.replace(/\\+/gm, \"%20\");\n var result;\n\n try {\n result = decodeURIComponent(part);\n } catch (error) {\n result = \"\";\n }\n\n return result;\n }\n\n var RouteRecognizer = function RouteRecognizer() {\n this.names = createMap();\n var states = [];\n var state = new State(states, 0, -1\n /* ANY */\n , true, false);\n states[0] = state;\n this.states = states;\n this.rootState = state;\n };\n\n RouteRecognizer.prototype.add = function add(routes, options) {\n var currentState = this.rootState;\n var pattern = \"^\";\n var types = [0, 0, 0];\n var handlers = new Array(routes.length);\n var allSegments = [];\n var isEmpty = true;\n var j = 0;\n\n for (var i = 0; i < routes.length; i++) {\n var route = routes[i];\n var ref = parse(allSegments, route.path, types);\n var names = ref.names;\n var shouldDecodes = ref.shouldDecodes; // preserve j so it points to the start of newly added segments\n\n for (; j < allSegments.length; j++) {\n var segment = allSegments[j];\n\n if (segment.type === 4\n /* Epsilon */\n ) {\n continue;\n }\n\n isEmpty = false; // Add a \"/\" for the new segment\n\n currentState = currentState.put(47\n /* SLASH */\n , false, false);\n pattern += \"/\"; // Add a representation of the segment to the NFA and regex\n\n currentState = eachChar[segment.type](segment, currentState);\n pattern += regex[segment.type](segment);\n }\n\n handlers[i] = {\n handler: route.handler,\n names: names,\n shouldDecodes: shouldDecodes\n };\n }\n\n if (isEmpty) {\n currentState = currentState.put(47\n /* SLASH */\n , false, false);\n pattern += \"/\";\n }\n\n currentState.handlers = handlers;\n currentState.pattern = pattern + \"$\";\n currentState.types = types;\n var name;\n\n if (typeof options === \"object\" && options !== null && options.as) {\n name = options.as;\n }\n\n if (name) {\n // if (this.names[name]) {\n // throw new Error(\"You may not add a duplicate route named `\" + name + \"`.\");\n // }\n this.names[name] = {\n segments: allSegments,\n handlers: handlers\n };\n }\n };\n\n RouteRecognizer.prototype.handlersFor = function handlersFor(name) {\n var route = this.names[name];\n\n if (!route) {\n throw new Error(\"There is no route named \" + name);\n }\n\n var result = new Array(route.handlers.length);\n\n for (var i = 0; i < route.handlers.length; i++) {\n var handler = route.handlers[i];\n result[i] = handler;\n }\n\n return result;\n };\n\n RouteRecognizer.prototype.hasRoute = function hasRoute(name) {\n return !!this.names[name];\n };\n\n RouteRecognizer.prototype.generate = function generate$1(name, params) {\n var route = this.names[name];\n var output = \"\";\n\n if (!route) {\n throw new Error(\"There is no route named \" + name);\n }\n\n var segments = route.segments;\n\n for (var i = 0; i < segments.length; i++) {\n var segment = segments[i];\n\n if (segment.type === 4\n /* Epsilon */\n ) {\n continue;\n }\n\n output += \"/\";\n output += generate[segment.type](segment, params);\n }\n\n if (output.charAt(0) !== \"/\") {\n output = \"/\" + output;\n }\n\n if (params && params.queryParams) {\n output += this.generateQueryString(params.queryParams);\n }\n\n return output;\n };\n\n RouteRecognizer.prototype.generateQueryString = function generateQueryString(params) {\n var pairs = [];\n var keys = Object.keys(params);\n keys.sort();\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = params[key];\n\n if (value == null) {\n continue;\n }\n\n var pair = encodeURIComponent(key);\n\n if (isArray(value)) {\n for (var j = 0; j < value.length; j++) {\n var arrayPair = key + \"[]\" + \"=\" + encodeURIComponent(value[j]);\n pairs.push(arrayPair);\n }\n } else {\n pair += \"=\" + encodeURIComponent(value);\n pairs.push(pair);\n }\n }\n\n if (pairs.length === 0) {\n return \"\";\n }\n\n return \"?\" + pairs.join(\"&\");\n };\n\n RouteRecognizer.prototype.parseQueryString = function parseQueryString(queryString) {\n var pairs = queryString.split(\"&\");\n var queryParams = {};\n\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i].split(\"=\"),\n key = decodeQueryParamPart(pair[0]),\n keyLength = key.length,\n isArray = false,\n value = void 0;\n\n if (pair.length === 1) {\n value = \"true\";\n } else {\n // Handle arrays\n if (keyLength > 2 && key.slice(keyLength - 2) === \"[]\") {\n isArray = true;\n key = key.slice(0, keyLength - 2);\n\n if (!queryParams[key]) {\n queryParams[key] = [];\n }\n }\n\n value = pair[1] ? decodeQueryParamPart(pair[1]) : \"\";\n }\n\n if (isArray) {\n queryParams[key].push(value);\n } else {\n queryParams[key] = value;\n }\n }\n\n return queryParams;\n };\n\n RouteRecognizer.prototype.recognize = function recognize(path) {\n var results;\n var states = [this.rootState];\n var queryParams = {};\n var isSlashDropped = false;\n var hashStart = path.indexOf(\"#\");\n\n if (hashStart !== -1) {\n path = path.substr(0, hashStart);\n }\n\n var queryStart = path.indexOf(\"?\");\n\n if (queryStart !== -1) {\n var queryString = path.substr(queryStart + 1, path.length);\n path = path.substr(0, queryStart);\n queryParams = this.parseQueryString(queryString);\n }\n\n if (path.charAt(0) !== \"/\") {\n path = \"/\" + path;\n }\n\n var originalPath = path;\n\n if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n path = normalizePath(path);\n } else {\n path = decodeURI(path);\n originalPath = decodeURI(originalPath);\n }\n\n var pathLen = path.length;\n\n if (pathLen > 1 && path.charAt(pathLen - 1) === \"/\") {\n path = path.substr(0, pathLen - 1);\n originalPath = originalPath.substr(0, originalPath.length - 1);\n isSlashDropped = true;\n }\n\n for (var i = 0; i < path.length; i++) {\n states = recognizeChar(states, path.charCodeAt(i));\n\n if (!states.length) {\n break;\n }\n }\n\n var solutions = [];\n\n for (var i$1 = 0; i$1 < states.length; i$1++) {\n if (states[i$1].handlers) {\n solutions.push(states[i$1]);\n }\n }\n\n states = sortSolutions(solutions);\n var state = solutions[0];\n\n if (state && state.handlers) {\n // if a trailing slash was dropped and a star segment is the last segment\n // specified, put the trailing slash back\n if (isSlashDropped && state.pattern && state.pattern.slice(-5) === \"(.+)$\") {\n originalPath = originalPath + \"/\";\n }\n\n results = findHandler(state, originalPath, queryParams);\n }\n\n return results;\n };\n\n RouteRecognizer.VERSION = \"0.3.4\"; // Set to false to opt-out of encoding and decoding path segments.\n // See https://github.com/tildeio/route-recognizer/pull/55\n\n RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS = true;\n RouteRecognizer.Normalizer = {\n normalizeSegment: normalizeSegment,\n normalizePath: normalizePath,\n encodePathSegment: encodePathSegment\n };\n RouteRecognizer.prototype.map = map;\n var _default = RouteRecognizer;\n _exports.default = _default;\n});","enifed(\"router_js\", [\"exports\", \"rsvp\", \"route-recognizer\"], function (_exports, _rsvp, _routeRecognizer) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.logAbort = logAbort;\n _exports.InternalRouteInfo = _exports.TransitionError = _exports.TransitionState = _exports.QUERY_PARAMS_SYMBOL = _exports.PARAMS_SYMBOL = _exports.STATE_SYMBOL = _exports.InternalTransition = _exports.default = void 0;\n\n const TransitionAbortedError = function () {\n TransitionAbortedError.prototype = Object.create(Error.prototype);\n TransitionAbortedError.prototype.constructor = TransitionAbortedError;\n\n function TransitionAbortedError(message) {\n let error = Error.call(this, message);\n this.name = 'TransitionAborted';\n this.message = message || 'TransitionAborted';\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, TransitionAbortedError);\n } else {\n this.stack = error.stack;\n }\n }\n\n return TransitionAbortedError;\n }();\n\n const slice = Array.prototype.slice;\n const hasOwnProperty = Object.prototype.hasOwnProperty;\n /**\n Determines if an object is Promise by checking if it is \"thenable\".\n **/\n\n function isPromise(p) {\n return p !== null && typeof p === 'object' && typeof p.then === 'function';\n }\n\n function merge(hash, other) {\n for (let prop in other) {\n if (hasOwnProperty.call(other, prop)) {\n hash[prop] = other[prop];\n }\n }\n }\n /**\n @private\n \n Extracts query params from the end of an array\n **/\n\n\n function extractQueryParams(array) {\n let len = array && array.length,\n head,\n queryParams;\n\n if (len && len > 0) {\n let obj = array[len - 1];\n\n if (isQueryParams(obj)) {\n queryParams = obj.queryParams;\n head = slice.call(array, 0, len - 1);\n return [head, queryParams];\n }\n }\n\n return [array, null];\n }\n\n function isQueryParams(obj) {\n return obj && hasOwnProperty.call(obj, 'queryParams');\n }\n /**\n @private\n \n Coerces query param properties and array elements into strings.\n **/\n\n\n function coerceQueryParamsToString(queryParams) {\n for (let key in queryParams) {\n let val = queryParams[key];\n\n if (typeof val === 'number') {\n queryParams[key] = '' + val;\n } else if (Array.isArray(val)) {\n for (let i = 0, l = val.length; i < l; i++) {\n val[i] = '' + val[i];\n }\n }\n }\n }\n /**\n @private\n */\n\n\n function log(router, ...args) {\n if (!router.log) {\n return;\n }\n\n if (args.length === 2) {\n let [sequence, msg] = args;\n router.log('Transition #' + sequence + ': ' + msg);\n } else {\n let [msg] = args;\n router.log(msg);\n }\n }\n\n function isParam(object) {\n return typeof object === 'string' || object instanceof String || typeof object === 'number' || object instanceof Number;\n }\n\n function forEach(array, callback) {\n for (let i = 0, l = array.length; i < l && callback(array[i]) !== false; i++) {// empty intentionally\n }\n }\n\n function getChangelist(oldObject, newObject) {\n let key;\n let results = {\n all: {},\n changed: {},\n removed: {}\n };\n merge(results.all, newObject);\n let didChange = false;\n coerceQueryParamsToString(oldObject);\n coerceQueryParamsToString(newObject); // Calculate removals\n\n for (key in oldObject) {\n if (hasOwnProperty.call(oldObject, key)) {\n if (!hasOwnProperty.call(newObject, key)) {\n didChange = true;\n results.removed[key] = oldObject[key];\n }\n }\n } // Calculate changes\n\n\n for (key in newObject) {\n if (hasOwnProperty.call(newObject, key)) {\n let oldElement = oldObject[key];\n let newElement = newObject[key];\n\n if (isArray(oldElement) && isArray(newElement)) {\n if (oldElement.length !== newElement.length) {\n results.changed[key] = newObject[key];\n didChange = true;\n } else {\n for (let i = 0, l = oldElement.length; i < l; i++) {\n if (oldElement[i] !== newElement[i]) {\n results.changed[key] = newObject[key];\n didChange = true;\n }\n }\n }\n } else if (oldObject[key] !== newObject[key]) {\n results.changed[key] = newObject[key];\n didChange = true;\n }\n }\n }\n\n return didChange ? results : undefined;\n }\n\n function isArray(obj) {\n return Array.isArray(obj);\n }\n\n function promiseLabel(label) {\n return 'Router: ' + label;\n }\n\n const STATE_SYMBOL = \"__STATE__-2619860001345920-3322w3\";\n _exports.STATE_SYMBOL = STATE_SYMBOL;\n const PARAMS_SYMBOL = \"__PARAMS__-261986232992830203-23323\";\n _exports.PARAMS_SYMBOL = PARAMS_SYMBOL;\n const QUERY_PARAMS_SYMBOL = \"__QPS__-2619863929824844-32323\";\n /**\n A Transition is a thennable (a promise-like object) that represents\n an attempt to transition to another route. It can be aborted, either\n explicitly via `abort` or by attempting another transition while a\n previous one is still underway. An aborted transition can also\n be `retry()`d later.\n \n @class Transition\n @constructor\n @param {Object} router\n @param {Object} intent\n @param {Object} state\n @param {Object} error\n @private\n */\n\n _exports.QUERY_PARAMS_SYMBOL = QUERY_PARAMS_SYMBOL;\n\n class Transition {\n constructor(router, intent, state, error = undefined, previousTransition = undefined) {\n this.from = null;\n this.to = undefined;\n this.isAborted = false;\n this.isActive = true;\n this.urlMethod = 'update';\n this.resolveIndex = 0;\n this.queryParamsOnly = false;\n this.isTransition = true;\n this.isCausedByAbortingTransition = false;\n this.isCausedByInitialTransition = false;\n this.isCausedByAbortingReplaceTransition = false;\n this._visibleQueryParams = {};\n this[STATE_SYMBOL] = state || router.state;\n this.intent = intent;\n this.router = router;\n this.data = intent && intent.data || {};\n this.resolvedModels = {};\n this[QUERY_PARAMS_SYMBOL] = {};\n this.promise = undefined;\n this.error = undefined;\n this[PARAMS_SYMBOL] = {};\n this.routeInfos = [];\n this.targetName = undefined;\n this.pivotHandler = undefined;\n this.sequence = -1;\n\n if (error) {\n this.promise = _rsvp.Promise.reject(error);\n this.error = error;\n return;\n } // if you're doing multiple redirects, need the new transition to know if it\n // is actually part of the first transition or not. Any further redirects\n // in the initial transition also need to know if they are part of the\n // initial transition\n\n\n this.isCausedByAbortingTransition = !!previousTransition;\n this.isCausedByInitialTransition = !!previousTransition && (previousTransition.isCausedByInitialTransition || previousTransition.sequence === 0); // Every transition in the chain is a replace\n\n this.isCausedByAbortingReplaceTransition = !!previousTransition && previousTransition.urlMethod === 'replace' && (!previousTransition.isCausedByAbortingTransition || previousTransition.isCausedByAbortingReplaceTransition);\n\n if (state) {\n this[PARAMS_SYMBOL] = state.params;\n this[QUERY_PARAMS_SYMBOL] = state.queryParams;\n this.routeInfos = state.routeInfos;\n let len = state.routeInfos.length;\n\n if (len) {\n this.targetName = state.routeInfos[len - 1].name;\n }\n\n for (let i = 0; i < len; ++i) {\n let handlerInfo = state.routeInfos[i]; // TODO: this all seems hacky\n\n if (!handlerInfo.isResolved) {\n break;\n }\n\n this.pivotHandler = handlerInfo.route;\n }\n\n this.sequence = router.currentSequence++;\n this.promise = state.resolve(() => {\n if (this.isAborted) {\n return _rsvp.Promise.reject(false, promiseLabel('Transition aborted - reject'));\n }\n\n return _rsvp.Promise.resolve(true);\n }, this).catch(result => {\n return _rsvp.Promise.reject(this.router.transitionDidError(result, this));\n }, promiseLabel('Handle Abort'));\n } else {\n this.promise = _rsvp.Promise.resolve(this[STATE_SYMBOL]);\n this[PARAMS_SYMBOL] = {};\n }\n }\n /**\n The Transition's internal promise. Calling `.then` on this property\n is that same as calling `.then` on the Transition object itself, but\n this property is exposed for when you want to pass around a\n Transition's promise, but not the Transition object itself, since\n Transition object can be externally `abort`ed, while the promise\n cannot.\n @property promise\n @type {Object}\n @public\n */\n\n /**\n Custom state can be stored on a Transition's `data` object.\n This can be useful for decorating a Transition within an earlier\n hook and shared with a later hook. Properties set on `data` will\n be copied to new transitions generated by calling `retry` on this\n transition.\n @property data\n @type {Object}\n @public\n */\n\n /**\n A standard promise hook that resolves if the transition\n succeeds and rejects if it fails/redirects/aborts.\n Forwards to the internal `promise` property which you can\n use in situations where you want to pass around a thennable,\n but not the Transition itself.\n @method then\n @param {Function} onFulfilled\n @param {Function} onRejected\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n @public\n */\n\n\n then(onFulfilled, onRejected, label) {\n return this.promise.then(onFulfilled, onRejected, label);\n }\n /**\n Forwards to the internal `promise` property which you can\n use in situations where you want to pass around a thennable,\n but not the Transition itself.\n @method catch\n @param {Function} onRejection\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n @public\n */\n\n\n catch(onRejection, label) {\n return this.promise.catch(onRejection, label);\n }\n /**\n Forwards to the internal `promise` property which you can\n use in situations where you want to pass around a thennable,\n but not the Transition itself.\n @method finally\n @param {Function} callback\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n @public\n */\n\n\n finally(callback, label) {\n return this.promise.finally(callback, label);\n }\n /**\n Aborts the Transition. Note you can also implicitly abort a transition\n by initiating another transition while a previous one is underway.\n @method abort\n @return {Transition} this transition\n @public\n */\n\n\n abort() {\n this.rollback();\n let transition = new Transition(this.router, undefined, undefined, undefined);\n transition.to = this.from;\n transition.from = this.from;\n transition.isAborted = true;\n this.router.routeWillChange(transition);\n this.router.routeDidChange(transition);\n return this;\n }\n\n rollback() {\n if (!this.isAborted) {\n log(this.router, this.sequence, this.targetName + ': transition was aborted');\n\n if (this.intent !== undefined && this.intent !== null) {\n this.intent.preTransitionState = this.router.state;\n }\n\n this.isAborted = true;\n this.isActive = false;\n this.router.activeTransition = undefined;\n }\n }\n\n redirect(newTransition) {\n this.rollback();\n this.router.routeWillChange(newTransition);\n }\n /**\n Retries a previously-aborted transition (making sure to abort the\n transition if it's still active). Returns a new transition that\n represents the new attempt to transition.\n @method retry\n @return {Transition} new transition\n @public\n */\n\n\n retry() {\n // TODO: add tests for merged state retry()s\n this.abort();\n let newTransition = this.router.transitionByIntent(this.intent, false); // inheriting a `null` urlMethod is not valid\n // the urlMethod is only set to `null` when\n // the transition is initiated *after* the url\n // has been updated (i.e. `router.handleURL`)\n //\n // in that scenario, the url method cannot be\n // inherited for a new transition because then\n // the url would not update even though it should\n\n if (this.urlMethod !== null) {\n newTransition.method(this.urlMethod);\n }\n\n return newTransition;\n }\n /**\n Sets the URL-changing method to be employed at the end of a\n successful transition. By default, a new Transition will just\n use `updateURL`, but passing 'replace' to this method will\n cause the URL to update using 'replaceWith' instead. Omitting\n a parameter will disable the URL change, allowing for transitions\n that don't update the URL at completion (this is also used for\n handleURL, since the URL has already changed before the\n transition took place).\n @method method\n @param {String} method the type of URL-changing method to use\n at the end of a transition. Accepted values are 'replace',\n falsy values, or any other non-falsy value (which is\n interpreted as an updateURL transition).\n @return {Transition} this transition\n @public\n */\n\n\n method(method) {\n this.urlMethod = method;\n return this;\n } // Alias 'trigger' as 'send'\n\n\n send(ignoreFailure = false, _name, err, transition, handler) {\n this.trigger(ignoreFailure, _name, err, transition, handler);\n }\n /**\n Fires an event on the current list of resolved/resolving\n handlers within this transition. Useful for firing events\n on route hierarchies that haven't fully been entered yet.\n Note: This method is also aliased as `send`\n @method trigger\n @param {Boolean} [ignoreFailure=false] a boolean specifying whether unhandled events throw an error\n @param {String} name the name of the event to fire\n @public\n */\n\n\n trigger(ignoreFailure = false, name, ...args) {\n // TODO: Deprecate the current signature\n if (typeof ignoreFailure === 'string') {\n name = ignoreFailure;\n ignoreFailure = false;\n }\n\n this.router.triggerEvent(this[STATE_SYMBOL].routeInfos.slice(0, this.resolveIndex + 1), ignoreFailure, name, args);\n }\n /**\n Transitions are aborted and their promises rejected\n when redirects occur; this method returns a promise\n that will follow any redirects that occur and fulfill\n with the value fulfilled by any redirecting transitions\n that occur.\n @method followRedirects\n @return {Promise} a promise that fulfills with the same\n value that the final redirecting transition fulfills with\n @public\n */\n\n\n followRedirects() {\n let router = this.router;\n return this.promise.catch(function (reason) {\n if (router.activeTransition) {\n return router.activeTransition.followRedirects();\n }\n\n return _rsvp.Promise.reject(reason);\n });\n }\n\n toString() {\n return 'Transition (sequence ' + this.sequence + ')';\n }\n /**\n @private\n */\n\n\n log(message) {\n log(this.router, this.sequence, message);\n }\n\n }\n /**\n @private\n \n Logs and returns an instance of TransitionAborted.\n */\n\n\n _exports.InternalTransition = Transition;\n\n function logAbort(transition) {\n log(transition.router, transition.sequence, 'detected abort.');\n return new TransitionAbortedError();\n }\n\n function isTransition(obj) {\n return typeof obj === 'object' && obj instanceof Transition && obj.isTransition;\n }\n\n function prepareResult(obj) {\n if (isTransition(obj)) {\n return null;\n }\n\n return obj;\n }\n\n let ROUTE_INFOS = new WeakMap();\n\n function toReadOnlyRouteInfo(routeInfos, queryParams = {}, includeAttributes = false) {\n return routeInfos.map((info, i) => {\n let {\n name,\n params,\n paramNames,\n context,\n route\n } = info;\n\n if (ROUTE_INFOS.has(info) && includeAttributes) {\n let routeInfo = ROUTE_INFOS.get(info);\n routeInfo = attachMetadata(route, routeInfo);\n let routeInfoWithAttribute = createRouteInfoWithAttributes(routeInfo, context);\n ROUTE_INFOS.set(info, routeInfoWithAttribute);\n return routeInfoWithAttribute;\n }\n\n let routeInfo = {\n find(predicate, thisArg) {\n let publicInfo;\n let arr = [];\n\n if (predicate.length === 3) {\n arr = routeInfos.map(info => ROUTE_INFOS.get(info));\n }\n\n for (let i = 0; routeInfos.length > i; i++) {\n publicInfo = ROUTE_INFOS.get(routeInfos[i]);\n\n if (predicate.call(thisArg, publicInfo, i, arr)) {\n return publicInfo;\n }\n }\n\n return undefined;\n },\n\n get name() {\n return name;\n },\n\n get paramNames() {\n return paramNames;\n },\n\n get metadata() {\n return buildRouteInfoMetadata(route);\n },\n\n get parent() {\n let parent = routeInfos[i - 1];\n\n if (parent === undefined) {\n return null;\n }\n\n return ROUTE_INFOS.get(parent);\n },\n\n get child() {\n let child = routeInfos[i + 1];\n\n if (child === undefined) {\n return null;\n }\n\n return ROUTE_INFOS.get(child);\n },\n\n get localName() {\n let parts = this.name.split('.');\n return parts[parts.length - 1];\n },\n\n get params() {\n return params;\n },\n\n get queryParams() {\n return queryParams;\n }\n\n };\n\n if (includeAttributes) {\n routeInfo = createRouteInfoWithAttributes(routeInfo, context);\n }\n\n ROUTE_INFOS.set(info, routeInfo);\n return routeInfo;\n });\n }\n\n function createRouteInfoWithAttributes(routeInfo, context) {\n let attributes = {\n get attributes() {\n return context;\n }\n\n };\n\n if (Object.isFrozen(routeInfo) || routeInfo.hasOwnProperty('attributes')) {\n return Object.freeze(Object.assign({}, routeInfo, attributes));\n }\n\n return Object.assign(routeInfo, attributes);\n }\n\n function buildRouteInfoMetadata(route) {\n if (route !== undefined && route !== null && route.buildRouteInfoMetadata !== undefined) {\n return route.buildRouteInfoMetadata();\n }\n\n return null;\n }\n\n function attachMetadata(route, routeInfo) {\n let metadata = {\n get metadata() {\n return buildRouteInfoMetadata(route);\n }\n\n };\n\n if (Object.isFrozen(routeInfo) || routeInfo.hasOwnProperty('metadata')) {\n return Object.freeze(Object.assign({}, routeInfo, metadata));\n }\n\n return Object.assign(routeInfo, metadata);\n }\n\n class InternalRouteInfo {\n constructor(router, name, paramNames, route) {\n this._routePromise = undefined;\n this._route = null;\n this.params = {};\n this.isResolved = false;\n this.name = name;\n this.paramNames = paramNames;\n this.router = router;\n\n if (route) {\n this._processRoute(route);\n }\n }\n\n getModel(_transition) {\n return _rsvp.Promise.resolve(this.context);\n }\n\n serialize(_context) {\n return this.params || {};\n }\n\n resolve(shouldContinue, transition) {\n return _rsvp.Promise.resolve(this.routePromise).then(route => this.checkForAbort(shouldContinue, route)).then(() => this.runBeforeModelHook(transition)).then(() => this.checkForAbort(shouldContinue, null)).then(() => this.getModel(transition)).then(resolvedModel => this.checkForAbort(shouldContinue, resolvedModel)).then(resolvedModel => this.runAfterModelHook(transition, resolvedModel)).then(resolvedModel => this.becomeResolved(transition, resolvedModel));\n }\n\n becomeResolved(transition, resolvedContext) {\n let params = this.serialize(resolvedContext);\n\n if (transition) {\n this.stashResolvedModel(transition, resolvedContext);\n transition[PARAMS_SYMBOL] = transition[PARAMS_SYMBOL] || {};\n transition[PARAMS_SYMBOL][this.name] = params;\n }\n\n let context;\n let contextsMatch = resolvedContext === this.context;\n\n if ('context' in this || !contextsMatch) {\n context = resolvedContext;\n }\n\n let cached = ROUTE_INFOS.get(this);\n let resolved = new ResolvedRouteInfo(this.router, this.name, this.paramNames, params, this.route, context);\n\n if (cached !== undefined) {\n ROUTE_INFOS.set(resolved, cached);\n }\n\n return resolved;\n }\n\n shouldSupercede(routeInfo) {\n // Prefer this newer routeInfo over `other` if:\n // 1) The other one doesn't exist\n // 2) The names don't match\n // 3) This route has a context that doesn't match\n // the other one (or the other one doesn't have one).\n // 4) This route has parameters that don't match the other.\n if (!routeInfo) {\n return true;\n }\n\n let contextsMatch = routeInfo.context === this.context;\n return routeInfo.name !== this.name || 'context' in this && !contextsMatch || this.hasOwnProperty('params') && !paramsMatch(this.params, routeInfo.params);\n }\n\n get route() {\n // _route could be set to either a route object or undefined, so we\n // compare against null to know when it's been set\n if (this._route !== null) {\n return this._route;\n }\n\n return this.fetchRoute();\n }\n\n set route(route) {\n this._route = route;\n }\n\n get routePromise() {\n if (this._routePromise) {\n return this._routePromise;\n }\n\n this.fetchRoute();\n return this._routePromise;\n }\n\n set routePromise(routePromise) {\n this._routePromise = routePromise;\n }\n\n log(transition, message) {\n if (transition.log) {\n transition.log(this.name + ': ' + message);\n }\n }\n\n updateRoute(route) {\n route._internalName = this.name;\n return this.route = route;\n }\n\n runBeforeModelHook(transition) {\n if (transition.trigger) {\n transition.trigger(true, 'willResolveModel', transition, this.route);\n }\n\n let result;\n\n if (this.route) {\n if (this.route.beforeModel !== undefined) {\n result = this.route.beforeModel(transition);\n }\n }\n\n if (isTransition(result)) {\n result = null;\n }\n\n return _rsvp.Promise.resolve(result);\n }\n\n runAfterModelHook(transition, resolvedModel) {\n // Stash the resolved model on the payload.\n // This makes it possible for users to swap out\n // the resolved model in afterModel.\n let name = this.name;\n this.stashResolvedModel(transition, resolvedModel);\n let result;\n\n if (this.route !== undefined) {\n if (this.route.afterModel !== undefined) {\n result = this.route.afterModel(resolvedModel, transition);\n }\n }\n\n result = prepareResult(result);\n return _rsvp.Promise.resolve(result).then(() => {\n // Ignore the fulfilled value returned from afterModel.\n // Return the value stashed in resolvedModels, which\n // might have been swapped out in afterModel.\n return transition.resolvedModels[name];\n });\n }\n\n checkForAbort(shouldContinue, value) {\n return _rsvp.Promise.resolve(shouldContinue()).then(function () {\n // We don't care about shouldContinue's resolve value;\n // pass along the original value passed to this fn.\n return value;\n }, null);\n }\n\n stashResolvedModel(transition, resolvedModel) {\n transition.resolvedModels = transition.resolvedModels || {};\n transition.resolvedModels[this.name] = resolvedModel;\n }\n\n fetchRoute() {\n let route = this.router.getRoute(this.name);\n return this._processRoute(route);\n }\n\n _processRoute(route) {\n // Setup a routePromise so that we can wait for asynchronously loaded routes\n this.routePromise = _rsvp.Promise.resolve(route); // Wait until the 'route' property has been updated when chaining to a route\n // that is a promise\n\n if (isPromise(route)) {\n this.routePromise = this.routePromise.then(r => {\n return this.updateRoute(r);\n }); // set to undefined to avoid recursive loop in the route getter\n\n return this.route = undefined;\n } else if (route) {\n return this.updateRoute(route);\n }\n\n return undefined;\n }\n\n }\n\n _exports.InternalRouteInfo = InternalRouteInfo;\n\n class ResolvedRouteInfo extends InternalRouteInfo {\n constructor(router, name, paramNames, params, route, context) {\n super(router, name, paramNames, route);\n this.params = params;\n this.isResolved = true;\n this.context = context;\n }\n\n resolve(_shouldContinue, transition) {\n // A ResolvedRouteInfo just resolved with itself.\n if (transition && transition.resolvedModels) {\n transition.resolvedModels[this.name] = this.context;\n }\n\n return _rsvp.Promise.resolve(this);\n }\n\n }\n\n class UnresolvedRouteInfoByParam extends InternalRouteInfo {\n constructor(router, name, paramNames, params, route) {\n super(router, name, paramNames, route);\n this.params = {};\n this.params = params;\n }\n\n getModel(transition) {\n let fullParams = this.params;\n\n if (transition && transition[QUERY_PARAMS_SYMBOL]) {\n fullParams = {};\n merge(fullParams, this.params);\n fullParams.queryParams = transition[QUERY_PARAMS_SYMBOL];\n }\n\n let route = this.route;\n let result = undefined;\n\n if (route.deserialize) {\n result = route.deserialize(fullParams, transition);\n } else if (route.model) {\n result = route.model(fullParams, transition);\n }\n\n if (result && isTransition(result)) {\n result = undefined;\n }\n\n return _rsvp.Promise.resolve(result);\n }\n\n }\n\n class UnresolvedRouteInfoByObject extends InternalRouteInfo {\n constructor(router, name, paramNames, context) {\n super(router, name, paramNames);\n this.context = context;\n this.serializer = this.router.getSerializer(name);\n }\n\n getModel(transition) {\n if (this.router.log !== undefined) {\n this.router.log(this.name + ': resolving provided model');\n }\n\n return super.getModel(transition);\n }\n /**\n @private\n Serializes a route using its custom `serialize` method or\n by a default that looks up the expected property name from\n the dynamic segment.\n @param {Object} model the model to be serialized for this route\n */\n\n\n serialize(model) {\n let {\n paramNames,\n context\n } = this;\n\n if (!model) {\n model = context;\n }\n\n let object = {};\n\n if (isParam(model)) {\n object[paramNames[0]] = model;\n return object;\n } // Use custom serialize if it exists.\n\n\n if (this.serializer) {\n // invoke this.serializer unbound (getSerializer returns a stateless function)\n return this.serializer.call(null, model, paramNames);\n } else if (this.route !== undefined) {\n if (this.route.serialize) {\n return this.route.serialize(model, paramNames);\n }\n }\n\n if (paramNames.length !== 1) {\n return;\n }\n\n let name = paramNames[0];\n\n if (/_id$/.test(name)) {\n object[name] = model.id;\n } else {\n object[name] = model;\n }\n\n return object;\n }\n\n }\n\n function paramsMatch(a, b) {\n if (!a !== !b) {\n // Only one is null.\n return false;\n }\n\n if (!a) {\n // Both must be null.\n return true;\n } // Note: this assumes that both params have the same\n // number of keys, but since we're comparing the\n // same routes, they should.\n\n\n for (let k in a) {\n if (a.hasOwnProperty(k) && a[k] !== b[k]) {\n return false;\n }\n }\n\n return true;\n }\n\n class TransitionIntent {\n constructor(router, data = {}) {\n this.router = router;\n this.data = data;\n }\n\n }\n\n class TransitionState {\n constructor() {\n this.routeInfos = [];\n this.queryParams = {};\n this.params = {};\n }\n\n promiseLabel(label) {\n let targetName = '';\n forEach(this.routeInfos, function (routeInfo) {\n if (targetName !== '') {\n targetName += '.';\n }\n\n targetName += routeInfo.name;\n return true;\n });\n return promiseLabel(\"'\" + targetName + \"': \" + label);\n }\n\n resolve(shouldContinue, transition) {\n // First, calculate params for this state. This is useful\n // information to provide to the various route hooks.\n let params = this.params;\n forEach(this.routeInfos, routeInfo => {\n params[routeInfo.name] = routeInfo.params || {};\n return true;\n });\n transition.resolveIndex = 0;\n let currentState = this;\n let wasAborted = false; // The prelude RSVP.resolve() asyncs us into the promise land.\n\n return _rsvp.Promise.resolve(null, this.promiseLabel('Start transition')).then(resolveOneRouteInfo, null, this.promiseLabel('Resolve route')).catch(handleError, this.promiseLabel('Handle error'));\n\n function innerShouldContinue() {\n return _rsvp.Promise.resolve(shouldContinue(), currentState.promiseLabel('Check if should continue')).catch(function (reason) {\n // We distinguish between errors that occurred\n // during resolution (e.g. before\"Model/model/afterModel),\n // and aborts due to a rejecting promise from shouldContinue().\n wasAborted = true;\n return _rsvp.Promise.reject(reason);\n }, currentState.promiseLabel('Handle abort'));\n }\n\n function handleError(error) {\n // This is the only possible\n // reject value of TransitionState#resolve\n let routeInfos = currentState.routeInfos;\n let errorHandlerIndex = transition.resolveIndex >= routeInfos.length ? routeInfos.length - 1 : transition.resolveIndex;\n return _rsvp.Promise.reject(new TransitionError(error, currentState.routeInfos[errorHandlerIndex].route, wasAborted, currentState));\n }\n\n function proceed(resolvedRouteInfo) {\n let wasAlreadyResolved = currentState.routeInfos[transition.resolveIndex].isResolved; // Swap the previously unresolved routeInfo with\n // the resolved routeInfo\n\n currentState.routeInfos[transition.resolveIndex++] = resolvedRouteInfo;\n\n if (!wasAlreadyResolved) {\n // Call the redirect hook. The reason we call it here\n // vs. afterModel is so that redirects into child\n // routes don't re-run the model hooks for this\n // already-resolved route.\n let {\n route\n } = resolvedRouteInfo;\n\n if (route !== undefined) {\n if (route.redirect) {\n route.redirect(resolvedRouteInfo.context, transition);\n }\n }\n } // Proceed after ensuring that the redirect hook\n // didn't abort this transition by transitioning elsewhere.\n\n\n return innerShouldContinue().then(resolveOneRouteInfo, null, currentState.promiseLabel('Resolve route'));\n }\n\n function resolveOneRouteInfo() {\n if (transition.resolveIndex === currentState.routeInfos.length) {\n // This is is the only possible\n // fulfill value of TransitionState#resolve\n return currentState;\n }\n\n let routeInfo = currentState.routeInfos[transition.resolveIndex];\n return routeInfo.resolve(innerShouldContinue, transition).then(proceed, null, currentState.promiseLabel('Proceed'));\n }\n }\n\n }\n\n _exports.TransitionState = TransitionState;\n\n class TransitionError {\n constructor(error, route, wasAborted, state) {\n this.error = error;\n this.route = route;\n this.wasAborted = wasAborted;\n this.state = state;\n }\n\n }\n\n _exports.TransitionError = TransitionError;\n\n class NamedTransitionIntent extends TransitionIntent {\n constructor(router, name, pivotHandler, contexts = [], queryParams = {}, data) {\n super(router, data);\n this.preTransitionState = undefined;\n this.name = name;\n this.pivotHandler = pivotHandler;\n this.contexts = contexts;\n this.queryParams = queryParams;\n }\n\n applyToState(oldState, isIntermediate) {\n // TODO: WTF fix me\n let partitionedArgs = extractQueryParams([this.name].concat(this.contexts)),\n pureArgs = partitionedArgs[0],\n handlers = this.router.recognizer.handlersFor(pureArgs[0]);\n let targetRouteName = handlers[handlers.length - 1].handler;\n return this.applyToHandlers(oldState, handlers, targetRouteName, isIntermediate, false);\n }\n\n applyToHandlers(oldState, parsedHandlers, targetRouteName, isIntermediate, checkingIfActive) {\n let i, len;\n let newState = new TransitionState();\n let objects = this.contexts.slice(0);\n let invalidateIndex = parsedHandlers.length; // Pivot handlers are provided for refresh transitions\n\n if (this.pivotHandler) {\n for (i = 0, len = parsedHandlers.length; i < len; ++i) {\n if (parsedHandlers[i].handler === this.pivotHandler._internalName) {\n invalidateIndex = i;\n break;\n }\n }\n }\n\n for (i = parsedHandlers.length - 1; i >= 0; --i) {\n let result = parsedHandlers[i];\n let name = result.handler;\n let oldHandlerInfo = oldState.routeInfos[i];\n let newHandlerInfo = null;\n\n if (result.names.length > 0) {\n if (i >= invalidateIndex) {\n newHandlerInfo = this.createParamHandlerInfo(name, result.names, objects, oldHandlerInfo);\n } else {\n newHandlerInfo = this.getHandlerInfoForDynamicSegment(name, result.names, objects, oldHandlerInfo, targetRouteName, i);\n }\n } else {\n // This route has no dynamic segment.\n // Therefore treat as a param-based handlerInfo\n // with empty params. This will cause the `model`\n // hook to be called with empty params, which is desirable.\n newHandlerInfo = this.createParamHandlerInfo(name, result.names, objects, oldHandlerInfo);\n }\n\n if (checkingIfActive) {\n // If we're performing an isActive check, we want to\n // serialize URL params with the provided context, but\n // ignore mismatches between old and new context.\n newHandlerInfo = newHandlerInfo.becomeResolved(null, newHandlerInfo.context);\n let oldContext = oldHandlerInfo && oldHandlerInfo.context;\n\n if (result.names.length > 0 && oldHandlerInfo.context !== undefined && newHandlerInfo.context === oldContext) {\n // If contexts match in isActive test, assume params also match.\n // This allows for flexibility in not requiring that every last\n // handler provide a `serialize` method\n newHandlerInfo.params = oldHandlerInfo && oldHandlerInfo.params;\n }\n\n newHandlerInfo.context = oldContext;\n }\n\n let handlerToUse = oldHandlerInfo;\n\n if (i >= invalidateIndex || newHandlerInfo.shouldSupercede(oldHandlerInfo)) {\n invalidateIndex = Math.min(i, invalidateIndex);\n handlerToUse = newHandlerInfo;\n }\n\n if (isIntermediate && !checkingIfActive) {\n handlerToUse = handlerToUse.becomeResolved(null, handlerToUse.context);\n }\n\n newState.routeInfos.unshift(handlerToUse);\n }\n\n if (objects.length > 0) {\n throw new Error('More context objects were passed than there are dynamic segments for the route: ' + targetRouteName);\n }\n\n if (!isIntermediate) {\n this.invalidateChildren(newState.routeInfos, invalidateIndex);\n }\n\n merge(newState.queryParams, this.queryParams || {});\n return newState;\n }\n\n invalidateChildren(handlerInfos, invalidateIndex) {\n for (let i = invalidateIndex, l = handlerInfos.length; i < l; ++i) {\n let handlerInfo = handlerInfos[i];\n\n if (handlerInfo.isResolved) {\n let {\n name,\n params,\n route,\n paramNames\n } = handlerInfos[i];\n handlerInfos[i] = new UnresolvedRouteInfoByParam(this.router, name, paramNames, params, route);\n }\n }\n }\n\n getHandlerInfoForDynamicSegment(name, names, objects, oldHandlerInfo, _targetRouteName, i) {\n let objectToUse;\n\n if (objects.length > 0) {\n // Use the objects provided for this transition.\n objectToUse = objects[objects.length - 1];\n\n if (isParam(objectToUse)) {\n return this.createParamHandlerInfo(name, names, objects, oldHandlerInfo);\n } else {\n objects.pop();\n }\n } else if (oldHandlerInfo && oldHandlerInfo.name === name) {\n // Reuse the matching oldHandlerInfo\n return oldHandlerInfo;\n } else {\n if (this.preTransitionState) {\n let preTransitionHandlerInfo = this.preTransitionState.routeInfos[i];\n objectToUse = preTransitionHandlerInfo && preTransitionHandlerInfo.context;\n } else {\n // Ideally we should throw this error to provide maximal\n // information to the user that not enough context objects\n // were provided, but this proves too cumbersome in Ember\n // in cases where inner template helpers are evaluated\n // before parent helpers un-render, in which cases this\n // error somewhat prematurely fires.\n //throw new Error(\"Not enough context objects were provided to complete a transition to \" + targetRouteName + \". Specifically, the \" + name + \" route needs an object that can be serialized into its dynamic URL segments [\" + names.join(', ') + \"]\");\n return oldHandlerInfo;\n }\n }\n\n return new UnresolvedRouteInfoByObject(this.router, name, names, objectToUse);\n }\n\n createParamHandlerInfo(name, names, objects, oldHandlerInfo) {\n let params = {}; // Soak up all the provided string/numbers\n\n let numNames = names.length;\n\n while (numNames--) {\n // Only use old params if the names match with the new handler\n let oldParams = oldHandlerInfo && name === oldHandlerInfo.name && oldHandlerInfo.params || {};\n let peek = objects[objects.length - 1];\n let paramName = names[numNames];\n\n if (isParam(peek)) {\n params[paramName] = '' + objects.pop();\n } else {\n // If we're here, this means only some of the params\n // were string/number params, so try and use a param\n // value from a previous handler.\n if (oldParams.hasOwnProperty(paramName)) {\n params[paramName] = oldParams[paramName];\n } else {\n throw new Error(\"You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route \" + name);\n }\n }\n }\n\n return new UnresolvedRouteInfoByParam(this.router, name, names, params);\n }\n\n }\n\n const UnrecognizedURLError = function () {\n UnrecognizedURLError.prototype = Object.create(Error.prototype);\n UnrecognizedURLError.prototype.constructor = UnrecognizedURLError;\n\n function UnrecognizedURLError(message) {\n let error = Error.call(this, message);\n this.name = 'UnrecognizedURLError';\n this.message = message || 'UnrecognizedURL';\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, UnrecognizedURLError);\n } else {\n this.stack = error.stack;\n }\n }\n\n return UnrecognizedURLError;\n }();\n\n class URLTransitionIntent extends TransitionIntent {\n constructor(router, url, data) {\n super(router, data);\n this.url = url;\n this.preTransitionState = undefined;\n }\n\n applyToState(oldState) {\n let newState = new TransitionState();\n let results = this.router.recognizer.recognize(this.url),\n i,\n len;\n\n if (!results) {\n throw new UnrecognizedURLError(this.url);\n }\n\n let statesDiffer = false;\n let _url = this.url; // Checks if a handler is accessible by URL. If it is not, an error is thrown.\n // For the case where the handler is loaded asynchronously, the error will be\n // thrown once it is loaded.\n\n function checkHandlerAccessibility(handler) {\n if (handler && handler.inaccessibleByURL) {\n throw new UnrecognizedURLError(_url);\n }\n\n return handler;\n }\n\n for (i = 0, len = results.length; i < len; ++i) {\n let result = results[i];\n let name = result.handler;\n let paramNames = [];\n\n if (this.router.recognizer.hasRoute(name)) {\n paramNames = this.router.recognizer.handlersFor(name)[i].names;\n }\n\n let newRouteInfo = new UnresolvedRouteInfoByParam(this.router, name, paramNames, result.params);\n let route = newRouteInfo.route;\n\n if (route) {\n checkHandlerAccessibility(route);\n } else {\n // If the hanlder is being loaded asynchronously, check if we can\n // access it after it has resolved\n newRouteInfo.routePromise = newRouteInfo.routePromise.then(checkHandlerAccessibility);\n }\n\n let oldRouteInfo = oldState.routeInfos[i];\n\n if (statesDiffer || newRouteInfo.shouldSupercede(oldRouteInfo)) {\n statesDiffer = true;\n newState.routeInfos[i] = newRouteInfo;\n } else {\n newState.routeInfos[i] = oldRouteInfo;\n }\n }\n\n merge(newState.queryParams, results.queryParams);\n return newState;\n }\n\n }\n\n class Router {\n constructor(logger) {\n this._lastQueryParams = {};\n this.state = undefined;\n this.oldState = undefined;\n this.activeTransition = undefined;\n this.currentRouteInfos = undefined;\n this._changedQueryParams = undefined;\n this.currentSequence = 0;\n this.log = logger;\n this.recognizer = new _routeRecognizer.default();\n this.reset();\n }\n /**\n The main entry point into the router. The API is essentially\n the same as the `map` method in `route-recognizer`.\n This method extracts the String handler at the last `.to()`\n call and uses it as the name of the whole route.\n @param {Function} callback\n */\n\n\n map(callback) {\n this.recognizer.map(callback, function (recognizer, routes) {\n for (let i = routes.length - 1, proceed = true; i >= 0 && proceed; --i) {\n let route = routes[i];\n let handler = route.handler;\n recognizer.add(routes, {\n as: handler\n });\n proceed = route.path === '/' || route.path === '' || handler.slice(-6) === '.index';\n }\n });\n }\n\n hasRoute(route) {\n return this.recognizer.hasRoute(route);\n }\n\n queryParamsTransition(changelist, wasTransitioning, oldState, newState) {\n this.fireQueryParamDidChange(newState, changelist);\n\n if (!wasTransitioning && this.activeTransition) {\n // One of the routes in queryParamsDidChange\n // caused a transition. Just return that transition.\n return this.activeTransition;\n } else {\n // Running queryParamsDidChange didn't change anything.\n // Just update query params and be on our way.\n // We have to return a noop transition that will\n // perform a URL update at the end. This gives\n // the user the ability to set the url update\n // method (default is replaceState).\n let newTransition = new Transition(this, undefined, undefined);\n newTransition.queryParamsOnly = true;\n oldState.queryParams = this.finalizeQueryParamChange(newState.routeInfos, newState.queryParams, newTransition);\n newTransition[QUERY_PARAMS_SYMBOL] = newState.queryParams;\n this.toReadOnlyInfos(newTransition, newState);\n this.routeWillChange(newTransition);\n newTransition.promise = newTransition.promise.then(result => {\n this._updateURL(newTransition, oldState);\n\n this.didTransition(this.currentRouteInfos);\n this.toInfos(newTransition, newState.routeInfos, true);\n this.routeDidChange(newTransition);\n return result;\n }, null, promiseLabel('Transition complete'));\n return newTransition;\n }\n }\n\n transitionByIntent(intent, isIntermediate) {\n try {\n return this.getTransitionByIntent(intent, isIntermediate);\n } catch (e) {\n return new Transition(this, intent, undefined, e, undefined);\n }\n }\n\n recognize(url) {\n let intent = new URLTransitionIntent(this, url);\n let newState = this.generateNewState(intent);\n\n if (newState === null) {\n return newState;\n }\n\n let readonlyInfos = toReadOnlyRouteInfo(newState.routeInfos, newState.queryParams);\n return readonlyInfos[readonlyInfos.length - 1];\n }\n\n recognizeAndLoad(url) {\n let intent = new URLTransitionIntent(this, url);\n let newState = this.generateNewState(intent);\n\n if (newState === null) {\n return _rsvp.Promise.reject(\"URL \" + url + \" was not recognized\");\n }\n\n let newTransition = new Transition(this, intent, newState, undefined);\n return newTransition.then(() => {\n let routeInfosWithAttributes = toReadOnlyRouteInfo(newState.routeInfos, newTransition[QUERY_PARAMS_SYMBOL], true);\n return routeInfosWithAttributes[routeInfosWithAttributes.length - 1];\n });\n }\n\n generateNewState(intent) {\n try {\n return intent.applyToState(this.state, false);\n } catch (e) {\n return null;\n }\n }\n\n getTransitionByIntent(intent, isIntermediate) {\n let wasTransitioning = !!this.activeTransition;\n let oldState = wasTransitioning ? this.activeTransition[STATE_SYMBOL] : this.state;\n let newTransition;\n let newState = intent.applyToState(oldState, isIntermediate);\n let queryParamChangelist = getChangelist(oldState.queryParams, newState.queryParams);\n\n if (routeInfosEqual(newState.routeInfos, oldState.routeInfos)) {\n // This is a no-op transition. See if query params changed.\n if (queryParamChangelist) {\n let newTransition = this.queryParamsTransition(queryParamChangelist, wasTransitioning, oldState, newState);\n newTransition.queryParamsOnly = true;\n return newTransition;\n } // No-op. No need to create a new transition.\n\n\n return this.activeTransition || new Transition(this, undefined, undefined);\n }\n\n if (isIntermediate) {\n let transition = new Transition(this, undefined, undefined);\n this.toReadOnlyInfos(transition, newState);\n this.setupContexts(newState);\n this.routeWillChange(transition);\n return this.activeTransition;\n } // Create a new transition to the destination route.\n\n\n newTransition = new Transition(this, intent, newState, undefined, this.activeTransition); // transition is to same route with same params, only query params differ.\n // not caught above probably because refresh() has been used\n\n if (routeInfosSameExceptQueryParams(newState.routeInfos, oldState.routeInfos)) {\n newTransition.queryParamsOnly = true;\n }\n\n this.toReadOnlyInfos(newTransition, newState); // Abort and usurp any previously active transition.\n\n if (this.activeTransition) {\n this.activeTransition.redirect(newTransition);\n }\n\n this.activeTransition = newTransition; // Transition promises by default resolve with resolved state.\n // For our purposes, swap out the promise to resolve\n // after the transition has been finalized.\n\n newTransition.promise = newTransition.promise.then(result => {\n return this.finalizeTransition(newTransition, result);\n }, null, promiseLabel('Settle transition promise when transition is finalized'));\n\n if (!wasTransitioning) {\n this.notifyExistingHandlers(newState, newTransition);\n }\n\n this.fireQueryParamDidChange(newState, queryParamChangelist);\n return newTransition;\n }\n /**\n @private\n Begins and returns a Transition based on the provided\n arguments. Accepts arguments in the form of both URL\n transitions and named transitions.\n @param {Router} router\n @param {Array[Object]} args arguments passed to transitionTo,\n replaceWith, or handleURL\n */\n\n\n doTransition(name, modelsArray = [], isIntermediate = false) {\n let lastArg = modelsArray[modelsArray.length - 1];\n let queryParams = {};\n\n if (lastArg !== undefined && lastArg.hasOwnProperty('queryParams')) {\n queryParams = modelsArray.pop().queryParams;\n }\n\n let intent;\n\n if (name === undefined) {\n log(this, 'Updating query params'); // A query param update is really just a transition\n // into the route you're already on.\n\n let {\n routeInfos\n } = this.state;\n intent = new NamedTransitionIntent(this, routeInfos[routeInfos.length - 1].name, undefined, [], queryParams);\n } else if (name.charAt(0) === '/') {\n log(this, 'Attempting URL transition to ' + name);\n intent = new URLTransitionIntent(this, name);\n } else {\n log(this, 'Attempting transition to ' + name);\n intent = new NamedTransitionIntent(this, name, undefined, modelsArray, queryParams);\n }\n\n return this.transitionByIntent(intent, isIntermediate);\n }\n /**\n @private\n Updates the URL (if necessary) and calls `setupContexts`\n to update the router's array of `currentRouteInfos`.\n */\n\n\n finalizeTransition(transition, newState) {\n try {\n log(transition.router, transition.sequence, 'Resolved all models on destination route; finalizing transition.');\n let routeInfos = newState.routeInfos; // Run all the necessary enter/setup/exit hooks\n\n this.setupContexts(newState, transition); // Check if a redirect occurred in enter/setup\n\n if (transition.isAborted) {\n // TODO: cleaner way? distinguish b/w targetRouteInfos?\n this.state.routeInfos = this.currentRouteInfos;\n return _rsvp.Promise.reject(logAbort(transition));\n }\n\n this._updateURL(transition, newState);\n\n transition.isActive = false;\n this.activeTransition = undefined;\n this.triggerEvent(this.currentRouteInfos, true, 'didTransition', []);\n this.didTransition(this.currentRouteInfos);\n this.toInfos(transition, newState.routeInfos, true);\n this.routeDidChange(transition);\n log(this, transition.sequence, 'TRANSITION COMPLETE.'); // Resolve with the final route.\n\n return routeInfos[routeInfos.length - 1].route;\n } catch (e) {\n if (!(e instanceof TransitionAbortedError)) {\n let infos = transition[STATE_SYMBOL].routeInfos;\n transition.trigger(true, 'error', e, transition, infos[infos.length - 1].route);\n transition.abort();\n }\n\n throw e;\n }\n }\n /**\n @private\n Takes an Array of `RouteInfo`s, figures out which ones are\n exiting, entering, or changing contexts, and calls the\n proper route hooks.\n For example, consider the following tree of routes. Each route is\n followed by the URL segment it handles.\n ```\n |~index (\"/\")\n | |~posts (\"/posts\")\n | | |-showPost (\"/:id\")\n | | |-newPost (\"/new\")\n | | |-editPost (\"/edit\")\n | |~about (\"/about/:id\")\n ```\n Consider the following transitions:\n 1. A URL transition to `/posts/1`.\n 1. Triggers the `*model` callbacks on the\n `index`, `posts`, and `showPost` routes\n 2. Triggers the `enter` callback on the same\n 3. Triggers the `setup` callback on the same\n 2. A direct transition to `newPost`\n 1. Triggers the `exit` callback on `showPost`\n 2. Triggers the `enter` callback on `newPost`\n 3. Triggers the `setup` callback on `newPost`\n 3. A direct transition to `about` with a specified\n context object\n 1. Triggers the `exit` callback on `newPost`\n and `posts`\n 2. Triggers the `serialize` callback on `about`\n 3. Triggers the `enter` callback on `about`\n 4. Triggers the `setup` callback on `about`\n @param {Router} transition\n @param {TransitionState} newState\n */\n\n\n setupContexts(newState, transition) {\n let partition = this.partitionRoutes(this.state, newState);\n let i, l, route;\n\n for (i = 0, l = partition.exited.length; i < l; i++) {\n route = partition.exited[i].route;\n delete route.context;\n\n if (route !== undefined) {\n if (route._internalReset !== undefined) {\n route._internalReset(true, transition);\n }\n\n if (route.exit !== undefined) {\n route.exit(transition);\n }\n }\n }\n\n let oldState = this.oldState = this.state;\n this.state = newState;\n let currentRouteInfos = this.currentRouteInfos = partition.unchanged.slice();\n\n try {\n for (i = 0, l = partition.reset.length; i < l; i++) {\n route = partition.reset[i].route;\n\n if (route !== undefined) {\n if (route._internalReset !== undefined) {\n route._internalReset(false, transition);\n }\n }\n }\n\n for (i = 0, l = partition.updatedContext.length; i < l; i++) {\n this.routeEnteredOrUpdated(currentRouteInfos, partition.updatedContext[i], false, transition);\n }\n\n for (i = 0, l = partition.entered.length; i < l; i++) {\n this.routeEnteredOrUpdated(currentRouteInfos, partition.entered[i], true, transition);\n }\n } catch (e) {\n this.state = oldState;\n this.currentRouteInfos = oldState.routeInfos;\n throw e;\n }\n\n this.state.queryParams = this.finalizeQueryParamChange(currentRouteInfos, newState.queryParams, transition);\n }\n /**\n @private\n Fires queryParamsDidChange event\n */\n\n\n fireQueryParamDidChange(newState, queryParamChangelist) {\n // If queryParams changed trigger event\n if (queryParamChangelist) {\n // This is a little hacky but we need some way of storing\n // changed query params given that no activeTransition\n // is guaranteed to have occurred.\n this._changedQueryParams = queryParamChangelist.all;\n this.triggerEvent(newState.routeInfos, true, 'queryParamsDidChange', [queryParamChangelist.changed, queryParamChangelist.all, queryParamChangelist.removed]);\n this._changedQueryParams = undefined;\n }\n }\n /**\n @private\n Helper method used by setupContexts. Handles errors or redirects\n that may happen in enter/setup.\n */\n\n\n routeEnteredOrUpdated(currentRouteInfos, routeInfo, enter, transition) {\n let route = routeInfo.route,\n context = routeInfo.context;\n\n function _routeEnteredOrUpdated(route) {\n if (enter) {\n if (route.enter !== undefined) {\n route.enter(transition);\n }\n }\n\n if (transition && transition.isAborted) {\n throw new TransitionAbortedError();\n }\n\n route.context = context;\n\n if (route.contextDidChange !== undefined) {\n route.contextDidChange();\n }\n\n if (route.setup !== undefined) {\n route.setup(context, transition);\n }\n\n if (transition && transition.isAborted) {\n throw new TransitionAbortedError();\n }\n\n currentRouteInfos.push(routeInfo);\n return route;\n } // If the route doesn't exist, it means we haven't resolved the route promise yet\n\n\n if (route === undefined) {\n routeInfo.routePromise = routeInfo.routePromise.then(_routeEnteredOrUpdated);\n } else {\n _routeEnteredOrUpdated(route);\n }\n\n return true;\n }\n /**\n @private\n This function is called when transitioning from one URL to\n another to determine which routes are no longer active,\n which routes are newly active, and which routes remain\n active but have their context changed.\n Take a list of old routes and new routes and partition\n them into four buckets:\n * unchanged: the route was active in both the old and\n new URL, and its context remains the same\n * updated context: the route was active in both the\n old and new URL, but its context changed. The route's\n `setup` method, if any, will be called with the new\n context.\n * exited: the route was active in the old URL, but is\n no longer active.\n * entered: the route was not active in the old URL, but\n is now active.\n The PartitionedRoutes structure has four fields:\n * `updatedContext`: a list of `RouteInfo` objects that\n represent routes that remain active but have a changed\n context\n * `entered`: a list of `RouteInfo` objects that represent\n routes that are newly active\n * `exited`: a list of `RouteInfo` objects that are no\n longer active.\n * `unchanged`: a list of `RouteInfo` objects that remain active.\n @param {Array[InternalRouteInfo]} oldRoutes a list of the route\n information for the previous URL (or `[]` if this is the\n first handled transition)\n @param {Array[InternalRouteInfo]} newRoutes a list of the route\n information for the new URL\n @return {Partition}\n */\n\n\n partitionRoutes(oldState, newState) {\n let oldRouteInfos = oldState.routeInfos;\n let newRouteInfos = newState.routeInfos;\n let routes = {\n updatedContext: [],\n exited: [],\n entered: [],\n unchanged: [],\n reset: []\n };\n let routeChanged,\n contextChanged = false,\n i,\n l;\n\n for (i = 0, l = newRouteInfos.length; i < l; i++) {\n let oldRouteInfo = oldRouteInfos[i],\n newRouteInfo = newRouteInfos[i];\n\n if (!oldRouteInfo || oldRouteInfo.route !== newRouteInfo.route) {\n routeChanged = true;\n }\n\n if (routeChanged) {\n routes.entered.push(newRouteInfo);\n\n if (oldRouteInfo) {\n routes.exited.unshift(oldRouteInfo);\n }\n } else if (contextChanged || oldRouteInfo.context !== newRouteInfo.context) {\n contextChanged = true;\n routes.updatedContext.push(newRouteInfo);\n } else {\n routes.unchanged.push(oldRouteInfo);\n }\n }\n\n for (i = newRouteInfos.length, l = oldRouteInfos.length; i < l; i++) {\n routes.exited.unshift(oldRouteInfos[i]);\n }\n\n routes.reset = routes.updatedContext.slice();\n routes.reset.reverse();\n return routes;\n }\n\n _updateURL(transition, state) {\n let urlMethod = transition.urlMethod;\n\n if (!urlMethod) {\n return;\n }\n\n let {\n routeInfos\n } = state;\n let {\n name: routeName\n } = routeInfos[routeInfos.length - 1];\n let params = {};\n\n for (let i = routeInfos.length - 1; i >= 0; --i) {\n let routeInfo = routeInfos[i];\n merge(params, routeInfo.params);\n\n if (routeInfo.route.inaccessibleByURL) {\n urlMethod = null;\n }\n }\n\n if (urlMethod) {\n params.queryParams = transition._visibleQueryParams || state.queryParams;\n let url = this.recognizer.generate(routeName, params); // transitions during the initial transition must always use replaceURL.\n // When the app boots, you are at a url, e.g. /foo. If some route\n // redirects to bar as part of the initial transition, you don't want to\n // add a history entry for /foo. If you do, pressing back will immediately\n // hit the redirect again and take you back to /bar, thus killing the back\n // button\n\n let initial = transition.isCausedByInitialTransition; // say you are at / and you click a link to route /foo. In /foo's\n // route, the transition is aborted using replacewith('/bar').\n // Because the current url is still /, the history entry for / is\n // removed from the history. Clicking back will take you to the page\n // you were on before /, which is often not even the app, thus killing\n // the back button. That's why updateURL is always correct for an\n // aborting transition that's not the initial transition\n\n let replaceAndNotAborting = urlMethod === 'replace' && !transition.isCausedByAbortingTransition; // because calling refresh causes an aborted transition, this needs to be\n // special cased - if the initial transition is a replace transition, the\n // urlMethod should be honored here.\n\n let isQueryParamsRefreshTransition = transition.queryParamsOnly && urlMethod === 'replace'; // say you are at / and you a `replaceWith(/foo)` is called. Then, that\n // transition is aborted with `replaceWith(/bar)`. At the end, we should\n // end up with /bar replacing /. We are replacing the replace. We only\n // will replace the initial route if all subsequent aborts are also\n // replaces. However, there is some ambiguity around the correct behavior\n // here.\n\n let replacingReplace = urlMethod === 'replace' && transition.isCausedByAbortingReplaceTransition;\n\n if (initial || replaceAndNotAborting || isQueryParamsRefreshTransition || replacingReplace) {\n this.replaceURL(url);\n } else {\n this.updateURL(url);\n }\n }\n }\n\n finalizeQueryParamChange(resolvedHandlers, newQueryParams, transition) {\n // We fire a finalizeQueryParamChange event which\n // gives the new route hierarchy a chance to tell\n // us which query params it's consuming and what\n // their final values are. If a query param is\n // no longer consumed in the final route hierarchy,\n // its serialized segment will be removed\n // from the URL.\n for (let k in newQueryParams) {\n if (newQueryParams.hasOwnProperty(k) && newQueryParams[k] === null) {\n delete newQueryParams[k];\n }\n }\n\n let finalQueryParamsArray = [];\n this.triggerEvent(resolvedHandlers, true, 'finalizeQueryParamChange', [newQueryParams, finalQueryParamsArray, transition]);\n\n if (transition) {\n transition._visibleQueryParams = {};\n }\n\n let finalQueryParams = {};\n\n for (let i = 0, len = finalQueryParamsArray.length; i < len; ++i) {\n let qp = finalQueryParamsArray[i];\n finalQueryParams[qp.key] = qp.value;\n\n if (transition && qp.visible !== false) {\n transition._visibleQueryParams[qp.key] = qp.value;\n }\n }\n\n return finalQueryParams;\n }\n\n toReadOnlyInfos(newTransition, newState) {\n let oldRouteInfos = this.state.routeInfos;\n this.fromInfos(newTransition, oldRouteInfos);\n this.toInfos(newTransition, newState.routeInfos);\n this._lastQueryParams = newState.queryParams;\n }\n\n fromInfos(newTransition, oldRouteInfos) {\n if (newTransition !== undefined && oldRouteInfos.length > 0) {\n let fromInfos = toReadOnlyRouteInfo(oldRouteInfos, Object.assign({}, this._lastQueryParams), true);\n newTransition.from = fromInfos[fromInfos.length - 1] || null;\n }\n }\n\n toInfos(newTransition, newRouteInfos, includeAttributes = false) {\n if (newTransition !== undefined && newRouteInfos.length > 0) {\n let toInfos = toReadOnlyRouteInfo(newRouteInfos, Object.assign({}, newTransition[QUERY_PARAMS_SYMBOL]), includeAttributes);\n newTransition.to = toInfos[toInfos.length - 1] || null;\n }\n }\n\n notifyExistingHandlers(newState, newTransition) {\n let oldRouteInfos = this.state.routeInfos,\n i,\n oldRouteInfoLen,\n oldHandler,\n newRouteInfo;\n oldRouteInfoLen = oldRouteInfos.length;\n\n for (i = 0; i < oldRouteInfoLen; i++) {\n oldHandler = oldRouteInfos[i];\n newRouteInfo = newState.routeInfos[i];\n\n if (!newRouteInfo || oldHandler.name !== newRouteInfo.name) {\n break;\n }\n\n if (!newRouteInfo.isResolved) {}\n }\n\n this.triggerEvent(oldRouteInfos, true, 'willTransition', [newTransition]);\n this.routeWillChange(newTransition);\n this.willTransition(oldRouteInfos, newState.routeInfos, newTransition);\n }\n /**\n Clears the current and target route routes and triggers exit\n on each of them starting at the leaf and traversing up through\n its ancestors.\n */\n\n\n reset() {\n if (this.state) {\n forEach(this.state.routeInfos.slice().reverse(), function (routeInfo) {\n let route = routeInfo.route;\n\n if (route !== undefined) {\n if (route.exit !== undefined) {\n route.exit();\n }\n }\n\n return true;\n });\n }\n\n this.oldState = undefined;\n this.state = new TransitionState();\n this.currentRouteInfos = undefined;\n }\n /**\n let handler = routeInfo.handler;\n The entry point for handling a change to the URL (usually\n via the back and forward button).\n Returns an Array of handlers and the parameters associated\n with those parameters.\n @param {String} url a URL to process\n @return {Array} an Array of `[handler, parameter]` tuples\n */\n\n\n handleURL(url) {\n // Perform a URL-based transition, but don't change\n // the URL afterward, since it already happened.\n if (url.charAt(0) !== '/') {\n url = '/' + url;\n }\n\n return this.doTransition(url).method(null);\n }\n /**\n Transition into the specified named route.\n If necessary, trigger the exit callback on any routes\n that are no longer represented by the target route.\n @param {String} name the name of the route\n */\n\n\n transitionTo(name, ...contexts) {\n if (typeof name === 'object') {\n contexts.push(name);\n return this.doTransition(undefined, contexts, false);\n }\n\n return this.doTransition(name, contexts);\n }\n\n intermediateTransitionTo(name, ...args) {\n return this.doTransition(name, args, true);\n }\n\n refresh(pivotRoute) {\n let previousTransition = this.activeTransition;\n let state = previousTransition ? previousTransition[STATE_SYMBOL] : this.state;\n let routeInfos = state.routeInfos;\n\n if (pivotRoute === undefined) {\n pivotRoute = routeInfos[0].route;\n }\n\n log(this, 'Starting a refresh transition');\n let name = routeInfos[routeInfos.length - 1].name;\n let intent = new NamedTransitionIntent(this, name, pivotRoute, [], this._changedQueryParams || state.queryParams);\n let newTransition = this.transitionByIntent(intent, false); // if the previous transition is a replace transition, that needs to be preserved\n\n if (previousTransition && previousTransition.urlMethod === 'replace') {\n newTransition.method(previousTransition.urlMethod);\n }\n\n return newTransition;\n }\n /**\n Identical to `transitionTo` except that the current URL will be replaced\n if possible.\n This method is intended primarily for use with `replaceState`.\n @param {String} name the name of the route\n */\n\n\n replaceWith(name) {\n return this.doTransition(name).method('replace');\n }\n /**\n Take a named route and context objects and generate a\n URL.\n @param {String} name the name of the route to generate\n a URL for\n @param {...Object} objects a list of objects to serialize\n @return {String} a URL\n */\n\n\n generate(routeName, ...args) {\n let partitionedArgs = extractQueryParams(args),\n suppliedParams = partitionedArgs[0],\n queryParams = partitionedArgs[1]; // Construct a TransitionIntent with the provided params\n // and apply it to the present state of the router.\n\n let intent = new NamedTransitionIntent(this, routeName, undefined, suppliedParams);\n let state = intent.applyToState(this.state, false);\n let params = {};\n\n for (let i = 0, len = state.routeInfos.length; i < len; ++i) {\n let routeInfo = state.routeInfos[i];\n let routeParams = routeInfo.serialize();\n merge(params, routeParams);\n }\n\n params.queryParams = queryParams;\n return this.recognizer.generate(routeName, params);\n }\n\n applyIntent(routeName, contexts) {\n let intent = new NamedTransitionIntent(this, routeName, undefined, contexts);\n let state = this.activeTransition && this.activeTransition[STATE_SYMBOL] || this.state;\n return intent.applyToState(state, false);\n }\n\n isActiveIntent(routeName, contexts, queryParams, _state) {\n let state = _state || this.state,\n targetRouteInfos = state.routeInfos,\n routeInfo,\n len;\n\n if (!targetRouteInfos.length) {\n return false;\n }\n\n let targetHandler = targetRouteInfos[targetRouteInfos.length - 1].name;\n let recogHandlers = this.recognizer.handlersFor(targetHandler);\n let index = 0;\n\n for (len = recogHandlers.length; index < len; ++index) {\n routeInfo = targetRouteInfos[index];\n\n if (routeInfo.name === routeName) {\n break;\n }\n }\n\n if (index === recogHandlers.length) {\n // The provided route name isn't even in the route hierarchy.\n return false;\n }\n\n let testState = new TransitionState();\n testState.routeInfos = targetRouteInfos.slice(0, index + 1);\n recogHandlers = recogHandlers.slice(0, index + 1);\n let intent = new NamedTransitionIntent(this, targetHandler, undefined, contexts);\n let newState = intent.applyToHandlers(testState, recogHandlers, targetHandler, true, true);\n let routesEqual = routeInfosEqual(newState.routeInfos, testState.routeInfos);\n\n if (!queryParams || !routesEqual) {\n return routesEqual;\n } // Get a hash of QPs that will still be active on new route\n\n\n let activeQPsOnNewHandler = {};\n merge(activeQPsOnNewHandler, queryParams);\n let activeQueryParams = state.queryParams;\n\n for (let key in activeQueryParams) {\n if (activeQueryParams.hasOwnProperty(key) && activeQPsOnNewHandler.hasOwnProperty(key)) {\n activeQPsOnNewHandler[key] = activeQueryParams[key];\n }\n }\n\n return routesEqual && !getChangelist(activeQPsOnNewHandler, queryParams);\n }\n\n isActive(routeName, ...args) {\n let partitionedArgs = extractQueryParams(args);\n return this.isActiveIntent(routeName, partitionedArgs[0], partitionedArgs[1]);\n }\n\n trigger(name, ...args) {\n this.triggerEvent(this.currentRouteInfos, false, name, args);\n }\n\n }\n\n function routeInfosEqual(routeInfos, otherRouteInfos) {\n if (routeInfos.length !== otherRouteInfos.length) {\n return false;\n }\n\n for (let i = 0, len = routeInfos.length; i < len; ++i) {\n if (routeInfos[i] !== otherRouteInfos[i]) {\n return false;\n }\n }\n\n return true;\n }\n\n function routeInfosSameExceptQueryParams(routeInfos, otherRouteInfos) {\n if (routeInfos.length !== otherRouteInfos.length) {\n return false;\n }\n\n for (let i = 0, len = routeInfos.length; i < len; ++i) {\n if (routeInfos[i].name !== otherRouteInfos[i].name) {\n return false;\n }\n\n if (!paramsEqual(routeInfos[i].params, otherRouteInfos[i].params)) {\n return false;\n }\n }\n\n return true;\n }\n\n function paramsEqual(params, otherParams) {\n if (!params && !otherParams) {\n return true;\n } else if (!params && !!otherParams || !!params && !otherParams) {\n // one is falsy but other is not;\n return false;\n }\n\n let keys = Object.keys(params);\n let otherKeys = Object.keys(otherParams);\n\n if (keys.length !== otherKeys.length) {\n return false;\n }\n\n for (let i = 0, len = keys.length; i < len; ++i) {\n let key = keys[i];\n\n if (params[key] !== otherParams[key]) {\n return false;\n }\n }\n\n return true;\n }\n\n var _default = Router;\n _exports.default = _default;\n});","enifed(\"rsvp\", [\"exports\", \"node-module\"], function (_exports, _nodeModule) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.asap = asap;\n _exports.all = all$1;\n _exports.allSettled = allSettled;\n _exports.race = race$1;\n _exports.hash = hash;\n _exports.hashSettled = hashSettled;\n _exports.rethrow = rethrow;\n _exports.defer = defer;\n _exports.denodeify = denodeify;\n _exports.configure = configure;\n _exports.on = on;\n _exports.off = off;\n _exports.resolve = resolve$2;\n _exports.reject = reject$2;\n _exports.map = map;\n _exports.filter = filter;\n _exports.async = _exports.EventTarget = _exports.Promise = _exports.cast = _exports.default = void 0;\n\n function callbacksFor(object) {\n let callbacks = object._promiseCallbacks;\n\n if (!callbacks) {\n callbacks = object._promiseCallbacks = {};\n }\n\n return callbacks;\n }\n /**\n @class EventTarget\n @for rsvp\n @public\n */\n\n\n var EventTarget = {\n /**\n `EventTarget.mixin` extends an object with EventTarget methods. For\n Example:\n ```javascript\n import EventTarget from 'rsvp';\n let object = {};\n EventTarget.mixin(object);\n object.on('finished', function(event) {\n // handle event\n });\n object.trigger('finished', { detail: value });\n ```\n `EventTarget.mixin` also works with prototypes:\n ```javascript\n import EventTarget from 'rsvp';\n let Person = function() {};\n EventTarget.mixin(Person.prototype);\n let yehuda = new Person();\n let tom = new Person();\n yehuda.on('poke', function(event) {\n console.log('Yehuda says OW');\n });\n tom.on('poke', function(event) {\n console.log('Tom says OW');\n });\n yehuda.trigger('poke');\n tom.trigger('poke');\n ```\n @method mixin\n @for rsvp\n @private\n @param {Object} object object to extend with EventTarget methods\n */\n mixin(object) {\n object.on = this.on;\n object.off = this.off;\n object.trigger = this.trigger;\n object._promiseCallbacks = undefined;\n return object;\n },\n\n /**\n Registers a callback to be executed when `eventName` is triggered\n ```javascript\n object.on('event', function(eventInfo){\n // handle the event\n });\n object.trigger('event');\n ```\n @method on\n @for EventTarget\n @private\n @param {String} eventName name of the event to listen for\n @param {Function} callback function to be called when the event is triggered.\n */\n on(eventName, callback) {\n if (typeof callback !== 'function') {\n throw new TypeError('Callback must be a function');\n }\n\n let allCallbacks = callbacksFor(this);\n let callbacks = allCallbacks[eventName];\n\n if (!callbacks) {\n callbacks = allCallbacks[eventName] = [];\n }\n\n if (callbacks.indexOf(callback) === -1) {\n callbacks.push(callback);\n }\n },\n\n /**\n You can use `off` to stop firing a particular callback for an event:\n ```javascript\n function doStuff() { // do stuff! }\n object.on('stuff', doStuff);\n object.trigger('stuff'); // doStuff will be called\n // Unregister ONLY the doStuff callback\n object.off('stuff', doStuff);\n object.trigger('stuff'); // doStuff will NOT be called\n ```\n If you don't pass a `callback` argument to `off`, ALL callbacks for the\n event will not be executed when the event fires. For example:\n ```javascript\n let callback1 = function(){};\n let callback2 = function(){};\n object.on('stuff', callback1);\n object.on('stuff', callback2);\n object.trigger('stuff'); // callback1 and callback2 will be executed.\n object.off('stuff');\n object.trigger('stuff'); // callback1 and callback2 will not be executed!\n ```\n @method off\n @for rsvp\n @private\n @param {String} eventName event to stop listening to\n @param {Function} callback optional argument. If given, only the function\n given will be removed from the event's callback queue. If no `callback`\n argument is given, all callbacks will be removed from the event's callback\n queue.\n */\n off(eventName, callback) {\n let allCallbacks = callbacksFor(this);\n\n if (!callback) {\n allCallbacks[eventName] = [];\n return;\n }\n\n let callbacks = allCallbacks[eventName];\n let index = callbacks.indexOf(callback);\n\n if (index !== -1) {\n callbacks.splice(index, 1);\n }\n },\n\n /**\n Use `trigger` to fire custom events. For example:\n ```javascript\n object.on('foo', function(){\n console.log('foo event happened!');\n });\n object.trigger('foo');\n // 'foo event happened!' logged to the console\n ```\n You can also pass a value as a second argument to `trigger` that will be\n passed as an argument to all event listeners for the event:\n ```javascript\n object.on('foo', function(value){\n console.log(value.name);\n });\n object.trigger('foo', { name: 'bar' });\n // 'bar' logged to the console\n ```\n @method trigger\n @for rsvp\n @private\n @param {String} eventName name of the event to be triggered\n @param {*} options optional value to be passed to any event handlers for\n the given `eventName`\n */\n trigger(eventName, options, label) {\n let allCallbacks = callbacksFor(this);\n let callbacks = allCallbacks[eventName];\n\n if (callbacks) {\n // Don't cache the callbacks.length since it may grow\n let callback;\n\n for (let i = 0; i < callbacks.length; i++) {\n callback = callbacks[i];\n callback(options, label);\n }\n }\n }\n\n };\n _exports.EventTarget = EventTarget;\n const config = {\n instrument: false\n };\n EventTarget['mixin'](config);\n\n function configure(name, value) {\n if (arguments.length === 2) {\n config[name] = value;\n } else {\n return config[name];\n }\n }\n\n const queue = [];\n\n function scheduleFlush() {\n setTimeout(() => {\n for (let i = 0; i < queue.length; i++) {\n let entry = queue[i];\n let payload = entry.payload;\n payload.guid = payload.key + payload.id;\n payload.childGuid = payload.key + payload.childId;\n\n if (payload.error) {\n payload.stack = payload.error.stack;\n }\n\n config['trigger'](entry.name, entry.payload);\n }\n\n queue.length = 0;\n }, 50);\n }\n\n function instrument(eventName, promise, child) {\n if (1 === queue.push({\n name: eventName,\n payload: {\n key: promise._guidKey,\n id: promise._id,\n eventName: eventName,\n detail: promise._result,\n childId: child && child._id,\n label: promise._label,\n timeStamp: Date.now(),\n error: config[\"instrument-with-stack\"] ? new Error(promise._label) : null\n }\n })) {\n scheduleFlush();\n }\n }\n /**\n `Promise.resolve` returns a promise that will become resolved with the\n passed `value`. It is shorthand for the following:\n \n ```javascript\n import Promise from 'rsvp';\n \n let promise = new Promise(function(resolve, reject){\n resolve(1);\n });\n \n promise.then(function(value){\n // value === 1\n });\n ```\n \n Instead of writing the above, your code now simply becomes the following:\n \n ```javascript\n import Promise from 'rsvp';\n \n let promise = RSVP.Promise.resolve(1);\n \n promise.then(function(value){\n // value === 1\n });\n ```\n \n @method resolve\n @for Promise\n @static\n @param {*} object value that the returned promise will be resolved with\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become fulfilled with the given\n `value`\n */\n\n\n function resolve$$1(object, label) {\n /*jshint validthis:true */\n let Constructor = this;\n\n if (object && typeof object === 'object' && object.constructor === Constructor) {\n return object;\n }\n\n let promise = new Constructor(noop, label);\n resolve$1(promise, object);\n return promise;\n }\n\n function withOwnPromise() {\n return new TypeError('A promises callback cannot return that same promise.');\n }\n\n function objectOrFunction(x) {\n let type = typeof x;\n return x !== null && (type === 'object' || type === 'function');\n }\n\n function noop() {}\n\n const PENDING = void 0;\n const FULFILLED = 1;\n const REJECTED = 2;\n const TRY_CATCH_ERROR = {\n error: null\n };\n\n function getThen(promise) {\n try {\n return promise.then;\n } catch (error) {\n TRY_CATCH_ERROR.error = error;\n return TRY_CATCH_ERROR;\n }\n }\n\n let tryCatchCallback;\n\n function tryCatcher() {\n try {\n let target = tryCatchCallback;\n tryCatchCallback = null;\n return target.apply(this, arguments);\n } catch (e) {\n TRY_CATCH_ERROR.error = e;\n return TRY_CATCH_ERROR;\n }\n }\n\n function tryCatch(fn) {\n tryCatchCallback = fn;\n return tryCatcher;\n }\n\n function handleForeignThenable(promise, thenable, then$$1) {\n config.async(promise => {\n let sealed = false;\n let result = tryCatch(then$$1).call(thenable, value => {\n if (sealed) {\n return;\n }\n\n sealed = true;\n\n if (thenable === value) {\n fulfill(promise, value);\n } else {\n resolve$1(promise, value);\n }\n }, reason => {\n if (sealed) {\n return;\n }\n\n sealed = true;\n reject(promise, reason);\n }, 'Settle: ' + (promise._label || ' unknown promise'));\n\n if (!sealed && result === TRY_CATCH_ERROR) {\n sealed = true;\n let error = TRY_CATCH_ERROR.error;\n TRY_CATCH_ERROR.error = null;\n reject(promise, error);\n }\n }, promise);\n }\n\n function handleOwnThenable(promise, thenable) {\n if (thenable._state === FULFILLED) {\n fulfill(promise, thenable._result);\n } else if (thenable._state === REJECTED) {\n thenable._onError = null;\n reject(promise, thenable._result);\n } else {\n subscribe(thenable, undefined, value => {\n if (thenable === value) {\n fulfill(promise, value);\n } else {\n resolve$1(promise, value);\n }\n }, reason => reject(promise, reason));\n }\n }\n\n function handleMaybeThenable(promise, maybeThenable, then$$1) {\n let isOwnThenable = maybeThenable.constructor === promise.constructor && then$$1 === then && promise.constructor.resolve === resolve$$1;\n\n if (isOwnThenable) {\n handleOwnThenable(promise, maybeThenable);\n } else if (then$$1 === TRY_CATCH_ERROR) {\n let error = TRY_CATCH_ERROR.error;\n TRY_CATCH_ERROR.error = null;\n reject(promise, error);\n } else if (typeof then$$1 === 'function') {\n handleForeignThenable(promise, maybeThenable, then$$1);\n } else {\n fulfill(promise, maybeThenable);\n }\n }\n\n function resolve$1(promise, value) {\n if (promise === value) {\n fulfill(promise, value);\n } else if (objectOrFunction(value)) {\n handleMaybeThenable(promise, value, getThen(value));\n } else {\n fulfill(promise, value);\n }\n }\n\n function publishRejection(promise) {\n if (promise._onError) {\n promise._onError(promise._result);\n }\n\n publish(promise);\n }\n\n function fulfill(promise, value) {\n if (promise._state !== PENDING) {\n return;\n }\n\n promise._result = value;\n promise._state = FULFILLED;\n\n if (promise._subscribers.length === 0) {\n if (config.instrument) {\n instrument('fulfilled', promise);\n }\n } else {\n config.async(publish, promise);\n }\n }\n\n function reject(promise, reason) {\n if (promise._state !== PENDING) {\n return;\n }\n\n promise._state = REJECTED;\n promise._result = reason;\n config.async(publishRejection, promise);\n }\n\n function subscribe(parent, child, onFulfillment, onRejection) {\n let subscribers = parent._subscribers;\n let length = subscribers.length;\n parent._onError = null;\n subscribers[length] = child;\n subscribers[length + FULFILLED] = onFulfillment;\n subscribers[length + REJECTED] = onRejection;\n\n if (length === 0 && parent._state) {\n config.async(publish, parent);\n }\n }\n\n function publish(promise) {\n let subscribers = promise._subscribers;\n let settled = promise._state;\n\n if (config.instrument) {\n instrument(settled === FULFILLED ? 'fulfilled' : 'rejected', promise);\n }\n\n if (subscribers.length === 0) {\n return;\n }\n\n let child,\n callback,\n result = promise._result;\n\n for (let i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n if (child) {\n invokeCallback(settled, child, callback, result);\n } else {\n callback(result);\n }\n }\n\n promise._subscribers.length = 0;\n }\n\n function invokeCallback(state, promise, callback, result) {\n let hasCallback = typeof callback === 'function';\n let value;\n\n if (hasCallback) {\n value = tryCatch(callback)(result);\n } else {\n value = result;\n }\n\n if (promise._state !== PENDING) {// noop\n } else if (value === promise) {\n reject(promise, withOwnPromise());\n } else if (value === TRY_CATCH_ERROR) {\n let error = TRY_CATCH_ERROR.error;\n TRY_CATCH_ERROR.error = null; // release\n\n reject(promise, error);\n } else if (hasCallback) {\n resolve$1(promise, value);\n } else if (state === FULFILLED) {\n fulfill(promise, value);\n } else if (state === REJECTED) {\n reject(promise, value);\n }\n }\n\n function initializePromise(promise, resolver) {\n let resolved = false;\n\n try {\n resolver(value => {\n if (resolved) {\n return;\n }\n\n resolved = true;\n resolve$1(promise, value);\n }, reason => {\n if (resolved) {\n return;\n }\n\n resolved = true;\n reject(promise, reason);\n });\n } catch (e) {\n reject(promise, e);\n }\n }\n\n function then(onFulfillment, onRejection, label) {\n let parent = this;\n let state = parent._state;\n\n if (state === FULFILLED && !onFulfillment || state === REJECTED && !onRejection) {\n config.instrument && instrument('chained', parent, parent);\n return parent;\n }\n\n parent._onError = null;\n let child = new parent.constructor(noop, label);\n let result = parent._result;\n config.instrument && instrument('chained', parent, child);\n\n if (state === PENDING) {\n subscribe(parent, child, onFulfillment, onRejection);\n } else {\n let callback = state === FULFILLED ? onFulfillment : onRejection;\n config.async(() => invokeCallback(state, child, callback, result));\n }\n\n return child;\n }\n\n class Enumerator {\n constructor(Constructor, input, abortOnReject, label) {\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(noop, label);\n this._abortOnReject = abortOnReject;\n this._isUsingOwnPromise = Constructor === Promise;\n this._isUsingOwnResolve = Constructor.resolve === resolve$$1;\n\n this._init(...arguments);\n }\n\n _init(Constructor, input) {\n let len = input.length || 0;\n this.length = len;\n this._remaining = len;\n this._result = new Array(len);\n\n this._enumerate(input);\n }\n\n _enumerate(input) {\n let length = this.length;\n let promise = this.promise;\n\n for (let i = 0; promise._state === PENDING && i < length; i++) {\n this._eachEntry(input[i], i, true);\n }\n\n this._checkFullfillment();\n }\n\n _checkFullfillment() {\n if (this._remaining === 0) {\n let result = this._result;\n fulfill(this.promise, result);\n this._result = null;\n }\n }\n\n _settleMaybeThenable(entry, i, firstPass) {\n let c = this._instanceConstructor;\n\n if (this._isUsingOwnResolve) {\n let then$$1 = getThen(entry);\n\n if (then$$1 === then && entry._state !== PENDING) {\n entry._onError = null;\n\n this._settledAt(entry._state, i, entry._result, firstPass);\n } else if (typeof then$$1 !== 'function') {\n this._settledAt(FULFILLED, i, entry, firstPass);\n } else if (this._isUsingOwnPromise) {\n let promise = new c(noop);\n handleMaybeThenable(promise, entry, then$$1);\n\n this._willSettleAt(promise, i, firstPass);\n } else {\n this._willSettleAt(new c(resolve => resolve(entry)), i, firstPass);\n }\n } else {\n this._willSettleAt(c.resolve(entry), i, firstPass);\n }\n }\n\n _eachEntry(entry, i, firstPass) {\n if (entry !== null && typeof entry === 'object') {\n this._settleMaybeThenable(entry, i, firstPass);\n } else {\n this._setResultAt(FULFILLED, i, entry, firstPass);\n }\n }\n\n _settledAt(state, i, value, firstPass) {\n let promise = this.promise;\n\n if (promise._state === PENDING) {\n if (this._abortOnReject && state === REJECTED) {\n reject(promise, value);\n } else {\n this._setResultAt(state, i, value, firstPass);\n\n this._checkFullfillment();\n }\n }\n }\n\n _setResultAt(state, i, value, firstPass) {\n this._remaining--;\n this._result[i] = value;\n }\n\n _willSettleAt(promise, i, firstPass) {\n subscribe(promise, undefined, value => this._settledAt(FULFILLED, i, value, firstPass), reason => this._settledAt(REJECTED, i, reason, firstPass));\n }\n\n }\n\n function setSettledResult(state, i, value) {\n this._remaining--;\n\n if (state === FULFILLED) {\n this._result[i] = {\n state: 'fulfilled',\n value: value\n };\n } else {\n this._result[i] = {\n state: 'rejected',\n reason: value\n };\n }\n }\n /**\n `Promise.all` accepts an array of promises, and returns a new promise which\n is fulfilled with an array of fulfillment values for the passed promises, or\n rejected with the reason of the first passed promise to be rejected. It casts all\n elements of the passed iterable to promises as it runs this algorithm.\n \n Example:\n \n ```javascript\n import Promise, { resolve } from 'rsvp';\n \n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n let promises = [ promise1, promise2, promise3 ];\n \n Promise.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n \n If any of the `promises` given to `RSVP.all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n \n Example:\n \n ```javascript\n import Promise, { resolve, reject } from 'rsvp';\n \n let promise1 = resolve(1);\n let promise2 = reject(new Error(\"2\"));\n let promise3 = reject(new Error(\"3\"));\n let promises = [ promise1, promise2, promise3 ];\n \n Promise.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n \n @method all\n @for Promise\n @param {Array} entries array of promises\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n @static\n */\n\n\n function all(entries, label) {\n if (!Array.isArray(entries)) {\n return this.reject(new TypeError(\"Promise.all must be called with an array\"), label);\n }\n\n return new Enumerator(this, entries, true\n /* abort on reject */\n , label).promise;\n }\n /**\n `Promise.race` returns a new promise which is settled in the same way as the\n first passed promise to settle.\n \n Example:\n \n ```javascript\n import Promise from 'rsvp';\n \n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n \n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 2');\n }, 100);\n });\n \n Promise.race([promise1, promise2]).then(function(result){\n // result === 'promise 2' because it was resolved before promise1\n // was resolved.\n });\n ```\n \n `Promise.race` is deterministic in that only the state of the first\n settled promise matters. For example, even if other promises given to the\n `promises` array argument are resolved, but the first settled promise has\n become rejected before the other promises became fulfilled, the returned\n promise will become rejected:\n \n ```javascript\n import Promise from 'rsvp';\n \n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n \n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error('promise 2'));\n }, 100);\n });\n \n Promise.race([promise1, promise2]).then(function(result){\n // Code here never runs\n }, function(reason){\n // reason.message === 'promise 2' because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n \n An example real-world use case is implementing timeouts:\n \n ```javascript\n import Promise from 'rsvp';\n \n Promise.race([ajax('foo.json'), timeout(5000)])\n ```\n \n @method race\n @for Promise\n @static\n @param {Array} entries array of promises to observe\n @param {String} label optional string for describing the promise returned.\n Useful for tooling.\n @return {Promise} a promise which settles in the same way as the first passed\n promise to settle.\n */\n\n\n function race(entries, label) {\n /*jshint validthis:true */\n let Constructor = this;\n let promise = new Constructor(noop, label);\n\n if (!Array.isArray(entries)) {\n reject(promise, new TypeError('Promise.race must be called with an array'));\n return promise;\n }\n\n for (let i = 0; promise._state === PENDING && i < entries.length; i++) {\n subscribe(Constructor.resolve(entries[i]), undefined, value => resolve$1(promise, value), reason => reject(promise, reason));\n }\n\n return promise;\n }\n /**\n `Promise.reject` returns a promise rejected with the passed `reason`.\n It is shorthand for the following:\n \n ```javascript\n import Promise from 'rsvp';\n \n let promise = new Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n \n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n \n Instead of writing the above, your code now simply becomes the following:\n \n ```javascript\n import Promise from 'rsvp';\n \n let promise = Promise.reject(new Error('WHOOPS'));\n \n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n \n @method reject\n @for Promise\n @static\n @param {*} reason value that the returned promise will be rejected with.\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise rejected with the given `reason`.\n */\n\n\n function reject$1(reason, label) {\n /*jshint validthis:true */\n let Constructor = this;\n let promise = new Constructor(noop, label);\n reject(promise, reason);\n return promise;\n }\n\n const guidKey = 'rsvp_' + Date.now() + '-';\n let counter = 0;\n\n function needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n\n function needsNew() {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n /**\n Promise objects represent the eventual result of an asynchronous operation. The\n primary way of interacting with a promise is through its `then` method, which\n registers callbacks to receive either a promise’s eventual value or the reason\n why the promise cannot be fulfilled.\n \n Terminology\n -----------\n \n - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n - `thenable` is an object or function that defines a `then` method.\n - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n - `exception` is a value that is thrown using the throw statement.\n - `reason` is a value that indicates why a promise was rejected.\n - `settled` the final resting state of a promise, fulfilled or rejected.\n \n A promise can be in one of three states: pending, fulfilled, or rejected.\n \n Promises that are fulfilled have a fulfillment value and are in the fulfilled\n state. Promises that are rejected have a rejection reason and are in the\n rejected state. A fulfillment value is never a thenable.\n \n Promises can also be said to *resolve* a value. If this value is also a\n promise, then the original promise's settled state will match the value's\n settled state. So a promise that *resolves* a promise that rejects will\n itself reject, and a promise that *resolves* a promise that fulfills will\n itself fulfill.\n \n \n Basic Usage:\n ------------\n \n ```js\n let promise = new Promise(function(resolve, reject) {\n // on success\n resolve(value);\n \n // on failure\n reject(reason);\n });\n \n promise.then(function(value) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n \n Advanced Usage:\n ---------------\n \n Promises shine when abstracting away asynchronous interactions such as\n `XMLHttpRequest`s.\n \n ```js\n function getJSON(url) {\n return new Promise(function(resolve, reject){\n let xhr = new XMLHttpRequest();\n \n xhr.open('GET', url);\n xhr.onreadystatechange = handler;\n xhr.responseType = 'json';\n xhr.setRequestHeader('Accept', 'application/json');\n xhr.send();\n \n function handler() {\n if (this.readyState === this.DONE) {\n if (this.status === 200) {\n resolve(this.response);\n } else {\n reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n }\n }\n };\n });\n }\n \n getJSON('/posts.json').then(function(json) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n \n Unlike callbacks, promises are great composable primitives.\n \n ```js\n Promise.all([\n getJSON('/posts'),\n getJSON('/comments')\n ]).then(function(values){\n values[0] // => postsJSON\n values[1] // => commentsJSON\n \n return values;\n });\n ```\n \n @class Promise\n @public\n @param {function} resolver\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @constructor\n */\n\n\n class Promise {\n constructor(resolver, label) {\n this._id = counter++;\n this._label = label;\n this._state = undefined;\n this._result = undefined;\n this._subscribers = [];\n config.instrument && instrument('created', this);\n\n if (noop !== resolver) {\n typeof resolver !== 'function' && needsResolver();\n this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n }\n }\n\n _onError(reason) {\n config.after(() => {\n if (this._onError) {\n config.trigger('error', reason, this._label);\n }\n });\n }\n /**\n `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n as the catch block of a try/catch statement.\n \n ```js\n function findAuthor(){\n throw new Error('couldn\\'t find that author');\n }\n \n // synchronous\n try {\n findAuthor();\n } catch(reason) {\n // something went wrong\n }\n \n // async with promises\n findAuthor().catch(function(reason){\n // something went wrong\n });\n ```\n \n @method catch\n @param {Function} onRejection\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n */\n\n\n catch(onRejection, label) {\n return this.then(undefined, onRejection, label);\n }\n /**\n `finally` will be invoked regardless of the promise's fate just as native\n try/catch/finally behaves\n \n Synchronous example:\n \n ```js\n findAuthor() {\n if (Math.random() > 0.5) {\n throw new Error();\n }\n return new Author();\n }\n \n try {\n return findAuthor(); // succeed or fail\n } catch(error) {\n return findOtherAuthor();\n } finally {\n // always runs\n // doesn't affect the return value\n }\n ```\n \n Asynchronous example:\n \n ```js\n findAuthor().catch(function(reason){\n return findOtherAuthor();\n }).finally(function(){\n // author was either found, or not\n });\n ```\n \n @method finally\n @param {Function} callback\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n */\n\n\n finally(callback, label) {\n let promise = this;\n let constructor = promise.constructor;\n\n if (typeof callback === 'function') {\n return promise.then(value => constructor.resolve(callback()).then(() => value), reason => constructor.resolve(callback()).then(() => {\n throw reason;\n }));\n }\n\n return promise.then(callback, callback);\n }\n\n }\n\n _exports.Promise = Promise;\n Promise.cast = resolve$$1; // deprecated\n\n Promise.all = all;\n Promise.race = race;\n Promise.resolve = resolve$$1;\n Promise.reject = reject$1;\n Promise.prototype._guidKey = guidKey;\n /**\n The primary way of interacting with a promise is through its `then` method,\n which registers callbacks to receive either a promise's eventual value or the\n reason why the promise cannot be fulfilled.\n \n ```js\n findUser().then(function(user){\n // user is available\n }, function(reason){\n // user is unavailable, and you are given the reason why\n });\n ```\n \n Chaining\n --------\n \n The return value of `then` is itself a promise. This second, 'downstream'\n promise is resolved with the return value of the first promise's fulfillment\n or rejection handler, or rejected if the handler throws an exception.\n \n ```js\n findUser().then(function (user) {\n return user.name;\n }, function (reason) {\n return 'default name';\n }).then(function (userName) {\n // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n // will be `'default name'`\n });\n \n findUser().then(function (user) {\n throw new Error('Found user, but still unhappy');\n }, function (reason) {\n throw new Error('`findUser` rejected and we\\'re unhappy');\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n // If `findUser` rejected, `reason` will be '`findUser` rejected and we\\'re unhappy'.\n });\n ```\n If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n \n ```js\n findUser().then(function (user) {\n throw new PedagogicalException('Upstream error');\n }).then(function (value) {\n // never reached\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // The `PedgagocialException` is propagated all the way down to here\n });\n ```\n \n Assimilation\n ------------\n \n Sometimes the value you want to propagate to a downstream promise can only be\n retrieved asynchronously. This can be achieved by returning a promise in the\n fulfillment or rejection handler. The downstream promise will then be pending\n until the returned promise is settled. This is called *assimilation*.\n \n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // The user's comments are now available\n });\n ```\n \n If the assimliated promise rejects, then the downstream promise will also reject.\n \n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // If `findCommentsByAuthor` fulfills, we'll have the value here\n }, function (reason) {\n // If `findCommentsByAuthor` rejects, we'll have the reason here\n });\n ```\n \n Simple Example\n --------------\n \n Synchronous Example\n \n ```javascript\n let result;\n \n try {\n result = findResult();\n // success\n } catch(reason) {\n // failure\n }\n ```\n \n Errback Example\n \n ```js\n findResult(function(result, err){\n if (err) {\n // failure\n } else {\n // success\n }\n });\n ```\n \n Promise Example;\n \n ```javascript\n findResult().then(function(result){\n // success\n }, function(reason){\n // failure\n });\n ```\n \n Advanced Example\n --------------\n \n Synchronous Example\n \n ```javascript\n let author, books;\n \n try {\n author = findAuthor();\n books = findBooksByAuthor(author);\n // success\n } catch(reason) {\n // failure\n }\n ```\n \n Errback Example\n \n ```js\n \n function foundBooks(books) {\n \n }\n \n function failure(reason) {\n \n }\n \n findAuthor(function(author, err){\n if (err) {\n failure(err);\n // failure\n } else {\n try {\n findBoooksByAuthor(author, function(books, err) {\n if (err) {\n failure(err);\n } else {\n try {\n foundBooks(books);\n } catch(reason) {\n failure(reason);\n }\n }\n });\n } catch(error) {\n failure(err);\n }\n // success\n }\n });\n ```\n \n Promise Example;\n \n ```javascript\n findAuthor().\n then(findBooksByAuthor).\n then(function(books){\n // found books\n }).catch(function(reason){\n // something went wrong\n });\n ```\n \n @method then\n @param {Function} onFulfillment\n @param {Function} onRejection\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n */\n\n Promise.prototype.then = then;\n\n function makeObject(_, argumentNames) {\n let obj = {};\n let length = _.length;\n let args = new Array(length);\n\n for (let x = 0; x < length; x++) {\n args[x] = _[x];\n }\n\n for (let i = 0; i < argumentNames.length; i++) {\n let name = argumentNames[i];\n obj[name] = args[i + 1];\n }\n\n return obj;\n }\n\n function arrayResult(_) {\n let length = _.length;\n let args = new Array(length - 1);\n\n for (let i = 1; i < length; i++) {\n args[i - 1] = _[i];\n }\n\n return args;\n }\n\n function wrapThenable(then, promise) {\n return {\n then(onFulFillment, onRejection) {\n return then.call(promise, onFulFillment, onRejection);\n }\n\n };\n }\n /**\n `denodeify` takes a 'node-style' function and returns a function that\n will return an `Promise`. You can use `denodeify` in Node.js or the\n browser when you'd prefer to use promises over using callbacks. For example,\n `denodeify` transforms the following:\n \n ```javascript\n let fs = require('fs');\n \n fs.readFile('myfile.txt', function(err, data){\n if (err) return handleError(err);\n handleData(data);\n });\n ```\n \n into:\n \n ```javascript\n let fs = require('fs');\n let readFile = denodeify(fs.readFile);\n \n readFile('myfile.txt').then(handleData, handleError);\n ```\n \n If the node function has multiple success parameters, then `denodeify`\n just returns the first one:\n \n ```javascript\n let request = denodeify(require('request'));\n \n request('http://example.com').then(function(res) {\n // ...\n });\n ```\n \n However, if you need all success parameters, setting `denodeify`'s\n second parameter to `true` causes it to return all success parameters\n as an array:\n \n ```javascript\n let request = denodeify(require('request'), true);\n \n request('http://example.com').then(function(result) {\n // result[0] -> res\n // result[1] -> body\n });\n ```\n \n Or if you pass it an array with names it returns the parameters as a hash:\n \n ```javascript\n let request = denodeify(require('request'), ['res', 'body']);\n \n request('http://example.com').then(function(result) {\n // result.res\n // result.body\n });\n ```\n \n Sometimes you need to retain the `this`:\n \n ```javascript\n let app = require('express')();\n let render = denodeify(app.render.bind(app));\n ```\n \n The denodified function inherits from the original function. It works in all\n environments, except IE 10 and below. Consequently all properties of the original\n function are available to you. However, any properties you change on the\n denodeified function won't be changed on the original function. Example:\n \n ```javascript\n let request = denodeify(require('request')),\n cookieJar = request.jar(); // <- Inheritance is used here\n \n request('http://example.com', {jar: cookieJar}).then(function(res) {\n // cookieJar.cookies holds now the cookies returned by example.com\n });\n ```\n \n Using `denodeify` makes it easier to compose asynchronous operations instead\n of using callbacks. For example, instead of:\n \n ```javascript\n let fs = require('fs');\n \n fs.readFile('myfile.txt', function(err, data){\n if (err) { ... } // Handle error\n fs.writeFile('myfile2.txt', data, function(err){\n if (err) { ... } // Handle error\n console.log('done')\n });\n });\n ```\n \n you can chain the operations together using `then` from the returned promise:\n \n ```javascript\n let fs = require('fs');\n let readFile = denodeify(fs.readFile);\n let writeFile = denodeify(fs.writeFile);\n \n readFile('myfile.txt').then(function(data){\n return writeFile('myfile2.txt', data);\n }).then(function(){\n console.log('done')\n }).catch(function(error){\n // Handle error\n });\n ```\n \n @method denodeify\n @public\n @static\n @for rsvp\n @param {Function} nodeFunc a 'node-style' function that takes a callback as\n its last argument. The callback expects an error to be passed as its first\n argument (if an error occurred, otherwise null), and the value from the\n operation as its second argument ('function(err, value){ }').\n @param {Boolean|Array} [options] An optional paramter that if set\n to `true` causes the promise to fulfill with the callback's success arguments\n as an array. This is useful if the node function has multiple success\n paramters. If you set this paramter to an array with names, the promise will\n fulfill with a hash with these names as keys and the success parameters as\n values.\n @return {Function} a function that wraps `nodeFunc` to return a `Promise`\n */\n\n\n function denodeify(nodeFunc, options) {\n let fn = function () {\n let l = arguments.length;\n let args = new Array(l + 1);\n let promiseInput = false;\n\n for (let i = 0; i < l; ++i) {\n let arg = arguments[i];\n\n if (!promiseInput) {\n // TODO: clean this up\n promiseInput = needsPromiseInput(arg);\n\n if (promiseInput === TRY_CATCH_ERROR) {\n let error = TRY_CATCH_ERROR.error;\n TRY_CATCH_ERROR.error = null;\n let p = new Promise(noop);\n reject(p, error);\n return p;\n } else if (promiseInput && promiseInput !== true) {\n arg = wrapThenable(promiseInput, arg);\n }\n }\n\n args[i] = arg;\n }\n\n let promise = new Promise(noop);\n\n args[l] = function (err, val) {\n if (err) {\n reject(promise, err);\n } else if (options === undefined) {\n resolve$1(promise, val);\n } else if (options === true) {\n resolve$1(promise, arrayResult(arguments));\n } else if (Array.isArray(options)) {\n resolve$1(promise, makeObject(arguments, options));\n } else {\n resolve$1(promise, val);\n }\n };\n\n if (promiseInput) {\n return handlePromiseInput(promise, args, nodeFunc, this);\n } else {\n return handleValueInput(promise, args, nodeFunc, this);\n }\n };\n\n fn.__proto__ = nodeFunc;\n return fn;\n }\n\n function handleValueInput(promise, args, nodeFunc, self) {\n let result = tryCatch(nodeFunc).apply(self, args);\n\n if (result === TRY_CATCH_ERROR) {\n let error = TRY_CATCH_ERROR.error;\n TRY_CATCH_ERROR.error = null;\n reject(promise, error);\n }\n\n return promise;\n }\n\n function handlePromiseInput(promise, args, nodeFunc, self) {\n return Promise.all(args).then(args => handleValueInput(promise, args, nodeFunc, self));\n }\n\n function needsPromiseInput(arg) {\n if (arg !== null && typeof arg === 'object') {\n if (arg.constructor === Promise) {\n return true;\n } else {\n return getThen(arg);\n }\n } else {\n return false;\n }\n }\n /**\n This is a convenient alias for `Promise.all`.\n \n @method all\n @public\n @static\n @for rsvp\n @param {Array} array Array of promises.\n @param {String} label An optional label. This is useful\n for tooling.\n */\n\n\n function all$1(array, label) {\n return Promise.all(array, label);\n }\n /**\n @module rsvp\n @public\n **/\n\n\n class AllSettled extends Enumerator {\n constructor(Constructor, entries, label) {\n super(Constructor, entries, false\n /* don't abort on reject */\n , label);\n }\n\n }\n\n AllSettled.prototype._setResultAt = setSettledResult;\n /**\n `RSVP.allSettled` is similar to `RSVP.all`, but instead of implementing\n a fail-fast method, it waits until all the promises have returned and\n shows you all the results. This is useful if you want to handle multiple\n promises' failure states together as a set.\n Returns a promise that is fulfilled when all the given promises have been\n settled. The return promise is fulfilled with an array of the states of\n the promises passed into the `promises` array argument.\n Each state object will either indicate fulfillment or rejection, and\n provide the corresponding value or reason. The states will take one of\n the following formats:\n ```javascript\n { state: 'fulfilled', value: value }\n or\n { state: 'rejected', reason: reason }\n ```\n Example:\n ```javascript\n let promise1 = RSVP.Promise.resolve(1);\n let promise2 = RSVP.Promise.reject(new Error('2'));\n let promise3 = RSVP.Promise.reject(new Error('3'));\n let promises = [ promise1, promise2, promise3 ];\n RSVP.allSettled(promises).then(function(array){\n // array == [\n // { state: 'fulfilled', value: 1 },\n // { state: 'rejected', reason: Error },\n // { state: 'rejected', reason: Error }\n // ]\n // Note that for the second item, reason.message will be '2', and for the\n // third item, reason.message will be '3'.\n }, function(error) {\n // Not run. (This block would only be called if allSettled had failed,\n // for instance if passed an incorrect argument type.)\n });\n ```\n @method allSettled\n @public\n @static\n @for rsvp\n @param {Array} entries\n @param {String} label - optional string that describes the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled with an array of the settled\n states of the constituent promises.\n */\n\n function allSettled(entries, label) {\n if (!Array.isArray(entries)) {\n return Promise.reject(new TypeError(\"Promise.allSettled must be called with an array\"), label);\n }\n\n return new AllSettled(Promise, entries, label).promise;\n }\n /**\n This is a convenient alias for `Promise.race`.\n \n @method race\n @public\n @static\n @for rsvp\n @param {Array} array Array of promises.\n @param {String} label An optional label. This is useful\n for tooling.\n */\n\n\n function race$1(array, label) {\n return Promise.race(array, label);\n }\n\n class PromiseHash extends Enumerator {\n constructor(Constructor, object, abortOnReject = true, label) {\n super(Constructor, object, abortOnReject, label);\n }\n\n _init(Constructor, object) {\n this._result = {};\n\n this._enumerate(object);\n }\n\n _enumerate(input) {\n let keys = Object.keys(input);\n let length = keys.length;\n let promise = this.promise;\n this._remaining = length;\n let key, val;\n\n for (let i = 0; promise._state === PENDING && i < length; i++) {\n key = keys[i];\n val = input[key];\n\n this._eachEntry(val, key, true);\n }\n\n this._checkFullfillment();\n }\n\n }\n /**\n `hash` is similar to `all`, but takes an object instead of an array\n for its `promises` argument.\n \n Returns a promise that is fulfilled when all the given promises have been\n fulfilled, or rejected if any of them become rejected. The returned promise\n is fulfilled with a hash that has the same key names as the `promises` object\n argument. If any of the values in the object are not promises, they will\n simply be copied over to the fulfilled object.\n \n Example:\n \n ```javascript\n let promises = {\n myPromise: resolve(1),\n yourPromise: resolve(2),\n theirPromise: resolve(3),\n notAPromise: 4\n };\n \n hash(promises).then(function(hash){\n // hash here is an object that looks like:\n // {\n // myPromise: 1,\n // yourPromise: 2,\n // theirPromise: 3,\n // notAPromise: 4\n // }\n });\n ```\n \n If any of the `promises` given to `hash` are rejected, the first promise\n that is rejected will be given as the reason to the rejection handler.\n \n Example:\n \n ```javascript\n let promises = {\n myPromise: resolve(1),\n rejectedPromise: reject(new Error('rejectedPromise')),\n anotherRejectedPromise: reject(new Error('anotherRejectedPromise')),\n };\n \n hash(promises).then(function(hash){\n // Code here never runs because there are rejected promises!\n }, function(reason) {\n // reason.message === 'rejectedPromise'\n });\n ```\n \n An important note: `hash` is intended for plain JavaScript objects that\n are just a set of keys and values. `hash` will NOT preserve prototype\n chains.\n \n Example:\n \n ```javascript\n import { hash, resolve } from 'rsvp';\n function MyConstructor(){\n this.example = resolve('Example');\n }\n \n MyConstructor.prototype = {\n protoProperty: resolve('Proto Property')\n };\n \n let myObject = new MyConstructor();\n \n hash(myObject).then(function(hash){\n // protoProperty will not be present, instead you will just have an\n // object that looks like:\n // {\n // example: 'Example'\n // }\n //\n // hash.hasOwnProperty('protoProperty'); // false\n // 'undefined' === typeof hash.protoProperty\n });\n ```\n \n @method hash\n @public\n @static\n @for rsvp\n @param {Object} object\n @param {String} label optional string that describes the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when all properties of `promises`\n have been fulfilled, or rejected if any of them become rejected.\n */\n\n\n function hash(object, label) {\n return Promise.resolve(object, label).then(function (object) {\n if (object === null || typeof object !== 'object') {\n throw new TypeError(\"Promise.hash must be called with an object\");\n }\n\n return new PromiseHash(Promise, object, label).promise;\n });\n }\n\n class HashSettled extends PromiseHash {\n constructor(Constructor, object, label) {\n super(Constructor, object, false, label);\n }\n\n }\n\n HashSettled.prototype._setResultAt = setSettledResult;\n /**\n `hashSettled` is similar to `allSettled`, but takes an object\n instead of an array for its `promises` argument.\n \n Unlike `all` or `hash`, which implement a fail-fast method,\n but like `allSettled`, `hashSettled` waits until all the\n constituent promises have returned and then shows you all the results\n with their states and values/reasons. This is useful if you want to\n handle multiple promises' failure states together as a set.\n \n Returns a promise that is fulfilled when all the given promises have been\n settled, or rejected if the passed parameters are invalid.\n \n The returned promise is fulfilled with a hash that has the same key names as\n the `promises` object argument. If any of the values in the object are not\n promises, they will be copied over to the fulfilled object and marked with state\n 'fulfilled'.\n \n Example:\n \n ```javascript\n import { hashSettled, resolve } from 'rsvp';\n \n let promises = {\n myPromise: resolve(1),\n yourPromise: resolve(2),\n theirPromise: resolve(3),\n notAPromise: 4\n };\n \n hashSettled(promises).then(function(hash){\n // hash here is an object that looks like:\n // {\n // myPromise: { state: 'fulfilled', value: 1 },\n // yourPromise: { state: 'fulfilled', value: 2 },\n // theirPromise: { state: 'fulfilled', value: 3 },\n // notAPromise: { state: 'fulfilled', value: 4 }\n // }\n });\n ```\n \n If any of the `promises` given to `hash` are rejected, the state will\n be set to 'rejected' and the reason for rejection provided.\n \n Example:\n \n ```javascript\n import { hashSettled, reject, resolve } from 'rsvp';\n \n let promises = {\n myPromise: resolve(1),\n rejectedPromise: reject(new Error('rejection')),\n anotherRejectedPromise: reject(new Error('more rejection')),\n };\n \n hashSettled(promises).then(function(hash){\n // hash here is an object that looks like:\n // {\n // myPromise: { state: 'fulfilled', value: 1 },\n // rejectedPromise: { state: 'rejected', reason: Error },\n // anotherRejectedPromise: { state: 'rejected', reason: Error },\n // }\n // Note that for rejectedPromise, reason.message == 'rejection',\n // and for anotherRejectedPromise, reason.message == 'more rejection'.\n });\n ```\n \n An important note: `hashSettled` is intended for plain JavaScript objects that\n are just a set of keys and values. `hashSettled` will NOT preserve prototype\n chains.\n \n Example:\n \n ```javascript\n import Promise, { hashSettled, resolve } from 'rsvp';\n \n function MyConstructor(){\n this.example = resolve('Example');\n }\n \n MyConstructor.prototype = {\n protoProperty: Promise.resolve('Proto Property')\n };\n \n let myObject = new MyConstructor();\n \n hashSettled(myObject).then(function(hash){\n // protoProperty will not be present, instead you will just have an\n // object that looks like:\n // {\n // example: { state: 'fulfilled', value: 'Example' }\n // }\n //\n // hash.hasOwnProperty('protoProperty'); // false\n // 'undefined' === typeof hash.protoProperty\n });\n ```\n \n @method hashSettled\n @public\n @for rsvp\n @param {Object} object\n @param {String} label optional string that describes the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when when all properties of `promises`\n have been settled.\n @static\n */\n\n function hashSettled(object, label) {\n return Promise.resolve(object, label).then(function (object) {\n if (object === null || typeof object !== 'object') {\n throw new TypeError(\"hashSettled must be called with an object\");\n }\n\n return new HashSettled(Promise, object, false, label).promise;\n });\n }\n /**\n `rethrow` will rethrow an error on the next turn of the JavaScript event\n loop in order to aid debugging.\n \n Promises A+ specifies that any exceptions that occur with a promise must be\n caught by the promises implementation and bubbled to the last handler. For\n this reason, it is recommended that you always specify a second rejection\n handler function to `then`. However, `rethrow` will throw the exception\n outside of the promise, so it bubbles up to your console if in the browser,\n or domain/cause uncaught exception in Node. `rethrow` will also throw the\n error again so the error can be handled by the promise per the spec.\n \n ```javascript\n import { rethrow } from 'rsvp';\n \n function throws(){\n throw new Error('Whoops!');\n }\n \n let promise = new Promise(function(resolve, reject){\n throws();\n });\n \n promise.catch(rethrow).then(function(){\n // Code here doesn't run because the promise became rejected due to an\n // error!\n }, function (err){\n // handle the error here\n });\n ```\n \n The 'Whoops' error will be thrown on the next turn of the event loop\n and you can watch for it in your console. You can also handle it using a\n rejection handler given to `.then` or `.catch` on the returned promise.\n \n @method rethrow\n @public\n @static\n @for rsvp\n @param {Error} reason reason the promise became rejected.\n @throws Error\n @static\n */\n\n\n function rethrow(reason) {\n setTimeout(() => {\n throw reason;\n });\n throw reason;\n }\n /**\n `defer` returns an object similar to jQuery's `$.Deferred`.\n `defer` should be used when porting over code reliant on `$.Deferred`'s\n interface. New code should use the `Promise` constructor instead.\n \n The object returned from `defer` is a plain object with three properties:\n \n * promise - an `Promise`.\n * reject - a function that causes the `promise` property on this object to\n become rejected\n * resolve - a function that causes the `promise` property on this object to\n become fulfilled.\n \n Example:\n \n ```javascript\n let deferred = defer();\n \n deferred.resolve(\"Success!\");\n \n deferred.promise.then(function(value){\n // value here is \"Success!\"\n });\n ```\n \n @method defer\n @public\n @static\n @for rsvp\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Object}\n */\n\n\n function defer(label) {\n let deferred = {\n resolve: undefined,\n reject: undefined\n };\n deferred.promise = new Promise((resolve, reject) => {\n deferred.resolve = resolve;\n deferred.reject = reject;\n }, label);\n return deferred;\n }\n\n class MapEnumerator extends Enumerator {\n constructor(Constructor, entries, mapFn, label) {\n super(Constructor, entries, true, label, mapFn);\n }\n\n _init(Constructor, input, bool, label, mapFn) {\n let len = input.length || 0;\n this.length = len;\n this._remaining = len;\n this._result = new Array(len);\n this._mapFn = mapFn;\n\n this._enumerate(input);\n }\n\n _setResultAt(state, i, value, firstPass) {\n if (firstPass) {\n let val = tryCatch(this._mapFn)(value, i);\n\n if (val === TRY_CATCH_ERROR) {\n this._settledAt(REJECTED, i, val.error, false);\n } else {\n this._eachEntry(val, i, false);\n }\n } else {\n this._remaining--;\n this._result[i] = value;\n }\n }\n\n }\n /**\n `map` is similar to JavaScript's native `map` method. `mapFn` is eagerly called\n meaning that as soon as any promise resolves its value will be passed to `mapFn`.\n `map` returns a promise that will become fulfilled with the result of running\n `mapFn` on the values the promises become fulfilled with.\n \n For example:\n \n ```javascript\n import { map, resolve } from 'rsvp';\n \n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n let promises = [ promise1, promise2, promise3 ];\n \n let mapFn = function(item){\n return item + 1;\n };\n \n map(promises, mapFn).then(function(result){\n // result is [ 2, 3, 4 ]\n });\n ```\n \n If any of the `promises` given to `map` are rejected, the first promise\n that is rejected will be given as an argument to the returned promise's\n rejection handler. For example:\n \n ```javascript\n import { map, reject, resolve } from 'rsvp';\n \n let promise1 = resolve(1);\n let promise2 = reject(new Error('2'));\n let promise3 = reject(new Error('3'));\n let promises = [ promise1, promise2, promise3 ];\n \n let mapFn = function(item){\n return item + 1;\n };\n \n map(promises, mapFn).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(reason) {\n // reason.message === '2'\n });\n ```\n \n `map` will also wait if a promise is returned from `mapFn`. For example,\n say you want to get all comments from a set of blog posts, but you need\n the blog posts first because they contain a url to those comments.\n \n ```javscript\n import { map } from 'rsvp';\n \n let mapFn = function(blogPost){\n // getComments does some ajax and returns an Promise that is fulfilled\n // with some comments data\n return getComments(blogPost.comments_url);\n };\n \n // getBlogPosts does some ajax and returns an Promise that is fulfilled\n // with some blog post data\n map(getBlogPosts(), mapFn).then(function(comments){\n // comments is the result of asking the server for the comments\n // of all blog posts returned from getBlogPosts()\n });\n ```\n \n @method map\n @public\n @static\n @for rsvp\n @param {Array} promises\n @param {Function} mapFn function to be called on each fulfilled promise.\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled with the result of calling\n `mapFn` on each fulfilled promise or value when they become fulfilled.\n The promise will be rejected if any of the given `promises` become rejected.\n */\n\n\n function map(promises, mapFn, label) {\n if (typeof mapFn !== 'function') {\n return Promise.reject(new TypeError(\"map expects a function as a second argument\"), label);\n }\n\n return Promise.resolve(promises, label).then(function (promises) {\n if (!Array.isArray(promises)) {\n throw new TypeError(\"map must be called with an array\");\n }\n\n return new MapEnumerator(Promise, promises, mapFn, label).promise;\n });\n }\n /**\n This is a convenient alias for `Promise.resolve`.\n \n @method resolve\n @public\n @static\n @for rsvp\n @param {*} value value that the returned promise will be resolved with\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become fulfilled with the given\n `value`\n */\n\n\n function resolve$2(value, label) {\n return Promise.resolve(value, label);\n }\n /**\n This is a convenient alias for `Promise.reject`.\n \n @method reject\n @public\n @static\n @for rsvp\n @param {*} reason value that the returned promise will be rejected with.\n @param {String} label optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise rejected with the given `reason`.\n */\n\n\n function reject$2(reason, label) {\n return Promise.reject(reason, label);\n }\n\n const EMPTY_OBJECT = {};\n\n class FilterEnumerator extends MapEnumerator {\n _checkFullfillment() {\n if (this._remaining === 0 && this._result !== null) {\n let result = this._result.filter(val => val !== EMPTY_OBJECT);\n\n fulfill(this.promise, result);\n this._result = null;\n }\n }\n\n _setResultAt(state, i, value, firstPass) {\n if (firstPass) {\n this._result[i] = value;\n let val = tryCatch(this._mapFn)(value, i);\n\n if (val === TRY_CATCH_ERROR) {\n this._settledAt(REJECTED, i, val.error, false);\n } else {\n this._eachEntry(val, i, false);\n }\n } else {\n this._remaining--;\n\n if (!value) {\n this._result[i] = EMPTY_OBJECT;\n }\n }\n }\n\n }\n /**\n `filter` is similar to JavaScript's native `filter` method.\n `filterFn` is eagerly called meaning that as soon as any promise\n resolves its value will be passed to `filterFn`. `filter` returns\n a promise that will become fulfilled with the result of running\n `filterFn` on the values the promises become fulfilled with.\n \n For example:\n \n ```javascript\n import { filter, resolve } from 'rsvp';\n \n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n \n let promises = [promise1, promise2, promise3];\n \n let filterFn = function(item){\n return item > 1;\n };\n \n filter(promises, filterFn).then(function(result){\n // result is [ 2, 3 ]\n });\n ```\n \n If any of the `promises` given to `filter` are rejected, the first promise\n that is rejected will be given as an argument to the returned promise's\n rejection handler. For example:\n \n ```javascript\n import { filter, reject, resolve } from 'rsvp';\n \n let promise1 = resolve(1);\n let promise2 = reject(new Error('2'));\n let promise3 = reject(new Error('3'));\n let promises = [ promise1, promise2, promise3 ];\n \n let filterFn = function(item){\n return item > 1;\n };\n \n filter(promises, filterFn).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(reason) {\n // reason.message === '2'\n });\n ```\n \n `filter` will also wait for any promises returned from `filterFn`.\n For instance, you may want to fetch a list of users then return a subset\n of those users based on some asynchronous operation:\n \n ```javascript\n import { filter, resolve } from 'rsvp';\n \n let alice = { name: 'alice' };\n let bob = { name: 'bob' };\n let users = [ alice, bob ];\n \n let promises = users.map(function(user){\n return resolve(user);\n });\n \n let filterFn = function(user){\n // Here, Alice has permissions to create a blog post, but Bob does not.\n return getPrivilegesForUser(user).then(function(privs){\n return privs.can_create_blog_post === true;\n });\n };\n filter(promises, filterFn).then(function(users){\n // true, because the server told us only Alice can create a blog post.\n users.length === 1;\n // false, because Alice is the only user present in `users`\n users[0] === bob;\n });\n ```\n \n @method filter\n @public\n @static\n @for rsvp\n @param {Array} promises\n @param {Function} filterFn - function to be called on each resolved value to\n filter the final results.\n @param {String} label optional string describing the promise. Useful for\n tooling.\n @return {Promise}\n */\n\n\n function filter(promises, filterFn, label) {\n if (typeof filterFn !== 'function') {\n return Promise.reject(new TypeError(\"filter expects function as a second argument\"), label);\n }\n\n return Promise.resolve(promises, label).then(function (promises) {\n if (!Array.isArray(promises)) {\n throw new TypeError(\"filter must be called with an array\");\n }\n\n return new FilterEnumerator(Promise, promises, filterFn, label).promise;\n });\n }\n\n let len = 0;\n let vertxNext;\n\n function asap(callback, arg) {\n queue$1[len] = callback;\n queue$1[len + 1] = arg;\n len += 2;\n\n if (len === 2) {\n // If len is 1, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n scheduleFlush$1();\n }\n }\n\n const browserWindow = typeof window !== 'undefined' ? window : undefined;\n const browserGlobal = browserWindow || {};\n const BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\n const isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; // test for web worker but not in IE10\n\n const isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; // node\n\n function useNextTick() {\n let nextTick = process.nextTick; // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n // setImmediate should be used instead instead\n\n let version = process.versions.node.match(/^(?:(\\d+)\\.)?(?:(\\d+)\\.)?(\\*|\\d+)$/);\n\n if (Array.isArray(version) && version[1] === '0' && version[2] === '10') {\n nextTick = setImmediate;\n }\n\n return () => nextTick(flush);\n } // vertx\n\n\n function useVertxTimer() {\n if (typeof vertxNext !== 'undefined') {\n return function () {\n vertxNext(flush);\n };\n }\n\n return useSetTimeout();\n }\n\n function useMutationObserver() {\n let iterations = 0;\n let observer = new BrowserMutationObserver(flush);\n let node = document.createTextNode('');\n observer.observe(node, {\n characterData: true\n });\n return () => node.data = iterations = ++iterations % 2;\n } // web worker\n\n\n function useMessageChannel() {\n let channel = new MessageChannel();\n channel.port1.onmessage = flush;\n return () => channel.port2.postMessage(0);\n }\n\n function useSetTimeout() {\n return () => setTimeout(flush, 1);\n }\n\n const queue$1 = new Array(1000);\n\n function flush() {\n for (let i = 0; i < len; i += 2) {\n let callback = queue$1[i];\n let arg = queue$1[i + 1];\n callback(arg);\n queue$1[i] = undefined;\n queue$1[i + 1] = undefined;\n }\n\n len = 0;\n }\n\n function attemptVertex() {\n try {\n const vertx = Function('return this')().require('vertx');\n\n vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return useVertxTimer();\n } catch (e) {\n return useSetTimeout();\n }\n }\n\n let scheduleFlush$1; // Decide what async method to use to triggering processing of queued callbacks:\n\n if (isNode) {\n scheduleFlush$1 = useNextTick();\n } else if (BrowserMutationObserver) {\n scheduleFlush$1 = useMutationObserver();\n } else if (isWorker) {\n scheduleFlush$1 = useMessageChannel();\n } else if (browserWindow === undefined && typeof _nodeModule.require === 'function') {\n scheduleFlush$1 = attemptVertex();\n } else {\n scheduleFlush$1 = useSetTimeout();\n } // defaults\n\n\n config.async = asap;\n\n config.after = cb => setTimeout(cb, 0);\n\n const cast = resolve$2;\n _exports.cast = cast;\n\n const async = (callback, arg) => config.async(callback, arg);\n\n _exports.async = async;\n\n function on() {\n config.on(...arguments);\n }\n\n function off() {\n config.off(...arguments);\n } // Set up instrumentation through `window.__PROMISE_INTRUMENTATION__`\n\n\n if (typeof window !== 'undefined' && typeof window['__PROMISE_INSTRUMENTATION__'] === 'object') {\n let callbacks = window['__PROMISE_INSTRUMENTATION__'];\n configure('instrument', true);\n\n for (let eventName in callbacks) {\n if (callbacks.hasOwnProperty(eventName)) {\n on(eventName, callbacks[eventName]);\n }\n }\n } // the default export here is for backwards compat:\n // https://github.com/tildeio/rsvp.js/issues/434\n\n\n var rsvp = {\n asap,\n cast,\n Promise,\n EventTarget,\n all: all$1,\n allSettled,\n race: race$1,\n hash,\n hashSettled,\n rethrow,\n defer,\n denodeify,\n configure,\n on,\n off,\n resolve: resolve$2,\n reject: reject$2,\n map,\n async,\n filter\n };\n var _default = rsvp;\n _exports.default = _default;\n});","enifed(\"simple-html-tokenizer\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n _exports.__esModule = true;\n _exports.tokenize = tokenize;\n _exports.Tokenizer = _exports.EventedTokenizer = _exports.EntityParser = _exports.HTML5NamedCharRefs = void 0;\n\n /**\n * generated from https://raw.githubusercontent.com/w3c/html/26b5126f96f736f796b9e29718138919dd513744/entities.json\n * do not edit\n */\n var namedCharRefs = {\n Aacute: \"Á\",\n aacute: \"á\",\n Abreve: \"Ă\",\n abreve: \"ă\",\n ac: \"∾\",\n acd: \"∿\",\n acE: \"∾̳\",\n Acirc: \"Â\",\n acirc: \"â\",\n acute: \"´\",\n Acy: \"А\",\n acy: \"а\",\n AElig: \"Æ\",\n aelig: \"æ\",\n af: \"\\u2061\",\n Afr: \"𝔄\",\n afr: \"𝔞\",\n Agrave: \"À\",\n agrave: \"à\",\n alefsym: \"ℵ\",\n aleph: \"ℵ\",\n Alpha: \"Α\",\n alpha: \"α\",\n Amacr: \"Ā\",\n amacr: \"ā\",\n amalg: \"⨿\",\n amp: \"&\",\n AMP: \"&\",\n andand: \"⩕\",\n And: \"⩓\",\n and: \"∧\",\n andd: \"⩜\",\n andslope: \"⩘\",\n andv: \"⩚\",\n ang: \"∠\",\n ange: \"⦤\",\n angle: \"∠\",\n angmsdaa: \"⦨\",\n angmsdab: \"⦩\",\n angmsdac: \"⦪\",\n angmsdad: \"⦫\",\n angmsdae: \"⦬\",\n angmsdaf: \"⦭\",\n angmsdag: \"⦮\",\n angmsdah: \"⦯\",\n angmsd: \"∡\",\n angrt: \"∟\",\n angrtvb: \"⊾\",\n angrtvbd: \"⦝\",\n angsph: \"∢\",\n angst: \"Å\",\n angzarr: \"⍼\",\n Aogon: \"Ą\",\n aogon: \"ą\",\n Aopf: \"𝔸\",\n aopf: \"𝕒\",\n apacir: \"⩯\",\n ap: \"≈\",\n apE: \"⩰\",\n ape: \"≊\",\n apid: \"≋\",\n apos: \"'\",\n ApplyFunction: \"\\u2061\",\n approx: \"≈\",\n approxeq: \"≊\",\n Aring: \"Å\",\n aring: \"å\",\n Ascr: \"𝒜\",\n ascr: \"𝒶\",\n Assign: \"≔\",\n ast: \"*\",\n asymp: \"≈\",\n asympeq: \"≍\",\n Atilde: \"Ã\",\n atilde: \"ã\",\n Auml: \"Ä\",\n auml: \"ä\",\n awconint: \"∳\",\n awint: \"⨑\",\n backcong: \"≌\",\n backepsilon: \"϶\",\n backprime: \"‵\",\n backsim: \"∽\",\n backsimeq: \"⋍\",\n Backslash: \"∖\",\n Barv: \"⫧\",\n barvee: \"⊽\",\n barwed: \"⌅\",\n Barwed: \"⌆\",\n barwedge: \"⌅\",\n bbrk: \"⎵\",\n bbrktbrk: \"⎶\",\n bcong: \"≌\",\n Bcy: \"Б\",\n bcy: \"б\",\n bdquo: \"„\",\n becaus: \"∵\",\n because: \"∵\",\n Because: \"∵\",\n bemptyv: \"⦰\",\n bepsi: \"϶\",\n bernou: \"ℬ\",\n Bernoullis: \"ℬ\",\n Beta: \"Β\",\n beta: \"β\",\n beth: \"ℶ\",\n between: \"≬\",\n Bfr: \"𝔅\",\n bfr: \"𝔟\",\n bigcap: \"⋂\",\n bigcirc: \"◯\",\n bigcup: \"⋃\",\n bigodot: \"⨀\",\n bigoplus: \"⨁\",\n bigotimes: \"⨂\",\n bigsqcup: \"⨆\",\n bigstar: \"★\",\n bigtriangledown: \"▽\",\n bigtriangleup: \"△\",\n biguplus: \"⨄\",\n bigvee: \"⋁\",\n bigwedge: \"⋀\",\n bkarow: \"⤍\",\n blacklozenge: \"⧫\",\n blacksquare: \"▪\",\n blacktriangle: \"▴\",\n blacktriangledown: \"▾\",\n blacktriangleleft: \"◂\",\n blacktriangleright: \"▸\",\n blank: \"␣\",\n blk12: \"▒\",\n blk14: \"░\",\n blk34: \"▓\",\n block: \"█\",\n bne: \"=⃥\",\n bnequiv: \"≡⃥\",\n bNot: \"⫭\",\n bnot: \"⌐\",\n Bopf: \"𝔹\",\n bopf: \"𝕓\",\n bot: \"⊥\",\n bottom: \"⊥\",\n bowtie: \"⋈\",\n boxbox: \"⧉\",\n boxdl: \"┐\",\n boxdL: \"╕\",\n boxDl: \"╖\",\n boxDL: \"╗\",\n boxdr: \"┌\",\n boxdR: \"╒\",\n boxDr: \"╓\",\n boxDR: \"╔\",\n boxh: \"─\",\n boxH: \"═\",\n boxhd: \"┬\",\n boxHd: \"╤\",\n boxhD: \"╥\",\n boxHD: \"╦\",\n boxhu: \"┴\",\n boxHu: \"╧\",\n boxhU: \"╨\",\n boxHU: \"╩\",\n boxminus: \"⊟\",\n boxplus: \"⊞\",\n boxtimes: \"⊠\",\n boxul: \"┘\",\n boxuL: \"╛\",\n boxUl: \"╜\",\n boxUL: \"╝\",\n boxur: \"└\",\n boxuR: \"╘\",\n boxUr: \"╙\",\n boxUR: \"╚\",\n boxv: \"│\",\n boxV: \"║\",\n boxvh: \"┼\",\n boxvH: \"╪\",\n boxVh: \"╫\",\n boxVH: \"╬\",\n boxvl: \"┤\",\n boxvL: \"╡\",\n boxVl: \"╢\",\n boxVL: \"╣\",\n boxvr: \"├\",\n boxvR: \"╞\",\n boxVr: \"╟\",\n boxVR: \"╠\",\n bprime: \"‵\",\n breve: \"˘\",\n Breve: \"˘\",\n brvbar: \"¦\",\n bscr: \"𝒷\",\n Bscr: \"ℬ\",\n bsemi: \"⁏\",\n bsim: \"∽\",\n bsime: \"⋍\",\n bsolb: \"⧅\",\n bsol: \"\\\\\",\n bsolhsub: \"⟈\",\n bull: \"•\",\n bullet: \"•\",\n bump: \"≎\",\n bumpE: \"⪮\",\n bumpe: \"≏\",\n Bumpeq: \"≎\",\n bumpeq: \"≏\",\n Cacute: \"Ć\",\n cacute: \"ć\",\n capand: \"⩄\",\n capbrcup: \"⩉\",\n capcap: \"⩋\",\n cap: \"∩\",\n Cap: \"⋒\",\n capcup: \"⩇\",\n capdot: \"⩀\",\n CapitalDifferentialD: \"ⅅ\",\n caps: \"∩︀\",\n caret: \"⁁\",\n caron: \"ˇ\",\n Cayleys: \"ℭ\",\n ccaps: \"⩍\",\n Ccaron: \"Č\",\n ccaron: \"č\",\n Ccedil: \"Ç\",\n ccedil: \"ç\",\n Ccirc: \"Ĉ\",\n ccirc: \"ĉ\",\n Cconint: \"∰\",\n ccups: \"⩌\",\n ccupssm: \"⩐\",\n Cdot: \"Ċ\",\n cdot: \"ċ\",\n cedil: \"¸\",\n Cedilla: \"¸\",\n cemptyv: \"⦲\",\n cent: \"¢\",\n centerdot: \"·\",\n CenterDot: \"·\",\n cfr: \"𝔠\",\n Cfr: \"ℭ\",\n CHcy: \"Ч\",\n chcy: \"ч\",\n check: \"✓\",\n checkmark: \"✓\",\n Chi: \"Χ\",\n chi: \"χ\",\n circ: \"ˆ\",\n circeq: \"≗\",\n circlearrowleft: \"↺\",\n circlearrowright: \"↻\",\n circledast: \"⊛\",\n circledcirc: \"⊚\",\n circleddash: \"⊝\",\n CircleDot: \"⊙\",\n circledR: \"®\",\n circledS: \"Ⓢ\",\n CircleMinus: \"⊖\",\n CirclePlus: \"⊕\",\n CircleTimes: \"⊗\",\n cir: \"○\",\n cirE: \"⧃\",\n cire: \"≗\",\n cirfnint: \"⨐\",\n cirmid: \"⫯\",\n cirscir: \"⧂\",\n ClockwiseContourIntegral: \"∲\",\n CloseCurlyDoubleQuote: \"”\",\n CloseCurlyQuote: \"’\",\n clubs: \"♣\",\n clubsuit: \"♣\",\n colon: \":\",\n Colon: \"∷\",\n Colone: \"⩴\",\n colone: \"≔\",\n coloneq: \"≔\",\n comma: \",\",\n commat: \"@\",\n comp: \"∁\",\n compfn: \"∘\",\n complement: \"∁\",\n complexes: \"ℂ\",\n cong: \"≅\",\n congdot: \"⩭\",\n Congruent: \"≡\",\n conint: \"∮\",\n Conint: \"∯\",\n ContourIntegral: \"∮\",\n copf: \"𝕔\",\n Copf: \"ℂ\",\n coprod: \"∐\",\n Coproduct: \"∐\",\n copy: \"©\",\n COPY: \"©\",\n copysr: \"℗\",\n CounterClockwiseContourIntegral: \"∳\",\n crarr: \"↵\",\n cross: \"✗\",\n Cross: \"⨯\",\n Cscr: \"𝒞\",\n cscr: \"𝒸\",\n csub: \"⫏\",\n csube: \"⫑\",\n csup: \"⫐\",\n csupe: \"⫒\",\n ctdot: \"⋯\",\n cudarrl: \"⤸\",\n cudarrr: \"⤵\",\n cuepr: \"⋞\",\n cuesc: \"⋟\",\n cularr: \"↶\",\n cularrp: \"⤽\",\n cupbrcap: \"⩈\",\n cupcap: \"⩆\",\n CupCap: \"≍\",\n cup: \"∪\",\n Cup: \"⋓\",\n cupcup: \"⩊\",\n cupdot: \"⊍\",\n cupor: \"⩅\",\n cups: \"∪︀\",\n curarr: \"↷\",\n curarrm: \"⤼\",\n curlyeqprec: \"⋞\",\n curlyeqsucc: \"⋟\",\n curlyvee: \"⋎\",\n curlywedge: \"⋏\",\n curren: \"¤\",\n curvearrowleft: \"↶\",\n curvearrowright: \"↷\",\n cuvee: \"⋎\",\n cuwed: \"⋏\",\n cwconint: \"∲\",\n cwint: \"∱\",\n cylcty: \"⌭\",\n dagger: \"†\",\n Dagger: \"‡\",\n daleth: \"ℸ\",\n darr: \"↓\",\n Darr: \"↡\",\n dArr: \"⇓\",\n dash: \"‐\",\n Dashv: \"⫤\",\n dashv: \"⊣\",\n dbkarow: \"⤏\",\n dblac: \"˝\",\n Dcaron: \"Ď\",\n dcaron: \"ď\",\n Dcy: \"Д\",\n dcy: \"д\",\n ddagger: \"‡\",\n ddarr: \"⇊\",\n DD: \"ⅅ\",\n dd: \"ⅆ\",\n DDotrahd: \"⤑\",\n ddotseq: \"⩷\",\n deg: \"°\",\n Del: \"∇\",\n Delta: \"Δ\",\n delta: \"δ\",\n demptyv: \"⦱\",\n dfisht: \"⥿\",\n Dfr: \"𝔇\",\n dfr: \"𝔡\",\n dHar: \"⥥\",\n dharl: \"⇃\",\n dharr: \"⇂\",\n DiacriticalAcute: \"´\",\n DiacriticalDot: \"˙\",\n DiacriticalDoubleAcute: \"˝\",\n DiacriticalGrave: \"`\",\n DiacriticalTilde: \"˜\",\n diam: \"⋄\",\n diamond: \"⋄\",\n Diamond: \"⋄\",\n diamondsuit: \"♦\",\n diams: \"♦\",\n die: \"¨\",\n DifferentialD: \"ⅆ\",\n digamma: \"ϝ\",\n disin: \"⋲\",\n div: \"÷\",\n divide: \"÷\",\n divideontimes: \"⋇\",\n divonx: \"⋇\",\n DJcy: \"Ђ\",\n djcy: \"ђ\",\n dlcorn: \"⌞\",\n dlcrop: \"⌍\",\n dollar: \"$\",\n Dopf: \"𝔻\",\n dopf: \"𝕕\",\n Dot: \"¨\",\n dot: \"˙\",\n DotDot: \"⃜\",\n doteq: \"≐\",\n doteqdot: \"≑\",\n DotEqual: \"≐\",\n dotminus: \"∸\",\n dotplus: \"∔\",\n dotsquare: \"⊡\",\n doublebarwedge: \"⌆\",\n DoubleContourIntegral: \"∯\",\n DoubleDot: \"¨\",\n DoubleDownArrow: \"⇓\",\n DoubleLeftArrow: \"⇐\",\n DoubleLeftRightArrow: \"⇔\",\n DoubleLeftTee: \"⫤\",\n DoubleLongLeftArrow: \"⟸\",\n DoubleLongLeftRightArrow: \"⟺\",\n DoubleLongRightArrow: \"⟹\",\n DoubleRightArrow: \"⇒\",\n DoubleRightTee: \"⊨\",\n DoubleUpArrow: \"⇑\",\n DoubleUpDownArrow: \"⇕\",\n DoubleVerticalBar: \"∥\",\n DownArrowBar: \"⤓\",\n downarrow: \"↓\",\n DownArrow: \"↓\",\n Downarrow: \"⇓\",\n DownArrowUpArrow: \"⇵\",\n DownBreve: \"̑\",\n downdownarrows: \"⇊\",\n downharpoonleft: \"⇃\",\n downharpoonright: \"⇂\",\n DownLeftRightVector: \"⥐\",\n DownLeftTeeVector: \"⥞\",\n DownLeftVectorBar: \"⥖\",\n DownLeftVector: \"↽\",\n DownRightTeeVector: \"⥟\",\n DownRightVectorBar: \"⥗\",\n DownRightVector: \"⇁\",\n DownTeeArrow: \"↧\",\n DownTee: \"⊤\",\n drbkarow: \"⤐\",\n drcorn: \"⌟\",\n drcrop: \"⌌\",\n Dscr: \"𝒟\",\n dscr: \"𝒹\",\n DScy: \"Ѕ\",\n dscy: \"ѕ\",\n dsol: \"⧶\",\n Dstrok: \"Đ\",\n dstrok: \"đ\",\n dtdot: \"⋱\",\n dtri: \"▿\",\n dtrif: \"▾\",\n duarr: \"⇵\",\n duhar: \"⥯\",\n dwangle: \"⦦\",\n DZcy: \"Џ\",\n dzcy: \"џ\",\n dzigrarr: \"⟿\",\n Eacute: \"É\",\n eacute: \"é\",\n easter: \"⩮\",\n Ecaron: \"Ě\",\n ecaron: \"ě\",\n Ecirc: \"Ê\",\n ecirc: \"ê\",\n ecir: \"≖\",\n ecolon: \"≕\",\n Ecy: \"Э\",\n ecy: \"э\",\n eDDot: \"⩷\",\n Edot: \"Ė\",\n edot: \"ė\",\n eDot: \"≑\",\n ee: \"ⅇ\",\n efDot: \"≒\",\n Efr: \"𝔈\",\n efr: \"𝔢\",\n eg: \"⪚\",\n Egrave: \"È\",\n egrave: \"è\",\n egs: \"⪖\",\n egsdot: \"⪘\",\n el: \"⪙\",\n Element: \"∈\",\n elinters: \"⏧\",\n ell: \"ℓ\",\n els: \"⪕\",\n elsdot: \"⪗\",\n Emacr: \"Ē\",\n emacr: \"ē\",\n empty: \"∅\",\n emptyset: \"∅\",\n EmptySmallSquare: \"◻\",\n emptyv: \"∅\",\n EmptyVerySmallSquare: \"▫\",\n emsp13: \" \",\n emsp14: \" \",\n emsp: \" \",\n ENG: \"Ŋ\",\n eng: \"ŋ\",\n ensp: \" \",\n Eogon: \"Ę\",\n eogon: \"ę\",\n Eopf: \"𝔼\",\n eopf: \"𝕖\",\n epar: \"⋕\",\n eparsl: \"⧣\",\n eplus: \"⩱\",\n epsi: \"ε\",\n Epsilon: \"Ε\",\n epsilon: \"ε\",\n epsiv: \"ϵ\",\n eqcirc: \"≖\",\n eqcolon: \"≕\",\n eqsim: \"≂\",\n eqslantgtr: \"⪖\",\n eqslantless: \"⪕\",\n Equal: \"⩵\",\n equals: \"=\",\n EqualTilde: \"≂\",\n equest: \"≟\",\n Equilibrium: \"⇌\",\n equiv: \"≡\",\n equivDD: \"⩸\",\n eqvparsl: \"⧥\",\n erarr: \"⥱\",\n erDot: \"≓\",\n escr: \"ℯ\",\n Escr: \"ℰ\",\n esdot: \"≐\",\n Esim: \"⩳\",\n esim: \"≂\",\n Eta: \"Η\",\n eta: \"η\",\n ETH: \"Ð\",\n eth: \"ð\",\n Euml: \"Ë\",\n euml: \"ë\",\n euro: \"€\",\n excl: \"!\",\n exist: \"∃\",\n Exists: \"∃\",\n expectation: \"ℰ\",\n exponentiale: \"ⅇ\",\n ExponentialE: \"ⅇ\",\n fallingdotseq: \"≒\",\n Fcy: \"Ф\",\n fcy: \"ф\",\n female: \"♀\",\n ffilig: \"ffi\",\n fflig: \"ff\",\n ffllig: \"ffl\",\n Ffr: \"𝔉\",\n ffr: \"𝔣\",\n filig: \"fi\",\n FilledSmallSquare: \"◼\",\n FilledVerySmallSquare: \"▪\",\n fjlig: \"fj\",\n flat: \"♭\",\n fllig: \"fl\",\n fltns: \"▱\",\n fnof: \"ƒ\",\n Fopf: \"𝔽\",\n fopf: \"𝕗\",\n forall: \"∀\",\n ForAll: \"∀\",\n fork: \"⋔\",\n forkv: \"⫙\",\n Fouriertrf: \"ℱ\",\n fpartint: \"⨍\",\n frac12: \"½\",\n frac13: \"⅓\",\n frac14: \"¼\",\n frac15: \"⅕\",\n frac16: \"⅙\",\n frac18: \"⅛\",\n frac23: \"⅔\",\n frac25: \"⅖\",\n frac34: \"¾\",\n frac35: \"⅗\",\n frac38: \"⅜\",\n frac45: \"⅘\",\n frac56: \"⅚\",\n frac58: \"⅝\",\n frac78: \"⅞\",\n frasl: \"⁄\",\n frown: \"⌢\",\n fscr: \"𝒻\",\n Fscr: \"ℱ\",\n gacute: \"ǵ\",\n Gamma: \"Γ\",\n gamma: \"γ\",\n Gammad: \"Ϝ\",\n gammad: \"ϝ\",\n gap: \"⪆\",\n Gbreve: \"Ğ\",\n gbreve: \"ğ\",\n Gcedil: \"Ģ\",\n Gcirc: \"Ĝ\",\n gcirc: \"ĝ\",\n Gcy: \"Г\",\n gcy: \"г\",\n Gdot: \"Ġ\",\n gdot: \"ġ\",\n ge: \"≥\",\n gE: \"≧\",\n gEl: \"⪌\",\n gel: \"⋛\",\n geq: \"≥\",\n geqq: \"≧\",\n geqslant: \"⩾\",\n gescc: \"⪩\",\n ges: \"⩾\",\n gesdot: \"⪀\",\n gesdoto: \"⪂\",\n gesdotol: \"⪄\",\n gesl: \"⋛︀\",\n gesles: \"⪔\",\n Gfr: \"𝔊\",\n gfr: \"𝔤\",\n gg: \"≫\",\n Gg: \"⋙\",\n ggg: \"⋙\",\n gimel: \"ℷ\",\n GJcy: \"Ѓ\",\n gjcy: \"ѓ\",\n gla: \"⪥\",\n gl: \"≷\",\n glE: \"⪒\",\n glj: \"⪤\",\n gnap: \"⪊\",\n gnapprox: \"⪊\",\n gne: \"⪈\",\n gnE: \"≩\",\n gneq: \"⪈\",\n gneqq: \"≩\",\n gnsim: \"⋧\",\n Gopf: \"𝔾\",\n gopf: \"𝕘\",\n grave: \"`\",\n GreaterEqual: \"≥\",\n GreaterEqualLess: \"⋛\",\n GreaterFullEqual: \"≧\",\n GreaterGreater: \"⪢\",\n GreaterLess: \"≷\",\n GreaterSlantEqual: \"⩾\",\n GreaterTilde: \"≳\",\n Gscr: \"𝒢\",\n gscr: \"ℊ\",\n gsim: \"≳\",\n gsime: \"⪎\",\n gsiml: \"⪐\",\n gtcc: \"⪧\",\n gtcir: \"⩺\",\n gt: \">\",\n GT: \">\",\n Gt: \"≫\",\n gtdot: \"⋗\",\n gtlPar: \"⦕\",\n gtquest: \"⩼\",\n gtrapprox: \"⪆\",\n gtrarr: \"⥸\",\n gtrdot: \"⋗\",\n gtreqless: \"⋛\",\n gtreqqless: \"⪌\",\n gtrless: \"≷\",\n gtrsim: \"≳\",\n gvertneqq: \"≩︀\",\n gvnE: \"≩︀\",\n Hacek: \"ˇ\",\n hairsp: \" \",\n half: \"½\",\n hamilt: \"ℋ\",\n HARDcy: \"Ъ\",\n hardcy: \"ъ\",\n harrcir: \"⥈\",\n harr: \"↔\",\n hArr: \"⇔\",\n harrw: \"↭\",\n Hat: \"^\",\n hbar: \"ℏ\",\n Hcirc: \"Ĥ\",\n hcirc: \"ĥ\",\n hearts: \"♥\",\n heartsuit: \"♥\",\n hellip: \"…\",\n hercon: \"⊹\",\n hfr: \"𝔥\",\n Hfr: \"ℌ\",\n HilbertSpace: \"ℋ\",\n hksearow: \"⤥\",\n hkswarow: \"⤦\",\n hoarr: \"⇿\",\n homtht: \"∻\",\n hookleftarrow: \"↩\",\n hookrightarrow: \"↪\",\n hopf: \"𝕙\",\n Hopf: \"ℍ\",\n horbar: \"―\",\n HorizontalLine: \"─\",\n hscr: \"𝒽\",\n Hscr: \"ℋ\",\n hslash: \"ℏ\",\n Hstrok: \"Ħ\",\n hstrok: \"ħ\",\n HumpDownHump: \"≎\",\n HumpEqual: \"≏\",\n hybull: \"⁃\",\n hyphen: \"‐\",\n Iacute: \"Í\",\n iacute: \"í\",\n ic: \"\\u2063\",\n Icirc: \"Î\",\n icirc: \"î\",\n Icy: \"И\",\n icy: \"и\",\n Idot: \"İ\",\n IEcy: \"Е\",\n iecy: \"е\",\n iexcl: \"¡\",\n iff: \"⇔\",\n ifr: \"𝔦\",\n Ifr: \"ℑ\",\n Igrave: \"Ì\",\n igrave: \"ì\",\n ii: \"ⅈ\",\n iiiint: \"⨌\",\n iiint: \"∭\",\n iinfin: \"⧜\",\n iiota: \"℩\",\n IJlig: \"IJ\",\n ijlig: \"ij\",\n Imacr: \"Ī\",\n imacr: \"ī\",\n image: \"ℑ\",\n ImaginaryI: \"ⅈ\",\n imagline: \"ℐ\",\n imagpart: \"ℑ\",\n imath: \"ı\",\n Im: \"ℑ\",\n imof: \"⊷\",\n imped: \"Ƶ\",\n Implies: \"⇒\",\n incare: \"℅\",\n in: \"∈\",\n infin: \"∞\",\n infintie: \"⧝\",\n inodot: \"ı\",\n intcal: \"⊺\",\n int: \"∫\",\n Int: \"∬\",\n integers: \"ℤ\",\n Integral: \"∫\",\n intercal: \"⊺\",\n Intersection: \"⋂\",\n intlarhk: \"⨗\",\n intprod: \"⨼\",\n InvisibleComma: \"\\u2063\",\n InvisibleTimes: \"\\u2062\",\n IOcy: \"Ё\",\n iocy: \"ё\",\n Iogon: \"Į\",\n iogon: \"į\",\n Iopf: \"𝕀\",\n iopf: \"𝕚\",\n Iota: \"Ι\",\n iota: \"ι\",\n iprod: \"⨼\",\n iquest: \"¿\",\n iscr: \"𝒾\",\n Iscr: \"ℐ\",\n isin: \"∈\",\n isindot: \"⋵\",\n isinE: \"⋹\",\n isins: \"⋴\",\n isinsv: \"⋳\",\n isinv: \"∈\",\n it: \"\\u2062\",\n Itilde: \"Ĩ\",\n itilde: \"ĩ\",\n Iukcy: \"І\",\n iukcy: \"і\",\n Iuml: \"Ï\",\n iuml: \"ï\",\n Jcirc: \"Ĵ\",\n jcirc: \"ĵ\",\n Jcy: \"Й\",\n jcy: \"й\",\n Jfr: \"𝔍\",\n jfr: \"𝔧\",\n jmath: \"ȷ\",\n Jopf: \"𝕁\",\n jopf: \"𝕛\",\n Jscr: \"𝒥\",\n jscr: \"𝒿\",\n Jsercy: \"Ј\",\n jsercy: \"ј\",\n Jukcy: \"Є\",\n jukcy: \"є\",\n Kappa: \"Κ\",\n kappa: \"κ\",\n kappav: \"ϰ\",\n Kcedil: \"Ķ\",\n kcedil: \"ķ\",\n Kcy: \"К\",\n kcy: \"к\",\n Kfr: \"𝔎\",\n kfr: \"𝔨\",\n kgreen: \"ĸ\",\n KHcy: \"Х\",\n khcy: \"х\",\n KJcy: \"Ќ\",\n kjcy: \"ќ\",\n Kopf: \"𝕂\",\n kopf: \"𝕜\",\n Kscr: \"𝒦\",\n kscr: \"𝓀\",\n lAarr: \"⇚\",\n Lacute: \"Ĺ\",\n lacute: \"ĺ\",\n laemptyv: \"⦴\",\n lagran: \"ℒ\",\n Lambda: \"Λ\",\n lambda: \"λ\",\n lang: \"⟨\",\n Lang: \"⟪\",\n langd: \"⦑\",\n langle: \"⟨\",\n lap: \"⪅\",\n Laplacetrf: \"ℒ\",\n laquo: \"«\",\n larrb: \"⇤\",\n larrbfs: \"⤟\",\n larr: \"←\",\n Larr: \"↞\",\n lArr: \"⇐\",\n larrfs: \"⤝\",\n larrhk: \"↩\",\n larrlp: \"↫\",\n larrpl: \"⤹\",\n larrsim: \"⥳\",\n larrtl: \"↢\",\n latail: \"⤙\",\n lAtail: \"⤛\",\n lat: \"⪫\",\n late: \"⪭\",\n lates: \"⪭︀\",\n lbarr: \"⤌\",\n lBarr: \"⤎\",\n lbbrk: \"❲\",\n lbrace: \"{\",\n lbrack: \"[\",\n lbrke: \"⦋\",\n lbrksld: \"⦏\",\n lbrkslu: \"⦍\",\n Lcaron: \"Ľ\",\n lcaron: \"ľ\",\n Lcedil: \"Ļ\",\n lcedil: \"ļ\",\n lceil: \"⌈\",\n lcub: \"{\",\n Lcy: \"Л\",\n lcy: \"л\",\n ldca: \"⤶\",\n ldquo: \"“\",\n ldquor: \"„\",\n ldrdhar: \"⥧\",\n ldrushar: \"⥋\",\n ldsh: \"↲\",\n le: \"≤\",\n lE: \"≦\",\n LeftAngleBracket: \"⟨\",\n LeftArrowBar: \"⇤\",\n leftarrow: \"←\",\n LeftArrow: \"←\",\n Leftarrow: \"⇐\",\n LeftArrowRightArrow: \"⇆\",\n leftarrowtail: \"↢\",\n LeftCeiling: \"⌈\",\n LeftDoubleBracket: \"⟦\",\n LeftDownTeeVector: \"⥡\",\n LeftDownVectorBar: \"⥙\",\n LeftDownVector: \"⇃\",\n LeftFloor: \"⌊\",\n leftharpoondown: \"↽\",\n leftharpoonup: \"↼\",\n leftleftarrows: \"⇇\",\n leftrightarrow: \"↔\",\n LeftRightArrow: \"↔\",\n Leftrightarrow: \"⇔\",\n leftrightarrows: \"⇆\",\n leftrightharpoons: \"⇋\",\n leftrightsquigarrow: \"↭\",\n LeftRightVector: \"⥎\",\n LeftTeeArrow: \"↤\",\n LeftTee: \"⊣\",\n LeftTeeVector: \"⥚\",\n leftthreetimes: \"⋋\",\n LeftTriangleBar: \"⧏\",\n LeftTriangle: \"⊲\",\n LeftTriangleEqual: \"⊴\",\n LeftUpDownVector: \"⥑\",\n LeftUpTeeVector: \"⥠\",\n LeftUpVectorBar: \"⥘\",\n LeftUpVector: \"↿\",\n LeftVectorBar: \"⥒\",\n LeftVector: \"↼\",\n lEg: \"⪋\",\n leg: \"⋚\",\n leq: \"≤\",\n leqq: \"≦\",\n leqslant: \"⩽\",\n lescc: \"⪨\",\n les: \"⩽\",\n lesdot: \"⩿\",\n lesdoto: \"⪁\",\n lesdotor: \"⪃\",\n lesg: \"⋚︀\",\n lesges: \"⪓\",\n lessapprox: \"⪅\",\n lessdot: \"⋖\",\n lesseqgtr: \"⋚\",\n lesseqqgtr: \"⪋\",\n LessEqualGreater: \"⋚\",\n LessFullEqual: \"≦\",\n LessGreater: \"≶\",\n lessgtr: \"≶\",\n LessLess: \"⪡\",\n lesssim: \"≲\",\n LessSlantEqual: \"⩽\",\n LessTilde: \"≲\",\n lfisht: \"⥼\",\n lfloor: \"⌊\",\n Lfr: \"𝔏\",\n lfr: \"𝔩\",\n lg: \"≶\",\n lgE: \"⪑\",\n lHar: \"⥢\",\n lhard: \"↽\",\n lharu: \"↼\",\n lharul: \"⥪\",\n lhblk: \"▄\",\n LJcy: \"Љ\",\n ljcy: \"љ\",\n llarr: \"⇇\",\n ll: \"≪\",\n Ll: \"⋘\",\n llcorner: \"⌞\",\n Lleftarrow: \"⇚\",\n llhard: \"⥫\",\n lltri: \"◺\",\n Lmidot: \"Ŀ\",\n lmidot: \"ŀ\",\n lmoustache: \"⎰\",\n lmoust: \"⎰\",\n lnap: \"⪉\",\n lnapprox: \"⪉\",\n lne: \"⪇\",\n lnE: \"≨\",\n lneq: \"⪇\",\n lneqq: \"≨\",\n lnsim: \"⋦\",\n loang: \"⟬\",\n loarr: \"⇽\",\n lobrk: \"⟦\",\n longleftarrow: \"⟵\",\n LongLeftArrow: \"⟵\",\n Longleftarrow: \"⟸\",\n longleftrightarrow: \"⟷\",\n LongLeftRightArrow: \"⟷\",\n Longleftrightarrow: \"⟺\",\n longmapsto: \"⟼\",\n longrightarrow: \"⟶\",\n LongRightArrow: \"⟶\",\n Longrightarrow: \"⟹\",\n looparrowleft: \"↫\",\n looparrowright: \"↬\",\n lopar: \"⦅\",\n Lopf: \"𝕃\",\n lopf: \"𝕝\",\n loplus: \"⨭\",\n lotimes: \"⨴\",\n lowast: \"∗\",\n lowbar: \"_\",\n LowerLeftArrow: \"↙\",\n LowerRightArrow: \"↘\",\n loz: \"◊\",\n lozenge: \"◊\",\n lozf: \"⧫\",\n lpar: \"(\",\n lparlt: \"⦓\",\n lrarr: \"⇆\",\n lrcorner: \"⌟\",\n lrhar: \"⇋\",\n lrhard: \"⥭\",\n lrm: \"\\u200e\",\n lrtri: \"⊿\",\n lsaquo: \"‹\",\n lscr: \"𝓁\",\n Lscr: \"ℒ\",\n lsh: \"↰\",\n Lsh: \"↰\",\n lsim: \"≲\",\n lsime: \"⪍\",\n lsimg: \"⪏\",\n lsqb: \"[\",\n lsquo: \"‘\",\n lsquor: \"‚\",\n Lstrok: \"Ł\",\n lstrok: \"ł\",\n ltcc: \"⪦\",\n ltcir: \"⩹\",\n lt: \"<\",\n LT: \"<\",\n Lt: \"≪\",\n ltdot: \"⋖\",\n lthree: \"⋋\",\n ltimes: \"⋉\",\n ltlarr: \"⥶\",\n ltquest: \"⩻\",\n ltri: \"◃\",\n ltrie: \"⊴\",\n ltrif: \"◂\",\n ltrPar: \"⦖\",\n lurdshar: \"⥊\",\n luruhar: \"⥦\",\n lvertneqq: \"≨︀\",\n lvnE: \"≨︀\",\n macr: \"¯\",\n male: \"♂\",\n malt: \"✠\",\n maltese: \"✠\",\n Map: \"⤅\",\n map: \"↦\",\n mapsto: \"↦\",\n mapstodown: \"↧\",\n mapstoleft: \"↤\",\n mapstoup: \"↥\",\n marker: \"▮\",\n mcomma: \"⨩\",\n Mcy: \"М\",\n mcy: \"м\",\n mdash: \"—\",\n mDDot: \"∺\",\n measuredangle: \"∡\",\n MediumSpace: \" \",\n Mellintrf: \"ℳ\",\n Mfr: \"𝔐\",\n mfr: \"𝔪\",\n mho: \"℧\",\n micro: \"µ\",\n midast: \"*\",\n midcir: \"⫰\",\n mid: \"∣\",\n middot: \"·\",\n minusb: \"⊟\",\n minus: \"−\",\n minusd: \"∸\",\n minusdu: \"⨪\",\n MinusPlus: \"∓\",\n mlcp: \"⫛\",\n mldr: \"…\",\n mnplus: \"∓\",\n models: \"⊧\",\n Mopf: \"𝕄\",\n mopf: \"𝕞\",\n mp: \"∓\",\n mscr: \"𝓂\",\n Mscr: \"ℳ\",\n mstpos: \"∾\",\n Mu: \"Μ\",\n mu: \"μ\",\n multimap: \"⊸\",\n mumap: \"⊸\",\n nabla: \"∇\",\n Nacute: \"Ń\",\n nacute: \"ń\",\n nang: \"∠⃒\",\n nap: \"≉\",\n napE: \"⩰̸\",\n napid: \"≋̸\",\n napos: \"ʼn\",\n napprox: \"≉\",\n natural: \"♮\",\n naturals: \"ℕ\",\n natur: \"♮\",\n nbsp: \" \",\n nbump: \"≎̸\",\n nbumpe: \"≏̸\",\n ncap: \"⩃\",\n Ncaron: \"Ň\",\n ncaron: \"ň\",\n Ncedil: \"Ņ\",\n ncedil: \"ņ\",\n ncong: \"≇\",\n ncongdot: \"⩭̸\",\n ncup: \"⩂\",\n Ncy: \"Н\",\n ncy: \"н\",\n ndash: \"–\",\n nearhk: \"⤤\",\n nearr: \"↗\",\n neArr: \"⇗\",\n nearrow: \"↗\",\n ne: \"≠\",\n nedot: \"≐̸\",\n NegativeMediumSpace: \"\",\n NegativeThickSpace: \"\",\n NegativeThinSpace: \"\",\n NegativeVeryThinSpace: \"\",\n nequiv: \"≢\",\n nesear: \"⤨\",\n nesim: \"≂̸\",\n NestedGreaterGreater: \"≫\",\n NestedLessLess: \"≪\",\n NewLine: \"\\u000a\",\n nexist: \"∄\",\n nexists: \"∄\",\n Nfr: \"𝔑\",\n nfr: \"𝔫\",\n ngE: \"≧̸\",\n nge: \"≱\",\n ngeq: \"≱\",\n ngeqq: \"≧̸\",\n ngeqslant: \"⩾̸\",\n nges: \"⩾̸\",\n nGg: \"⋙̸\",\n ngsim: \"≵\",\n nGt: \"≫⃒\",\n ngt: \"≯\",\n ngtr: \"≯\",\n nGtv: \"≫̸\",\n nharr: \"↮\",\n nhArr: \"⇎\",\n nhpar: \"⫲\",\n ni: \"∋\",\n nis: \"⋼\",\n nisd: \"⋺\",\n niv: \"∋\",\n NJcy: \"Њ\",\n njcy: \"њ\",\n nlarr: \"↚\",\n nlArr: \"⇍\",\n nldr: \"‥\",\n nlE: \"≦̸\",\n nle: \"≰\",\n nleftarrow: \"↚\",\n nLeftarrow: \"⇍\",\n nleftrightarrow: \"↮\",\n nLeftrightarrow: \"⇎\",\n nleq: \"≰\",\n nleqq: \"≦̸\",\n nleqslant: \"⩽̸\",\n nles: \"⩽̸\",\n nless: \"≮\",\n nLl: \"⋘̸\",\n nlsim: \"≴\",\n nLt: \"≪⃒\",\n nlt: \"≮\",\n nltri: \"⋪\",\n nltrie: \"⋬\",\n nLtv: \"≪̸\",\n nmid: \"∤\",\n NoBreak: \"\\u2060\",\n NonBreakingSpace: \" \",\n nopf: \"𝕟\",\n Nopf: \"ℕ\",\n Not: \"⫬\",\n not: \"¬\",\n NotCongruent: \"≢\",\n NotCupCap: \"≭\",\n NotDoubleVerticalBar: \"∦\",\n NotElement: \"∉\",\n NotEqual: \"≠\",\n NotEqualTilde: \"≂̸\",\n NotExists: \"∄\",\n NotGreater: \"≯\",\n NotGreaterEqual: \"≱\",\n NotGreaterFullEqual: \"≧̸\",\n NotGreaterGreater: \"≫̸\",\n NotGreaterLess: \"≹\",\n NotGreaterSlantEqual: \"⩾̸\",\n NotGreaterTilde: \"≵\",\n NotHumpDownHump: \"≎̸\",\n NotHumpEqual: \"≏̸\",\n notin: \"∉\",\n notindot: \"⋵̸\",\n notinE: \"⋹̸\",\n notinva: \"∉\",\n notinvb: \"⋷\",\n notinvc: \"⋶\",\n NotLeftTriangleBar: \"⧏̸\",\n NotLeftTriangle: \"⋪\",\n NotLeftTriangleEqual: \"⋬\",\n NotLess: \"≮\",\n NotLessEqual: \"≰\",\n NotLessGreater: \"≸\",\n NotLessLess: \"≪̸\",\n NotLessSlantEqual: \"⩽̸\",\n NotLessTilde: \"≴\",\n NotNestedGreaterGreater: \"⪢̸\",\n NotNestedLessLess: \"⪡̸\",\n notni: \"∌\",\n notniva: \"∌\",\n notnivb: \"⋾\",\n notnivc: \"⋽\",\n NotPrecedes: \"⊀\",\n NotPrecedesEqual: \"⪯̸\",\n NotPrecedesSlantEqual: \"⋠\",\n NotReverseElement: \"∌\",\n NotRightTriangleBar: \"⧐̸\",\n NotRightTriangle: \"⋫\",\n NotRightTriangleEqual: \"⋭\",\n NotSquareSubset: \"⊏̸\",\n NotSquareSubsetEqual: \"⋢\",\n NotSquareSuperset: \"⊐̸\",\n NotSquareSupersetEqual: \"⋣\",\n NotSubset: \"⊂⃒\",\n NotSubsetEqual: \"⊈\",\n NotSucceeds: \"⊁\",\n NotSucceedsEqual: \"⪰̸\",\n NotSucceedsSlantEqual: \"⋡\",\n NotSucceedsTilde: \"≿̸\",\n NotSuperset: \"⊃⃒\",\n NotSupersetEqual: \"⊉\",\n NotTilde: \"≁\",\n NotTildeEqual: \"≄\",\n NotTildeFullEqual: \"≇\",\n NotTildeTilde: \"≉\",\n NotVerticalBar: \"∤\",\n nparallel: \"∦\",\n npar: \"∦\",\n nparsl: \"⫽⃥\",\n npart: \"∂̸\",\n npolint: \"⨔\",\n npr: \"⊀\",\n nprcue: \"⋠\",\n nprec: \"⊀\",\n npreceq: \"⪯̸\",\n npre: \"⪯̸\",\n nrarrc: \"⤳̸\",\n nrarr: \"↛\",\n nrArr: \"⇏\",\n nrarrw: \"↝̸\",\n nrightarrow: \"↛\",\n nRightarrow: \"⇏\",\n nrtri: \"⋫\",\n nrtrie: \"⋭\",\n nsc: \"⊁\",\n nsccue: \"⋡\",\n nsce: \"⪰̸\",\n Nscr: \"𝒩\",\n nscr: \"𝓃\",\n nshortmid: \"∤\",\n nshortparallel: \"∦\",\n nsim: \"≁\",\n nsime: \"≄\",\n nsimeq: \"≄\",\n nsmid: \"∤\",\n nspar: \"∦\",\n nsqsube: \"⋢\",\n nsqsupe: \"⋣\",\n nsub: \"⊄\",\n nsubE: \"⫅̸\",\n nsube: \"⊈\",\n nsubset: \"⊂⃒\",\n nsubseteq: \"⊈\",\n nsubseteqq: \"⫅̸\",\n nsucc: \"⊁\",\n nsucceq: \"⪰̸\",\n nsup: \"⊅\",\n nsupE: \"⫆̸\",\n nsupe: \"⊉\",\n nsupset: \"⊃⃒\",\n nsupseteq: \"⊉\",\n nsupseteqq: \"⫆̸\",\n ntgl: \"≹\",\n Ntilde: \"Ñ\",\n ntilde: \"ñ\",\n ntlg: \"≸\",\n ntriangleleft: \"⋪\",\n ntrianglelefteq: \"⋬\",\n ntriangleright: \"⋫\",\n ntrianglerighteq: \"⋭\",\n Nu: \"Ν\",\n nu: \"ν\",\n num: \"#\",\n numero: \"№\",\n numsp: \" \",\n nvap: \"≍⃒\",\n nvdash: \"⊬\",\n nvDash: \"⊭\",\n nVdash: \"⊮\",\n nVDash: \"⊯\",\n nvge: \"≥⃒\",\n nvgt: \">⃒\",\n nvHarr: \"⤄\",\n nvinfin: \"⧞\",\n nvlArr: \"⤂\",\n nvle: \"≤⃒\",\n nvlt: \"<⃒\",\n nvltrie: \"⊴⃒\",\n nvrArr: \"⤃\",\n nvrtrie: \"⊵⃒\",\n nvsim: \"∼⃒\",\n nwarhk: \"⤣\",\n nwarr: \"↖\",\n nwArr: \"⇖\",\n nwarrow: \"↖\",\n nwnear: \"⤧\",\n Oacute: \"Ó\",\n oacute: \"ó\",\n oast: \"⊛\",\n Ocirc: \"Ô\",\n ocirc: \"ô\",\n ocir: \"⊚\",\n Ocy: \"О\",\n ocy: \"о\",\n odash: \"⊝\",\n Odblac: \"Ő\",\n odblac: \"ő\",\n odiv: \"⨸\",\n odot: \"⊙\",\n odsold: \"⦼\",\n OElig: \"Œ\",\n oelig: \"œ\",\n ofcir: \"⦿\",\n Ofr: \"𝔒\",\n ofr: \"𝔬\",\n ogon: \"˛\",\n Ograve: \"Ò\",\n ograve: \"ò\",\n ogt: \"⧁\",\n ohbar: \"⦵\",\n ohm: \"Ω\",\n oint: \"∮\",\n olarr: \"↺\",\n olcir: \"⦾\",\n olcross: \"⦻\",\n oline: \"‾\",\n olt: \"⧀\",\n Omacr: \"Ō\",\n omacr: \"ō\",\n Omega: \"Ω\",\n omega: \"ω\",\n Omicron: \"Ο\",\n omicron: \"ο\",\n omid: \"⦶\",\n ominus: \"⊖\",\n Oopf: \"𝕆\",\n oopf: \"𝕠\",\n opar: \"⦷\",\n OpenCurlyDoubleQuote: \"“\",\n OpenCurlyQuote: \"‘\",\n operp: \"⦹\",\n oplus: \"⊕\",\n orarr: \"↻\",\n Or: \"⩔\",\n or: \"∨\",\n ord: \"⩝\",\n order: \"ℴ\",\n orderof: \"ℴ\",\n ordf: \"ª\",\n ordm: \"º\",\n origof: \"⊶\",\n oror: \"⩖\",\n orslope: \"⩗\",\n orv: \"⩛\",\n oS: \"Ⓢ\",\n Oscr: \"𝒪\",\n oscr: \"ℴ\",\n Oslash: \"Ø\",\n oslash: \"ø\",\n osol: \"⊘\",\n Otilde: \"Õ\",\n otilde: \"õ\",\n otimesas: \"⨶\",\n Otimes: \"⨷\",\n otimes: \"⊗\",\n Ouml: \"Ö\",\n ouml: \"ö\",\n ovbar: \"⌽\",\n OverBar: \"‾\",\n OverBrace: \"⏞\",\n OverBracket: \"⎴\",\n OverParenthesis: \"⏜\",\n para: \"¶\",\n parallel: \"∥\",\n par: \"∥\",\n parsim: \"⫳\",\n parsl: \"⫽\",\n part: \"∂\",\n PartialD: \"∂\",\n Pcy: \"П\",\n pcy: \"п\",\n percnt: \"%\",\n period: \".\",\n permil: \"‰\",\n perp: \"⊥\",\n pertenk: \"‱\",\n Pfr: \"𝔓\",\n pfr: \"𝔭\",\n Phi: \"Φ\",\n phi: \"φ\",\n phiv: \"ϕ\",\n phmmat: \"ℳ\",\n phone: \"☎\",\n Pi: \"Π\",\n pi: \"π\",\n pitchfork: \"⋔\",\n piv: \"ϖ\",\n planck: \"ℏ\",\n planckh: \"ℎ\",\n plankv: \"ℏ\",\n plusacir: \"⨣\",\n plusb: \"⊞\",\n pluscir: \"⨢\",\n plus: \"+\",\n plusdo: \"∔\",\n plusdu: \"⨥\",\n pluse: \"⩲\",\n PlusMinus: \"±\",\n plusmn: \"±\",\n plussim: \"⨦\",\n plustwo: \"⨧\",\n pm: \"±\",\n Poincareplane: \"ℌ\",\n pointint: \"⨕\",\n popf: \"𝕡\",\n Popf: \"ℙ\",\n pound: \"£\",\n prap: \"⪷\",\n Pr: \"⪻\",\n pr: \"≺\",\n prcue: \"≼\",\n precapprox: \"⪷\",\n prec: \"≺\",\n preccurlyeq: \"≼\",\n Precedes: \"≺\",\n PrecedesEqual: \"⪯\",\n PrecedesSlantEqual: \"≼\",\n PrecedesTilde: \"≾\",\n preceq: \"⪯\",\n precnapprox: \"⪹\",\n precneqq: \"⪵\",\n precnsim: \"⋨\",\n pre: \"⪯\",\n prE: \"⪳\",\n precsim: \"≾\",\n prime: \"′\",\n Prime: \"″\",\n primes: \"ℙ\",\n prnap: \"⪹\",\n prnE: \"⪵\",\n prnsim: \"⋨\",\n prod: \"∏\",\n Product: \"∏\",\n profalar: \"⌮\",\n profline: \"⌒\",\n profsurf: \"⌓\",\n prop: \"∝\",\n Proportional: \"∝\",\n Proportion: \"∷\",\n propto: \"∝\",\n prsim: \"≾\",\n prurel: \"⊰\",\n Pscr: \"𝒫\",\n pscr: \"𝓅\",\n Psi: \"Ψ\",\n psi: \"ψ\",\n puncsp: \" \",\n Qfr: \"𝔔\",\n qfr: \"𝔮\",\n qint: \"⨌\",\n qopf: \"𝕢\",\n Qopf: \"ℚ\",\n qprime: \"⁗\",\n Qscr: \"𝒬\",\n qscr: \"𝓆\",\n quaternions: \"ℍ\",\n quatint: \"⨖\",\n quest: \"?\",\n questeq: \"≟\",\n quot: \"\\\"\",\n QUOT: \"\\\"\",\n rAarr: \"⇛\",\n race: \"∽̱\",\n Racute: \"Ŕ\",\n racute: \"ŕ\",\n radic: \"√\",\n raemptyv: \"⦳\",\n rang: \"⟩\",\n Rang: \"⟫\",\n rangd: \"⦒\",\n range: \"⦥\",\n rangle: \"⟩\",\n raquo: \"»\",\n rarrap: \"⥵\",\n rarrb: \"⇥\",\n rarrbfs: \"⤠\",\n rarrc: \"⤳\",\n rarr: \"→\",\n Rarr: \"↠\",\n rArr: \"⇒\",\n rarrfs: \"⤞\",\n rarrhk: \"↪\",\n rarrlp: \"↬\",\n rarrpl: \"⥅\",\n rarrsim: \"⥴\",\n Rarrtl: \"⤖\",\n rarrtl: \"↣\",\n rarrw: \"↝\",\n ratail: \"⤚\",\n rAtail: \"⤜\",\n ratio: \"∶\",\n rationals: \"ℚ\",\n rbarr: \"⤍\",\n rBarr: \"⤏\",\n RBarr: \"⤐\",\n rbbrk: \"❳\",\n rbrace: \"}\",\n rbrack: \"]\",\n rbrke: \"⦌\",\n rbrksld: \"⦎\",\n rbrkslu: \"⦐\",\n Rcaron: \"Ř\",\n rcaron: \"ř\",\n Rcedil: \"Ŗ\",\n rcedil: \"ŗ\",\n rceil: \"⌉\",\n rcub: \"}\",\n Rcy: \"Р\",\n rcy: \"р\",\n rdca: \"⤷\",\n rdldhar: \"⥩\",\n rdquo: \"”\",\n rdquor: \"”\",\n rdsh: \"↳\",\n real: \"ℜ\",\n realine: \"ℛ\",\n realpart: \"ℜ\",\n reals: \"ℝ\",\n Re: \"ℜ\",\n rect: \"▭\",\n reg: \"®\",\n REG: \"®\",\n ReverseElement: \"∋\",\n ReverseEquilibrium: \"⇋\",\n ReverseUpEquilibrium: \"⥯\",\n rfisht: \"⥽\",\n rfloor: \"⌋\",\n rfr: \"𝔯\",\n Rfr: \"ℜ\",\n rHar: \"⥤\",\n rhard: \"⇁\",\n rharu: \"⇀\",\n rharul: \"⥬\",\n Rho: \"Ρ\",\n rho: \"ρ\",\n rhov: \"ϱ\",\n RightAngleBracket: \"⟩\",\n RightArrowBar: \"⇥\",\n rightarrow: \"→\",\n RightArrow: \"→\",\n Rightarrow: \"⇒\",\n RightArrowLeftArrow: \"⇄\",\n rightarrowtail: \"↣\",\n RightCeiling: \"⌉\",\n RightDoubleBracket: \"⟧\",\n RightDownTeeVector: \"⥝\",\n RightDownVectorBar: \"⥕\",\n RightDownVector: \"⇂\",\n RightFloor: \"⌋\",\n rightharpoondown: \"⇁\",\n rightharpoonup: \"⇀\",\n rightleftarrows: \"⇄\",\n rightleftharpoons: \"⇌\",\n rightrightarrows: \"⇉\",\n rightsquigarrow: \"↝\",\n RightTeeArrow: \"↦\",\n RightTee: \"⊢\",\n RightTeeVector: \"⥛\",\n rightthreetimes: \"⋌\",\n RightTriangleBar: \"⧐\",\n RightTriangle: \"⊳\",\n RightTriangleEqual: \"⊵\",\n RightUpDownVector: \"⥏\",\n RightUpTeeVector: \"⥜\",\n RightUpVectorBar: \"⥔\",\n RightUpVector: \"↾\",\n RightVectorBar: \"⥓\",\n RightVector: \"⇀\",\n ring: \"˚\",\n risingdotseq: \"≓\",\n rlarr: \"⇄\",\n rlhar: \"⇌\",\n rlm: \"\\u200f\",\n rmoustache: \"⎱\",\n rmoust: \"⎱\",\n rnmid: \"⫮\",\n roang: \"⟭\",\n roarr: \"⇾\",\n robrk: \"⟧\",\n ropar: \"⦆\",\n ropf: \"𝕣\",\n Ropf: \"ℝ\",\n roplus: \"⨮\",\n rotimes: \"⨵\",\n RoundImplies: \"⥰\",\n rpar: \")\",\n rpargt: \"⦔\",\n rppolint: \"⨒\",\n rrarr: \"⇉\",\n Rrightarrow: \"⇛\",\n rsaquo: \"›\",\n rscr: \"𝓇\",\n Rscr: \"ℛ\",\n rsh: \"↱\",\n Rsh: \"↱\",\n rsqb: \"]\",\n rsquo: \"’\",\n rsquor: \"’\",\n rthree: \"⋌\",\n rtimes: \"⋊\",\n rtri: \"▹\",\n rtrie: \"⊵\",\n rtrif: \"▸\",\n rtriltri: \"⧎\",\n RuleDelayed: \"⧴\",\n ruluhar: \"⥨\",\n rx: \"℞\",\n Sacute: \"Ś\",\n sacute: \"ś\",\n sbquo: \"‚\",\n scap: \"⪸\",\n Scaron: \"Š\",\n scaron: \"š\",\n Sc: \"⪼\",\n sc: \"≻\",\n sccue: \"≽\",\n sce: \"⪰\",\n scE: \"⪴\",\n Scedil: \"Ş\",\n scedil: \"ş\",\n Scirc: \"Ŝ\",\n scirc: \"ŝ\",\n scnap: \"⪺\",\n scnE: \"⪶\",\n scnsim: \"⋩\",\n scpolint: \"⨓\",\n scsim: \"≿\",\n Scy: \"С\",\n scy: \"с\",\n sdotb: \"⊡\",\n sdot: \"⋅\",\n sdote: \"⩦\",\n searhk: \"⤥\",\n searr: \"↘\",\n seArr: \"⇘\",\n searrow: \"↘\",\n sect: \"§\",\n semi: \";\",\n seswar: \"⤩\",\n setminus: \"∖\",\n setmn: \"∖\",\n sext: \"✶\",\n Sfr: \"𝔖\",\n sfr: \"𝔰\",\n sfrown: \"⌢\",\n sharp: \"♯\",\n SHCHcy: \"Щ\",\n shchcy: \"щ\",\n SHcy: \"Ш\",\n shcy: \"ш\",\n ShortDownArrow: \"↓\",\n ShortLeftArrow: \"←\",\n shortmid: \"∣\",\n shortparallel: \"∥\",\n ShortRightArrow: \"→\",\n ShortUpArrow: \"↑\",\n shy: \"\\u00ad\",\n Sigma: \"Σ\",\n sigma: \"σ\",\n sigmaf: \"ς\",\n sigmav: \"ς\",\n sim: \"∼\",\n simdot: \"⩪\",\n sime: \"≃\",\n simeq: \"≃\",\n simg: \"⪞\",\n simgE: \"⪠\",\n siml: \"⪝\",\n simlE: \"⪟\",\n simne: \"≆\",\n simplus: \"⨤\",\n simrarr: \"⥲\",\n slarr: \"←\",\n SmallCircle: \"∘\",\n smallsetminus: \"∖\",\n smashp: \"⨳\",\n smeparsl: \"⧤\",\n smid: \"∣\",\n smile: \"⌣\",\n smt: \"⪪\",\n smte: \"⪬\",\n smtes: \"⪬︀\",\n SOFTcy: \"Ь\",\n softcy: \"ь\",\n solbar: \"⌿\",\n solb: \"⧄\",\n sol: \"/\",\n Sopf: \"𝕊\",\n sopf: \"𝕤\",\n spades: \"♠\",\n spadesuit: \"♠\",\n spar: \"∥\",\n sqcap: \"⊓\",\n sqcaps: \"⊓︀\",\n sqcup: \"⊔\",\n sqcups: \"⊔︀\",\n Sqrt: \"√\",\n sqsub: \"⊏\",\n sqsube: \"⊑\",\n sqsubset: \"⊏\",\n sqsubseteq: \"⊑\",\n sqsup: \"⊐\",\n sqsupe: \"⊒\",\n sqsupset: \"⊐\",\n sqsupseteq: \"⊒\",\n square: \"□\",\n Square: \"□\",\n SquareIntersection: \"⊓\",\n SquareSubset: \"⊏\",\n SquareSubsetEqual: \"⊑\",\n SquareSuperset: \"⊐\",\n SquareSupersetEqual: \"⊒\",\n SquareUnion: \"⊔\",\n squarf: \"▪\",\n squ: \"□\",\n squf: \"▪\",\n srarr: \"→\",\n Sscr: \"𝒮\",\n sscr: \"𝓈\",\n ssetmn: \"∖\",\n ssmile: \"⌣\",\n sstarf: \"⋆\",\n Star: \"⋆\",\n star: \"☆\",\n starf: \"★\",\n straightepsilon: \"ϵ\",\n straightphi: \"ϕ\",\n strns: \"¯\",\n sub: \"⊂\",\n Sub: \"⋐\",\n subdot: \"⪽\",\n subE: \"⫅\",\n sube: \"⊆\",\n subedot: \"⫃\",\n submult: \"⫁\",\n subnE: \"⫋\",\n subne: \"⊊\",\n subplus: \"⪿\",\n subrarr: \"⥹\",\n subset: \"⊂\",\n Subset: \"⋐\",\n subseteq: \"⊆\",\n subseteqq: \"⫅\",\n SubsetEqual: \"⊆\",\n subsetneq: \"⊊\",\n subsetneqq: \"⫋\",\n subsim: \"⫇\",\n subsub: \"⫕\",\n subsup: \"⫓\",\n succapprox: \"⪸\",\n succ: \"≻\",\n succcurlyeq: \"≽\",\n Succeeds: \"≻\",\n SucceedsEqual: \"⪰\",\n SucceedsSlantEqual: \"≽\",\n SucceedsTilde: \"≿\",\n succeq: \"⪰\",\n succnapprox: \"⪺\",\n succneqq: \"⪶\",\n succnsim: \"⋩\",\n succsim: \"≿\",\n SuchThat: \"∋\",\n sum: \"∑\",\n Sum: \"∑\",\n sung: \"♪\",\n sup1: \"¹\",\n sup2: \"²\",\n sup3: \"³\",\n sup: \"⊃\",\n Sup: \"⋑\",\n supdot: \"⪾\",\n supdsub: \"⫘\",\n supE: \"⫆\",\n supe: \"⊇\",\n supedot: \"⫄\",\n Superset: \"⊃\",\n SupersetEqual: \"⊇\",\n suphsol: \"⟉\",\n suphsub: \"⫗\",\n suplarr: \"⥻\",\n supmult: \"⫂\",\n supnE: \"⫌\",\n supne: \"⊋\",\n supplus: \"⫀\",\n supset: \"⊃\",\n Supset: \"⋑\",\n supseteq: \"⊇\",\n supseteqq: \"⫆\",\n supsetneq: \"⊋\",\n supsetneqq: \"⫌\",\n supsim: \"⫈\",\n supsub: \"⫔\",\n supsup: \"⫖\",\n swarhk: \"⤦\",\n swarr: \"↙\",\n swArr: \"⇙\",\n swarrow: \"↙\",\n swnwar: \"⤪\",\n szlig: \"ß\",\n Tab: \"\\u0009\",\n target: \"⌖\",\n Tau: \"Τ\",\n tau: \"τ\",\n tbrk: \"⎴\",\n Tcaron: \"Ť\",\n tcaron: \"ť\",\n Tcedil: \"Ţ\",\n tcedil: \"ţ\",\n Tcy: \"Т\",\n tcy: \"т\",\n tdot: \"⃛\",\n telrec: \"⌕\",\n Tfr: \"𝔗\",\n tfr: \"𝔱\",\n there4: \"∴\",\n therefore: \"∴\",\n Therefore: \"∴\",\n Theta: \"Θ\",\n theta: \"θ\",\n thetasym: \"ϑ\",\n thetav: \"ϑ\",\n thickapprox: \"≈\",\n thicksim: \"∼\",\n ThickSpace: \" \",\n ThinSpace: \" \",\n thinsp: \" \",\n thkap: \"≈\",\n thksim: \"∼\",\n THORN: \"Þ\",\n thorn: \"þ\",\n tilde: \"˜\",\n Tilde: \"∼\",\n TildeEqual: \"≃\",\n TildeFullEqual: \"≅\",\n TildeTilde: \"≈\",\n timesbar: \"⨱\",\n timesb: \"⊠\",\n times: \"×\",\n timesd: \"⨰\",\n tint: \"∭\",\n toea: \"⤨\",\n topbot: \"⌶\",\n topcir: \"⫱\",\n top: \"⊤\",\n Topf: \"𝕋\",\n topf: \"𝕥\",\n topfork: \"⫚\",\n tosa: \"⤩\",\n tprime: \"‴\",\n trade: \"™\",\n TRADE: \"™\",\n triangle: \"▵\",\n triangledown: \"▿\",\n triangleleft: \"◃\",\n trianglelefteq: \"⊴\",\n triangleq: \"≜\",\n triangleright: \"▹\",\n trianglerighteq: \"⊵\",\n tridot: \"◬\",\n trie: \"≜\",\n triminus: \"⨺\",\n TripleDot: \"⃛\",\n triplus: \"⨹\",\n trisb: \"⧍\",\n tritime: \"⨻\",\n trpezium: \"⏢\",\n Tscr: \"𝒯\",\n tscr: \"𝓉\",\n TScy: \"Ц\",\n tscy: \"ц\",\n TSHcy: \"Ћ\",\n tshcy: \"ћ\",\n Tstrok: \"Ŧ\",\n tstrok: \"ŧ\",\n twixt: \"≬\",\n twoheadleftarrow: \"↞\",\n twoheadrightarrow: \"↠\",\n Uacute: \"Ú\",\n uacute: \"ú\",\n uarr: \"↑\",\n Uarr: \"↟\",\n uArr: \"⇑\",\n Uarrocir: \"⥉\",\n Ubrcy: \"Ў\",\n ubrcy: \"ў\",\n Ubreve: \"Ŭ\",\n ubreve: \"ŭ\",\n Ucirc: \"Û\",\n ucirc: \"û\",\n Ucy: \"У\",\n ucy: \"у\",\n udarr: \"⇅\",\n Udblac: \"Ű\",\n udblac: \"ű\",\n udhar: \"⥮\",\n ufisht: \"⥾\",\n Ufr: \"𝔘\",\n ufr: \"𝔲\",\n Ugrave: \"Ù\",\n ugrave: \"ù\",\n uHar: \"⥣\",\n uharl: \"↿\",\n uharr: \"↾\",\n uhblk: \"▀\",\n ulcorn: \"⌜\",\n ulcorner: \"⌜\",\n ulcrop: \"⌏\",\n ultri: \"◸\",\n Umacr: \"Ū\",\n umacr: \"ū\",\n uml: \"¨\",\n UnderBar: \"_\",\n UnderBrace: \"⏟\",\n UnderBracket: \"⎵\",\n UnderParenthesis: \"⏝\",\n Union: \"⋃\",\n UnionPlus: \"⊎\",\n Uogon: \"Ų\",\n uogon: \"ų\",\n Uopf: \"𝕌\",\n uopf: \"𝕦\",\n UpArrowBar: \"⤒\",\n uparrow: \"↑\",\n UpArrow: \"↑\",\n Uparrow: \"⇑\",\n UpArrowDownArrow: \"⇅\",\n updownarrow: \"↕\",\n UpDownArrow: \"↕\",\n Updownarrow: \"⇕\",\n UpEquilibrium: \"⥮\",\n upharpoonleft: \"↿\",\n upharpoonright: \"↾\",\n uplus: \"⊎\",\n UpperLeftArrow: \"↖\",\n UpperRightArrow: \"↗\",\n upsi: \"υ\",\n Upsi: \"ϒ\",\n upsih: \"ϒ\",\n Upsilon: \"Υ\",\n upsilon: \"υ\",\n UpTeeArrow: \"↥\",\n UpTee: \"⊥\",\n upuparrows: \"⇈\",\n urcorn: \"⌝\",\n urcorner: \"⌝\",\n urcrop: \"⌎\",\n Uring: \"Ů\",\n uring: \"ů\",\n urtri: \"◹\",\n Uscr: \"𝒰\",\n uscr: \"𝓊\",\n utdot: \"⋰\",\n Utilde: \"Ũ\",\n utilde: \"ũ\",\n utri: \"▵\",\n utrif: \"▴\",\n uuarr: \"⇈\",\n Uuml: \"Ü\",\n uuml: \"ü\",\n uwangle: \"⦧\",\n vangrt: \"⦜\",\n varepsilon: \"ϵ\",\n varkappa: \"ϰ\",\n varnothing: \"∅\",\n varphi: \"ϕ\",\n varpi: \"ϖ\",\n varpropto: \"∝\",\n varr: \"↕\",\n vArr: \"⇕\",\n varrho: \"ϱ\",\n varsigma: \"ς\",\n varsubsetneq: \"⊊︀\",\n varsubsetneqq: \"⫋︀\",\n varsupsetneq: \"⊋︀\",\n varsupsetneqq: \"⫌︀\",\n vartheta: \"ϑ\",\n vartriangleleft: \"⊲\",\n vartriangleright: \"⊳\",\n vBar: \"⫨\",\n Vbar: \"⫫\",\n vBarv: \"⫩\",\n Vcy: \"В\",\n vcy: \"в\",\n vdash: \"⊢\",\n vDash: \"⊨\",\n Vdash: \"⊩\",\n VDash: \"⊫\",\n Vdashl: \"⫦\",\n veebar: \"⊻\",\n vee: \"∨\",\n Vee: \"⋁\",\n veeeq: \"≚\",\n vellip: \"⋮\",\n verbar: \"|\",\n Verbar: \"‖\",\n vert: \"|\",\n Vert: \"‖\",\n VerticalBar: \"∣\",\n VerticalLine: \"|\",\n VerticalSeparator: \"❘\",\n VerticalTilde: \"≀\",\n VeryThinSpace: \" \",\n Vfr: \"𝔙\",\n vfr: \"𝔳\",\n vltri: \"⊲\",\n vnsub: \"⊂⃒\",\n vnsup: \"⊃⃒\",\n Vopf: \"𝕍\",\n vopf: \"𝕧\",\n vprop: \"∝\",\n vrtri: \"⊳\",\n Vscr: \"𝒱\",\n vscr: \"𝓋\",\n vsubnE: \"⫋︀\",\n vsubne: \"⊊︀\",\n vsupnE: \"⫌︀\",\n vsupne: \"⊋︀\",\n Vvdash: \"⊪\",\n vzigzag: \"⦚\",\n Wcirc: \"Ŵ\",\n wcirc: \"ŵ\",\n wedbar: \"⩟\",\n wedge: \"∧\",\n Wedge: \"⋀\",\n wedgeq: \"≙\",\n weierp: \"℘\",\n Wfr: \"𝔚\",\n wfr: \"𝔴\",\n Wopf: \"𝕎\",\n wopf: \"𝕨\",\n wp: \"℘\",\n wr: \"≀\",\n wreath: \"≀\",\n Wscr: \"𝒲\",\n wscr: \"𝓌\",\n xcap: \"⋂\",\n xcirc: \"◯\",\n xcup: \"⋃\",\n xdtri: \"▽\",\n Xfr: \"𝔛\",\n xfr: \"𝔵\",\n xharr: \"⟷\",\n xhArr: \"⟺\",\n Xi: \"Ξ\",\n xi: \"ξ\",\n xlarr: \"⟵\",\n xlArr: \"⟸\",\n xmap: \"⟼\",\n xnis: \"⋻\",\n xodot: \"⨀\",\n Xopf: \"𝕏\",\n xopf: \"𝕩\",\n xoplus: \"⨁\",\n xotime: \"⨂\",\n xrarr: \"⟶\",\n xrArr: \"⟹\",\n Xscr: \"𝒳\",\n xscr: \"𝓍\",\n xsqcup: \"⨆\",\n xuplus: \"⨄\",\n xutri: \"△\",\n xvee: \"⋁\",\n xwedge: \"⋀\",\n Yacute: \"Ý\",\n yacute: \"ý\",\n YAcy: \"Я\",\n yacy: \"я\",\n Ycirc: \"Ŷ\",\n ycirc: \"ŷ\",\n Ycy: \"Ы\",\n ycy: \"ы\",\n yen: \"¥\",\n Yfr: \"𝔜\",\n yfr: \"𝔶\",\n YIcy: \"Ї\",\n yicy: \"ї\",\n Yopf: \"𝕐\",\n yopf: \"𝕪\",\n Yscr: \"𝒴\",\n yscr: \"𝓎\",\n YUcy: \"Ю\",\n yucy: \"ю\",\n yuml: \"ÿ\",\n Yuml: \"Ÿ\",\n Zacute: \"Ź\",\n zacute: \"ź\",\n Zcaron: \"Ž\",\n zcaron: \"ž\",\n Zcy: \"З\",\n zcy: \"з\",\n Zdot: \"Ż\",\n zdot: \"ż\",\n zeetrf: \"ℨ\",\n ZeroWidthSpace: \"\",\n Zeta: \"Ζ\",\n zeta: \"ζ\",\n zfr: \"𝔷\",\n Zfr: \"ℨ\",\n ZHcy: \"Ж\",\n zhcy: \"ж\",\n zigrarr: \"⇝\",\n zopf: \"𝕫\",\n Zopf: \"ℤ\",\n Zscr: \"𝒵\",\n zscr: \"𝓏\",\n zwj: \"\\u200d\",\n zwnj: \"\\u200c\"\n };\n _exports.HTML5NamedCharRefs = namedCharRefs;\n var HEXCHARCODE = /^#[xX]([A-Fa-f0-9]+)$/;\n var CHARCODE = /^#([0-9]+)$/;\n var NAMED = /^([A-Za-z0-9]+)$/;\n\n var EntityParser =\n /** @class */\n function () {\n function EntityParser(named) {\n this.named = named;\n }\n\n EntityParser.prototype.parse = function (entity) {\n if (!entity) {\n return;\n }\n\n var matches = entity.match(HEXCHARCODE);\n\n if (matches) {\n return String.fromCharCode(parseInt(matches[1], 16));\n }\n\n matches = entity.match(CHARCODE);\n\n if (matches) {\n return String.fromCharCode(parseInt(matches[1], 10));\n }\n\n matches = entity.match(NAMED);\n\n if (matches) {\n return this.named[matches[1]];\n }\n };\n\n return EntityParser;\n }();\n\n _exports.EntityParser = EntityParser;\n var WSP = /[\\t\\n\\f ]/;\n var ALPHA = /[A-Za-z]/;\n var CRLF = /\\r\\n?/g;\n\n function isSpace(char) {\n return WSP.test(char);\n }\n\n function isAlpha(char) {\n return ALPHA.test(char);\n }\n\n function preprocessInput(input) {\n return input.replace(CRLF, '\\n');\n }\n\n var EventedTokenizer =\n /** @class */\n function () {\n function EventedTokenizer(delegate, entityParser) {\n this.delegate = delegate;\n this.entityParser = entityParser;\n this.state = \"beforeData\"\n /* beforeData */\n ;\n this.line = -1;\n this.column = -1;\n this.input = '';\n this.index = -1;\n this.tagNameBuffer = '';\n this.states = {\n beforeData: function () {\n var char = this.peek();\n\n if (char === '<') {\n this.transitionTo(\"tagOpen\"\n /* tagOpen */\n );\n this.markTagStart();\n this.consume();\n } else {\n if (char === '\\n') {\n var tag = this.tagNameBuffer.toLowerCase();\n\n if (tag === 'pre' || tag === 'textarea') {\n this.consume();\n }\n }\n\n this.transitionTo(\"data\"\n /* data */\n );\n this.delegate.beginData();\n }\n },\n data: function () {\n var char = this.peek();\n\n if (char === '<') {\n this.delegate.finishData();\n this.transitionTo(\"tagOpen\"\n /* tagOpen */\n );\n this.markTagStart();\n this.consume();\n } else if (char === '&') {\n this.consume();\n this.delegate.appendToData(this.consumeCharRef() || '&');\n } else {\n this.consume();\n this.delegate.appendToData(char);\n }\n },\n tagOpen: function () {\n var char = this.consume();\n\n if (char === '!') {\n this.transitionTo(\"markupDeclarationOpen\"\n /* markupDeclarationOpen */\n );\n } else if (char === '/') {\n this.transitionTo(\"endTagOpen\"\n /* endTagOpen */\n );\n } else if (char === '@' || isAlpha(char)) {\n this.transitionTo(\"tagName\"\n /* tagName */\n );\n this.tagNameBuffer = '';\n this.delegate.beginStartTag();\n this.appendToTagName(char);\n }\n },\n markupDeclarationOpen: function () {\n var char = this.consume();\n\n if (char === '-' && this.input.charAt(this.index) === '-') {\n this.consume();\n this.transitionTo(\"commentStart\"\n /* commentStart */\n );\n this.delegate.beginComment();\n }\n },\n commentStart: function () {\n var char = this.consume();\n\n if (char === '-') {\n this.transitionTo(\"commentStartDash\"\n /* commentStartDash */\n );\n } else if (char === '>') {\n this.delegate.finishComment();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n } else {\n this.delegate.appendToCommentData(char);\n this.transitionTo(\"comment\"\n /* comment */\n );\n }\n },\n commentStartDash: function () {\n var char = this.consume();\n\n if (char === '-') {\n this.transitionTo(\"commentEnd\"\n /* commentEnd */\n );\n } else if (char === '>') {\n this.delegate.finishComment();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n } else {\n this.delegate.appendToCommentData('-');\n this.transitionTo(\"comment\"\n /* comment */\n );\n }\n },\n comment: function () {\n var char = this.consume();\n\n if (char === '-') {\n this.transitionTo(\"commentEndDash\"\n /* commentEndDash */\n );\n } else {\n this.delegate.appendToCommentData(char);\n }\n },\n commentEndDash: function () {\n var char = this.consume();\n\n if (char === '-') {\n this.transitionTo(\"commentEnd\"\n /* commentEnd */\n );\n } else {\n this.delegate.appendToCommentData('-' + char);\n this.transitionTo(\"comment\"\n /* comment */\n );\n }\n },\n commentEnd: function () {\n var char = this.consume();\n\n if (char === '>') {\n this.delegate.finishComment();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n } else {\n this.delegate.appendToCommentData('--' + char);\n this.transitionTo(\"comment\"\n /* comment */\n );\n }\n },\n tagName: function () {\n var char = this.consume();\n\n if (isSpace(char)) {\n this.transitionTo(\"beforeAttributeName\"\n /* beforeAttributeName */\n );\n } else if (char === '/') {\n this.transitionTo(\"selfClosingStartTag\"\n /* selfClosingStartTag */\n );\n } else if (char === '>') {\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n } else {\n this.appendToTagName(char);\n }\n },\n beforeAttributeName: function () {\n var char = this.peek();\n\n if (isSpace(char)) {\n this.consume();\n return;\n } else if (char === '/') {\n this.transitionTo(\"selfClosingStartTag\"\n /* selfClosingStartTag */\n );\n this.consume();\n } else if (char === '>') {\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n } else if (char === '=') {\n this.delegate.reportSyntaxError('attribute name cannot start with equals sign');\n this.transitionTo(\"attributeName\"\n /* attributeName */\n );\n this.delegate.beginAttribute();\n this.consume();\n this.delegate.appendToAttributeName(char);\n } else {\n this.transitionTo(\"attributeName\"\n /* attributeName */\n );\n this.delegate.beginAttribute();\n }\n },\n attributeName: function () {\n var char = this.peek();\n\n if (isSpace(char)) {\n this.transitionTo(\"afterAttributeName\"\n /* afterAttributeName */\n );\n this.consume();\n } else if (char === '/') {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.transitionTo(\"selfClosingStartTag\"\n /* selfClosingStartTag */\n );\n } else if (char === '=') {\n this.transitionTo(\"beforeAttributeValue\"\n /* beforeAttributeValue */\n );\n this.consume();\n } else if (char === '>') {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n } else if (char === '\"' || char === \"'\" || char === '<') {\n this.delegate.reportSyntaxError(char + ' is not a valid character within attribute names');\n this.consume();\n this.delegate.appendToAttributeName(char);\n } else {\n this.consume();\n this.delegate.appendToAttributeName(char);\n }\n },\n afterAttributeName: function () {\n var char = this.peek();\n\n if (isSpace(char)) {\n this.consume();\n return;\n } else if (char === '/') {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.transitionTo(\"selfClosingStartTag\"\n /* selfClosingStartTag */\n );\n } else if (char === '=') {\n this.consume();\n this.transitionTo(\"beforeAttributeValue\"\n /* beforeAttributeValue */\n );\n } else if (char === '>') {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n } else {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.transitionTo(\"attributeName\"\n /* attributeName */\n );\n this.delegate.beginAttribute();\n this.consume();\n this.delegate.appendToAttributeName(char);\n }\n },\n beforeAttributeValue: function () {\n var char = this.peek();\n\n if (isSpace(char)) {\n this.consume();\n } else if (char === '\"') {\n this.transitionTo(\"attributeValueDoubleQuoted\"\n /* attributeValueDoubleQuoted */\n );\n this.delegate.beginAttributeValue(true);\n this.consume();\n } else if (char === \"'\") {\n this.transitionTo(\"attributeValueSingleQuoted\"\n /* attributeValueSingleQuoted */\n );\n this.delegate.beginAttributeValue(true);\n this.consume();\n } else if (char === '>') {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n } else {\n this.transitionTo(\"attributeValueUnquoted\"\n /* attributeValueUnquoted */\n );\n this.delegate.beginAttributeValue(false);\n this.consume();\n this.delegate.appendToAttributeValue(char);\n }\n },\n attributeValueDoubleQuoted: function () {\n var char = this.consume();\n\n if (char === '\"') {\n this.delegate.finishAttributeValue();\n this.transitionTo(\"afterAttributeValueQuoted\"\n /* afterAttributeValueQuoted */\n );\n } else if (char === '&') {\n this.delegate.appendToAttributeValue(this.consumeCharRef() || '&');\n } else {\n this.delegate.appendToAttributeValue(char);\n }\n },\n attributeValueSingleQuoted: function () {\n var char = this.consume();\n\n if (char === \"'\") {\n this.delegate.finishAttributeValue();\n this.transitionTo(\"afterAttributeValueQuoted\"\n /* afterAttributeValueQuoted */\n );\n } else if (char === '&') {\n this.delegate.appendToAttributeValue(this.consumeCharRef() || '&');\n } else {\n this.delegate.appendToAttributeValue(char);\n }\n },\n attributeValueUnquoted: function () {\n var char = this.peek();\n\n if (isSpace(char)) {\n this.delegate.finishAttributeValue();\n this.consume();\n this.transitionTo(\"beforeAttributeName\"\n /* beforeAttributeName */\n );\n } else if (char === '/') {\n this.delegate.finishAttributeValue();\n this.consume();\n this.transitionTo(\"selfClosingStartTag\"\n /* selfClosingStartTag */\n );\n } else if (char === '&') {\n this.consume();\n this.delegate.appendToAttributeValue(this.consumeCharRef() || '&');\n } else if (char === '>') {\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n } else {\n this.consume();\n this.delegate.appendToAttributeValue(char);\n }\n },\n afterAttributeValueQuoted: function () {\n var char = this.peek();\n\n if (isSpace(char)) {\n this.consume();\n this.transitionTo(\"beforeAttributeName\"\n /* beforeAttributeName */\n );\n } else if (char === '/') {\n this.consume();\n this.transitionTo(\"selfClosingStartTag\"\n /* selfClosingStartTag */\n );\n } else if (char === '>') {\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n } else {\n this.transitionTo(\"beforeAttributeName\"\n /* beforeAttributeName */\n );\n }\n },\n selfClosingStartTag: function () {\n var char = this.peek();\n\n if (char === '>') {\n this.consume();\n this.delegate.markTagAsSelfClosing();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n } else {\n this.transitionTo(\"beforeAttributeName\"\n /* beforeAttributeName */\n );\n }\n },\n endTagOpen: function () {\n var char = this.consume();\n\n if (char === '@' || isAlpha(char)) {\n this.transitionTo(\"tagName\"\n /* tagName */\n );\n this.tagNameBuffer = '';\n this.delegate.beginEndTag();\n this.appendToTagName(char);\n }\n }\n };\n this.reset();\n }\n\n EventedTokenizer.prototype.reset = function () {\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n this.input = '';\n this.index = 0;\n this.line = 1;\n this.column = 0;\n this.delegate.reset();\n };\n\n EventedTokenizer.prototype.transitionTo = function (state) {\n this.state = state;\n };\n\n EventedTokenizer.prototype.tokenize = function (input) {\n this.reset();\n this.tokenizePart(input);\n this.tokenizeEOF();\n };\n\n EventedTokenizer.prototype.tokenizePart = function (input) {\n this.input += preprocessInput(input);\n\n while (this.index < this.input.length) {\n var handler = this.states[this.state];\n\n if (handler !== undefined) {\n handler.call(this);\n } else {\n throw new Error(\"unhandled state \" + this.state);\n }\n }\n };\n\n EventedTokenizer.prototype.tokenizeEOF = function () {\n this.flushData();\n };\n\n EventedTokenizer.prototype.flushData = function () {\n if (this.state === 'data') {\n this.delegate.finishData();\n this.transitionTo(\"beforeData\"\n /* beforeData */\n );\n }\n };\n\n EventedTokenizer.prototype.peek = function () {\n return this.input.charAt(this.index);\n };\n\n EventedTokenizer.prototype.consume = function () {\n var char = this.peek();\n this.index++;\n\n if (char === '\\n') {\n this.line++;\n this.column = 0;\n } else {\n this.column++;\n }\n\n return char;\n };\n\n EventedTokenizer.prototype.consumeCharRef = function () {\n var endIndex = this.input.indexOf(';', this.index);\n\n if (endIndex === -1) {\n return;\n }\n\n var entity = this.input.slice(this.index, endIndex);\n var chars = this.entityParser.parse(entity);\n\n if (chars) {\n var count = entity.length; // consume the entity chars\n\n while (count) {\n this.consume();\n count--;\n } // consume the `;`\n\n\n this.consume();\n return chars;\n }\n };\n\n EventedTokenizer.prototype.markTagStart = function () {\n this.delegate.tagOpen();\n };\n\n EventedTokenizer.prototype.appendToTagName = function (char) {\n this.tagNameBuffer += char;\n this.delegate.appendToTagName(char);\n };\n\n return EventedTokenizer;\n }();\n\n _exports.EventedTokenizer = EventedTokenizer;\n\n var Tokenizer =\n /** @class */\n function () {\n function Tokenizer(entityParser, options) {\n if (options === void 0) {\n options = {};\n }\n\n this.options = options;\n this.token = null;\n this.startLine = 1;\n this.startColumn = 0;\n this.tokens = [];\n this.tokenizer = new EventedTokenizer(this, entityParser);\n this._currentAttribute = undefined;\n }\n\n Tokenizer.prototype.tokenize = function (input) {\n this.tokens = [];\n this.tokenizer.tokenize(input);\n return this.tokens;\n };\n\n Tokenizer.prototype.tokenizePart = function (input) {\n this.tokens = [];\n this.tokenizer.tokenizePart(input);\n return this.tokens;\n };\n\n Tokenizer.prototype.tokenizeEOF = function () {\n this.tokens = [];\n this.tokenizer.tokenizeEOF();\n return this.tokens[0];\n };\n\n Tokenizer.prototype.reset = function () {\n this.token = null;\n this.startLine = 1;\n this.startColumn = 0;\n };\n\n Tokenizer.prototype.current = function () {\n var token = this.token;\n\n if (token === null) {\n throw new Error('token was unexpectedly null');\n }\n\n if (arguments.length === 0) {\n return token;\n }\n\n for (var i = 0; i < arguments.length; i++) {\n if (token.type === arguments[i]) {\n return token;\n }\n }\n\n throw new Error(\"token type was unexpectedly \" + token.type);\n };\n\n Tokenizer.prototype.push = function (token) {\n this.token = token;\n this.tokens.push(token);\n };\n\n Tokenizer.prototype.currentAttribute = function () {\n return this._currentAttribute;\n };\n\n Tokenizer.prototype.addLocInfo = function () {\n if (this.options.loc) {\n this.current().loc = {\n start: {\n line: this.startLine,\n column: this.startColumn\n },\n end: {\n line: this.tokenizer.line,\n column: this.tokenizer.column\n }\n };\n }\n\n this.startLine = this.tokenizer.line;\n this.startColumn = this.tokenizer.column;\n }; // Data\n\n\n Tokenizer.prototype.beginData = function () {\n this.push({\n type: \"Chars\"\n /* Chars */\n ,\n chars: ''\n });\n };\n\n Tokenizer.prototype.appendToData = function (char) {\n this.current(\"Chars\"\n /* Chars */\n ).chars += char;\n };\n\n Tokenizer.prototype.finishData = function () {\n this.addLocInfo();\n }; // Comment\n\n\n Tokenizer.prototype.beginComment = function () {\n this.push({\n type: \"Comment\"\n /* Comment */\n ,\n chars: ''\n });\n };\n\n Tokenizer.prototype.appendToCommentData = function (char) {\n this.current(\"Comment\"\n /* Comment */\n ).chars += char;\n };\n\n Tokenizer.prototype.finishComment = function () {\n this.addLocInfo();\n }; // Tags - basic\n\n\n Tokenizer.prototype.tagOpen = function () {};\n\n Tokenizer.prototype.beginStartTag = function () {\n this.push({\n type: \"StartTag\"\n /* StartTag */\n ,\n tagName: '',\n attributes: [],\n selfClosing: false\n });\n };\n\n Tokenizer.prototype.beginEndTag = function () {\n this.push({\n type: \"EndTag\"\n /* EndTag */\n ,\n tagName: ''\n });\n };\n\n Tokenizer.prototype.finishTag = function () {\n this.addLocInfo();\n };\n\n Tokenizer.prototype.markTagAsSelfClosing = function () {\n this.current(\"StartTag\"\n /* StartTag */\n ).selfClosing = true;\n }; // Tags - name\n\n\n Tokenizer.prototype.appendToTagName = function (char) {\n this.current(\"StartTag\"\n /* StartTag */\n , \"EndTag\"\n /* EndTag */\n ).tagName += char;\n }; // Tags - attributes\n\n\n Tokenizer.prototype.beginAttribute = function () {\n this._currentAttribute = ['', '', false];\n };\n\n Tokenizer.prototype.appendToAttributeName = function (char) {\n this.currentAttribute()[0] += char;\n };\n\n Tokenizer.prototype.beginAttributeValue = function (isQuoted) {\n this.currentAttribute()[2] = isQuoted;\n };\n\n Tokenizer.prototype.appendToAttributeValue = function (char) {\n this.currentAttribute()[1] += char;\n };\n\n Tokenizer.prototype.finishAttributeValue = function () {\n this.current(\"StartTag\"\n /* StartTag */\n ).attributes.push(this._currentAttribute);\n };\n\n Tokenizer.prototype.reportSyntaxError = function (message) {\n this.current().syntaxError = message;\n };\n\n return Tokenizer;\n }();\n\n _exports.Tokenizer = Tokenizer;\n\n function tokenize(input, options) {\n var tokenizer = new Tokenizer(new EntityParser(namedCharRefs), options);\n return tokenizer.tokenize(input);\n }\n});"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7pBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9gBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/LA;AACA;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACp7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC78CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7XA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9dA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxiBA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7zCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACz4BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7vCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACniHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7TA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACh0BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxlCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACncA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjsCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClHA;AACA;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACt7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxoCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3iBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACngDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1WA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3fA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1rBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpsCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7xBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACh4BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9XA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5pBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxHA;AACA;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/vBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1bA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC72BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9wBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5XA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChOA;AACA;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtmDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9TA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACh8CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACp6BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACheA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1dA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACl9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1ZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzlBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACndA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5WA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvMA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/pCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC77CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9nBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACr0DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrwBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACraA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7iDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxuFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5rBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxvLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9yDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtqCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5XA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACngBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5cA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC73GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpyCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9vBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5zBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5jGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACl4BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7sEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC77EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;","file":"ember-all.debug.js"}